/* Lantern website. Night ground, warm ink, one amber light. No JavaScript, no trackers. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #0e1117;
  --surface: #161a22;
  --line: #262c38;
  --ink: #f2eee6;
  --ink-soft: #c9ccd6;
  --ink-muted: #a4a9b6;
  --amber: #f5b451;
  --amber-ink: #1a1306;
  --teal: #5cc8c2;
  --radius: 22px;
  --measure: 62rem;
  --serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-soft);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffd08a; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--ink); max-width: 36rem; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }
section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(14, 17, 23, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 400 1.5rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
nav a { color: var(--ink-soft); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 36rem) { nav .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; padding-top: clamp(2.5rem, 7vw, 5rem); text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -10% -10% auto -10%; height: 70%; background: radial-gradient(ellipse at 50% 18%, rgba(245, 180, 81, .26), transparent 62%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-art { margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); max-width: 56rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero .lede { margin-inline: auto; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--amber); font-size: 1.2rem; margin-bottom: 1.5rem; }

/* Store badges: Apple's own artwork, unmodified, at equal height with a quarter-height of clear space (Apple's guidelines). */
.stores { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; justify-content: center; align-items: center; margin: 1.8rem 0 1rem; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 53px; width: auto; }
.soon { display: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .6rem 1.2rem; margin: 1.8rem auto .8rem; width: fit-content; }
.prelaunch .stores { display: none; }
.prelaunch .soon { display: block; }
.price-note { font-size: .95rem; color: var(--ink-muted); }

/* Feature rows */
.row { display: grid; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 52rem) { .row { grid-template-columns: 1fr 1fr; } .row.flip > :first-child { order: 2; } }
.phones { display: flex; justify-content: center; gap: 1.2rem; }
.phones img { width: min(46%, 17rem); border-radius: 30px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.phones img:nth-child(2) { margin-top: 2.5rem; }
.screen { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.points { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.points li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px 2px rgba(245, 180, 81, .55); }

.band { background: linear-gradient(180deg, transparent, rgba(245, 180, 81, .05), transparent); }

/* Cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-muted); font-size: 1rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
summary { cursor: pointer; font: 400 1.25rem/1.3 var(--serif); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--amber); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; }

/* Prose pages */
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.prose h2 { font-size: 1.7rem; margin-top: 2.4em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45em; }
.updated { color: var(--ink-muted); font-size: .95rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--ink-muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
footer a { color: var(--ink-soft); }

/* A lantern that breathes, once the person has asked for motion. */
@media (prefers-reduced-motion: no-preference) {
  .glow { animation: breathe 5.5s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
}

.hero-art.spaced { margin-top: 2.2rem; }
.prose.centred { margin-inline: auto; }
.more { margin-top: 2rem; }
