:root {
  --bg: #f4efe4;
  --paper: rgba(255, 250, 242, 0.82);
  --paper-strong: #fffaf2;
  --ink: #2f261d;
  --muted: #6f6253;
  --accent: #a94f2d;
  --accent-dark: #7f3419;
  --line: rgba(68, 47, 28, 0.14);
  --shadow: 0 24px 60px rgba(67, 46, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(211, 117, 63, 0.22), transparent 32%),
    radial-gradient(circle at right center, rgba(141, 85, 52, 0.14), transparent 28%),
    linear-gradient(180deg, #f9f3e8 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 70%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero,
.panel,
.highlights article {
  backdrop-filter: blur(10px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 79, 45, 0.32), transparent 68%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.crest,
.eyebrow,
.section-tag,
.timeline span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.crest {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.hero-copy {
  max-width: 720px;
  padding: 72px 0 54px;
}

.eyebrow,
.section-tag {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  max-width: 8ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.intro,
.section-copy,
.message-card p,
.timeline p,
.highlights p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.intro {
  max-width: 54ch;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fffaf4;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.button-secondary,
.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover,
.button-ghost:hover,
.button-secondary:focus-visible,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.6);
}

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

.highlights article,
.panel {
  border-radius: 24px;
  padding: 24px;
}

.panel + .panel {
  margin-top: 22px;
}

.two-column,
.share-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
}

.updates-feed {
  display: grid;
  gap: 16px;
}

.message-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--paper-strong);
  border: 1px solid rgba(78, 56, 36, 0.1);
}

.message-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.message-card strong {
  font-size: 1rem;
}

.message-card time {
  color: var(--muted);
  font-size: 0.88rem;
}

.topic {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(169, 79, 45, 0.1);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 600;
}

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

.timeline article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

.timeline span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.committee-panel {
  display: grid;
  gap: 22px;
}

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

.committee-grid article {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.committee-grid p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.family-tree-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.family-tree-card {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(244, 233, 216, 0.88));
  border: 1px solid var(--line);
}

.family-tree-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.family-tree-image {
  display: block;
  width: 100%;
  margin-top: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.photo-selection-panel {
  display: grid;
  gap: 22px;
}

.logo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.logo-card {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(242, 228, 208, 0.88));
  border: 1px solid var(--line);
}

.logo-card picture,
.logo-card img {
  display: block;
  width: 100%;
}

.logo-card img {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  aspect-ratio: 11 / 6;
  object-fit: contain;
}

.logo-card h3 {
  margin-top: 14px;
}

.vote-panel {
  display: grid;
  gap: 22px;
}

.vote-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.vote-form {
  display: grid;
  gap: 16px;
}

.vote-form label,
.vote-form legend {
  font-size: 0.94rem;
  font-weight: 600;
}

.vote-options {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 14px;
}

.vote-option-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(79, 58, 40, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.vote-option-card input {
  margin: 0;
}

.vote-option-title {
  font-weight: 700;
}

.vote-option-copy {
  color: var(--muted);
  line-height: 1.6;
}

.vote-results {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(244, 233, 216, 0.88));
  border: 1px solid var(--line);
}

.vote-results-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.vote-result-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 58, 40, 0.12);
}

.vote-result-card strong {
  display: block;
  margin-bottom: 8px;
}

.vote-result-card span {
  color: var(--muted);
}

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

.tree-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.tree-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.trivia-panel {
  display: grid;
  gap: 22px;
}

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

.trivia-grid article {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(248, 239, 226, 0.86));
  border: 1px solid var(--line);
}

.trivia-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(127, 52, 25, 0.1);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trivia-grid p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.message-form {
  display: grid;
  gap: 16px;
}

.message-form label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid rgba(79, 58, 40, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.message-form input:focus,
.message-form textarea:focus {
  outline: 2px solid rgba(169, 79, 45, 0.2);
  border-color: rgba(169, 79, 45, 0.45);
}

@media (max-width: 900px) {
  .highlights,
  .two-column,
  .family-tree-panel,
  .logo-gallery,
  .vote-layout,
  .share-grid,
  .timeline,
  .committee-grid,
  .trivia-grid,
  .tree-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 56px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .hero,
  .panel,
  .highlights article {
    border-radius: 20px;
  }

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

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }
}
