/* ---------------------------------------------------------------------------
   The family's stylesheet: flat, quiet and modern.

   One sans-serif, the system's own, in a clear scale. White space does the
   work that bevels and boxes used to: sections are separated by room and a
   hairline. Light and dark follow the system, as the apps do, and the
   screenshots already switch with it.

   This file is every app's. Two things are each app's own and live in
   assets/brand/<app>.css, loaded after this one: the palette the rule along
   the top is drawn in, and the hero's background, which is a picture of what
   the app is about. Nothing else should need to differ; if it does, the thing
   that differs probably belongs in the brand file too.

   Match Cut's was the first of these, and this is it with those two pulled
   out. Wander keeps its own stylesheet, being an older design rather than a
   variant of this one.
   --------------------------------------------------------------------------- */


:root {
  --page: #ffffff;
  --ink: #111111;
  --body: #3a3a3c;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --surface: #f5f5f7;
  --static: #262626;
  --button: #111111;
  --button-ink: #ffffff;
  --link-hover: #6e6e73;

  /* The app's palette: the system colors it draws each bar in (gray 3,
     yellow, teal, green, purple, red, indigo), as iOS 26 resolves them,
     light here and dark below. */
  /* The bar palette is each app's own: assets/brand/<app>.css. */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --ink: #f5f5f7;
    --body: #c7c7cc;
    --muted: #8e8e93;
    --line: #2c2c2e;
    --surface: #1c1c1e;
    --button: #f5f5f7;
    --button-ink: #000000;
    --link-hover: #8e8e93;

    /* The dark bar palette is each app's own, in the same file. */
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

/* ---------------------------------------------------------------- the hero */
/* The shape of it. What it is a picture of is each app's own, and the
   `background` and `::after` that draw it live in assets/brand/<app>.css. */
.hero {
  position: relative;
  /* Every hero on every page is this tall, whether it carries an icon, a
     tagline and a button or only the word "Privacy", and its content sits in
     the middle of it. The nav is taken out of the flow to make that true: as
     a flex item it was part of what got centered, so everything below it was
     pushed down by half the nav's height, and the padding being heavier at
     the bottom than the top moved it again. Out of flow, with equal padding
     top and bottom, `justify-content: center` means what it says. */
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero > * { position: relative; z-index: 2; }

.hero-icon {
  image-rendering: auto;
  width: 112px;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}
.hero.compact .hero-icon { width: 72px; margin: 0 auto 20px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: #fff;
}
.hero.compact h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; }

.hero p.tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 32ch;
  margin: 0 auto;
}

.hero-actions { margin-top: 32px; }

.release-meta {
  font-size: 0.875rem;
  color: var(--muted);
}
.hero .release-meta { color: rgba(255, 255, 255, 0.55); }
.hero .release-meta a { color: #fff; }

/* ---------------------------------------------------------------- the nav */
.hero .topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 0;
  z-index: 4;
}
.hero .topnav .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.hero .topnav .wordmark:hover { color: rgba(255, 255, 255, 0.75); }

.hero .topnav .nav-links { display: flex; gap: 28px; }
.hero .topnav .nav-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.hero .topnav .nav-links a:hover,
.hero .topnav .nav-links a[aria-current="page"] { color: #fff; }

.hero .topnav .nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}
.hero .topnav .nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.hero .topnav .nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 720px) {
  .hero .topnav { flex-wrap: wrap; position: relative; }
  .hero .topnav .nav-toggle { display: block; }
  .hero .topnav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    padding: 6px;
    background: var(--page);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 5;
  }
  .hero .topnav .nav-toggle[aria-expanded="true"] + .nav-links { display: flex; }
  .hero .topnav .nav-links a {
    color: var(--ink);
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 9px;
    text-align: left;
  }
  .hero .topnav .nav-links a:hover { background: var(--surface); color: var(--ink); }
  .hero .topnav .nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
}

/* ---------------------------------------------------------------- buttons */
.btn-primary {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--button-ink);
  background: var(--button);
  padding: 14px 26px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}
.btn-primary:hover { opacity: 0.85; color: var(--button-ink); }
/* On the static, always white. */
.hero .btn-primary { background: #fff; color: #000; }
.hero .btn-primary:hover { color: #000; }

/* ---------------------------------------------------------------- features */
.feature {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
main > .feature:first-child { border-top: 0; }

/* The heading, with its label as a small eyebrow above it. */
.sleeve-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 32px;
}
.sleeve-head .tag {
  display: block;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
/* A section with no screenshot beside it. Without this it keeps the two-column
   grid and the prose sits in the left column with the right one empty, which
   reads as a missing image rather than as a choice. */
.feature-inner.prose { grid-template-columns: 1fr; max-width: 66ch; }

@media (min-width: 820px) {
  .feature-inner { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
  .feature.reverse .feature-copy { order: 2; }
  .feature.reverse .feature-image { order: 1; }
}
.feature-copy p { margin: 0; }
.feature-copy p + p { margin-top: 16px; }
.feature-copy em { font-style: normal; font-weight: 600; color: var(--ink); }
.feature-image img {
  display: block;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}
@media (prefers-color-scheme: dark) {
  .feature-image img { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
}
.feature-image.ipad img { max-width: 440px; border-radius: 20px; }

/* The frames that move: the Grid and the Deck, and Pick for Me, each a short
   muted loop. Two videos, one per theme, swapped here rather than by script,
   as Wander's site does: a source rewritten on a theme change has to survive
   load(), which drops the play() after it. Reduced motion shows the still
   instead, a photograph rather than a paused video. */
.feature-image .reel {
  display: block;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}
.feature-image .reel-dark, .feature-image .still { display: none; }
@media (prefers-color-scheme: dark) {
  .feature-image .reel { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
  .feature-image .reel-light { display: none; }
  .feature-image .reel-dark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-image .reel { display: none; }
  .feature-image .still { display: block; }
}

/* ---------------------------------------------------------------- cards */
/* The subpages' prose, and the home page's privacy note: a soft panel. */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 36px;
  margin: 40px 0;
}
main > .card:first-child { margin-top: 56px; }
.card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 36px 0 12px;
}
.card > h2:first-child { margin-top: 0; }
.card h3 {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 28px 0 8px;
}
.card h3:first-of-type { margin-top: 8px; }
.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card ol, .card ul { margin: 0 0 14px; padding-left: 22px; }
.card li { margin-bottom: 6px; }
.card code { font-size: 0.9em; background: var(--line); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 600px) { .card { padding: 28px 22px; } }

/* ---------------------------------------------------------------- closing */
.closing-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.brand { color: inherit; }

/* ---------------------------------------------------------------- odds */
.release-header { margin-bottom: 6px; }
.release-header h2 { font-weight: 700; margin: 0; color: var(--ink); }
.release p { margin: 0 0 10px; }
.release p + ul { margin-top: -4px; }
.release ul { padding-left: 22px; }

/* The app's icon at the top of a sub-page is a way back to its front page.
   A link, so it needs none of a link's decoration -- and `align-self`, because
   the hero is a column flex container: a flex item is blockified, so
   `inline-block` alone left the link stretched the full width of the page with
   the icon adrift in the middle of it, and a click anywhere along that band
   navigated. */
.hero-icon-link {
  display: inline-block;
  align-self: center;
  line-height: 0;
  border: 0;
  text-decoration: none;
}

.app-store-badge { display: inline-block; }
.app-store-badge img { height: 52px; width: auto; }

/* Gone with the rest of the 90s; kept hidden for any page not yet edited. */
.ticker, .counter { display: none; }

/* ---------------------------------------------------------------- footer */
footer {
  text-align: center;
  padding: 40px 24px 64px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer p { margin: 0 0 8px; }
footer a { color: var(--body); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer a:not(:last-child)::after { content: "\00a0\00a0\00b7\00a0\00a0"; color: var(--muted); }
footer .release-meta { font-size: 0.8rem; }

/* The socials row, the way shawnhickman.studio does it: the mark alone in the
   footer's own color, named for a screen reader rather than in type. It is a
   glyph taking `currentColor`, not LinkedIn's blue logo, which their
   guidelines would rather you did not recolor -- the trade for an icon that
   belongs to the page it sits on, and the usual one. The separator between
   footer links is turned off here, so a second mark one day sits beside this
   one rather than after a middot. */
footer .socials { margin-top: 18px; line-height: 0; }
footer .socials a { display: inline-block; color: var(--muted); }
footer .socials a:hover { color: var(--ink); }
footer .socials a::after { content: none; }
footer .socials a + a { margin-left: 20px; }
footer .socials svg { display: block; }

/* Out of the flow, so it is not one of the things being centered. It keeps
   the hero's own padding as its inset rather than sitting against the edge. */
/* The last thing in the hero carries a bottom margin meant for the gap to
   whatever used to follow it. Centring counts that margin as content, so the
   visible copy sat half of it high. */
.hero > *:last-child { margin-bottom: 0; }

.hero .topnav {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  width: auto;
  margin: 0;
  /* The nav was 1040px wide and centred, to line up with the content column
     below it. Out of the flow it keeps that width but loses the auto margins
     that centred it, so it sat against the left edge and the links stopped
     1064px in. It spans the page now: the name at one edge, the pages at the
     other, which is what being pinned to both edges should mean. */
  max-width: none;
}
