/* ---------------------------------------------------------------
   Shared by every page: colours, type, page width, header, footer.
   Palette taken from Big Island lava, dry grass and volcanic earth.
   Change the tokens below to retheme the whole site.
   --------------------------------------------------------------- */
:root {
  --ink:        #26221D;  /* lava black, body text and dark sections */
  --accent:     #5F6535;  /* dry olive, buttons and fills */
  --grass:      #BCC084;  /* light grass, only ever used on dark */
  --brown:      #6E5334;  /* volcanic earth, eyebrows and accents */
  --ground:     #F3F0E4;  /* sun-bleached sand, page background */
  --panel:      #E6E4CF;  /* tinted panel */
  --card:       #FFFFFF;
  --muted:      #5A5348;  /* secondary text on light */
  --muted-dark: #C3BFAF;  /* secondary text on dark */
  --faint:      #6E6A5E;
  --line:       #E0DCC6;
  --outline:    #C8C3AC;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max:    1280px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--accent); }
a:hover { color: var(--brown); }

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

/* --max is the content width; padding sits outside it. Header, content and footer
   all use this one container, so they share a single left and right edge. */
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ground);
  padding: 0.75rem 1.25rem; z-index: 10; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 5.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.brand span { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ground); }
.site-footer .wrap {
  padding-block: 1.75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem;
}
.site-footer .brand { color: var(--ground); }
.site-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.75rem; font-size: .95rem; }
.site-footer nav a { color: #E4E0D2; text-decoration: none; }
.site-footer nav a:hover { color: var(--grass); }
/* The copyright row is a second .wrap; it sits directly under the first, no extra top space. */
.site-footer .copyright { padding-top: 0; padding-bottom: 1.75rem; font-size: .85rem; color: #949082; }
@media (max-width: 760px) { .site-footer nav { margin-left: 0; } }

/* Links get a 44px-tall hit area so they are easy to tap on a phone. */
.brand, .site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
