/* ==========================================================================
   base.css — fonts, design tokens, reset, page frame
   Loaded on every page, always first.
   ========================================================================== */

@font-face {
  font-family: "Grand Gothic Book";
  src: url("../fonts/PFGrandGothikComp-Book.otf") format("opentype");
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  color-scheme: dark;
  --red: #ff0020;
  --red-hover: #d4001a;
  --red-deep: #7a0010;

  --black: #000;
  --ink: #0b0b0b;
  --panel: #161616;
  --page: #222;
  --line: #5b5b5b;
  --muted: #777;
  --white: #fff;

  --font: "Grand Gothic Book", "Myriad Pro", Helvetica, Arial, sans-serif;
}

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

html,
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

img {
  height: auto;
}

iframe {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: var(--red);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ---- Page frame --------------------------------------------------------- */
html {
  /* 1rem = 10px (60% on tablets) so sizes below are written as 1.8rem etc. */
  font-size: 62.5%;
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--white);
  text-align: left;
  background-color: var(--page);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  line-height: 1;
  font-weight: normal;
}

strong,
b {
  font-weight: bold;
}

/* The main column that every page content sits in. */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 20px auto 0;
}

@media (max-width: 1024px) {
  html {
    font-size: 60%;
  }
}

@media (max-width: 900px) {
  .wrap {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
