:root {
  color-scheme: light dark;
  --canvas: #f4f0e6;
  --surface: rgba(255, 253, 247, 0.82);
  --surface-strong: #fffdf7;
  --ink: #202723;
  --muted: #657068;
  --line: #d8d8cc;
  --accent: #176a58;
  --accent-soft: #d9ebe4;
  --shadow: 0 18px 45px rgba(35, 49, 42, 0.08);
  --radius: 1.15rem;
  --content: 70rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 106, 88, 0.11), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 22rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible {
  outline: 0.2rem solid var(--accent);
  outline-offset: 0.25rem;
  border-radius: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--surface-strong);
  background: var(--ink);
  border-radius: 0.5rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--accent);
}

main {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.hero {
  max-width: 49rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

.lede {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.5vw, 1.48rem);
}

.notes-section {
  margin-top: clamp(4.5rem, 10vw, 8rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.note-card {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  padding: 1.35rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.note-card:hover {
  border-color: var(--accent);
  transform: translateY(-0.12rem);
}

.note-card p {
  margin: 0.8rem 0 1.4rem;
  color: var(--muted);
}

.note-card .read-more {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 750;
}

.article,
.about-panel,
.error-panel {
  max-width: 47rem;
}

.article-header {
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1,
.about-panel h1,
.error-panel h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
}

.article-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.prose {
  max-width: 43rem;
  padding-top: 2.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.prose h2 {
  margin-top: 2.7rem;
  font-size: 1.65rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-block: 1.15rem;
}

.prose li + li {
  margin-top: 0.6rem;
}

.prose .callout {
  margin-block: 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--accent-soft);
  border-left: 0.25rem solid var(--accent);
  border-radius: 0 0.75rem 0.75rem 0;
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.about-panel,
.error-panel {
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-panel p,
.error-panel p {
  max-width: 38rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 48rem) {
  .note-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    min-height: 12rem;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 32rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 2.8rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .note-card,
  .skip-link {
    transition: transform 160ms ease, border-color 160ms ease;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141a17;
    --surface: rgba(28, 37, 32, 0.88);
    --surface-strong: #f5f2e8;
    --ink: #edf2ed;
    --muted: #aebbb2;
    --line: #38463e;
    --accent: #75d2b7;
    --accent-soft: #213e35;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-nav,
  .site-footer,
  .skip-link {
    display: none;
  }

  .note-card,
  .about-panel,
  .error-panel {
    box-shadow: none;
  }
}
