/* ==========================================================================
   Handyman Ryan: Theme — design tokens and font declarations.
   Loaded after core.css. Contains: custom properties, @font-face, font
   sizing defaults. No layout or component rules here.
   ========================================================================== */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-700-latin.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours */
  --navy:        #02456D;
  --navy-deep:   #01314F;
  --navy-ink:    #0B2E44;
  --yellow:      #FFDE59;
  --yellow-deep: #F2C618;

  /* Cork-world surface palette */
  --cork:        #B6844C;
  --cork-dark:   #8E6234;
  --paper:       #FFFDF6;
  --paper-shade: #F3EEDF;

  /* Index-card accent colours */
  --index-red:   #D4473C;
  --index-blue:  #B9D3EA;
  --sheet-green: #E4F0DA;
  --sheet-blue:  #DDEBF5;

  /* Text */
  --ink:      #1B2A35;
  --ink-soft: #3E4F5C;

  /* Pin head colours */
  --pin-red:   #CF3A2E;
  --pin-yellow:#F2C21B;
  --pin-navy:  #1F5D8A;
  --pin-green: #2F8A58;

  /* Typography stacks */
  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body:    "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  --f-typed:   "Courier Prime", "Courier New", monospace;

  /* Shadows */
  --shadow-paper:      0 1px 2px rgb(60 35 10 / .25), 0 14px 26px -10px rgb(60 35 10 / .55);
  --shadow-paper-lift: 0 2px 4px rgb(60 35 10 / .25), 0 22px 34px -12px rgb(60 35 10 / .6);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Spacing */
  --gap:  clamp(1.25rem, 3vw, 2.5rem);
  --rule: 1.75rem; /* index-card line pitch */

  /* Standard core tokens (required by the standard; used by core.css components
     such as the /articles/ pages). Mapped onto this site's brand values. */
  --color-primary:       var(--navy);
  --color-primary-dark:  var(--navy-deep);
  --color-primary-light: #E6EFF5;
  --color-accent:        var(--yellow);
  --color-bg:            var(--paper);
  --color-bg-alt:        var(--paper-shade);
  --color-text:          var(--ink);
  --color-text-muted:    var(--ink-soft);
  --color-border:        #D9D1BC;
  --color-error:         #A3271D;
  --font-heading:        var(--f-display);
  --font-body:           var(--f-body);
}

/* ---------- Base typography overrides (uses theme tokens) ---------- */
body {
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--navy-deep);
  caret-color: var(--navy);
}

a { color: var(--navy); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .16em; }

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

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
  border-radius: 2px;
}

/* Scrollbar styling */
html { scrollbar-color: var(--navy) var(--cork-dark); }
