:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --ink: #202621;
  --muted: #667068;
  --line: #d9dedb;
  --green: #315747;
  --rust: #a44e37;
  --max-width: 1080px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--rust);
}

img {
  display: block;
  max-width: 100%;
}

.page-width,
.header-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

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

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 440px;
  height: 58vh;
  max-height: 560px;
  overflow: hidden;
  background: #25362f;
  color: #ffffff;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 18, 0.42);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 62px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.5;
}

.intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.6fr);
  gap: 64px;
  padding-block: 76px;
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.article-header h1,
.not-found h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.intro h2 {
  font-size: 27px;
}

.intro p {
  max-width: 650px;
  margin: 0;
  color: #3e4841;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.75;
}

.notes {
  padding-block: 76px 94px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 38px;
}

.note-list {
  border-top: 1px solid var(--ink);
}

.note-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 54px;
  gap: 28px;
  align-items: start;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.note-row time {
  padding-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.note-row h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0;
}

.note-row h3 a {
  text-decoration: none;
}

.note-row p {
  max-width: 640px;
  margin: 7px 0 0;
  color: var(--muted);
}

.read-link {
  padding-top: 5px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.site-footer {
  background: #202621;
  color: #dfe6e1;
}

.footer-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.article-page,
.not-found {
  min-height: calc(100vh - 182px);
}

.article-header {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: 80px 46px;
  border-bottom: 1px solid var(--line);
}

.article-header time {
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.article-header h1 {
  max-width: 720px;
  font-size: 46px;
  line-height: 1.15;
}

.article-header p {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.article-body {
  width: min(680px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: 48px 96px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.85;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body h2 {
  margin: 48px 0 16px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
}

.article-body ul {
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.back-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.not-found {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 80px;
}

.not-found .code {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 750;
}

.not-found h1 {
  font-size: 48px;
}

.not-found p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 720px) {
  .page-width,
  .header-inner,
  .hero-inner,
  .article-header,
  .article-body,
  .not-found {
    width: min(100% - 32px, var(--max-width));
  }

  .site-header {
    height: 62px;
  }

  nav {
    gap: 20px;
  }

  .hero {
    min-height: 400px;
    height: 54vh;
  }

  .hero-inner {
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p:last-child {
    font-size: 18px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 54px;
  }

  .intro p {
    font-size: 18px;
  }

  .notes {
    padding-block: 54px 70px;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 26px;
  }

  .note-row h3 {
    font-size: 23px;
  }

  .read-link {
    margin-top: 6px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .article-header {
    padding-block: 58px 38px;
  }

  .article-header h1,
  .not-found h1 {
    font-size: 36px;
  }

  .article-body {
    padding-block: 38px 70px;
    font-size: 18px;
  }
}
