/* Phase 3 — base: resets, font-face, base typography, real color roles. */

@font-face {
  font-family: 'Cook Conthic';
  src: url('/fonts/CookConthic.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/HostGrotesk-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/HostGrotesk-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Mono';
  src: url('/fonts/RobotoMono-Variable.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: 'Pirata One';
  src: url('/fonts/PirataOne-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* green = system color: links are the thing that must always be seen */
a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

/* nav and footer links read as cream by default — they're wayfinding chrome, not editorial
   links in running copy. Green still marks hover/focus/active state on them (system color rule). */
.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* rare decorative accent only — never body, never a heading substitute */
.accent {
  font-family: var(--font-accent);
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

::selection {
  background: var(--green);
  color: var(--ink);
}

/* logotype/mark rendered as a CSS mask so any surface color can fill it —
   works regardless of the source SVG's own fill, avoids inlining markup on every page */
.logotype-mark {
  display: block;
  /* Ink: the masthead field is now green, so the logotype inverts to sit on it. */
  background-color: var(--ink);
  mask-image: url('/img/logotype.svg');
  mask-repeat: no-repeat;
  mask-position: left center;
  mask-size: contain;
  -webkit-mask-image: url('/img/logotype.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  -webkit-mask-size: contain;
}
