/* ============================================================
   #safespaces?  ·  Humanities Innovation Lab, University of Lethbridge

   Built on the same lines as the Humanities Data Inquiry site
   (Cormorant Garamond heads, Montserrat body, logo + name in the nav).
   Colours are placeholders: set them from the logo once it arrives.
   Only the tokens in :root should need to change.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f4f1;
  --text: #141414;
  --muted: #5a5a5a;
  --rule: #d9d4cc;

  --accent: #8c2f39;        /* placeholder: take from the logo */
  --accent-dark: #6a222b;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;

  --wide: 1100px;
  --prose: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 300; font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: .75rem 1.25rem; z-index: 100; }
.skip-link:focus { left: 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-top: 1.2em; }
h3 { font-size: 1.5rem; }
p, ul { margin: 0 0 1.1em; }
strong { font-weight: 600; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.prose > * { max-width: var(--prose); }
.section { padding: 3.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section > .wrap > h2:first-child, .prose > h2:first-child { margin-top: 0; }

.kicker { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.kicker a { color: inherit; }
.lede { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.4; font-weight: 500; }
.page-title { font-size: clamp(2.6rem, 5vw, 3.8rem); }

.btn { display: inline-block; padding: .7rem 1.4rem; border: 1.5px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 500; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: var(--accent); color: #fff; }

/* Nav */
.nav { border-bottom: 1px solid var(--rule); background: #fff; }
.nav__inner { max-width: var(--wide); margin: 0 auto; padding: .9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav__brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
.nav__logo { width: 56px; height: 56px; }
.nav__site-name { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a.is-current { border-bottom-color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; flex-basis: 100%; flex-direction: column; gap: .6rem; padding-bottom: .6rem; }
  .nav__links.open { display: flex; }
}

/* Hero */
.hero { padding: 5rem 0 3rem; border-bottom: 1px solid var(--rule); }
.hero__title { font-size: clamp(3.6rem, 9vw, 6.5rem); margin: .2em 0 .15em; }
.hero__sub { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; font-weight: 500; max-width: 820px; line-height: 1.3; color: var(--muted); }

/* Cards */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border-top: 4px solid var(--accent); padding: 1.5rem; }
.card p { margin: 0; }

/* Funding */
.funding { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.funding__logo { width: 220px; }
.funding h2 { margin-top: 0; }
@media (max-width: 640px) { .funding { grid-template-columns: 1fr; } }

/* News list */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.post-list time { display: block; font-size: .8rem; color: var(--muted); }

/* Land acknowledgement + footer */
.land-ack { background: var(--bg); padding: 3rem 0; border-top: 1px solid var(--rule); }
.land-ack__inner { max-width: 860px; text-align: center; }
.land-ack h2 { margin-top: 0; font-size: 1.9rem; }
.land-ack p { font-size: .9rem; }
.footer { background: #141414; color: #ddd; padding: 2rem 0; font-size: .85rem; }
.footer a { color: #fff; }
.footer p { margin: 0 0 .4em; }
.footer__small { color: #999; font-size: .78rem; margin-top: .8em !important; }
