/* Zipseal website. Colors from docs/brand.md. Fonts: Geist and Geist Mono (SIL OFL, fonts/OFL.txt),
   served from this site. No scripts, no cookies, nothing from other servers. */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

/* Light: Paper. Dark: Ink. The seal (Vermilion) is a shape only, never text. */
:root {
  color-scheme: light dark;
  --bg: #f6f3ee;
  --fg: #0e1116;
  --muted: #5c6270;   /* 5.5:1 on Paper */
  --line: rgb(14 17 22 / 0.12);
  --seal: #ff5a36;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 24px 60px -12px rgb(14 17 22 / 0.35);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --fg: #f6f3ee;
    --muted: #8a90a0; /* 5.9:1 on Ink */
    --line: rgb(246 243 238 / 0.12);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 30px 70px -10px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.125rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: from-font; text-underline-offset: 0.18em; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); transition: text-decoration-color 150ms ease; }
@media (hover: hover) { a:hover { text-decoration-color: currentColor; } }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }

/* Top bar */
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; min-height: 44px; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; color: var(--muted); text-decoration: none; font-size: 1rem; transition: color 150ms ease; }
.nav a[aria-current="page"] { color: var(--fg); }
@media (hover: hover) { .nav a:hover { color: var(--fg); } }

/* The seal: one Vermilion disc behind a screenshot. Decoration only. */
.stage { position: relative; isolation: isolate; }
.stage .seal { position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; background: var(--seal); pointer-events: none; }
.shot { border-radius: 12px; box-shadow: var(--shadow); }

/* Hero */
.hero { padding-block: 56px 120px; }
/* The seals go past the edges: clip them, so the page never scrolls sideways. */
.hero, section { overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero .lead { margin-top: 24px; font-size: 1.25rem; color: var(--muted); max-width: 30em; }
.availability { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--muted); }
.availability span { font-size: 0.875rem; }
/* The official Apple badge (img/mac-app-store-*.svg, from toolbox.marketingtools.apple.com). Do not change its artwork. */
.badge { display: inline-block; border-radius: 9px; transition: opacity 150ms ease, scale 100ms ease-out; }
.badge img { height: 48px; width: auto; }
@media (hover: hover) { .badge:hover { opacity: 0.85; } }
.badge:active { scale: 0.96; }
.hero .seal { width: 72%; right: -18%; bottom: -26%; }

/* Sections */
section { padding-block: 112px; border-top: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 64px; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; }
.head p { margin-top: 20px; font-size: 1.25rem; color: var(--muted); max-width: 34em; }

/* Secure share: three steps and the Finder menu */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.steps li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 4px 16px; }
.steps .n { grid-row: span 2; font: 500 1rem/1.9 var(--mono); color: var(--muted); }
.steps h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; }
.steps p { color: var(--muted); }

/* A Finder window with its context menu on top, placed as on the screen. */
.finder { position: relative; margin-right: 5%; }
.finder .menu { position: absolute; left: 53.6%; top: 10.7%; width: 50.9%; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.35)); }
.finder-stage .seal { width: 56%; right: -12%; top: -4%; }

/* Browse: the caption above, the windows below and to the right. */
.browse-stage { max-width: 980px; margin-left: auto; }
.browse { position: relative; padding-bottom: 18%; }
.browse .ql { position: absolute; right: 0; bottom: 0; width: 58%; }
.browse > .shot:first-child { width: 80%; }
.browse-stage .seal { width: 40%; left: -12%; bottom: -10%; }

/* Rows: a title and its text, top-aligned */
.rows { display: grid; gap: 48px; margin: 0; }
.rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8px 40px; align-items: start; }
.rows dt { font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.rows dd { margin: 0; color: var(--muted); max-width: 34em; padding-top: 0.1em; }

/* Formats */
.formats-main { display: flex; flex-wrap: wrap; gap: 0 0.6em; font: 500 clamp(2.75rem, 12vw, 9rem)/1 var(--mono); letter-spacing: -0.04em; margin: 0 0 40px; padding: 0; list-style: none; }
.formats-rest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 24px; max-width: 900px;
  font: 400 clamp(1.125rem, 2.2vw, 1.75rem)/1.2 var(--mono); color: var(--muted);
  /* Fades to the right and down: the list reads as longer than the page. */
  -webkit-mask-image: linear-gradient(to bottom right, #000 25%, rgb(0 0 0 / 0.3) 95%);
  mask-image: linear-gradient(to bottom right, #000 25%, rgb(0 0 0 / 0.3) 95%); }
.formats-note { margin-top: 32px; color: var(--muted); }

/* Text pages */
.page { padding-block: 48px 112px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; }
.page .date { color: var(--muted); margin: 16px 0 48px; }
.page h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin: 48px 0 12px; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; margin: 0; }
.page li + li { margin-top: 10px; }
.page li::marker { color: var(--muted); }
.page details { border-top: 1px solid var(--line); padding-block: 18px; }
.page details:last-of-type { border-bottom: 1px solid var(--line); }
.page summary { font-weight: 600; cursor: pointer; list-style-position: outside; min-height: 44px; display: flex; align-items: center; gap: 12px; }
.page summary::-webkit-details-marker { display: none; }
.page summary::after { content: "+"; margin-left: auto; font: 400 1.5rem/1 var(--mono); color: var(--muted); }
.page details[open] summary::after { content: "–"; }
.page details p { color: var(--muted); margin-top: 8px; max-width: 36em; }

footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

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

@media (max-width: 860px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 24px 96px; }
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  section { padding-block: 80px; }
  .head { margin-bottom: 40px; }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .formats-rest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finder { margin-right: 10%; }
}
