/* getdrobe.app: landing pages and the 404 page. Values follow docs/design/DIRECTION.md ("Kapı aralığı").
   scripts/build_site.py turns url(asset:…) into content-hashed /assets/ paths and #252621 into the opening
   colour (the app icon's background for drobeIconPalette). */

@font-face {
  font-family: "Antonio";
  src: url(/assets/antonio-600.531008ea51.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url(/assets/hanken-grotesk.23e48c2d1f.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Until Antonio arrives, Arial scaled to its width (85 % of Arial's advance, measured on the headline text with
   fontTools), so the title keeps its line breaks. Hanken Grotesk is as wide as Arial; it needs no adjusted face. */
@font-face {
  font-family: "Antonio fallback";
  src: local("Arial"), local("Roboto"), local("Helvetica");
  size-adjust: 85%;
}

:root {
  --ink: #252621;
  --ink-raised: #34352f;
  --paper: #faf9f6;
  --stone: #efece6;
  --sand: #e5e1d8;
  --line: #d9d5cb;
  --line-2: #cfcabe;
  --muted: #625f57;
  --olive: #6e6142;
  --olive-pressed: #5e5236;
  --olive-light: #cdbf9b;
  --on-dark-muted: #b4b1a7;
  --ground: #252621;
  --display: "Antonio", "Antonio fallback", sans-serif;
  --text: "Hanken Grotesk", Arial, Roboto, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--olive-pressed); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.005em; }
h2 { font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: block; padding: 6px 0; border-radius: 4px; }
.wordmark { width: auto; height: 28px; }
.nav { display: flex; gap: 8px; font-size: .9375rem; }
.nav a { padding: 10px 8px; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--olive); text-decoration: underline; }
@media (max-width: 559px) {
  .nav-section { display: none; }
}

/* Hero: the copy and the open wardrobe the opening animation ends in. */
.hero { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(3rem, 1.35rem + 6.2vw, 5.25rem); line-height: .98; }
.lead { max-width: 34ch; margin-top: 28px; font-size: 1.1875rem; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.status { margin-top: 18px; color: var(--muted); font-size: .9375rem; }
.hero-art { display: flex; justify-content: center; }
.robe { width: 100%; max-width: 480px; height: auto; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 112px; }
  .hero-art { justify-content: flex-end; }
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--ink-raised); color: var(--paper); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--sand); color: var(--ink); }
.soon {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
}
.soon-light { border-color: rgba(205, 191, 155, .45); color: var(--olive-light); }
.play-badge { display: block; border-radius: 6px; }
.play-badge img { width: auto; height: 62px; margin: -9px -10px; }

/* How it works: four app screens in phone frames, text under each like a catalogue caption. */
.how { padding: 72px 0 80px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; gap: 40px; margin: 40px 0 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 20px; align-items: start; align-content: start; }
.phone {
  padding: 6px;
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(37, 38, 33, .08), 0 18px 40px -24px rgba(37, 38, 33, .45);
}
.phone img { width: 100%; height: auto; border-radius: 18px; background: var(--stone); }
.step h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.875rem; }
.step-number { color: var(--olive); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.step p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.how-note { margin-top: 40px; color: var(--muted); font-size: .875rem; }
@media (min-width: 560px) {
  .step { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 28px; align-items: center; }
}
@media (min-width: 1024px) {
  .how { padding: 104px 0 112px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
  .step { grid-template-columns: none; gap: 24px; align-items: start; }
  .phone { max-width: 250px; border-radius: 30px; padding: 8px; }
  .phone img { border-radius: 22px; }
  .step h3 { font-size: 2rem; }
}

/* Privacy */
.privacy { display: grid; gap: 32px; padding-top: 80px; padding-bottom: 88px; }
.privacy-lead { margin-top: 16px; max-width: 24em; font-size: 1.1875rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.doc-links a { display: inline-block; padding: 6px 0; font-weight: 500; }
.privacy-points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; max-width: 62ch; }
.privacy-points li { padding: 16px 0 16px 28px; border-top: 1px solid var(--line); position: relative; }
.privacy-points li:last-child { border-bottom: 1px solid var(--line); }
/* Two short bars: the door handles of the logo. */
.privacy-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 25px;
  width: 9px;
  height: 9px;
  border-left: 3px solid var(--olive);
  border-right: 3px solid var(--olive);
}
@media (min-width: 960px) {
  .privacy { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; padding-top: 112px; padding-bottom: 120px; }
}

/* Closed test */
.test { background: var(--ink); color: var(--paper); }
.test-inner { display: grid; gap: 28px; padding-top: 72px; padding-bottom: 80px; }
.test h2 { color: var(--paper); }
.test p { max-width: 52ch; margin-top: 16px; color: var(--on-dark-muted); }
.test .cta-row { margin-top: 0; }
.test-age { font-size: .9375rem; }
.test a:not(.button):not(.play-badge) { color: var(--olive-light); }
@media (min-width: 960px) {
  .test-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; padding-top: 96px; padding-bottom: 104px; }
}

/* Footer */
.foot { display: grid; gap: 10px; padding-top: 40px; padding-bottom: 48px; color: var(--muted); font-size: .9375rem; }
.studio { color: var(--ink); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 6px 0 0; padding: 0; list-style: none; }
.foot-links a { display: inline-block; padding: 6px 0; }
.legal-note { font-size: .8125rem; }

/* 404 */
.lost-main { display: grid; justify-items: start; gap: 28px; max-width: 760px; padding-top: 32px; padding-bottom: 72px; }
.closed-robe { width: 132px; height: auto; }
.lost-copy h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); }
.lost-copy h2 { font-size: 1.75rem; }
.lost-copy p { margin-top: 12px; color: var(--muted); }
.lost-copy .button { margin-top: 8px; color: var(--paper); }
.lost-copy + .lost-copy { padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }

/* Opening: the app's wardrobe opening (web/drobe.js). Without JS, after it ran once, or with reduced motion,
   html never gets .opening-on and nothing below shows. */
.opening { display: none; }
.opening-on .opening {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--ground);
  cursor: pointer;
  /* If the script stops halfway, the page still appears. */
  animation: opening-failsafe 0s linear 6s forwards;
}
.opening-scene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.opening-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(198px, 48vw);
  height: auto;
  transform: translate(-50%, -50%);
}
@keyframes opening-failsafe { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .opening-on .opening { display: none; }
}
