/* Shared press page styles for the Streaks family. Each page sets --accent. */

:root {
  --accent: #ff704c;
  --bg: #ffffff;
  --surface: #f5f4f2;
  --text: #1b1a19;
  --muted: #6b6866;
  --rule: #e4e1de;
  --todo-bg: #fff1a8;
  --todo-text: #5a4700;
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1d1c1a;
    --text: #f3f1ee;
    --muted: #a19d98;
    --rule: #2e2c2a;
    --todo-bg: #4a3d00;
    --todo-text: #ffe680;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: "kern";
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; line-height: 1.15; }
h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 20px; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; }

mark.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Hero */

.hero { padding: 72px 0 56px; text-align: center; }
.eyebrow { margin: 0 0 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero-icon { width: 128px; height: 128px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18)); }
.hero h1 { font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.035em; margin: 20px 0 8px; }
.tagline { font-size: clamp(20px, 3vw, 24px); color: var(--muted); margin: 0 0 16px; }
.short { max-width: 620px; margin: 0 auto 32px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.button:hover { color: #fff; filter: brightness(1.06); }

.store { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); max-width: 420px; margin-left: auto; margin-right: auto; }
.badge img { display: block; height: 50px; width: auto; }
.site { font-size: 16px; color: var(--muted); }

/* Section nav */

.toc { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.toc .wrap { display: flex; gap: 22px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.toc a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.toc a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .toc { position: static; }
  .toc .wrap { flex-wrap: wrap; justify-content: center; gap: 8px 18px; overflow: visible; }
}

section { padding: 64px 0 8px; scroll-margin-top: 48px; }
.note { color: var(--muted); font-size: 15px; }

/* Factsheet */

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule);
}
/* Hairlines between cells; the ones on the outer edge fall outside and are clipped. */
.facts div { padding: 18px 22px; box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }

/* Description */

.copyblock { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }
.copyhead { display: flex; justify-content: space-between; align-items: center; }
.copyhead h3 { margin: 0; }
.copytext p { margin: 12px 0 0; max-width: 72ch; }
button.copy {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent);
  background: none; border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; cursor: pointer;
}

/* Features */

/* Columns, not a grid: a wrapped item in one column shouldn't open a gap in the other. */
.features { list-style: none; padding: 0; margin: 0; column-width: 300px; column-gap: 32px; }
.features li { padding: 0 0 12px 22px; position: relative; break-inside: avoid; }
/* Ring centred on the first line (line-height 1.55, ring 13px with its border). */
.features li::before { content: ""; position: absolute; left: 0; top: calc(0.775em - 6.5px); width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }

/* Screenshots */

.device { margin-top: 40px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; }
/* Each figure spans two subgrid rows (image, caption) so images share a bottom line and captions a
   top line, whatever the caption length. */
.shots figure { margin: 0 0 36px; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
.shots figure > a, .shots figure > img { align-self: end; }
.shots figure.landscape { grid-column: span 2; }
.shots.iphone-duo { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shots.unframed img { border-radius: 18px; border: 1px solid var(--rule); }
.shots.ipad { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shots.mac { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.shots.tv { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.shots.tv figure.landscape { grid-column: auto; }
.shots.mac img { border-radius: 12px; }
.shots.watch { grid-template-columns: repeat(auto-fill, minmax(160px, 200px)); }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: 14px; }
.shots .dl { color: var(--muted); font-size: 13px; }

@media (max-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .shots figure { margin-bottom: 28px; }
  .shots.iphone-duo, .shots.ipad, .shots.mac { grid-template-columns: 1fr 1fr; }
  .shots.tv { grid-template-columns: 1fr; }
}

/* Icon */

/* Full-bleed square icons (appiconset PNGs) get the iOS corner on the page. */
.squircle { border-radius: 22.37%; }
.icons { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; }
.icons figure { margin: 0; text-align: center; }
.icons img { width: 160px; height: 160px; display: block; }
.icons figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.icons .wordmark img { width: auto; height: 60px; max-width: 320px; object-fit: contain; padding: 16px; border-radius: var(--radius); background: var(--surface); box-sizing: content-box; }
.icons .wordmark img { background: #fff; border: 1px solid var(--rule); }
.icons .wordmark.inverse img { background: var(--accent); border-color: var(--accent); }
.downloads { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }

/* Developer */

#developer p { max-width: 72ch; }
.family { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.family span { color: var(--muted); }

footer { margin-top: 80px; padding: 32px 0 48px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }

/* Bottom download */

.kit-cta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 64px; padding: 32px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.kit-cta img { width: 72px; height: 72px; }
.kit-cta h2 { flex: 1 1 200px; font-size: 24px; margin: 0; }
@media (max-width: 520px) {
  .kit-cta { flex-direction: column; text-align: center; padding: 28px 20px; }
  .kit-cta h2 { flex: none; }
}
