/* eikonaut.com — one stylesheet for every page. Colours from the icon; light and dark follow the system. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --fg: #201e1d;
  --muted: #605d5d;
  --rule: #201e1d;
  --hair: #bab6b6;
  --strip: #201e1d;
  --red: #ec3013;
  --drop: 0 16px 28px rgba(32, 30, 29, 0.22);
  --gutter: clamp(16px, 5vw, 64px);
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201e1d;
    --surface: #2d2b2b;
    --fg: #f3f2f2;
    --muted: #bab6b6;
    --rule: #605d5d;
    --hair: #605d5d;
    --strip: #2d2b2b;
    --drop: 0 20px 36px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--font);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 650; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: rgba(236, 48, 19, 0.3); }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; }
kbd { font: inherit; font-weight: 600; white-space: nowrap; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header and footer */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 16px var(--gutter);
  border-bottom: 2px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.site-header nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 500; font-size: 15px; }
.site-header nav a { text-decoration: none; padding: 10px 0; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding: 24px var(--gutter) 32px;
  color: var(--muted); font-size: 14px;
}
.site-footer img { width: 24px; height: 24px; }
.site-footer .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer .links a { padding: 10px 0; }

/* Page heads */
.hero { padding: clamp(40px, 9vw, 120px) var(--gutter) clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(40px, 7vw, 92px); line-height: 1; letter-spacing: -0.025em; }
.lede { max-width: 30em; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.4; color: var(--muted); }
.page-head {
  padding: clamp(40px, 8vw, 104px) var(--gutter) clamp(28px, 4vw, 48px);
  border-bottom: 2px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px 48px; align-items: end;
}
.page-head h1 { font-size: clamp(40px, 6.5vw, 84px); line-height: 1; letter-spacing: -0.025em; }
.page-head p { color: var(--muted); max-width: 32em; }
.page-head.long h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }

/* Call to action: before launch a red-ruled label; at launch Apple's badge goes in its place */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 6px; }
.soon { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 2px solid var(--red); font-weight: 700; }
.cta .small { font-size: 15px; color: var(--muted); }

/* Screenshot in a window frame */
.shot { margin: 0; }
/* Window images have transparent corners (tools/make-screen.py), so the shadow follows the window */
.shot img { width: 100%; filter: drop-shadow(var(--drop)); }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.hero-shot { padding: 0 var(--gutter) clamp(48px, 8vw, 104px); }

/* Numbered label: 19 px bold so the red stays legible (large text, 3:1) */
.num { font-size: 19px; font-weight: 700; letter-spacing: 0.08em; color: var(--red); }

/* The four cornerstones */
.corners {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  background: var(--rule); border-block: 2px solid var(--rule);
}
@media (min-width: 560px) { .corners { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .corners { grid-template-columns: repeat(4, 1fr); } }
.corner { background: var(--bg); padding: clamp(24px, 3.5vw, 44px) clamp(16px, 3vw, 36px) clamp(32px, 4vw, 52px); display: flex; flex-direction: column; gap: 12px; }
.corner h2 { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.05; letter-spacing: -0.015em; }
.corner .lead { font-weight: 600; line-height: 1.4; }
.corner p:not(.lead) { font-size: 16px; color: var(--muted); }

/* "How we measured": a footnote that opens in place */
.note summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: " +"; color: var(--red); font-weight: 800; white-space: pre; }
.note[open] summary::after { content: " −"; }
.note-body { margin-top: 8px; padding: 10px 12px; background: var(--surface); font-size: 12px; line-height: 1.45; display: flex; flex-direction: column; gap: 8px; }
.note .note-body p { font-size: inherit; }
.note table, .note tbody { display: block; }
/* Each row: the Mac on one line, the times beside it, or below it when the box is narrow */
.note tr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding-top: 6px; border-top: 1px solid var(--hair); }
.note tr + tr { margin-top: 6px; }
.note th, .note td { white-space: nowrap; text-align: left; font-weight: 400; }
.note td { margin-left: auto; font-weight: 700; }

/* Press photo with caption, as on a picture desk */
.photo { margin: clamp(48px, 8vw, 104px) 0 0; }
.photo img { width: 100%; }
.photo figcaption {
  padding: 14px var(--gutter) 0;
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.photo figcaption > span { display: block; max-width: 72ch; }
.photo .slug { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.photo .credit { white-space: nowrap; }

/* Workflow as a film strip; the pick is framed in red */
.workflow { padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px); display: flex; flex-direction: column; gap: 28px; }
.workflow h2, .section-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.strip { background: var(--strip); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.strip::before, .strip::after { content: ""; height: 9px; margin: 0 8px; background: repeating-linear-gradient(90deg, #605d5d 0 9px, transparent 9px 20px); }
.frames, .steps { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 4px 14px; list-style: none; margin: 0; }
.steps { padding: 0 14px; gap: 20px 14px; counter-reset: none; }
@media (min-width: 440px) { .frames, .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .frames, .steps { grid-template-columns: repeat(4, 1fr); } }
.frames li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.frames img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.frames .pick img { outline: 3px solid var(--red); outline-offset: 4px; }
.frames span { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: #9b9797; }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.steps h3 { font-size: 20px; }
.steps p { font-size: 15px; color: var(--muted); }

/* A two-column note between rules */
.aside {
  margin: 0 var(--gutter); padding: clamp(32px, 5vw, 56px) 0;
  border-block: 2px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px 48px; align-items: start;
}
.aside h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.015em; }
.aside div { display: flex; flex-direction: column; gap: 14px; }
.aside p { color: var(--muted); }
.aside .more { font-weight: 600; }
.facts { padding: 22px var(--gutter) 0; font-size: 14px; color: var(--muted); }

/* Feature groups */
.group {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px clamp(24px, 5vw, 64px);
  padding: clamp(36px, 6vw, 72px) var(--gutter); border-bottom: 2px solid var(--rule); align-items: start;
}
.group > div { display: flex; flex-direction: column; gap: 16px; }
.group h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -0.015em; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 11px 0; border-top: 1px solid var(--hair); font-size: 16px; }
.group + .photo { margin-top: 0; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 2px solid var(--rule); }

/* FAQ */
.faq-group {
  display: grid; grid-template-columns: 1fr; gap: 12px clamp(24px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px) var(--gutter); border-bottom: 2px solid var(--rule); align-items: start;
}
@media (min-width: 840px) { .faq-group { grid-template-columns: 1fr 2fr; } }
.faq-group > header { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.faq-group h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.qa { border-bottom: 1px solid var(--hair); }
.qa summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; min-height: 44px;
  cursor: pointer; list-style: none; font-size: clamp(17px, 2vw, 20px); font-weight: 700; line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--red); font-weight: 800; }
.qa[open] summary::after { content: "−"; }
.qa .answer { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; max-width: 42em; color: var(--muted); }
.qa .answer ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* Text pages: support, release notes, guides, privacy */
.prose { padding: clamp(32px, 5vw, 64px) var(--gutter); max-width: calc(44em + 2 * var(--gutter)); display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.015em; margin-top: 24px; }
.prose h3 { font-size: 19px; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose .muted { color: var(--muted); }
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2px; background: var(--rule); border-bottom: 2px solid var(--rule); }
.sections > section { background: var(--bg); padding: clamp(28px, 4vw, 48px) var(--gutter); display: flex; flex-direction: column; gap: 12px; }
.sections h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; letter-spacing: -0.015em; }
.sections p { color: var(--muted); }
.release { border-top: 2px solid var(--rule); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.release h2 { margin-top: 0; }
.release time { color: var(--muted); font-size: 15px; }

/* 404: the game from the holding page, drawn in a canvas; hidden without JavaScript */
.stage { display: none; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 96px); max-width: calc(900px + 2 * var(--gutter)); }
.js .stage { display: flex; flex-direction: column; gap: 12px; }
.stage canvas {
  display: block; width: 100%; aspect-ratio: 4 / 1; cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.stage canvas:focus-visible { outline-offset: 6px; }
@media (max-width: 560px) { .stage canvas { aspect-ratio: 2 / 1; } }
.stage .how { font-size: 15px; color: var(--muted); }

/* Closing banner: red runs as a field. All text here is large (24 px+) to keep 3:1 on red. */
.banner {
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--red); color: #201e1d;
  padding: clamp(40px, 7vw, 88px) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px 48px; align-items: end;
}
.banner h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; letter-spacing: -0.025em; }
.banner p { font-size: 24px; line-height: 1.35; font-weight: 600; }
.banner a { color: #201e1d; text-decoration-color: #201e1d; }
.banner a:hover { color: #201e1d; text-decoration-thickness: 3px; }
.banner a:focus-visible { outline-color: #201e1d; }
