/* An external stylesheet rather than an inline <style> block, purely so the
   CSP can refuse 'unsafe-inline' outright. The main site has to allow it
   (Astro inlines small blocks, and the Maps API injects its own), but a
   one-page static site has no such constraint and should not inherit the
   exemption. Tokens mirror src/styles/global.css so the two sites are
   recognisably the same hand. */

:root {
  --paper: #ffffff;
  --paper-200: #f1f4f7;
  --ink-900: #0a1317;
  --ink-700: #1c1e21;
  --ink-500: #5d6c7b;
  --rule: #dde4ea;
  --vermilion: #c9502f;
  --vermilion-text: #bb4526;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10171c;
    --paper-200: #161f26;
    --ink-900: #eef3f7;
    --ink-700: #dbe4eb;
    --ink-500: #9caebe;
    --rule: #27333d;
    --vermilion: #e8795a;
    --vermilion-text: #f0917a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

main {
  margin: auto;
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mark {
  width: 2rem;
  height: 2rem;
  color: var(--vermilion);
  flex: none;
}

h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.lede {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink-500);
  text-wrap: balance;
}

section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

h2 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermilion-text);
  margin: 0;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.project h3 {
  margin: 0;
  font-size: 1.15rem;
}

.project h3 a {
  color: var(--ink-900);
  text-decoration-color: var(--vermilion);
  text-underline-offset: 3px;
}

.project p {
  margin: 0;
  font-size: 0.97rem;
}

.project__foot {
  margin-top: 0.3rem;
}

.cta {
  display: inline-block;
  background: var(--vermilion);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
  .cta {
    color: #10171c;
  }
}

.cta:hover {
  filter: brightness(0.93);
}

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

footer a,
a:focus-visible {
  color: var(--vermilion-text);
}

a:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
  border-radius: 2px;
}
