:root {
  color-scheme: light;
  --fog: #f6e4e1; --paper: #fff9f6; --ink: #2a1519; --muted: #6f4d54; --line: #dcbfbd;
  --cobalt: #6e1f35; --cobalt-dark: #511527; --pale: #f6dfe0; --plum: #4b1526;
  --display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: var(--body); font-synthesis: none; line-height: 1.6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fog); color: var(--ink); font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; } button, input { font: inherit; } h1, h2, p { margin-top: 0; }
h1, h2, .wordmark, .occasion { font-family: var(--display); }
.site-header, .hero, .build, .situations, .join, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.wordmark { font-size: 1.9rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; }
.header-link { padding: 9px 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .92rem; font-weight: 500; text-decoration: none; transition: background 180ms, color 180ms; }
.header-link:hover { background: var(--ink); color: #fff; }

.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(40px, 8vw, 110px); padding-block: 40px 100px; }
h1 { margin-bottom: 28px; font-size: clamp(3.2rem, 6.4vw, 6rem); font-weight: 600; letter-spacing: -.025em; line-height: .96; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; animation: rise 800ms var(--ease) both; }
.line:nth-child(2) > span { animation-delay: 110ms; } .line:nth-child(3) > span { animation-delay: 220ms; }
.lede { max-width: 520px; margin-bottom: 32px; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.28rem); animation: fade 700ms 450ms both; }
.primary-link, .signup-form button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--cobalt); color: #fff; font-weight: 700; text-decoration: none; transition: transform 180ms var(--ease), background 180ms, box-shadow 180ms; }
.primary-link { padding: 0 28px; animation: fade 700ms 550ms both; }
.primary-link:hover, .signup-form button:hover { background: var(--cobalt-dark); box-shadow: 0 12px 26px rgba(110, 31, 53, .3); transform: translateY(-2px); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.microcopy { margin: 14px 0 0; color: var(--muted); font-size: .88rem; animation: fade 700ms 650ms both; }

.tag-wrap { display: flex; justify-content: center; padding-top: 70px; }
.tag { position: relative; width: min(100%, 360px); padding: 68px 28px 26px; border-radius: 22px 22px 30px 30px; background: var(--paper); box-shadow: 0 34px 60px -28px rgba(74, 21, 38, .35); transform-origin: 50% -70px; animation: swing 1.6s 300ms var(--ease) both; }
.tag::before { content: ""; position: absolute; top: 22px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--fog); box-shadow: inset 0 2px 3px rgba(74, 21, 38, .25); }
.tag::after { content: ""; position: absolute; bottom: calc(100% - 31px); left: 50%; width: 2px; height: 100px; margin-left: -1px; background: var(--ink); }
.tag-label { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 500; }
.occasion { margin: 2px 0 18px; font-size: 2.3rem; font-weight: 600; font-style: italic; letter-spacing: -.01em; line-height: 1.1; }
.pieces { margin: 0; padding: 0; list-style: none; }
.piece { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 16px; padding: 9px 0; border-top: 1.5px dashed var(--line); }
.piece svg { width: 46px; height: 46px; } .piece path { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; transition: fill 300ms; }
.piece strong { display: block; font-size: 1rem; line-height: 1.25; } .piece span { color: var(--muted); font-size: .84rem; }
.tag-foot { margin: 0 0 16px; padding-top: 16px; border-top: 1.5px dashed var(--line); color: var(--cobalt-dark); font-weight: 700; font-size: .92rem; }
.shuffle { width: 100%; min-height: 48px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; transition: background 180ms, color 180ms; }
.shuffle:hover { background: var(--ink); color: #fff; }
.tag.swap .occasion, .tag.swap .piece { animation: piece-in 480ms var(--ease) both; animation-delay: calc(var(--i) * 70ms); }

.build { padding-block: 90px 30px; }
.build-head { max-width: 620px; margin-bottom: 44px; } .build-head p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.tools { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tool { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 390px; padding: clamp(26px, 3.4vw, 40px); border-radius: 30px; transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); }
.tool:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(74, 21, 38, .45); }
.tool-wide { grid-column: span 7; } .tool-narrow { grid-column: span 5; }
.tool-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.tool-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool h3 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(2.3rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.what { max-width: 380px; margin: 0; font-size: 1.08rem; }
.scenario { position: relative; margin: 0; padding: 20px 24px; border-radius: 22px 22px 22px 4px; background: rgba(255, 255, 255, .6); font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.6rem); font-style: italic; font-weight: 500; line-height: 1.25; }
.tool-plum { background: var(--plum); color: #fff; } .tool-plum .tool-icon, .tool-plum .scenario { background: rgba(255, 255, 255, .13); } .tool-plum .what { color: #ecc9cf; }
.tool-paper { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); } .tool-paper .tool-icon, .tool-paper .scenario { background: #f6e4e1; } .tool-paper .what { color: var(--muted); }
.tool-rose { background: #e8b4bd; } .tool-rose .what { color: #4d2330; }
.tool-sand { background: #e9d5bf; } .tool-sand .what { color: #55392f; }


.situations { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 9vw, 120px); padding-block: 110px; }
h2 { margin-bottom: 18px; font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.situation-list { display: grid; gap: 14px; }
.situation-list p { margin: 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--cobalt); font-family: var(--display); font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.25; }

.join { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 100px); margin-block: 0 60px; padding: clamp(34px, 6vw, 72px); border-radius: 30px; background: var(--plum); color: #fff; }
.join-copy p { max-width: 380px; color: #ecc9cf; font-size: 1.08rem; }
.signup-form { display: grid; gap: 24px; } label, legend { font-size: .94rem; font-weight: 700; } fieldset { margin: 0; padding: 0; border: 0; } legend { margin-bottom: 12px; } .form-field label { display: block; margin-bottom: 8px; }
input[type="email"] { width: 100%; height: 56px; padding: 0 17px; border: 1.5px solid transparent; border-radius: 12px; background: #fff; color: var(--ink); transition: border-color 150ms, box-shadow 150ms; }
input[type="email"]:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(246, 200, 208, .55); outline: none; } input::placeholder { color: #8a90a6; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; } .choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { min-height: 56px; height: 100%; display: flex; align-items: center; padding: 12px 15px; border: 1.5px solid #7a3a4c; border-radius: 12px; background: transparent; color: #f7e6e8; font-size: .92rem; font-weight: 500; transition: border-color 150ms, background 150ms, color 150ms; }
.choice:hover span { border-color: #e7a9b6; }
.choice input:checked + span { border-color: var(--pale); background: var(--pale); color: var(--ink); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid #f2b8c4; outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: #ecc9cf; font-size: .88rem; font-weight: 500; cursor: pointer; } .consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #e7a9b6; } .honeypot { position: absolute; left: -9999px; }
.signup-form button { width: 100%; padding-inline: 24px; cursor: pointer; } .signup-form button { background: #f6dfe0; color: var(--plum); } .signup-form button:hover { background: #fff; color: var(--plum); box-shadow: 0 12px 26px rgba(0,0,0,.25); } .signup-form button:disabled { cursor: wait; opacity: .65; transform: none; box-shadow: none; }
.form-status { min-height: 1.3em; margin: -12px 0 0; color: #ffc9cf; font-size: .9rem; }
.success-panel { align-self: center; animation: piece-in 600ms var(--ease) both; } .success-panel h2 { margin-bottom: 10px; } .success-panel p { margin: 0; color: #ecc9cf; font-size: 1.08rem; }
.success-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--pale); color: var(--ink); font-size: 1.3rem; font-weight: 800; }

footer { display: flex; align-items: center; gap: 26px; padding-block: 24px 45px; color: var(--muted); font-size: .9rem; } footer .wordmark { margin-right: auto; color: var(--ink); } footer p { margin: 0; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes swing { 0% { transform: rotate(-9deg); opacity: 0; } 25% { opacity: 1; } 45% { transform: rotate(5deg); } 70% { transform: rotate(-2deg); } 100% { transform: rotate(0); opacity: 1; } }
@keyframes piece-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) { .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 50px 80px; } .situations, .join { grid-template-columns: 1fr; } .tool-wide, .tool-narrow { grid-column: 1 / -1; } .tool { min-height: 0; } .build { padding-top: 70px; } .situations { padding-block: 80px; } }
@media (max-width: 600px) { .site-header, .hero, .build, .situations, .join, footer { width: min(100% - 28px, 1120px); } h1 { font-size: clamp(2.7rem, 13vw, 4rem); } .join { padding: 30px 20px; border-radius: 24px; } .choice-grid { grid-template-columns: 1fr; } footer { flex-wrap: wrap; gap: 8px 18px; } footer .wordmark { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
