/* Shared foundation. Each option supplies its own tokens and composition. */
@font-face { font-family: "Schibsted"; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-opsz.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--face); font-size: 1.0625rem; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
section[id] { scroll-margin-top: 24px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: visually hidden text */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: hidden spam trap */

/* Contact form mechanics; colours come from --field and --ink. */
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-weight: 600; }
.form input, .form textarea { width: 100%; border: 0; border-radius: var(--radius, 0px); background: var(--field); color: var(--field-ink, var(--ink)); padding: 16px; font-size: 1.0625rem; font-weight: 400; }
.form textarea { min-height: 168px; resize: vertical; }
/* Fields need an edge that stands out from the panel behind them (3:1, WCAG 1.4.11). */
.form input:not([type="radio"]), .form textarea, .form select { border: 1.5px solid color-mix(in srgb, var(--field-ink, var(--ink)) 58%, var(--field)); }
.form [aria-invalid="true"] { outline: 3px solid var(--focus, var(--accent)); }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form [data-status] { min-height: 1.5em; font-weight: 600; }
@media (max-width: 640px) { .form .pair { grid-template-columns: 1fr; } }

/* Entrances. Content stays visible if scripts never run. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--delay, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition-duration: 0.01ms; transition-delay: 0ms; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
