/* somestud.io: one stylesheet for every page. No third-party requests. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ---- Tokens ---------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Brand (from the v2.0 artwork set) */
  --navy: #1E2A44;
  --cream: #F6F1E4;
  --stamp-red: #D7263D;
  --line-yellow: #F2B134;

  /* Light theme. Contrast on --bg / --surface in the comments. */
  --bg: #F6F1E4;          /* cream */
  --surface: #FFFFFF;
  --text: #1E2A44;        /* 12.7 / 14.3 */
  --muted: #4A5570;       /* 6.6 / 7.4 */
  --link: #B51F33;        /* 5.8 / 6.6, stamp red darkened for AA body text */
  --rule: #DDD4BF;
  --focus: #1E2A44;

  --font-display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 38rem;       /* readable line length for FAQ and policy text */
  --wide: 68rem;
  --radius: 18px;
  --gap: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131B2C;          /* navy, deepened */
    --surface: #1E2A44;     /* brand navy */
    --text: #F6F1E4;        /* 15.3 / 12.7 */
    --muted: #B9C0CF;       /* 9.4 / 7.8 */
    --link: #F2B134;        /* 9.1 / 7.6, line yellow */
    --rule: #2E3B58;
    --focus: #F2B134;
  }
}

/* ---- Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);   /* 17px, iOS body size */
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.75rem, 9vw, 4.5rem); letter-spacing: -.005em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 5vw, 2.25rem); text-transform: uppercase; letter-spacing: .02em; }
h3 { font-weight: 600; font-size: 1.375rem; letter-spacing: .005em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gap), var(--wide)); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* The road-dash rule: the icon's yellow centre line, used between sections. */
.road {
  height: 6px; border: 0; margin: 3rem 0;
  background: repeating-linear-gradient(90deg, var(--line-yellow) 0 36px, transparent 36px 60px);
  border-radius: 3px;
}

/* ---- Header and footer ---------------------------------------------- */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark {
  font: 800 1.375rem/1 var(--font-display);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: .6rem;
}
.wordmark::before {             /* the three road dashes, as a tiny mark */
  content: ""; width: 1.75rem; height: 5px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--line-yellow) 0 7px, transparent 7px 10.5px);
}
.site-nav { display: flex; gap: 1.25rem; font-size: .9375rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

.site-footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---- Studio home ------------------------------------------------------ */
.studio-hero { padding-block: clamp(3rem, 12vw, 7rem) clamp(2rem, 6vw, 3.5rem); }
.studio-hero h1 { text-transform: uppercase; letter-spacing: .03em; }
.studio-hero .lede { font-size: clamp(1.1875rem, 2.6vw, 1.375rem); color: var(--muted); margin-top: .75rem; max-width: 32rem; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--gap); padding: 0; margin: 0 0 4rem; list-style: none; }
.card {
  position: relative;
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem 1.125rem; align-items: start;
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 1px 0 var(--rule), 0 8px 24px -16px rgb(11 18 32 / .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--rule), 0 14px 30px -16px rgb(11 18 32 / .45); }
.card img { width: 4.5rem; height: 4.5rem; }
.card h2 { font-size: 1.75rem; text-transform: none; letter-spacing: 0; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card is the link */
.card p { margin: .35rem 0 0; color: var(--muted); }
.card .platforms { font-size: .875rem; margin-top: .75rem; }
.card--soon { background: transparent; box-shadow: inset 0 0 0 2px var(--rule); }
.card--soon:hover { transform: none; box-shadow: inset 0 0 0 2px var(--rule); }
.card--soon .platforms::before { content: "Coming soon · "; font-weight: 600; color: var(--text); }

/* ---- Plate Game page -------------------------------------------------- */
.app-hero {
  display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center;
  grid-template-columns: 1fr; padding-block: clamp(1.5rem, 6vw, 4rem) 1rem;
}
@media (min-width: 52rem) { .app-hero { grid-template-columns: 1fr 1.1fr; } }
.app-hero .icon { width: 6rem; height: 6rem; margin-bottom: 1.25rem; filter: drop-shadow(0 6px 14px rgb(11 18 32 / .25)); }
.app-hero .tagline { font: 600 clamp(1.375rem, 3.4vw, 1.75rem)/1.25 var(--font-display); margin: .5rem 0 1rem; }
.app-hero .pitch { max-width: 30rem; }
.app-hero .art { order: -1; }
@media (min-width: 52rem) { .app-hero .art { order: 0; } }

/* Apple badge: official artwork, unmodified. Min 40px tall on screen; clear space of
   a quarter of its height on every side (enforced by the margin). */
.store-badge { display: inline-block; margin: 10px 0; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
.platform-note { color: var(--muted); font-size: .9375rem; margin-top: .25rem; }

/* Help: every answer visible, so it reads on a phone, works with Find, and
   nothing is hidden behind taps. The jump list is optional sugar. */
.help { padding-block: 1rem; }
.help h2 { margin-bottom: 1.25rem; }
.faq-index { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: .5rem; }
.faq-index a { text-decoration: none; }
.faq-index a:hover { text-decoration: underline; }
.faq { margin: 0; }
.faq > div { padding-block: 1.5rem; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.faq dt { font: 600 1.375rem/1.2 var(--font-display); margin-bottom: .5rem; }
.faq dd { margin: 0; }
.faq dd p:last-child { margin-bottom: 0; }
.ui { font-weight: 600; }          /* names of in-app controls: New Trip, Hide Found Plates */

.contact { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); margin-block: 1rem 3rem; }
.contact h2 { margin-bottom: .75rem; }
.contact .email { font: 600 1.5rem/1.2 var(--font-display); word-break: break-word; }

/* ---- Privacy page ----------------------------------------------------- */
.doc { padding-block: clamp(2rem, 6vw, 4rem) 2rem; }
.doc .eyebrow { font: 600 1.125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.doc .eyebrow a { color: inherit; text-decoration: none; }
.doc h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); margin-bottom: .5rem; }
.doc .updated { color: var(--muted); font-size: .9375rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.5rem; text-transform: none; letter-spacing: .005em; margin: 2.25rem 0 .5rem; }
.summary { background: var(--surface); border-left: 6px solid var(--line-yellow); border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.summary h2 { margin-top: 0; }
.summary p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* App icons: the navy icon needs a hairline to separate from navy surfaces in Dark Mode. */
.app-hero .icon, .card img { border-radius: 22.5%; }
@media (prefers-color-scheme: dark) {
  .app-hero .icon, .card img { box-shadow: 0 0 0 1px rgb(246 241 228 / .18); }
}
