/* The look of the Comic style (ADR 0009). The colours come from theme.css, which build-site.ts writes
   from src/theme/styles.ts, so the site and the app can't drift apart. */
@font-face {
  font-family: 'Fredoka Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/fredoka-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font: 600 1.0625rem/1.6 var(--font-sans);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}
p {
  margin: 0;
}
a {
  color: var(--color-link);
  text-underline-offset: 0.2em;
}
a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--color-surface);
  border: 2px solid var(--color-outline);
  border-radius: 12px;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

/* Header and footer */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 70rem);
  margin: 0 auto;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--color-fg);
  font: 600 1.75rem/1 var(--font-display);
  text-decoration: none;
}
.brand img {
  width: 46px;
  height: auto;
}
/* The dot on the i is the logo's pin (the app's Wordmark does the same). */
.brand .name {
  text-transform: lowercase;
}
.brand .i {
  position: relative;
  display: inline-block;
}
.brand .i svg {
  position: absolute;
  left: 50%;
  bottom: 0.62em;
  width: 0.33em;
  height: 0.465em;
  transform: translateX(-50%);
  overflow: visible;
}
.brand .pin-shadow {
  fill: var(--brand-ink);
}
.brand .pin {
  fill: var(--brand-pin);
  stroke: var(--brand-ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: var(--color-fg);
  font-family: var(--font-display);
  font-weight: 600;
}
.site-footer {
  width: min(100% - 2rem, 70rem);
  margin: 4rem auto 0;
  padding: 1.5rem 0 3rem;
  border-top: 2px solid var(--color-outline);
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem -0.5rem;
}
.site-footer p + p {
  margin-top: 0.5rem;
}

/* Stickers: an ink outline and a hard shadow */
.sticker {
  background: var(--color-surface);
  border: 2px solid var(--color-outline);
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--color-outline);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: 2px solid var(--color-outline);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--color-outline);
  font: 600 1.125rem/1 var(--font-display);
  text-decoration: none;
}
a.button:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-outline);
}
.button-soon {
  background: var(--color-surface);
  color: var(--color-fg);
  border-style: dashed;
  box-shadow: none;
}

/* Landing page */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 1rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
}
.hero .lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.25rem;
  color: var(--color-muted);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}
.cta small {
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.hero-shot {
  justify-self: center;
  width: min(100%, 22rem);
  border-radius: 32px;
  overflow: hidden;
}
.hero-shot img {
  width: 100%;
}
@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    padding-top: 3rem;
  }
  .hero-shot {
    justify-self: end;
    transform: rotate(2deg);
  }
}

section {
  margin-top: 4.5rem;
}
section > h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
section > .intro {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--color-muted);
}

.tiles {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
/* Six cards each: one column, then two, then three, so the last row is never half empty. */
@media (min-width: 34rem) {
  .tiles,
  .points {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 52rem) {
  .tiles,
  .points {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tile {
  padding: 1.25rem 1.25rem 1.5rem;
  color: var(--color-on-subject);
}
.tile h3 {
  font-size: 1.5rem;
}
.tile p {
  margin-top: 0.4rem;
}
.tile-places { background: var(--color-subject-places); }
.tile-flags { background: var(--color-subject-flags); }
.tile-capitals { background: var(--color-subject-capitals); }
.tile-cities { background: var(--color-subject-cities); }
.tile-daily { background: var(--color-subject-daily); }
.tile-mixed { background: var(--color-subject-mixed); }

.gallery {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0.5rem 0.25rem 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}
.gallery:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.gallery li {
  flex: 0 0 min(72vw, 17rem);
  scroll-snap-align: center;
  border-radius: 28px;
  overflow: hidden;
}
.gallery img {
  width: 100%;
}

.points {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  padding: 1.25rem;
}
.points h3 {
  font-size: 1.25rem;
}
.points p {
  margin-top: 0.4rem;
  color: var(--color-muted);
}

.final {
  padding: 2rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  text-align: center;
}
.final h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.final .cta {
  justify-content: center;
}
.final .button {
  background: var(--color-surface);
  color: var(--color-fg);
}

/* Text pages: Impressum, Privacy, Support, 404 */
.doc {
  max-width: 44rem;
  padding: 1.5rem 0 0;
  font-weight: 500;
}
.doc h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}
.doc .sub {
  margin-top: 0.5rem;
  color: var(--color-muted);
}
.doc h2 {
  margin-top: 2.25rem;
  font-size: 1.5rem;
}
.doc h2 + p,
.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 0.75rem;
}
.doc ul {
  margin: 0;
  padding-left: 1.25rem;
}
.doc li + li {
  margin-top: 0.4rem;
}
.doc address {
  margin-top: 0.75rem;
  font-style: normal;
}
.doc .card {
  margin-top: 1.5rem;
  padding: 1.25rem;
}
