:root {
  --bg: #f3ede6;
  --surface: rgba(255, 252, 248, 0.9);
  --surface-strong: #fffdf9;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #2b231e;
  --muted: #6f6259;
  --line: rgba(90, 67, 47, 0.12);
  --line-strong: rgba(90, 67, 47, 0.2);
  --accent: #8f6647;
  --accent-strong: #6f4e34;
  --accent-soft: #eadfcf;
  --shadow: 0 20px 48px rgba(45, 30, 20, 0.08);
  --shadow-soft: 0 10px 24px rgba(45, 30, 20, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(234, 223, 208, 0.92), transparent 28%),
    linear-gradient(180deg, #efe7dc 0%, #f7f2eb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.6)),
    url("./images/hero-sky.jpg") center top / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

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

a {
  color: inherit;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 18px auto 48px;
  padding: 22px;
  background: rgba(250, 247, 242, 0.94);
  border: 1px solid rgba(111, 78, 52, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(143, 102, 71, 0.32);
  background:
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)),
    url("./images/magnolia-icon-single.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.58);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.eyebrow,
.meta-label,
.pill,
.small-note {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.brand-title,
h1,
h2,
h3,
h4,
.quote-text,
.timeline-year {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.brand-title {
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
}

main {
  display: grid;
  gap: 28px;
  padding-top: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(118deg, rgba(248, 241, 232, 0.88) 8%, rgba(248, 241, 232, 0.72) 52%, rgba(249, 244, 237, 0.52) 100%),
    url("./images/hero-sky.jpg") center / cover no-repeat;
  border: 1px solid rgba(111, 78, 52, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.56), transparent 22%),
    linear-gradient(90deg, rgba(255, 248, 241, 0.08), rgba(255, 248, 241, 0)),
    url("./images/magnolia.jpg") right center / 46% auto no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -4% -8% auto;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0) 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.65rem, 4.3vw, 3.7rem);
  line-height: 0.96;
  font-weight: 600;
}

.hero-intro {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 54ch;
}

.hero-quote {
  margin: 0;
  max-width: 52ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--accent-strong);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(111, 78, 52, 0.14);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #fffdfb;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-strong);
  border-color: rgba(111, 78, 52, 0.18);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(111, 78, 52, 0.1);
  box-shadow: var(--shadow-soft);
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.hero-panel img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
}

.hero-panel p,
.section-intro,
.card p,
.feature-card p,
.book-copy p,
.study-copy p,
.bio-copy p,
.contact-card p,
.text-block p,
.footer-note {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.card,
.feature-card,
.info-panel,
.quote-card,
.book-entry,
.study-entry,
.timeline-card,
.contact-card,
.text-block,
.meta-panel {
  background: var(--surface-soft);
  border: 1px solid rgba(111, 78, 52, 0.08);
  border-radius: var(--radius-lg);
}

.section {
  display: grid;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 0.98;
  font-weight: 600;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.feature-card,
.info-panel,
.quote-card,
.timeline-card,
.contact-card,
.text-block {
  padding: 20px;
}

.feature-card img,
.book-cover,
.study-cover {
  width: 100%;
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  object-fit: contain;
  object-position: center top;
  background: #fff;
  box-shadow: 0 8px 18px rgba(45, 30, 20, 0.07);
}

.feature-card {
  display: grid;
  gap: 14px;
}

.feature-card h3,
.card h3,
.book-copy h3,
.study-copy h3,
.contact-card h3,
.text-block h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.02;
  font-weight: 600;
}

.card-list {
  display: grid;
  gap: 12px;
}

.card-list li,
.meta-list li,
.link-list li,
.theme-list li {
  color: var(--muted);
  line-height: 1.65;
}

.quote-card {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(rgba(255, 250, 245, 0.92), rgba(255, 250, 245, 0.92)),
    url("./images/blossom.jpg") center / cover no-repeat;
}

.quote-text {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
  font-weight: 500;
}

.inline-link {
  color: var(--accent-strong);
  text-decoration-color: rgba(111, 78, 52, 0.3);
}

.book-entry,
.study-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
}

.study-entry-wide {
  grid-template-columns: minmax(0, 1fr);
}

.book-copy,
.study-copy {
  display: grid;
  gap: 14px;
}

.study-entry-wide .study-copy {
  max-width: 980px;
}

.study-entry-wide .quote-card {
  max-width: 760px;
}

.download-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(111, 78, 52, 0.14);
  background: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.08em;
}

.meta-list,
.link-list,
.theme-list {
  margin: 0;
  padding-left: 18px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meta-panel {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.meta-panel strong {
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.timeline-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.timeline-year {
  font-size: 2rem;
  line-height: 1;
}

.page-intro {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(249, 244, 237, 0.94), rgba(249, 244, 237, 0.82)),
    url("./images/hero-sky.jpg") center / cover no-repeat;
  border: 1px solid rgba(111, 78, 52, 0.08);
}

.page-intro h1 {
  font-size: clamp(2.9rem, 5vw, 4rem);
  line-height: 0.98;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.page-layout {
  display: grid;
  gap: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text);
}

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

@media (max-width: 1100px) {
  .hero-grid,
  .section-split,
  .book-entry,
  .study-entry {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel-grid {
    grid-template-columns: 108px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 18px, var(--content-width));
    margin: 10px auto 28px;
    padding: 16px;
    border-radius: 20px;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand-title {
    font-size: 1.6rem;
  }

  .hero,
  .page-intro {
    padding: 22px;
    border-radius: 20px;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(2.4rem, 10vw, 3rem);
  }

  .card-grid,
  .timeline,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel-grid {
    grid-template-columns: 1fr;
  }

  .hero-quote {
    font-size: 1.25rem;
  }

  .book-entry,
  .study-entry,
  .card,
  .feature-card,
  .info-panel,
  .quote-card,
  .timeline-card,
  .contact-card,
  .text-block {
    border-radius: 18px;
  }
}
