/* Brand tokens: docs/design-system/brand.md */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(/fonts/DMSans_400Regular.woff) format("woff"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-display: swap; src: url(/fonts/CourierPrime_700Bold.woff) format("woff"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url(/fonts/Caveat_500Medium.woff2) format("woff2"); }
:root {
  --sand: #F6F1ED;
  --ink: #1C1C1C;
  --secondary: #6B7280;
  --terracotta: #B55A3C;
  --border: #E8E2DC;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1 { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .edition:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* Logo, tagline, one sentence */
main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; }
.brand { text-align: center; }
.brand img { display: block; width: min(380px, 70vw); height: auto; margin: 0 auto; }
.tagline { margin: 24px 0 0; font-size: 1.25rem; font-weight: 400; }
.about { margin: 10px auto 0; max-width: 26em; color: var(--secondary); text-wrap: balance; }
footer { padding: 16px 24px 24px; font-size: 0.875rem; text-align: center; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Home page: brand and edition on the left, map on the right */
.home main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px 48px;
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 40px 32px 16px; }
.home .col { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
marmalade-map { width: 100%; max-width: 520px; margin: 0 auto; text-align: left; }

/* The edition: a fan of pages, the cover in front. edition.js places each page and turns the fan on drag. */
.edition { position: relative; width: 100%; max-width: 500px; aspect-ratio: 10 / 9; margin: 0 auto; cursor: grab;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.edition.dragging { cursor: grabbing; }
.edition img { position: absolute; left: 25%; top: 2%; width: 50%; height: auto; border: 1px solid var(--border); border-radius: 2px;
  box-shadow: 0 1px 2px rgba(28, 28, 28, .08), 0 10px 28px rgba(28, 28, 28, .14);
  transition: transform .45s ease, opacity .45s ease; -webkit-user-drag: none; }
.edition.dragging img { transition: none; }
@media (prefers-reduced-motion: reduce) { .edition img { transition: none; } }

@media (max-width: 900px) {
  .home main { grid-template-columns: minmax(0, 1fr); padding: 40px 0 8px; gap: 44px; }
  .brand, marmalade-map { padding: 0 20px; }
  .edition { max-width: min(500px, calc(100% - 24px)); }
}

/* Cookie notice (shown by site.js once a Google Analytics ID is set) */
.consent {
  position: fixed;
  z-index: 200;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  text-align: left;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; }
.consent button {
  font: inherit;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
.consent button.quiet { background: transparent; border-color: var(--border); color: var(--ink); }
