:root {
  --color-background: #F7F1E6;
  --color-text: #1F1F1F;
  --color-accent: #A87924;
  --color-accent-deep: #8A641B;
  --color-divider: #D8C7A3;
  --color-muted: #4B4B4B;
  --font-headline: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background: var(--color-background);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 252, 245, 0.86), rgba(247, 241, 230, 0) 420px),
    var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.page-shell {
  width: min(100% - 40px, 780px);
  margin: 0 auto;
  padding: 32px 0 18px;
}

.letter-hero {
  margin: 0 auto 34px;
  text-align: center;
}

.site-name {
  margin: 0;
  color: var(--color-accent-deep);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.top-divider,
.bottom-divider {
  width: min(100%, 640px);
  height: 1px;
  margin: 18px auto 28px;
  background: linear-gradient(90deg, transparent, var(--color-divider) 16%, var(--color-accent) 50%, var(--color-divider) 84%, transparent);
}

.letter-hero h1 {
  position: relative;
  margin: 0 auto;
  max-width: 760px;
  color: var(--color-text);
  font-family: var(--font-headline);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.letter-hero h1::after {
  content: "";
  display: block;
  width: min(58%, 420px);
  height: 2px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.letter {
  margin: 0 auto;
}

.letter p {
  margin: 0 0 1.03rem;
}

.letter > p:nth-of-type(2) {
  color: var(--color-accent-deep);
  font-weight: 600;
}

.editorial-highlight {
  position: relative;
  width: min(100%, 720px);
  margin: 2.35rem auto !important;
  padding: 0 54px;
  color: var(--color-accent-deep);
  font-family: var(--font-headline);
  font-size: 28px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.36;
  text-align: center;
}

.editorial-highlight p {
  margin: 0;
}

.editorial-highlight p + p {
  margin-top: 0.35rem;
}

.editorial-highlight::before,
.editorial-highlight::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
  background: var(--color-divider);
}

.editorial-highlight::before {
  left: 0;
}

.editorial-highlight::after {
  right: 0;
}

.final-cta {
  margin: 3.4rem auto 0;
  text-align: center;
}

.bottom-divider {
  margin-bottom: 26px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 320px;
  padding: 16px 30px;
  border: 1px solid rgba(138, 100, 27, 0.82);
  border-radius: 5px;
  background: linear-gradient(180deg, #B98425 0%, #986D1D 100%);
  box-shadow: 0 6px 14px rgba(138, 100, 27, 0.18);
  color: #fffaf0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.cta-button:hover,
.cta-button:focus {
  background: linear-gradient(180deg, #A87924 0%, #8A641B 100%);
  color: #fffaf0;
}

.cta-button:focus-visible {
  outline: 3px solid rgba(168, 121, 36, 0.35);
  outline-offset: 4px;
}

.site-footer {
  width: min(100% - 40px, 780px);
  margin: 28px auto 0;
  padding: 28px 0 34px;
  border-top: 1px solid var(--color-divider);
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.site-footer a {
  display: inline-block;
  margin: 0 11px;
  color: var(--color-muted);
}

.legal-page {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 34px 0 18px;
}

.legal-page header {
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-divider);
  text-align: center;
}

.legal-page h1 {
  margin: 14px 0 0;
  font-family: var(--font-headline);
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-page h2 {
  margin: 2rem 0 0.7rem;
  color: var(--color-accent-deep);
  font-size: 21px;
  line-height: 1.3;
}

.legal-page p,
.legal-page li {
  color: var(--color-text);
}

.legal-page ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.legal-footer {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--color-divider);
  font-size: 15px;
}

@media (max-width: 720px) {
  body {
    font-size: 18px;
    line-height: 1.72;
  }

  .page-shell,
  .site-footer,
  .legal-page {
    width: min(100% - 28px, 780px);
  }

  .page-shell {
    padding-top: 24px;
  }

  .site-name {
    font-size: 18px;
  }

  .letter-hero h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .editorial-highlight {
    padding: 0;
    font-size: 24px;
  }

  .editorial-highlight::before,
  .editorial-highlight::after {
    display: none;
  }

  .cta-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .legal-page h1 {
    font-size: 36px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 17px;
  }

  .letter-hero h1 {
    font-size: 34px;
  }

  .editorial-highlight {
    font-size: 22px;
  }
}
