/* web/src/style.css — the one stylesheet for the whole site.

   The shape is Apple's Find My page (the owner's chosen template, task 023): white, one centred
   column, a hero with the icon and the name, then bands that alternate text and a phone
   screenshot, then a privacy band. Mobile-first: the site's real audience is a phone browser
   opening a link from an App Store listing or an email.

   Typefaces are the app's own, served from this site (see @font-face below): EB Garamond for
   headlines, Instrument Sans for everything else. No external fonts, no frameworks, no script. */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --maroon: #9D2235;
  --maroon-ink: #7a1a29;
  --border: #d2d2d7;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------------------------------------------------------------- top bar and footer */

/* The reading pages only — the landing page has no bar (layout.mjs). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.25rem;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  max-width: 980px;
  margin: 0 auto;
}

/* The app icon, small: the same PNG the hero uses, rounded like a home-screen icon. */
.site-header .brand-icon {
  width: 22px;
  height: 22px;
  border-radius: 22%;
}

.site-footer {
  background: var(--bg-alt);
  margin-top: 4rem;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.site-footer nav a { color: var(--muted); }
.site-footer nav a[aria-current="page"] { color: var(--text); }

.site-footer p { margin: 0.5rem auto; }
.site-footer .credits a { color: var(--muted); text-decoration: underline; }

/* ---------------------------------------------------------------- reading pages */

main.column {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

main.column h1 { font-size: 2.6rem; margin-bottom: 1.5rem; }
main.column h2 { font-size: 1.7rem; margin-top: 2.5rem; margin-bottom: 0.5rem; }
main.column h3 { font-size: 1.3rem; margin-top: 1.75rem; margin-bottom: 0.25rem; }

main.column p, main.column ul { margin: 0.9rem 0; }
main.column ul { padding-left: 1.25rem; }
main.column li { margin: 0.35rem 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 0.25em;
  font-size: 0.9em;
}

.contact-box {
  background: var(--bg-alt);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.contact-box a { font-weight: 600; font-size: 1.15rem; }

/* ---------------------------------------------------------------- landing page */

main.wide {
  padding: 0;
}

main.wide > section,
main.wide > .group-heading {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 1.5rem;
}

/* The owner, 2026-09-15: on a phone the space above the logo was twice what it should be.
   Desktop keeps the tall top. */
@media (min-width: 760px) {
  .hero { padding-top: 10rem; }
}

/* Option B (owner, 2026-09-11): the brand is a lockup — icon and name in one row, wordmark-sized,
   in maroon — and the tagline takes the big serif headline slot beneath it, the way Apple's page
   puts a small product name over one large line. */
.hero-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0 0 5.5rem;
}

.app-icon {
  width: clamp(56px, 12vw, 72px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.app-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 7.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--maroon);
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 auto 2.5rem;
  color: var(--text);
}

/* Who it is for, said before the screenshots so a phone reader learns it without scrolling
   past three pictures first (the owner, 2026-09-15). */
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.4;
  max-width: 30rem;
  margin: -1.25rem auto 2.5rem;
  color: var(--muted);
}

.made-by {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--maroon);
  margin: 0 auto 1rem;
}

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0 auto 1.75rem;
  padding-top: 0.5rem;
}

.hero-phones .phone { width: 30%; max-width: 250px; margin: 0 -5%; }
.hero-phones .phone:nth-child(2) { width: 38%; max-width: 320px; z-index: 1; margin: 0; }

.lede {
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 auto 0.75rem;
  color: var(--text);
}

.hero-link { font-size: 1rem; margin: 0; }

.group-heading {
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 0.5rem;
}

/* A phone: the screenshot inside a frame drawn here rather than shipped as a picture of any real
   hardware. Measured pixel by pixel from Apple's own product shot (apple.com/v/icloud/aj/images/
   find-my/item_location__bnpah8rm9mj6_large_2x.jpg, read 2026-09-11; the phone in it is 648px
   wide): the titanium band is 2.5% of the width and reads as metal because of its luminance
   profile — a bright specular line at the outer edge, a dark dip, a second bright line, then dark;
   the black bezel inside it is 1.5%, a soft falloff rather than a hard edge; the outer corner
   radius is 16% and the screen's 12.5%; the Dynamic Island is 29% wide with the camera at its
   right end; three buttons on the left, one on the right; and the shadow darkens the ground by a
   third right at the edge and fades over ~30% of the width, down and to the right.
   Every measure is in `cqw` — a percentage of THIS phone's width (the figure is the container) —
   so a 200px phone and a 320px one get the same proportions. Plain `%` would not do: percentage
   padding is measured against the parent's width, which is how an earlier version of this frame
   ended up with a band three times too thick on the small phones.
   The band's rings are inset box-shadows with growing spread: the first listed is on top, so each
   ring shows only the strip between its spread and the previous one's.
   The screenshots are 739×1600 — twice the largest display size, for Retina screens. */
.phone {
  container-type: inline-size;
  margin: 0;
}

.phone .body {
  position: relative;
  padding: 2.5cqw;
  border-radius: 16cqw;
  background: #3a3a3d;
  box-shadow:
    inset 0 0 0 0.45cqw #a3a3a7,
    inset 0 0 0 0.9cqw #58585c,
    inset 0 0 0 1.3cqw #37373a,
    inset 0 0 0 1.75cqw #7e7e82,
    inset 0 0 0 2.1cqw #a6a6aa,
    inset 0 0 0 2.5cqw #3a3a3d,
    9cqw 11cqw 28cqw rgba(0, 0, 0, 0.30),
    2cqw 3cqw 7cqw rgba(0, 0, 0, 0.12);
}

.phone .screen {
  position: relative;
  padding: 1.5cqw;
  background: #000;
  border-radius: 13.5cqw;
  box-shadow: inset 0 0 0 0.4cqw #232325;
  overflow: hidden;
}

.phone img {
  border-radius: 12cqw;
  width: 100%;
}

.phone .island {
  position: absolute;
  top: 4.4cqw;
  left: 50%;
  width: 29cqw;
  height: 8.2cqw;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

.phone .island::after {
  content: "";
  position: absolute;
  right: 1.6cqw;
  top: 1.6cqw;
  width: 5cqw;
  height: 5cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #34345a, #08080f 65%);
}

/* The buttons, outside the band, in the same metal: action, volume up, volume down on the left;
   the side button on the right. */
.phone .body::before,
.phone .body::after {
  content: "";
  position: absolute;
  width: 1.3cqw;
  background: linear-gradient(to right, #8b8b8f, #4a4a4d 45%, #38383b);
}

.phone .body::before {
  left: -1.2cqw;
  top: 21cqw;
  height: 44cqw;
  border-radius: 0.6cqw 0 0 0.6cqw;
  -webkit-mask: linear-gradient(to bottom,
    #000 0 14%, transparent 14% 24%,
    #000 24% 50%, transparent 50% 60%,
    #000 60% 86%, transparent 86%);
  mask: linear-gradient(to bottom,
    #000 0 14%, transparent 14% 24%,
    #000 24% 50%, transparent 50% 60%,
    #000 60% 86%, transparent 86%);
}

.phone .body::after {
  right: -1.2cqw;
  top: 33cqw;
  height: 21cqw;
  border-radius: 0 0.6cqw 0.6cqw 0;
  background: linear-gradient(to left, #8b8b8f, #4a4a4d 45%, #38383b);
}

/* The consent screenshot comes from a DEBUG build, which draws a debug bar across the bottom 12%
   of that screen. Rather than crop the image (which made that phone a different height from
   every other), the strip is painted over in the screen's own paper colour, inside the bezel. */
.phone .screen.masked::after {
  content: "";
  position: absolute;
  left: 1.5cqw;
  right: 1.5cqw;
  bottom: 1.5cqw;
  height: 12.5%;
  background: #f6f4ec;
  border-radius: 0 0 12cqw 12cqw;
}

.band {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  align-items: center;
}

.band .phone { width: 64%; max-width: 310px; margin: 0 auto; }

.band h3 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 0.75rem; }
.band p { margin: 0; font-size: 1.05rem; }
.band-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; }

@media (min-width: 760px) {
  .band { grid-template-columns: 1fr 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 2rem; }
  .band .phone { width: 78%; max-width: 320px; }
  .band-right .phone { order: 2; }
  .band-left .band-text { order: 2; }
  .band-text { padding: 0 1rem; }
}

.band-callout,
.band-privacy,
.band-download {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.band-callout h2,
.band-privacy h2,
.band-download h2 {
  font-size: clamp(2rem, 6.5vw, 3rem);
  margin-bottom: 1rem;
}

.band-callout p,
.band-privacy p {
  max-width: 38rem;
  margin: 0 auto 0.75rem;
  font-size: 1.1rem;
}

main.wide > .band-callout {
  max-width: none;
  background: var(--maroon);
  color: #fff;
}

.band-callout h2 { color: #fff; }

main.wide > .band-privacy {
  max-width: none;
  background: var(--bg-alt);
  margin-top: 0;
}

.band-download { padding-bottom: 1rem; }
.band-download .lede { margin-bottom: 1.5rem; }

.badge-placeholder {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 1.5rem;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: center;
}

.links-list a { font-weight: 600; }
