:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #1f2524;
  --muted: #65706d;
  --line: #d8d0c4;
  --accent: #34236f;
  --accent-soft: #e9e5f3;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

body, input, textarea, select, button { font-size: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  /* Solid background for Safari reliability. */
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .02em;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.hero {
  display: block;
  min-height: 74vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  gap: 64px;
  align-items: center;
  padding: 92px 0 80px;
}

.hero.simple { min-height: 0; grid-template-columns: 1fr; max-width: 840px; }

.kicker {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 22px;
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(46px, 8vw, 96px); letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.035em; margin-bottom: 26px; }
h3 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 12px; }

.subtitle {
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 26px;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
  color: var(--accent);
}

.lead {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.34;
  max-width: 860px;
}

.copy { max-width: 760px; }
.copy p, .text-block p, .essay p { margin: 0 0 18px; }

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section.compact { padding: 52px 0; }

.grid-2 {
  display: block;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
}

.cards {
  display: block;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 220px;
}

.card p { color: var(--muted); margin-bottom: 0; }

.list {
  padding-left: 0;
  list-style: none;
  margin: 20px 0 0;
}

.list li {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.quote {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -.035em;
  max-width: 900px;
}

.cta {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: .02em;
}

.cta:hover { background: var(--accent-soft); }


.hero-image {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center top;
}

.image-placeholder {
  background: linear-gradient(135deg, var(--accent-soft), #f2ece4);
  border: 1px solid var(--line);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.small-placeholder { min-height: 260px; }

.footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding: 34px 28px 46px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.form {
  display: block;
  max-width: 720px;
  display: grid;
  gap: 18px;
}

label { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 15px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
}
textarea { min-height: 190px; resize: vertical; }
button {
  justify-self: start;
  border: 1px solid var(--accent);
  background: transparent;
  padding: 12px 18px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
button:hover { background: var(--accent-soft); }

.essay-list { display: grid; gap: 18px; }
.essay-link {
  display: block;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.essay-link span { color: var(--muted); display: block; margin-top: 8px; }

@media (max-width: 820px) {
  .sources-layout { grid-template-columns: 1fr; gap: 28px; }
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; gap: 14px; }
  .hero, .grid-2 { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 58px; }
  .cards { grid-template-columns: 1fr; }
  .image-placeholder { min-height: 300px; }
  .hero-image img { min-height: 300px; }
}


/* Safari / older browser fallbacks */
@supports not (display: grid) {
  .hero, .grid-2, .cards, .form, .essay-list { display: block; }
  .card, .hero-image, .image-placeholder { margin-bottom: 24px; }
}

.email-link, .phone-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 35, 111, .28);
}

.email-link:hover, .phone-link:hover {
  border-bottom-color: var(--accent);
}

.form-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
}


.intro-copy {
  margin-bottom: 30px;
}


.calligraphy-figure {
  margin: 12px 0 20px;
  text-align: center;
}

.calligraphy-figure img {
  display: block;
  width: min(100%, 320px);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.calligraphy-figure figcaption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}


.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(101,112,109,.25);
}

.footer a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.legal h2 {
  margin-top: 44px;
  font-size: clamp(28px, 4vw, 42px);
}

.legal h3 {
  margin-top: 28px;
  font-size: 24px;
}

.legal ul {
  margin-top: 0;
}

.legal li {
  margin-bottom: 8px;
}


.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 48px;
  align-items: start;
  margin-bottom: 34px;
}

.sources-layout .intro-copy {
  margin-bottom: 0;
}

.sources-cards {
  margin-top: 0;
}


/* Updated sources layout */
.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px);
  gap: 34px;
  align-items: start;
  margin-bottom: 28px;
}

.sources-layout .intro-copy {
  margin-bottom: 0;
}

.calligraphy-figure {
  margin: 0;
  text-align: center;
  justify-self: end;
  max-width: 220px;
}

.calligraphy-figure img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  object-fit: contain;
}

.calligraphy-figure figcaption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 820px) {
  .sources-layout {
    grid-template-columns: 1fr;
  }

  .calligraphy-figure {
    justify-self: start;
    max-width: 180px;
  }

  .calligraphy-figure img {
    max-width: 150px;
  }
}


.page-label {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 24px;
}

.closing-cta {
  padding-top: 58px;
}


/* Final visibility fixes */
.home-topic,
.page-label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.15;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 400;
}

.home-topic {
  max-width: 780px;
}

.hero.simple .page-label {
  margin-bottom: 30px;
}

.cta,
.cta-visible {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 22px;
  border: 1.5px solid var(--accent);
  color: var(--paper);
  background: var(--accent);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: .02em;
  line-height: 1.2;
}

.cta:hover,
.cta-visible:hover {
  background: transparent;
  color: var(--accent);
}

.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px !important;
  gap: 24px !important;
  align-items: start;
  margin-bottom: 28px !important;
}

.calligraphy-figure {
  margin: 0 !important;
  max-width: 120px !important;
  width: 120px !important;
  justify-self: end !important;
  text-align: center;
}

.calligraphy-figure img {
  display: block !important;
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border: 1px solid var(--line);
  background: var(--paper);
}

.calligraphy-figure figcaption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px !important;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 820px) {
  .home-topic,
  .page-label {
    font-size: clamp(24px, 7vw, 34px);
  }

  .sources-layout {
    grid-template-columns: 1fr !important;
  }

  .calligraphy-figure {
    justify-self: start !important;
    width: 110px !important;
    max-width: 110px !important;
  }

  .calligraphy-figure img {
    width: 110px !important;
    max-width: 110px !important;
  }
}


/* Final calligraphy size correction */
.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px !important;
  gap: 20px !important;
  align-items: start !important;
  margin-bottom: 28px !important;
}

.calligraphy-small {
  margin: 0 !important;
  padding: 0 !important;
  width: 92px !important;
  max-width: 92px !important;
  min-width: 0 !important;
  justify-self: end !important;
  text-align: center !important;
}

.calligraphy-small img {
  display: block !important;
  width: 92px !important;
  max-width: 92px !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: 220px !important;
  object-fit: contain !important;
  object-position: center top !important;
  border: 1px solid var(--line);
  background: var(--paper);
}

.calligraphy-small figcaption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px !important;
  line-height: 1.25 !important;
  color: var(--muted);
  margin-top: 7px !important;
}

@media (max-width: 820px) {
  .sources-layout {
    grid-template-columns: 1fr !important;
  }

  .calligraphy-small {
    width: 82px !important;
    max-width: 82px !important;
    justify-self: start !important;
  }

  .calligraphy-small img {
    width: 82px !important;
    max-width: 82px !important;
  }
}


/* Verified calligraphy correction: image is very tall, so size by height, not width. */
.sources-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 92px !important;
  gap: 18px !important;
  align-items: start !important;
  margin-bottom: 26px !important;
}

.calligraphy-compact {
  margin: 0 !important;
  padding: 0 !important;
  justify-self: end !important;
  width: 92px !important;
  max-width: 92px !important;
  text-align: center !important;
}

.calligraphy-compact img {
  display: block !important;
  height: 170px !important;
  width: auto !important;
  max-width: 92px !important;
  object-fit: contain !important;
  object-position: center top !important;
  border: 1px solid var(--line);
  background: var(--paper);
  margin: 0 auto !important;
}

.calligraphy-compact figcaption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px !important;
  line-height: 1.25 !important;
  color: var(--muted);
  margin-top: 7px !important;
}

@media (max-width: 820px) {
  .sources-layout {
    grid-template-columns: 1fr !important;
  }

  .calligraphy-compact {
    justify-self: start !important;
    width: 82px !important;
    max-width: 82px !important;
  }

  .calligraphy-compact img {
    height: 150px !important;
    max-width: 82px !important;
  }
}


/* Final calligraphy size: roughly double the previous verified small version. */
.sources-layout {
  grid-template-columns: minmax(0, 1fr) 184px !important;
}

.calligraphy-compact {
  width: 184px !important;
  max-width: 184px !important;
}

.calligraphy-compact img {
  height: 340px !important;
  width: auto !important;
  max-width: 184px !important;
}

@media (max-width: 820px) {
  .calligraphy-compact {
    width: 164px !important;
    max-width: 164px !important;
  }

  .calligraphy-compact img {
    height: 300px !important;
    max-width: 164px !important;
  }
}


.book-feature,
.download-feature {
  background: rgba(255, 253, 248, 0.45);
}

.small-label {
  font-size: clamp(16px, 1.8vw, 22px);
  margin-bottom: 16px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.checkbox-row input {
  width: auto;
  margin-top: 3px;
}

.checkbox-row label {
  font-size: 15px;
  line-height: 1.45;
}


/* Homepage heading alignment */
.hero .subtitle,
.lead {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -.035em;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--accent);
}


.external-feature {
  background: rgba(255, 253, 248, 0.45);
}


.hero-copy {
  max-width: 760px;
  margin-top: 22px;
  font-size: 21px;
  line-height: 1.42;
  color: var(--ink);
}


.lang-switch {
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent) !important;
  background: rgba(255, 253, 248, 0.55);
}

.lang-switch:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
