:root {
  color-scheme: light dark;
  --background: #f7f3ea;
  --surface: #fffdf7;
  --text: #1f1d19;
  --muted: #625d53;
  --line: #938979;
  --accent: #6d5100;
  --focus: #8a5f00;
  --content-width: 45rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  display: inline-flex;
  max-width: 100%;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: var(--accent);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

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

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0 0.75rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-200%);
}

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

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 760;
  text-decoration: none;
}

.brand::before {
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.35em;
}

main {
  flex: 1 0 auto;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 24ch;
  margin-block: 0;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.25rem, 8vw, 4.5rem);
}

h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

h3 {
  margin: 2rem 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

p,
li {
  max-width: 65ch;
}

.lede {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.resource-list {
  display: grid;
  margin: 2.75rem 0 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.resource-card {
  display: flex;
  min-height: 5rem;
  padding: 1rem 1.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.resource-card::after {
  color: var(--accent);
  content: "→";
  font-size: 1.15rem;
}

.content-section {
  padding-top: 0.25rem;
}

.content-section + .content-section {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.contact-panel {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.contact-panel p:first-child {
  margin-top: 0;
}

.contact-panel h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.plain-list {
  padding-left: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 37.5rem) {
  .header-row {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.75rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151412;
    --surface: #1d1b18;
    --text: #f5f1e8;
    --muted: #c7c0b3;
    --line: #71695c;
    --accent: #efc75e;
    --focus: #ffd978;
  }
}

@media (forced-colors: active) {
  :root {
    --background: Canvas;
    --surface: Canvas;
    --text: CanvasText;
    --muted: CanvasText;
    --line: CanvasText;
    --accent: LinkText;
    --focus: Highlight;
  }

  .resource-card,
  .contact-panel {
    forced-color-adjust: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
