:root {
  --ink: #14211d;
  --muted: #5f6a63;
  --paper: #f7f2e9;
  --surface: #fffaf1;
  --green: #153f35;
  --green-soft: #dfe9de;
  --wine: #6f2736;
  --brass: #b98636;
  --line: #ded3c2;
  --shadow: 0 20px 50px rgba(20, 33, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--surface);
  color: var(--green);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(222, 211, 194, 0.7);
  background: rgba(247, 242, 233, 0.92);
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand span {
  min-width: 0;
}

.brand strong,
.footer-brand {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  width: 2.75rem;
  height: 2.75rem;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  margin: auto;
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-0.42rem);
}

.nav-toggle-bars::after {
  transform: translateY(0.3rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: clamp(29rem, 68vh, 44rem);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 26, 21, 0.84), rgba(12, 26, 21, 0.52) 44%, rgba(12, 26, 21, 0.1)),
    linear-gradient(0deg, rgba(12, 26, 21, 0.62), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-width: 760px;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 6vw, 5rem);
  color: #fffaf1;
}

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

.hero h1,
.page-hero h1,
.not-found h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 9vw, 6.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-deck,
.page-hero p {
  max-width: 650px;
  margin: 1.2rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--wine);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.hero-link {
  color: #fffaf1;
  margin-top: 1.6rem;
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: clamp(1rem, 5vw, 4rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
}

.intro-grid p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.intro-grid ul,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-grid li,
.check-list li {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
  color: var(--muted);
  font-weight: 700;
}

.article-shell,
.page-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.article-header {
  max-width: 820px;
}

.article-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

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

.article-body {
  max-width: 780px;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-figure {
  margin: clamp(2rem, 5vw, 3rem) 0;
}

.article-figure img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.7rem;
}

.legal-note {
  border-left: 4px solid var(--brass);
  background: var(--surface);
  padding: 1rem 1.1rem;
}

.page-hero {
  max-width: 850px;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.page-hero h1 {
  color: var(--green);
}

.content-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: start;
}

.prose h2,
.panel h2 {
  margin: 0 0 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
}

.prose p,
.panel p {
  margin: 0 0 1rem;
}

.panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: 0 10px 30px rgba(20, 33, 29, 0.08);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

label {
  color: var(--green);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(185, 134, 54, 0.55);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: #fffaf1;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button:hover {
  background: #5a1f2b;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.not-found {
  min-height: 62vh;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--green);
  color: #fffaf1;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem);
}

.site-footer p {
  max-width: 440px;
  margin: 0.35rem 0 0;
  color: rgba(255, 250, 241, 0.78);
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .brand strong {
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .hero {
    min-height: 34rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 6rem 1.25rem 3.5rem;
  }

  .hero h1 {
    max-width: 9.5ch;
    font-size: clamp(2.45rem, 11vw, 3rem);
    line-height: 1;
  }

  .hero-deck {
    max-width: 20rem;
    font-size: 1.05rem;
  }

  .page-hero h1,
  .not-found h1 {
    font-size: clamp(2.35rem, 10vw, 3.1rem);
  }

  .intro-grid p {
    font-size: clamp(1.55rem, 7vw, 1.85rem);
  }

  .article-header h2 {
    font-size: clamp(2rem, 8.5vw, 2.65rem);
    line-height: 1.04;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(12, 26, 21, 0.78), rgba(12, 26, 21, 0.36)),
      linear-gradient(90deg, rgba(12, 26, 21, 0.78), rgba(12, 26, 21, 0.22));
  }

  .intro-grid,
  .content-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.72rem;
  }
}
