/* starring.pet: the app's own look, laid flat on a page. Paper, ink and one blue, New York titles (Newsreader on the web), SF for the
   rest, photos in the app's rounded cards with its AI capsule in the corner. iOS glass is flat: a tint, a blur and a hairline, never a
   gradient, a gloss or a glow. Colours are the app's (zoomies/UI/Theme/Theme.swift), one for one. One look, light, as the app has it. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Layout: a wide paper page, the app's photo cards in 3:4 (adoption) and 9:16 (trips), ink bands where the app's opener is ink. */
  --ink: #17181c;
  --paper: #fcfbf9;
  --surface: #f4f2ee;
  --hairline: #e9e6e1;
  --muted: #6b6b70;
  --blue: #2547e8;
  --brass: #ad8e55;
  --brass-ink: #7d6431;
  --white: #ffffff;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(24, 26, 32, 0.32);
  --glass-dark-line: rgba(255, 255, 255, 0.26);
  --glass-light: rgba(252, 251, 249, 0.84);
  --ring: rgba(16, 22, 48, 0.12);
  --shadow: 0 1px 2px rgba(16, 22, 48, 0.06), 0 12px 32px rgba(16, 22, 48, 0.08);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Arial, sans-serif;

  --page: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --card-r: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: max(12px, env(safe-area-inset-left, 0px)); }

/* The top: glass_band, as the app's screens have it. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--glass-light);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid rgba(23, 24, 28, 0.07);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.wordmark { display: inline-flex; color: var(--ink); text-decoration: none; }
.wordmark svg { height: 26px; width: auto; display: block; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 0; }
.top nav a:hover { color: var(--ink); }

/* The AI mark: the app's capsule of dark glass, "AI" in white, in a photo's corner (AIMark, Surfaces.swift). */
.ai {
  position: absolute;
  right: 10px;
  bottom: 10px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 0.5px var(--glass-dark-line);
  color: var(--white);
  font: 600 15px/26px var(--sans);
  letter-spacing: 0;
  pointer-events: none;
}
.ai.small { height: 22px; padding: 0 7px; font-size: 13px; line-height: 22px; right: 8px; bottom: 8px; }

.photo { position: relative; margin: 0; border-radius: var(--card-r); overflow: hidden; background: var(--surface); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.tall { aspect-ratio: 3 / 4; }
.story { aspect-ratio: 9 / 16; }
.chip {
  position: absolute;
  left: 10px;
  top: 10px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font: 600 13px/28px var(--sans);
  white-space: nowrap;
}
.chip.dark { background: var(--glass-dark); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 0.5px var(--glass-dark-line); color: var(--white); }
.chip.light { background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 0.5px var(--ring); color: var(--ink); }

/* The app on the store: its icon, whole, and where it'll be. The icon is never set inside another tile. */
.app { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 72px; height: 72px; border-radius: 22.37%; flex: none; }
.app-icon.big { width: 96px; height: 96px; }
.app-text { display: grid; gap: 6px; justify-items: start; }
.app-name { font-weight: 600; font-size: 17px; }
.soon {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 600 15px/1 var(--sans);
  white-space: nowrap;
}
.soon.on-ink { background: var(--paper); color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero .wrap { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.08fr 0.92fr; } }
.hero-words { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(52px, 8.6vw, 112px); line-height: 0.96; letter-spacing: -0.022em; max-width: 9.5ch; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.42; color: var(--muted); max-width: 30ch; }
.hero .app { margin-top: 8px; }
.hero-pics { position: relative; justify-self: center; width: min(100%, 470px); padding-left: 16%; padding-bottom: 14%; }
.hero-pics .main { box-shadow: var(--shadow); border-radius: 28px; }
.hero-pics .side { position: absolute; left: 0; bottom: 0; width: 40%; border-radius: 18px; box-shadow: 0 0 0 5px var(--paper), var(--shadow); }
.hero-pics .side .chip { left: 8px; top: 8px; height: 24px; line-height: 24px; padding: 0 9px; font-size: 12px; white-space: nowrap; max-width: calc(100% - 16px); }
@media (max-width: 600px) { .hero-pics .side .chip .wide { display: none; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--hairline); }
.head { display: grid; gap: 16px; max-width: 40rem; margin-bottom: clamp(32px, 4vw, 52px); }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-ink); }
h2 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.016em; }
.head p, .body-copy { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 36rem; }
.note { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* Adopt: the five at the window. */
.window-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.window-grid > :first-child { grid-column: 1 / -1; }
.window-grid > :first-child .photo { aspect-ratio: 4 / 4.2; }
@media (min-width: 720px) {
  .window-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .window-grid > :first-child { grid-column: auto; }
  .window-grid > :first-child .photo { aspect-ratio: 3 / 4; }
}
.pet { margin: 0; display: grid; gap: 10px; min-width: 0; }
.pet figcaption { display: grid; gap: 2px; padding-inline: 2px; }
.pet .name { font: 500 24px/1.1 var(--serif); letter-spacing: -0.01em; }
.pet .kind { font-size: 15px; color: var(--muted); }

/* Care: his photo and the day's care, as the app lists it. */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 0.9fr 1.1fr; } .split.flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.split .photo { max-width: 480px; width: 100%; }
.today {
  margin-top: 28px;
  max-width: 400px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: inset 0 0 0 0.5px var(--ring), var(--shadow);
  padding: 8px 0;
}
.today h3 { font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 18px 8px; }
.today ul { list-style: none; margin: 0; padding: 0; }
.today li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--hairline); font-size: 16px; }
.today li:first-child { border-top: 0; }
.today .tick { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--hairline); display: grid; place-items: center; }
.today .done .tick { background: var(--blue); box-shadow: none; }
.today .done .tick svg { display: block; }
.today .when { margin-left: auto; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.caption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Personality: four habits, in the app's words. */
.habits { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .habits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.habit { margin: 0; display: grid; gap: 10px; min-width: 0; }
.habit .line { font: 500 clamp(18px, 2vw, 22px)/1.2 var(--serif); letter-spacing: -0.005em; }
.habit .who { font-size: 14px; color: var(--muted); }

/* Trips: one day at Plitvice, stop by stop. */
.trip-head { display: grid; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .trip-head { grid-template-columns: 1fr 1fr; align-items: end; } .trip-head .head { margin-bottom: 0; } }
.trip-meta { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.trip-meta strong { color: var(--ink); font: 500 24px/1.2 var(--serif); letter-spacing: -0.01em; }
.stops {
  display: grid;
  gap: 12px;
  grid-auto-flow: column;
  grid-auto-columns: min(58vw, 240px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
  padding-inline: var(--gutter-l) var(--gutter-r);
  scroll-padding-inline: var(--gutter-l);
  scrollbar-width: thin;
}
@media (min-width: 1000px) {
  .stops { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.stop { margin: 0; display: grid; gap: 10px; scroll-snap-align: start; min-width: 0; }
.stop .photo { border-radius: 18px; }
.stop figcaption { display: grid; gap: 2px; font-size: 15px; }
.stop .time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stop .what { font-weight: 600; }
.next { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.next .label { font-size: 15px; color: var(--muted); margin-right: 4px; }
.place { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--ring); font-size: 15px; font-weight: 600; }

/* Bring your own: a second door, quieter than the first. */
.yours { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding-block: clamp(48px, 6vw, 72px); }
.yours .wrap { display: grid; gap: 14px; }
.yours .tag { justify-self: start; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--brass); color: var(--brass-ink); font: 600 13px/28px var(--sans); }
.yours h2 { font-size: clamp(30px, 3.6vw, 42px); }
.yours p { font-size: 18px; color: var(--muted); max-width: 34rem; }

/* What holds everywhere. */
.promises { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: clamp(48px, 6vw, 72px); }
@media (min-width: 860px) { .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.promise { display: grid; gap: 8px; align-content: start; min-width: 0; }
.promise .mark { height: 26px; display: flex; align-items: center; }
.promise .mark .ai { position: static; display: inline-block; background: var(--ink); box-shadow: none; }
.promise svg { width: 26px; height: 26px; }
.promise strong { font-size: 16px; }
.promise span { font-size: 15px; color: var(--muted); }

/* The last word: ink, as the app's opener. */
.closing { background: var(--ink); color: var(--white); padding-block: clamp(64px, 9vw, 112px); }
.closing .wrap { display: grid; gap: 28px; justify-items: start; }
.closing h2 { color: var(--white); max-width: 12ch; }
.closing p { color: var(--on-ink-muted); font-size: 18px; }

/* Footer */
.foot { padding-block: 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; gap: 22px; }
.foot .row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot .wordmark svg { height: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .fine { display: grid; gap: 8px; max-width: 56rem; line-height: 1.5; }
.foot .fine b { color: var(--ink); font-weight: 600; }

/* Legal pages */
.doc { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 96px); }
.doc .wrap { max-width: calc(46rem + 40px); }
.doc h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.018em; }
.doc .updated { margin-top: 14px; color: var(--muted); font-size: 15px; }
.doc .intro { margin-top: 28px; display: grid; gap: 14px; }
.doc .short { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--ring); display: grid; gap: 8px; }
.doc .short strong { font-weight: 600; }
.doc .toc { margin-top: 28px; }
.doc .toc h2 { font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc .toc ol { margin: 0; padding-left: 22px; columns: 2 16rem; column-gap: 32px; }
.doc .toc li { padding: 3px 0; break-inside: avoid; }
.doc .toc a { color: var(--ink); text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
.doc section { margin-top: 44px; display: grid; gap: 14px; }
.doc section h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.01em; }
.doc h3 { font: 600 17px/1.3 var(--sans); margin-top: 6px; }
.doc p, .doc li { line-height: 1.6; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.table { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hairline); }
.table table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--hairline); line-height: 1.45; }
.table thead th { border-top: 0; background: var(--surface); font-weight: 600; }

/* 404 */
.lost { padding-block: clamp(48px, 8vw, 112px); }
.lost .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .lost .wrap { grid-template-columns: 1fr 0.8fr; } }
.lost h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.lost p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.lost .back { display: inline-flex; margin-top: 28px; height: 44px; align-items: center; padding: 0 20px; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 600; text-decoration: none; }
.lost .photo { max-width: 380px; width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Films: the app's clips, with a small glass button to stop them. */
.photo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 0.5px var(--glass-dark-line);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.play svg { width: 14px; height: 14px; }
.play .i-play { display: none; }
.play.paused .i-play { display: block; }
.play.paused .i-pause { display: none; }
.play[hidden] { display: none; }
.promises { list-style: none; margin: 0; padding-left: 0; padding-right: 0; }
.pet, .habit, .stop { align-content: start; }
/* An anchored heading or section lands below the sticky header, not under it. */
[id] { scroll-margin-top: 76px; }
