/* StyleTrip site — tokens and voices follow docs/brand/styletrip/assets/web/styletrip.css.
   Fonts are SIL OFL; licences sit next to them in /styletrip/assets/fonts. */

@font-face { font-family: "Instrument Serif"; src: url("/styletrip/assets/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/styletrip/assets/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/styletrip/assets/fonts/Archivo-Variable.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/styletrip/assets/fonts/DMMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  /* The site is printed matter: light only, like the brand's share cards. */
  color-scheme: light;

  --st-paper: #FFFCF7;
  --st-ink: #1F1A19;
  --st-maroon: #6E2C2A;
  --st-bubblegum: #E78EB4;
  --st-periwinkle: #8FA4C0;
  --st-orchid: #E7C0DB;
  --st-clay: #D69472;
  --st-sage: #D7DAB9;
  --st-chartreuse: #D7DA74;
  --st-plate: #F8F5EE;
  --st-subtle: #645B58;

  --st-font-display: "Instrument Serif", Georgia, serif;
  --st-font-statement: "Archivo", system-ui, sans-serif;
  --st-font-utility: "DM Mono", ui-monospace, monospace;
  --st-font-interface: system-ui, -apple-system, "Segoe UI", sans-serif;

  --st-hairline: 1px solid var(--st-ink);
  --st-rule: 0.75px solid rgb(31 26 25 / 62%);
  --st-radius-control: 10px;
  --st-radius-card: 14px;
  --st-radius-hero: 18px;
  --st-offset: 6px 6px 0 var(--st-ink);

  --gutter: 16px;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--st-ink);
  background: var(--st-paper);
  font: 17px/1.6 var(--st-font-interface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--st-maroon); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 3px; }
h1, h2, h3, p { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link { position: fixed; left: var(--gutter); top: -80px; z-index: 100; padding: 10px 16px; color: var(--st-paper); background: var(--st-ink); border-radius: var(--st-radius-control); }
.skip-link:focus { top: 16px; }
.section-shell { width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Voices ---------- */

.display { margin: 0; font-family: var(--st-font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 0.98; }
.display em, h1 em, h2 em { font-style: italic; }
.statement { font-family: var(--st-font-statement); font-weight: 300; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.04em; }
.utility, .eyebrow { font-family: var(--st-font-utility); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.dot { flex: none; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--st-bubblegum); }
.lede { max-width: 34rem; margin: 0; font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--st-ink); }
.muted { color: var(--st-subtle); }

/* ---------- Pills: lowercase italic serif. Chartreuse is the page's one action. ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 48px; padding: 0.35em 1.3em 0.45em;
  color: var(--st-ink); background: var(--st-chartreuse);
  border: var(--st-hairline); border-radius: 999px;
  font: italic 1.3rem/1 var(--st-font-display); text-transform: lowercase; text-decoration: none;
  transition: transform 0.18s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.18s cubic-bezier(.3, 1.4, .5, 1);
}
.pill:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--st-ink); }
.pill:active { transform: none; box-shadow: none; }
.pill--outline { background: transparent; }
.pill--paper { color: var(--st-paper); border-color: var(--st-paper); background: transparent; }
.pill--paper:hover { box-shadow: 3px 3px 0 var(--st-paper); }
.pill--small { min-height: 40px; font-size: 1.1rem; padding-inline: 1em; }
.text-link { font: italic 1.3rem/1 var(--st-font-display); text-transform: lowercase; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header & footer ---------- */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: var(--st-hairline); }
.wordmark { display: block; flex: none; }
.wordmark img { width: auto; height: 32px; }
.site-header nav { display: none; gap: 28px; }
.site-header nav a, .footer-links a { color: var(--st-ink); text-decoration: none; }
.site-header nav a:hover, .footer-links a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--st-ink); }
@media (min-width: 860px) {
  .site-header nav { display: flex; }
  .wordmark img { height: 38px; }
}
@media (max-width: 380px) { .site-header .pill { font-size: 1rem; padding-inline: 0.8em; } .wordmark img { height: 27px; } }

.site-footer { display: grid; gap: 28px; padding-block: 48px 32px; border-top: var(--st-hairline); }
.site-footer .wordmark img { height: 44px; }
.site-footer .tagline { margin: 0; font: 1.8rem/1.05 var(--st-font-display); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer small { color: var(--st-subtle); }
@media (min-width: 860px) {
  .site-footer { grid-template-columns: auto 1fr auto; align-items: end; }
  .site-footer small { grid-column: 1 / -1; padding-top: 20px; border-top: var(--st-rule); }
}

/* ---------- Motion: stickers slap down and settle. ---------- */

@keyframes slap {
  0% { opacity: 0; transform: scale(1.5) rotate(calc(var(--tilt, 0deg) - 18deg)); }
  60% { opacity: 1; transform: scale(0.94) rotate(calc(var(--tilt, 0deg) + 2deg)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--tilt, 0deg)); }
}
.sticker { transform: rotate(var(--tilt, 0deg)); pointer-events: none; }
/* Above the fold, stickers slap down once on load; further down they are simply placed. */
.hero-art .sticker { animation: slap 0.55s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: var(--delay, 0.3s); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Home: hero ---------- */

.hero { display: grid; gap: 40px; padding-block: 40px 56px; }
.hero h1 { font-size: clamp(3.1rem, 12.5vw, 5.9rem); }
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 36px 0 0; padding: 18px 0 0; list-style: none; border-top: var(--st-rule); }
.trust-list li { display: inline-flex; align-items: center; gap: 10px; }
.trust-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st-ink); }

.hero-art {
  position: relative; display: grid; place-items: center;
  min-height: 520px; padding: 56px 24px 72px;
  background: var(--st-orchid); border: var(--st-hairline); border-radius: var(--st-radius-hero);
}
.phone { width: min(270px, 70%); }
.phone img { width: 100%; height: auto; background: var(--st-paper); border: var(--st-hairline); border-radius: 32px; box-shadow: var(--st-offset); }
.hero-art .stamp { position: absolute; top: 34%; left: 14px; width: clamp(84px, 22%, 128px); --tilt: -8deg; --delay: 0.3s; }
.hero-art .tally { position: absolute; right: 12px; bottom: 26px; width: min(270px, 66%); --tilt: -3deg; --delay: 0.55s; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; padding-block: 72px 88px; }
  .hero h1 { font-size: clamp(3.1rem, 6.6vw, 5.9rem); }
  .hero-art { min-height: 620px; }
}

/* ---------- Home: ticker ---------- */

/* Maroon, not chartreuse: chartreuse is kept for the one thing to press. */
.ticker { overflow: hidden; color: var(--st-paper); background: var(--st-maroon); border-block: var(--st-hairline); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px 14px 0; font-size: 0.95rem; white-space: nowrap; }
.ticker-track .dot { width: 12px; height: 12px; background: var(--st-chartreuse); }

/* ---------- Home: sections ---------- */

.section { padding-block: 72px; }
.section + .section { border-top: var(--st-hairline); }
.section-heading h2, .feature-copy h2, .closing h2 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.section-heading { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 900px) {
  .section { padding-block: 104px; }
  .section-heading { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; margin-bottom: 56px; }
}

/* Luggage tag: one clipped corner, ink outline. */
.tag { --cut: 26px; padding: 1px; background: var(--st-ink); border-radius: var(--st-radius-card); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.tag > * { height: 100%; background: var(--st-paper); border-radius: calc(var(--st-radius-card) - 1px); clip-path: polygon(0 0, calc(100% - var(--cut) + 0.4px) 0, 100% calc(var(--cut) - 0.4px), 100% 100%, 0 100%); }

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: grid; align-content: start; gap: 14px; padding: 24px 24px 28px; }
.step h3 { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1; }
.step p { margin: 0; }
.step .utility { color: var(--st-subtle); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.feature { display: grid; gap: 40px; align-items: center; }
.feature-visual { position: relative; display: grid; place-items: center; min-height: 480px; padding: 48px 24px; border: var(--st-hairline); border-radius: var(--st-radius-hero); }
.feature-visual.sage { background: var(--st-sage); }
.feature-visual.clay { background: var(--st-clay); }
.feature-visual .sticker { position: absolute; width: clamp(104px, 28%, 150px); }
.feature-visual .sticker.top-right { top: 18px; right: 14px; --tilt: 9deg; }
.feature-visual .sticker.top-left { top: 18px; left: 14px; --tilt: -10deg; }
.feature-copy h2 { margin-bottom: 24px; }
.feature-copy p { max-width: 34rem; }
.rules { margin: 28px 0 0; padding: 0; list-style: none; border-top: var(--st-rule); }
.rules li { display: flex; gap: 16px; padding: 14px 0; border-bottom: var(--st-rule); }
.rules li .utility { flex: none; width: 2.4em; padding-top: 0.35em; color: var(--st-subtle); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-visual { order: 2; }
  .feature-visual { min-height: 640px; }
}

/* Privacy: paper on maroon, the brand's second colorway. */
.privacy-block { color: var(--st-paper); background: var(--st-maroon); border-block: var(--st-hairline); }
.privacy-block a:not(.pill) { color: var(--st-paper); }
.privacy-inner { display: grid; gap: 40px; padding-block: 72px; }
.privacy-inner .stamp { width: 120px; --tilt: 7deg; }
.privacy-inner h2 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin-bottom: 24px; }
.privacy-inner p { max-width: 36rem; margin: 0 0 32px; }
.facts { margin: 0; border-top: 0.75px solid rgb(255 252 247 / 45%); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 0.75px solid rgb(255 252 247 / 45%); }
.facts dt { font-size: 0.75rem; }
.facts dd { margin: 0; font: italic 1.6rem/1 var(--st-font-display); }
@media (min-width: 900px) {
  .privacy-inner { grid-template-columns: auto 1.3fr 1fr; align-items: center; gap: 56px; padding-block: 104px; }
}

/* FAQ */
.faq-list { border-top: var(--st-hairline); }
.faq-list details { border-bottom: var(--st-hairline); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font: 1.55rem/1.15 var(--st-font-display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: var(--st-hairline); border-radius: 50%; font: 1.4rem/1 var(--st-font-interface); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 40rem; margin: -6px 0 24px; }

/* Closing */
.closing { display: grid; justify-items: center; gap: 24px; padding-block: 88px; text-align: center; }
.closing p { max-width: 30rem; margin: 0; }

/* ---------- Legal and support pages ---------- */

.page-hero { padding-block: 48px 40px; border-bottom: var(--st-hairline); }
.page-hero h1 { font-size: clamp(3rem, 8.5vw, 6.2rem); }
.page-hero .lede { margin-top: 22px; }
.page-hero .pill { margin-top: 28px; }
.page-hero .effective { margin: 22px 0 0; }

.content-layout { display: grid; gap: 32px; padding-block: 40px 88px; }
.content-nav { display: flex; flex-wrap: wrap; gap: 8px; align-self: start; }
.content-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; color: var(--st-ink); border: var(--st-hairline); border-radius: 999px; text-decoration: none; }
.content-nav a:hover { background: var(--st-orchid); }
@media (min-width: 900px) {
  .content-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-top: 56px; }
  .content-nav { position: sticky; top: 24px; flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: var(--st-rule); }
  .content-nav a { min-height: 44px; padding: 0; border: 0; border-bottom: var(--st-rule); border-radius: 0; }
  .content-nav a:hover { background: none; text-decoration: underline; }
}

.prose { max-width: 44rem; min-width: 0; }
.prose h2 { margin: 56px 0 14px; padding-top: 20px; border-top: var(--st-rule); font: 400 clamp(1.9rem, 4vw, 2.4rem)/1.05 var(--st-font-display); scroll-margin-top: 24px; }
.prose h2:first-child, .prose .callout + h2 { margin-top: 0; }
.prose .callout + h2 { margin-top: 48px; }
.prose h3 { margin: 32px 0 8px; font: 400 1.5rem/1.15 var(--st-font-display); }
.prose p, .prose li { color: var(--st-ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.callout { margin-bottom: 8px; padding: 20px 22px; background: var(--st-orchid); border: var(--st-hairline); border-radius: var(--st-radius-card); }
.callout strong { font-family: var(--st-font-utility); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 4px; }

.support-grid { display: grid; gap: 16px; margin-top: 24px; }
.support-card { display: block; color: var(--st-ink); text-decoration: none; }
.support-card > span { display: grid; gap: 10px; padding: 22px 22px 24px; }
.support-card strong { font: 400 1.7rem/1 var(--st-font-display); }
.support-card em { font: italic 1.15rem/1.2 var(--st-font-display); color: var(--st-maroon); }
.support-card:hover > span { background: var(--st-orchid); }
@media (min-width: 640px) { .support-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reduce Motion: everything becomes still. ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .sticker { animation: none; }
  .ticker-track { animation: none; }
  .pill, .faq-list summary::after { transition: none; }
}
