:root {
  --bg: #ede2cf;
  --paper: rgba(250, 244, 232, 0.9);
  --paper-strong: #f8f0e1;
  --ink: #2f2217;
  --muted: #6a5746;
  --line: rgba(47, 34, 23, 0.14);
  --sand: #d3b48a;
  --sand-deep: #b48857;
  --stone: #9d8d78;
  --stone-deep: #6f6251;
  --accent: #7b6343;
  --shadow: 0 24px 70px rgba(64, 42, 21, 0.14);
  --r-lg: 26px;
  --r-md: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 244, 221, 0.58), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(210, 180, 139, 0.22), transparent 24%),
    linear-gradient(180deg, #efe6d7 0%, #e6d8c3 56%, #dbc8af 100%);
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.75;
  padding: 1.4rem clamp(1.1rem, 4vw, 2.6rem) 3rem;
  overflow-x: hidden;
}

.grain,
.sunwash {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(47, 34, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 34, 23, 0.025) 1px, transparent 1px);
  background-size: 5px 5px;
}

.sunwash {
  background: radial-gradient(circle at 70% 18%, rgba(255, 231, 182, 0.18), transparent 28%);
}

.topbar,
.page {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(248, 240, 225, 0.9);
  border: 1px solid rgba(47, 34, 23, 0.12);
  box-shadow: 0 10px 30px rgba(64, 42, 21, 0.12);
  color: var(--accent);
}

.top-links,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav-link,
.btn {
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(250, 244, 232, 0.78);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(64, 42, 21, 0.08);
  font-weight: 700;
}

.nav-link.warm {
  background: #e7d3b6;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
}

.hero,
.poem-layout,
.reading-grid,
.fragment-grid {
  display: grid;
  gap: 1.2rem;
}

.hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.95fr);
  align-items: stretch;
  margin-bottom: 1.8rem;
}

.hero-copy,
.artifact-card,
.poem-card,
.note-card,
.reading-card,
.fragment-card,
.closing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.hero-copy,
.artifact-card,
.poem-card,
.closing-card {
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.eyebrow,
.artifact-label,
.note-kicker,
.fragment-title {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.98;
  max-width: 10ch;
  margin: 0.75rem 0 1rem;
}

.lede,
.artifact-note,
.note-card p,
.reading-card p,
.fragment-copy,
.closing-copy {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.25rem;
  border-radius: 14px;
  font-weight: 800;
}

.btn.primary {
  background: #7b6343;
  color: #f8f0e1;
  box-shadow: 0 18px 36px rgba(91, 63, 34, 0.2);
}

.btn.ghost {
  background: rgba(250, 244, 232, 0.82);
  color: var(--ink);
  border-color: var(--line);
}

.nav-link:hover,
.btn:hover {
  transform: translateY(-1px);
}

.artifact-card {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.96), rgba(240, 228, 208, 0.92));
}

.monument {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f6e8cf 0%, #efddbf 48%, #d8bea1 100%);
  border: 1px solid rgba(47, 34, 23, 0.08);
}

.sun {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  top: 38px;
  right: 48px;
  background: rgba(255, 230, 173, 0.55);
  box-shadow: 0 0 0 22px rgba(255, 230, 173, 0.12);
}

.plinth {
  position: absolute;
  left: 23%;
  right: 19%;
  bottom: 86px;
  height: 64px;
  background:
    linear-gradient(180deg, #b8a691 0%, #8f7d68 100%);
  border-radius: 8px;
  transform: skewX(-12deg);
  box-shadow: inset 0 -10px 18px rgba(47, 34, 23, 0.12);
}

.shard {
  position: absolute;
  background:
    linear-gradient(180deg, #bba996 0%, #7e6d59 100%);
  box-shadow: 0 20px 30px rgba(47, 34, 23, 0.16);
}

.shard-a {
  width: 66px;
  height: 182px;
  left: 30%;
  bottom: 138px;
  clip-path: polygon(18% 0, 84% 5%, 100% 100%, 0 100%);
  transform: rotate(-2deg);
}

.shard-b {
  width: 126px;
  height: 98px;
  left: 46%;
  bottom: 118px;
  clip-path: polygon(12% 24%, 100% 0, 86% 100%, 0 88%);
  transform: rotate(7deg);
}

.shard-c {
  width: 74px;
  height: 48px;
  right: 17%;
  bottom: 124px;
  clip-path: polygon(0 30%, 88% 0, 100% 100%, 12% 100%);
  transform: rotate(-9deg);
}

.sand-ridge {
  position: absolute;
  left: -4%;
  right: -4%;
  border-radius: 50%;
  background: rgba(198, 160, 113, 0.52);
}

.ridge-a {
  height: 96px;
  bottom: 26px;
}

.ridge-b {
  height: 72px;
  bottom: -6px;
  background: rgba(172, 132, 84, 0.38);
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2,
.closing-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  margin-top: 0.35rem;
}

.section-head.narrow h2 {
  max-width: 12ch;
}

.poem-section,
.reading-section,
.fragments-section {
  margin-bottom: 1.7rem;
}

.poem-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.8fr);
  align-items: start;
}

.poem-card {
  background:
    linear-gradient(180deg, rgba(251, 246, 237, 0.98), rgba(241, 232, 217, 0.96));
}

.poem-card p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  line-height: 1.46;
}

.poem-card p + p {
  margin-top: 0.28rem;
}

.poem-card .inscription {
  padding-left: 1rem;
  color: var(--accent);
}

.margin-notes {
  display: grid;
  gap: 1rem;
}

.note-card {
  padding: 1.2rem 1.15rem;
  border-radius: var(--r-md);
}

.note-card h3 {
  font-size: 1.7rem;
  margin: 0.35rem 0;
}

.reading-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reading-card,
.fragment-card {
  padding: 1.2rem 1.15rem;
}

.reading-index {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-weight: 800;
  color: var(--sand-deep);
}

.reading-card h3 {
  font-size: 1.7rem;
  line-height: 1.02;
  margin-bottom: 0.5rem;
}

.fragment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fragment-card {
  background: rgba(248, 240, 225, 0.86);
  border-radius: var(--r-md);
}

.fragment-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.fragment-card summary::-webkit-details-marker {
  display: none;
}

.fragment-title {
  margin-bottom: 0.5rem;
}

.fragment-prompt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fragment-card .fragment-copy {
  margin-top: 0.8rem;
}

.fragment-card[open] .fragment-prompt {
  color: var(--accent);
}

.closing-card {
  text-align: left;
}

.closing-copy {
  max-width: 60ch;
  margin: 0.8rem 0 1.2rem;
}

@media (max-width: 980px) {
  .hero,
  .poem-layout,
  .reading-grid,
  .fragment-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .section-head.narrow h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 1rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-links,
  .hero-actions {
    width: 100%;
  }

  .top-links a,
  .hero-actions a {
    width: 100%;
  }

  .monument {
    min-height: 300px;
  }

  .sun {
    width: 92px;
    height: 92px;
    right: 30px;
  }

  .poem-card p {
    font-size: 1.22rem;
  }
}
