/* ilme.app. Values come from the brand sheet (design/brand/README.md links it).
   Light only, like the app: paper ground, ink text, one orange signal, square corners. */

@font-face { font-family: "Bodoni Moda"; src: url(/fonts/BodoniModa_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Condensed"; src: url(/fonts/ArchivoCondensed-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/Archivo_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/Archivo_600SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/Archivo_700Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/fonts/Newsreader_400Regular_Italic.ttf) format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #DCD6CC;
  --surface: #E6E1D8;
  --ink: #141312;
  --ink-soft: #5A544C;
  --line: #BCB7AE;
  --urgent: #E5452A;
  --on-image: #FFFFFF;
  --gutter: 20px;
  --wordmark: "Bodoni Moda", "Bodoni 72", Didot, serif;
  --display: "Archivo Condensed", "Arial Narrow", sans-serif;
  --body: Archivo, "Helvetica Neue", Arial, sans-serif;
  --italic: Newsreader, Georgia, serif;
}
@media (min-width: 900px) { :root { --gutter: 48px; } }
/* The page column: the gutter, or wider on big screens so lines never run too long.
   Full-width bands pull back out by the same amount. */
:root { --pad: max(var(--gutter), calc((100vw - 1344px) / 2)); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body); letter-spacing: -0.1px; -webkit-font-smoothing: antialiased; padding-inline: var(--pad); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible, .caps-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* type roles */
.label, .overline { font: 700 11px/14px var(--body); letter-spacing: 1.4px; text-transform: uppercase; }
.overline { font-size: 10px; line-height: 12px; letter-spacing: 1.1px; }
.lede { font: italic 400 clamp(19px, 2.2vw, 24px)/1.3 var(--italic); }
.italic { font: italic 400 17px/23px var(--italic); }
.card-name { font: 700 24px/26px var(--display); letter-spacing: -0.3px; }
.page-title { font: 700 clamp(40px, 7vw, 60px)/1.03 var(--display); letter-spacing: -0.6px; text-wrap: balance; }
.section-head { font: italic 400 24px/29px var(--italic); }
.wordmark { font: 400 clamp(96px, 17vw, 220px)/.9 var(--wordmark); letter-spacing: -0.02em; }
.mark { font: 400 26px/1 var(--wordmark); text-decoration: none; letter-spacing: -0.5px; }
.mark.small { font-size: 22px; }

/* controls: square, like the app */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; height: 52px; padding-inline: 24px; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--body); text-decoration: none; }
.btn:hover { background: #2a2826; }
.caps-btn { display: inline-flex; align-items: center; height: 32px; padding-inline: 12px; border: 1px solid var(--ink); font: 700 11px/1 var(--body); letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; }
.caps-btn:hover { background: var(--ink); color: var(--paper); }

/* header on inner pages */
.bar { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line); }

/* home: hero */
.hero { display: grid; gap: 32px; padding-block: 40px 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-self: center; }
.hero-copy .wordmark { margin-top: 8px; }
.intro { max-width: 34em; color: var(--ink-soft); }
.soon { font: 600 13px/18px var(--body); color: var(--ink-soft); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 64px; padding-block: 64px 96px; min-height: 0; }
}

/* home: definition */
.define { display: flex; flex-direction: column; gap: 14px; padding-block: 48px; border-top: 1px solid var(--ink); }
.define-word { font: 400 clamp(56px, 9vw, 104px)/1 var(--wordmark); }
.define-text { display: flex; flex-direction: column; gap: 8px; }
.define-say { font: italic 400 20px/1.3 var(--italic); color: var(--ink-soft); }
.define .lede { max-width: 30em; }

/* home: feature rows, ruled like the app's schedule */
.rows { display: grid; border-top: 1px solid var(--ink); }
.row { display: grid; gap: 8px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.row p:last-child { color: var(--ink-soft); max-width: 36em; }
@media (min-width: 700px) {
  .rows { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .row { align-content: start; }
}
@media (min-width: 1100px) { .rows { grid-template-columns: repeat(4, 1fr); } }

/* home: safety, the one dark block */
.safety { display: grid; gap: 32px; margin-top: 56px; padding-block: 48px; background: var(--ink); color: var(--paper); }
.safety .label { color: #B9B2A6; }
.safety-head { display: flex; flex-direction: column; gap: 12px; }
.safety-title { font: 400 clamp(44px, 7vw, 84px)/1 var(--wordmark); letter-spacing: -0.02em; text-wrap: balance; }
.safety-grid { display: grid; gap: 0; border-top: 1px solid rgba(237,232,224,.22); }
.safety-item { display: grid; gap: 8px; align-content: start; padding-block: 24px; border-bottom: 1px solid rgba(237,232,224,.22); }
.safety-item p:last-child { color: rgba(237,232,224,.78); max-width: 34em; }
.safety-foot { font: 600 14px/1.5 var(--body); color: rgba(237,232,224,.78); }
.safety-foot a { color: var(--paper); margin-left: 6px; text-underline-offset: 3px; }
.safety a:focus-visible { outline-color: var(--paper); }
@media (min-width: 700px) {
  .safety { padding-block: 64px; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}

/* Full-width bands: the dark one and the orange one run edge to edge, their text
   on the same column as the rest of the page. */
.safety, .urgent { margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }

/* home: the one orange block */
.urgent { display: grid; gap: 10px; margin-block: 0; padding-block: 40px; background: var(--urgent); color: var(--on-image); }
.urgent-title { font: 700 clamp(44px, 8vw, 88px)/.95 var(--display); letter-spacing: -0.6px; }
.urgent-meta { font: 600 18px/1.3 var(--body); }
.urgent-note { font: 600 15px/1.45 var(--body); max-width: 36em; }


/* home: closing */
.closing { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 56px 72px; border-top: 1px solid var(--ink); }
.small-wm { font-size: clamp(72px, 12vw, 140px); }
.closing-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* legal pages */
.doc { max-width: 680px; padding-block: 48px 72px; display: flex; flex-direction: column; gap: 16px; }
.doc section { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); }
.doc p { max-width: 65ch; }
.doc a { text-underline-offset: 3px; }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: baseline; padding-block: 28px 40px; border-top: 1px solid var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { font: 700 11px/14px var(--body); letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.fine { font-size: 13px; color: var(--ink-soft); margin-left: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Read by search engines and screen readers, not shown. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- home: masthead, phone, rhythm */

/* A magazine masthead: issue line left, sections right. Hidden on phones, where the hero says it all. */
.masthead { display: none; }
/* The real Discover screen in a phone frame. */
.phone { justify-self: center; width: min(320px, 82vw); padding: 10px; background: var(--ink); border-radius: 46px; box-shadow: 0 32px 64px -28px rgba(20,19,18,.45); }
.phone-screen { overflow: hidden; border-radius: 37px; background: var(--paper); }
.phone-screen img { width: 100%; height: auto; }
.row-num { font: 700 44px/1 var(--display); letter-spacing: -0.5px; color: var(--line); margin-bottom: 8px; }

@media (min-width: 1100px) {
  .masthead { display: flex; justify-content: space-between; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--ink); }
  .masthead nav { display: flex; align-items: center; gap: 28px; }
  .masthead nav a:not(.caps-btn) { font: 700 11px/14px var(--body); letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; }
  .masthead nav a:not(.caps-btn):hover { text-decoration: underline; text-underline-offset: 4px; }

  .hero { grid-template-columns: minmax(0, 1fr) 400px; gap: 96px; align-items: center; min-height: min(860px, calc(100vh - 70px)); padding-block: 56px 72px; }
  .hero-copy { gap: 24px; }
  .hero-copy .wordmark { font-size: clamp(180px, 19vw, 280px); margin-block: 4px 8px; }
  .hero-copy .lede { font-size: 30px; }
  .intro { font-size: 17px; line-height: 1.6; }

  .phone { justify-self: end; width: 380px; }

  .define { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 72px; row-gap: 8px; align-items: end; padding-block: 72px; }
  .define .label { grid-column: 1 / -1; }
  .define-word { font-size: 176px; line-height: .85; }
  .define-text { padding-bottom: 14px; }
  .define .lede { font-size: 34px; max-width: 20em; }

  .rows { column-gap: 48px; }
  .row { padding-block: 40px 44px; gap: 10px; }
  .row .card-name { font-size: 28px; line-height: 30px; }

  .safety { margin-top: 96px; padding-block: 104px 96px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 96px; align-items: start; }
  .safety-head { position: sticky; top: 48px; }
  .safety-title { font-size: clamp(64px, 6.4vw, 96px); }
  .safety-foot { grid-column: 2; }

  .urgent { margin-block: 0; padding-block: 88px; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 96px; align-items: end; }
  .urgent-main { display: grid; gap: 14px; }
  .urgent-title { font-size: clamp(88px, 8.4vw, 120px); }
  .urgent-meta { font-size: 22px; }
  .urgent-note { font-size: 18px; line-height: 1.5; }

  .closing { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-block: 112px 96px; border-top: 0; }
  .small-wm { font-size: clamp(160px, 15vw, 220px); line-height: .8; }
  .closing-cta { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-bottom: 10px; }
  .closing .lede { font-size: 30px; }
}
