/* Root landing page — Nordic/Viking/French-inspired, CSS-only (no image
   assets: keeps this a true zero-dependency static page, matching
   AGENTS.md's "prefer plain HTML/CSS" principle). */

:root {
  --ink: #1b2430;
  --paper: #f4f1e8;
  --panel: #ffffff;
  --rule: #c9c0a8;
  --navy: #1f3350;
  --forest: #2f4a3c;
  --gold: #a97c34;
  --bronze: #8a5a2b;
  --muted: #5b6472;
  --link: var(--navy);
  --link-visited: var(--forest);
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e4d8;
    --paper: #14181f;
    --panel: #1b212b;
    --rule: #3a4250;
    --navy: #7fa0c9;
    --forest: #7fb89a;
    --gold: #d4a24e;
    --bronze: #c98a52;
    --muted: #9aa3b0;
    --link: var(--gold);
    --link-visited: var(--forest);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

.hall {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero {
  text-align: center;
}

.kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--bronze);
}

.hero h1 {
  margin: 0.5rem 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--navy);
  line-height: 1.2;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

/* CSS-only knotwork/rune-style divider: a repeating interlace pattern drawn
   with a conic-gradient, no image asset required. */
.knotwork {
  border: 0;
  height: 0.5rem;
  margin: 2rem auto;
  max-width: 16rem;
  background-image: repeating-linear-gradient(
    135deg,
    var(--gold) 0 0.5rem,
    transparent 0.5rem 1rem
  ),
  repeating-linear-gradient(
    45deg,
    var(--forest) 0 0.5rem,
    transparent 0.5rem 1rem
  );
  background-blend-mode: multiply;
  opacity: 0.8;
  border-radius: 999px;
}

@media (prefers-color-scheme: dark) {
  .knotwork {
    background-blend-mode: screen;
  }
}

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

main section + section {
  margin-top: 2.5rem;
}

main p {
  margin: 0 0 1rem;
}

main p:last-child {
  margin-bottom: 0;
}

#projects-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 0.25rem;
  padding: 1rem 1.25rem;
}

.project-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.project-card h3 a {
  text-decoration: none;
  color: var(--navy);
}

.project-card h3 a:visited {
  color: var(--link-visited);
}

.project-card h3 a:hover,
.project-card h3 a:focus-visible {
  text-decoration: underline;
}

.project-card > p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  text-decoration: none;
}

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