/* kartemachi.com. Brand colours (docs/website.md): Paper, Ink, Moss,
   Persimmon, Window. Fonts are our own copies, never Google's (docs/privacy.md). */

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-sans-latin-wght-normal.woff2) format('woff2-variations');
  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 {
  --bg: #F7F2E8;          /* Paper */
  --ink: #203934;         /* Ink */
  --muted: #5B6D67;
  --line: #E4DCCB;
  --surface: #FFFDF8;
  --moss: #416B55;        /* Moss */
  --moss-deep: #345943;   /* logo background */
  --on-moss: #FFFDF8;
  --accent: #C95C3B;      /* Persimmon */
  --window: #F2C66D;      /* Window */
  --shadow: 0 1px 2px rgb(32 57 52 / 0.06), 0 8px 24px rgb(32 57 52 / 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14211E;
    --ink: #EDE6D8;
    --muted: #A3B2AB;
    --line: #2A3B36;
    --surface: #1B2B27;
    --moss: #7FAE92;
    --moss-deep: #345943;
    --on-moss: #10201B;
    --accent: #E08262;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.badge {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--moss-deep);
  overflow: hidden;
}
.badge img { width: 2.25rem; height: 2.25rem; }
.top-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--moss);
  text-decoration: none;
  white-space: nowrap;
}
.top-link:hover { text-decoration: underline; }

/* Hero */
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.25fr 1fr; padding-top: 3.5rem; padding-bottom: 4.5rem; }
}
h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.15;
}
.btn-primary { background: var(--moss); color: var(--on-moss); }
.btn-primary small { display: block; font-weight: 600; font-size: 0.78rem; opacity: 0.85; }
.btn-primary.is-soon { cursor: default; }
.btn-quiet { border: 2px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-quiet:hover { border-color: var(--moss); }
.play { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.langs {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-art {
  justify-self: center;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  border-radius: 2rem;
  background: var(--moss-deep);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.hero-art img { width: 86%; }
@media (max-width: 51.99rem) {
  .hero-art { order: -1; width: min(60vw, 15rem); border-radius: 1.5rem; }
}

/* Screens */
/* Phones and tablets: a strip you swipe, the next screen peeking in.
   Wide screens: all eight in a 4 × 2 grid. */
.shots { padding-bottom: 3rem; }
.shots-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70%, 15rem);
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1rem, env(safe-area-inset-left));
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}
.shots-track figure { scroll-snap-align: start; }
@media (min-width: 64rem) {
  .shots-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    gap: 2.5rem 1.5rem;
    overflow: visible;
    max-width: 68rem;
    margin-inline: auto;
  }
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  max-width: 18rem;
  margin-inline: auto;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shots figcaption {
  max-width: 18rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.shots figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; }

.promise { padding-bottom: 3rem; }
.promise p {
  margin: 0 auto;
  max-width: 40rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.92rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot nav a { font-weight: 700; color: var(--ink); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0.75rem 0 0; }

a:focus-visible { outline: 3px solid var(--window); outline-offset: 3px; border-radius: 0.4rem; }
.btn:focus-visible { border-radius: 999px; }
