html {
  color-scheme: light;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8f4ec;
  color: #24302a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.hero {
  min-height: 72vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #dbe9d0;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 244, 236, .96) 0%, rgba(248, 244, 236, .76) 38%, rgba(248, 244, 236, .08) 72%);
}

.hero-text {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin: 0 auto 8vh max(18px, 7vw);
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #6a3d2f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: .92;
  letter-spacing: 0;
  color: #21392d;
}

.hero-text p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #32453b;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.actions a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #7b4b38;
  border-radius: 6px;
  background: #7b4b38;
  color: #fffaf0;
  font-weight: 750;
  text-decoration: none;
}

.actions a:nth-child(2),
.text-link {
  background: rgba(255, 250, 240, .82);
  color: #6a3d2f;
}

main {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 820px);
  gap: clamp(24px, 5vw, 72px);
  width: min(1220px, calc(100% - 32px));
  margin: 46px auto 72px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 18px;
  border-left: 4px solid #a95843;
  background: #fffaf0;
  box-shadow: 0 18px 45px rgba(49, 61, 47, .08);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #6a3d2f;
}

.toc nav {
  display: grid;
  gap: 8px;
}

.toc a {
  color: #244f3d;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.toc .text-link {
  margin-top: 18px;
}

.draft {
  min-width: 0;
  padding-bottom: 24px;
}

.draft-note {
  margin: 0 0 32px;
  padding: 14px 16px;
  border-left: 4px solid #d5a13b;
  background: #fffaf0;
  color: #4f4637;
}

.review-box {
  margin: 0 0 44px;
  padding: 22px 24px;
  border: 1px solid #d7c5ad;
  border-left: 6px solid #244f3d;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 18px 45px rgba(49, 61, 47, .08);
}

.review-box h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.review-box p {
  margin-bottom: 14px;
}

.review-box ul {
  margin-bottom: 0;
}

.draft h2,
.draft h3 {
  color: #21392d;
  letter-spacing: 0;
}

.draft h2 {
  margin: 56px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.draft h3 {
  margin: 30px 0 12px;
  font-size: 1.35rem;
}

.draft p,
.draft li {
  font-size: 1.08rem;
}

.draft p {
  margin: 0 0 1.1rem;
}

.draft blockquote {
  margin: 28px 0;
  padding: 2px 0 2px 20px;
  border-left: 5px solid #a95843;
  color: #4b3f36;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.draft hr {
  margin: 46px 0 20px;
  border: 0;
  border-top: 1px solid #ddcfbb;
}

.draft ul {
  padding-left: 1.25rem;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #ede2d2;
}

footer {
  padding: 28px 18px 42px;
  background: #24302a;
  color: #fffaf0;
  text-align: center;
}

footer p {
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .hero {
    min-height: 68vh;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(248, 244, 236, .98) 0%, rgba(248, 244, 236, .84) 42%, rgba(248, 244, 236, .12) 80%);
  }

  .hero img {
    object-position: 58% center;
  }

  .hero-text {
    margin: 0 auto 24px;
  }

  main {
    display: block;
    width: min(100% - 28px, 820px);
    margin-top: 28px;
  }

  .toc {
    position: static;
    margin-bottom: 28px;
  }
}

.hero { min-height: 450px; }
.hero-text { margin-bottom: 40px; }
.hero h1 { font-size: 64px; }
.hero-text p:not(.eyebrow) { font-size: 1.2rem; }
.eyebrow { letter-spacing: 0; }
.draft { max-width: 70ch; font-family: Georgia, serif; line-height: 1.75; }
.draft p, .draft li { font-size: 1.2rem; }
.draft h2 { font-size: 2rem; }
.toc { max-height: calc(100vh - 36px); overflow: auto; }
:focus-visible { outline: 3px solid #a95843; outline-offset: 3px; }

@media (max-width: 820px) {
  .hero { min-height: 380px; }
  .hero img { object-position: 72% center; }
  .hero h1 { font-size: 44px; }
  .hero-text { margin-bottom: 14px; }
  .toc { max-height: none; }
  .draft h2 { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
