/* Zone Theta — shared base. Tokens, reset, type, buttons, image slots.
   PROVISIONAL palette: taken from the logo (plum + taupe) on a warm paper
   ground, until the palette is chosen (DESIGN.md §2). */

@import url("../assets/fonts/fonts.css");

:root {
  /* Colour (provisional) */
  --paper: #f7f4ef;
  --paper-deep: #efe9e1;
  --ink: #1f1a24;
  --plum: #331a5a;          /* logo purple */
  --taupe: #6a5c54;         /* logo taupe */
  --muted: color-mix(in oklab, var(--ink) 68%, var(--paper));
  --line: color-mix(in oklab, var(--ink) 12%, var(--paper));
  --plum-wash: color-mix(in oklab, var(--plum) 7%, var(--paper));

  /* Motion (DESIGN.md §6) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --gutter: 20px;
  --container: 1320px;
  --radius: 4px;
  /* Space between the nav and a page's title on every page after home (DESIGN.md §4).
     Matches About, whose story starts 56px under the nav on a laptop screen. */
  --page-top: clamp(40px, 4.4vw, 56px);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 80;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--plum); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); border-color: color-mix(in oklab, var(--ink) 22%, var(--paper)); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in oklab, var(--plum) 86%, black); }
  .btn-quiet:hover { border-color: var(--ink); }
}

/* Image slot: blank, labelled, to be filled with a real photo later (DESIGN.md §9). */
.image-slot {
  position: relative;
  background: var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.image-slot::after {
  content: "Image · " attr(data-slot);
  position: absolute; left: 12px; bottom: 10px;
  font: 500 0.6875rem/1 var(--font-text); letter-spacing: 0.02em;
  color: color-mix(in oklab, var(--ink) 45%, var(--paper-deep));
}

/* Visibly unfinished content */
.placeholder {
  color: var(--muted);
  border-bottom: 1px dashed currentColor;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
