@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap");

:root {
  color-scheme: light;
  --gold: #b7945a;
  --gold-light: #d4bc8a;
  --blue: #6c7f9a;
  --green: #7d8669;
  --terra: #b9897e;
  --cream: #f4eee3;
  --warm: #faf6ee;
  --dark: #2f2a26;
  --muted: rgba(47, 42, 38, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  font-family: "Inter", system-ui, sans-serif;
  background: var(--cream);
}

a {
  color: inherit;
}

.shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(244, 238, 227, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(183, 148, 90, 0.12), 0 8px 32px rgba(47, 42, 38, 0.06);
}

.site-header__accent {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(183, 148, 90, 0.38) 18%, var(--gold) 50%, rgba(183, 148, 90, 0.38) 82%, transparent 100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.site-brand {
  text-decoration: none;
}

.site-brand__title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--dark);
  line-height: 1;
}

.site-brand__status {
  display: block;
  margin-top: 6px;
  color: rgba(183, 148, 90, 0.67);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

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

.site-nav a {
  padding: 4px 20px;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.site-nav a:hover,
.site-footer__menu a:hover,
.site-footer__legal a:hover,
.doc-actions a:hover,
.doc-aside a:hover {
  opacity: 0.55;
}

.site-nav__sep {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  opacity: 0.45;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpolygon points='5,0 6.2,3.8 10,5 6.2,6.2 5,10 3.8,6.2 0,5 3.8,3.8' fill='%23B7945A'/%3E%3C/svg%3E")
    center / 7px 7px no-repeat;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.site-cta:hover {
  opacity: 0.65;
}

.doc-main {
  padding-top: 92px;
}

.doc-section--hero {
  background: var(--cream);
  padding: 44px 0 40px;
}

.doc-section--content {
  background: var(--warm);
  padding: 0 0 88px;
}

.chapter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.chapter-label__num {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.chapter-label__line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.chapter-label__text {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.doc-hero__intro {
  max-width: 760px;
}

.doc-title {
  margin: 0 0 24px;
  color: var(--dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
}

.doc-lead {
  margin: 0 0 34px;
  max-width: 620px;
  color: var(--terra);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-style: italic;
  line-height: 1.6;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.doc-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.doc-actions__primary {
  background: var(--gold);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.doc-actions__secondary {
  border: 1px solid rgba(47, 42, 38, 0.26);
  color: var(--dark);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
  padding-top: 56px;
}

.doc-article {
  max-width: 760px;
}

.doc-article h2 {
  margin: 0 0 14px;
  color: var(--dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.doc-article p,
.doc-article li {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.doc-article ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.doc-article strong {
  color: var(--dark);
}

.doc-aside__card {
  position: sticky;
  top: 116px;
  padding: 28px;
  background: rgba(183, 148, 90, 0.08);
  border-top: 2px solid var(--gold);
}

.doc-aside__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.doc-aside__title {
  margin: 0 0 14px;
  color: var(--dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.doc-aside p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.doc-aside a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.doc-aside__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.site-footer {
  background: var(--warm);
  border-top: 1px solid rgba(183, 148, 90, 0.15);
}

.site-footer__accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 148, 90, 0.38), transparent);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 0;
}

.site-footer__brand-title {
  margin: 0 0 10px;
  color: var(--dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.site-footer__brand-meta {
  display: block;
  margin-bottom: 4px;
  color: rgba(47, 42, 38, 0.7);
  font-size: 0.75rem;
}

.site-footer__brand-tagline {
  display: block;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.8rem;
  font-style: italic;
}

.site-footer__menu {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.site-footer__menu a {
  color: rgba(47, 42, 38, 0.88);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

.site-footer__contact {
  text-align: right;
}

.site-footer__email {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.72rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.site-footer__legal a {
  color: rgba(47, 42, 38, 0.72);
  text-decoration: none;
  font-size: 0.68rem;
  transition: opacity 0.3s ease;
}

.site-footer__copy {
  color: rgba(47, 42, 38, 0.5);
  font-size: 0.68rem;
}

@media (max-width: 1100px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .doc-aside__card {
    position: static;
  }
}

@media (max-width: 860px) {
  .shell {
    padding: 0 24px;
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .site-footer__menu,
  .site-footer__legal {
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-nav a {
    padding: 4px 0;
  }

  .site-nav__sep {
    display: none;
  }

  .site-cta,
  .doc-actions a {
    width: 100%;
  }

  .doc-main {
    padding-top: 124px;
  }

  .doc-section--hero {
    padding: 28px 0 28px;
  }

  .doc-layout {
    padding-top: 40px;
  }

  .site-footer__contact {
    text-align: left;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }
}
