/* Crumple — site styles. Plain CSS, no build step. */
:root {
  --paper: #EDEFEA;
  --paper-2: #E4E7E0;
  --card: #F6F7F3;
  --ink: #1D2421;
  --ink-2: #4A544F;
  --ink-3: #59635E;
  --rule: #CDD3CB;
  --pine: #2F5D4E;
  --pine-ink: #F3F5F1;
  --red: #C2412F;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --col: 680px;
  --wide: 1100px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.12 0 0 0 0 0.1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--pine); color: var(--pine-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(var(--wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark .p { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 18px; font-family: var(--sans); font-size: 15px; }
.nav-links > a:not(.store) { color: var(--ink-2); text-decoration: none; }
.nav-links > a:not(.store):hover { color: var(--ink); text-decoration: underline; }

/* ---------- App Store pill ---------- */
.store {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1;
  color: var(--pine-ink); background: var(--pine);
  padding: 12px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.store svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
a.store:hover { background: #24493D; text-decoration: none; }
.store.is-soon { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 1.5px var(--pine); cursor: default; }
.store-lg { font-size: 17px; padding: 16px 24px; }
.store-sm { font-size: 14px; padding: 9px 14px; }

/* ---------- Type ---------- */
.kicker { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(44px, 9vw, 80px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; }
.display em { font-style: italic; color: var(--pine); }
.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--ink-2); margin: 0 0 30px; max-width: 34em; }
h2 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; margin: 32px 0 8px; }
p { margin: 0 0 1em; }
.caption { font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 8vw, 96px); padding-bottom: 48px; text-align: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero-media {
  position: relative; overflow: hidden; border-radius: 28px;
  aspect-ratio: 16 / 9; background: #2B3430;
  box-shadow: 0 30px 60px -30px rgba(29, 36, 33, .45);
}
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,23,.05), rgba(20,26,23,.35)); pointer-events: none; }
.hero-media .phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); z-index: 1; }

/* ---------- CSS phone ---------- */
.phone {
  width: 248px; aspect-ratio: 9 / 19.5;
  border-radius: 40px; padding: 10px;
  background: #151A18;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 24px 50px -12px rgba(0,0,0,.5);
}
.screen {
  position: relative; height: 100%; border-radius: 31px; overflow: hidden;
  background: var(--card); color: var(--ink);
  display: flex; flex-direction: column;
  padding: 44px 20px 22px;
}
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #151A18; }
.screen.dark { background: rgba(14, 18, 16, .5); color: #F1F3EE; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.screen-bar { font-family: var(--sans); font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; margin-bottom: 14px; }
.screen.dark .screen-bar { color: rgba(241,243,238,.6); }

.rsvp { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rsvp-word { font-family: var(--serif); font-size: 40px; letter-spacing: -0.01em; line-height: 1; position: relative; }
.rsvp-word .pivot { color: var(--red); }
.rsvp-guide { width: 1px; height: 12px; background: currentColor; opacity: .35; margin: 10px 0; }
.rsvp-meta { font-family: var(--sans); font-size: 11px; opacity: .6; margin-top: 18px; }

.page-text { font-family: var(--serif); font-size: 13px; line-height: 1.55; color: var(--ink); }
.page-text p { margin: 0 0 .8em; }
.page-text .title { font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: .6em; }
.page-foot { margin-top: auto; font-family: var(--sans); font-size: 10px; color: var(--ink-3); text-align: center; }

.ball-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.ball {
  width: 96px; height: 96px; border-radius: 47% 53% 44% 56% / 52% 45% 55% 48%;
  background:
    radial-gradient(circle at 32% 28%, #FFFFFF 0 10%, transparent 30%),
    conic-gradient(from 20deg, #E9ECE5, #CBD1C7, #F4F5F1, #C3CABF, #EEF0EA, #D2D8CE, #E9ECE5);
  box-shadow: inset -10px -12px 18px rgba(29,36,33,.18), 0 14px 18px -10px rgba(29,36,33,.35);
}
.ball-note { font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--ink-2); }

/* ---------- Feature sections ---------- */
.features { padding: 40px 0 24px; }
.feature { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 56px 0; border-top: 1px solid var(--rule); }
.feature .phone { margin: 0 auto; }
.feature-num { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.feature p { color: var(--ink-2); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 300px; gap: 64px; }
  .feature:nth-child(even) { grid-template-columns: 300px 1fr; }
  .feature:nth-child(even) .feature-copy { order: 2; }
}

.promise { text-align: center; padding: 40px 0 8px; }
.promise p { font-size: clamp(22px, 3vw, 28px); line-height: 1.35; letter-spacing: -0.01em; margin: 0; }
.promise a { white-space: nowrap; }

.cta { text-align: center; padding: 88px 0 96px; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--ink-2); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 26px 0 40px; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .brand { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.footer .copy { margin-left: auto; }
@media (max-width: 620px) { .footer .copy { margin-left: 0; width: 100%; } }

/* ---------- Document pages (privacy / support) ---------- */
.doc { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 80px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 10px; }
.doc .updated { font-style: italic; color: var(--ink-3); margin: 0 0 32px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.summary { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 24px 26px; margin: 0 0 16px; }
.summary h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); margin: 0 0 12px; }
.summary p:last-child { margin-bottom: 0; }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 24px 26px; margin: 28px 0 8px; }
.contact strong { display: block; font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.contact span { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.contact a.store { white-space: normal; }

.faq { margin-top: 12px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 24px; color: var(--pine); }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); }
kbd { font-family: var(--sans); font-size: .85em; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 6px; }

@media (max-width: 480px) {
  body { font-size: 18px; }
  .nav-links { gap: 12px; }
  .nav .store { padding: 9px 12px; font-size: 13px; }
  .nav .store .long { display: none; }
  .hero-media { aspect-ratio: 4 / 5; border-radius: 22px; }
  .phone { width: 220px; }
}
@media (min-width: 481px) { .nav .store .short { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Hero phone: bezel only, so the rain shows through the glassy screen */
.hero-media .phone { background: transparent; box-shadow: inset 0 0 0 10px #151A18, 0 24px 50px -12px rgba(0,0,0,.5); }
@media (max-width: 480px) { .hero-media .phone { width: 148px; padding: 8px; border-radius: 32px; box-shadow: inset 0 0 0 8px #151A18, 0 18px 40px -12px rgba(0,0,0,.5); } .hero-media .screen { border-radius: 25px; padding: 36px 14px 16px; } .hero-media .rsvp-word { font-size: 32px; } }
