:root {
  color-scheme: light;
  --ink: #111816;
  --muted: #53615d;
  --paper: #f7f4ec;
  --paper-strong: #fffdf7;
  --line: #d8d2c3;
  --green: #173d35;
  --green-dark: #0b1f1b;
  --gold: #c69345;
  --rust: #8d4f33;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(10, 24, 21, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 236, 0.92);
  border-bottom: 1px solid rgba(17, 24, 22, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper-strong);
  font-family: Georgia, serif;
  font-size: 20px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--green-dark);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper-strong);
  background: var(--green-dark);
}

.hero-small {
  min-height: 620px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(6, 13, 12, 0.94),
      rgba(6, 13, 12, 0.78) 40%,
      rgba(6, 13, 12, 0.28) 72%,
      rgba(6, 13, 12, 0.08)
    ),
    linear-gradient(0deg, rgba(6, 13, 12, 0.38), rgba(6, 13, 12, 0.04)),
    url("/assets/photos/bernard-golf.jpg");
  background-size:
    100% 100%,
    100% 100%,
    auto 100%;
  background-position:
    center,
    center,
    right center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(88px, 14vh, 168px) 0 clamp(52px, 9vh, 92px);
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(52px, 12vw, 120px);
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.intro {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--gold);
  color: #18100a;
}

.button-secondary {
  color: var(--paper-strong);
  border-color: rgba(255, 253, 247, 0.4);
  background: rgba(255, 253, 247, 0.08);
}

.section {
  padding: clamp(70px, 10vw, 132px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.notice-band {
  background: var(--green);
  color: var(--paper-strong);
  padding: 44px 0;
}

.notice-layout {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

blockquote {
  margin: 0;
  max-width: 880px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.12;
}

.section-heading {
  max-width: 760px;
}

.section-heading p,
.story-layout p,
.contact-layout p {
  color: var(--muted);
  font-size: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 40px 0 0;
  padding: 1px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.detail-grid div {
  min-height: 142px;
  padding: 24px;
  background: var(--paper-strong);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.15;
}

.virtual-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.virtual-service-card h3 {
  margin: 8px 0 12px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
}

.virtual-service-card p {
  color: var(--muted);
  font-size: 17px;
}

.virtual-service-action {
  display: grid;
  gap: 12px;
  justify-items: start;
  min-width: 220px;
}

.virtual-service-action p {
  margin: 0;
  color: var(--green-dark);
  font-weight: 850;
}

.virtual-service-card > *,
.detail-grid > * {
  min-width: 0;
}

.memories-section {
  background: var(--paper-strong);
}

.memory-layout,
.story-layout,
.contact-layout,
.reception-layout,
.logistics-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

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

.photo-card {
  position: relative;
  min-height: 330px;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  color: var(--paper-strong);
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-card:nth-child(2) img,
.photo-card:nth-child(6) img {
  object-position: center top;
}

.photo-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 16px 16px;
  background: linear-gradient(
    180deg,
    rgba(7, 18, 16, 0),
    rgba(7, 18, 16, 0.88)
  );
  font-weight: 900;
}

.story-section {
  background: var(--green-dark);
  color: var(--paper-strong);
}

.story-section .eyebrow,
.story-section p {
  color: rgba(255, 253, 247, 0.78);
}

.contact-section {
  background: var(--paper);
}

.logistics-section,
.reception-section,
.rsvp-section {
  background: var(--paper-strong);
}

.contact-panel,
.reception-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.contact-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-number {
  display: inline-block;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  text-decoration: none;
}

.support-number {
  display: inline-block;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1;
  text-decoration: none;
}

.contact-method + .contact-method {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.contact-panel .button-secondary {
  color: var(--green-dark);
  border-color: var(--line);
  background: transparent;
}

.family-page {
  background: var(--paper-strong);
}

.family-hero {
  padding: clamp(72px, 10vw, 132px) 0;
  background:
    linear-gradient(90deg, rgba(6, 13, 12, 0.92), rgba(6, 13, 12, 0.62)),
    url("/assets/photos/bernard-golf.jpg");
  background-position: center;
  background-size: cover;
  color: var(--paper-strong);
}

.family-hero .eyebrow,
.family-hero .intro {
  color: rgba(255, 253, 247, 0.78);
}

.family-hero h1 {
  max-width: 620px;
  font-size: clamp(54px, 7vw, 112px);
}

.brochure-hero {
  background:
    linear-gradient(90deg, rgba(9, 42, 66, 0.88), rgba(109, 178, 211, 0.5)),
    url("/assets/photos/bernard-portrait.jpg");
  background-position: center;
  background-size: cover;
}

.brochure-page {
  --ink: #123142;
  --muted: #4d6978;
  --paper: #eaf7fd;
  --paper-strong: #fbfdff;
  --line: #b9d7e7;
  --green: #6fb4d6;
  --green-dark: #12384f;
  --gold: #7fbedd;
}

.brochure-page .site-header {
  background: rgba(251, 253, 255, 0.93);
}

.brochure-page .button-primary {
  background: #86c6e4;
  color: #0e2f44;
}

.brochure-page .button-secondary {
  color: var(--green-dark);
  border-color: rgba(18, 56, 79, 0.24);
  background: rgba(251, 253, 255, 0.36);
}

.brochure-page .family-access-panel,
.brochure-page .family-card {
  box-shadow: 0 20px 54px rgba(18, 56, 79, 0.14);
}

.thank-you-page {
  --ink: #123142;
  --muted: #4d6978;
  --paper: #edf8fc;
  --paper-strong: #fbfdff;
  --line: #b9d7e7;
  --green: #75b8d7;
  --green-dark: #10394f;
  --gold: #c89a3f;
}

.thank-you-page .site-header {
  background: rgba(251, 253, 255, 0.95);
}

.thank-you-hero {
  background:
    linear-gradient(90deg, rgba(7, 37, 51, 0.88), rgba(21, 74, 97, 0.52)),
    url("/assets/photos/bernard-cover-formal-enhanced.jpg");
  background-position: center 35%;
  background-size: cover;
}

.thank-you-page .button-primary {
  background: #90cde6;
  color: #0e2f44;
}

.thank-you-page .button-secondary {
  color: var(--green-dark);
  border-color: rgba(18, 56, 79, 0.24);
  background: rgba(251, 253, 255, 0.44);
}

.thank-you-preview {
  background:
    linear-gradient(180deg, rgba(237, 248, 252, 0.98), #fbfdff 42%),
    var(--paper);
  padding-bottom: clamp(52px, 8vw, 92px);
}

.thank-you-preview-heading {
  align-items: center;
}

.thank-you-public-hero {
  margin-bottom: clamp(38px, 6vw, 72px);
}

.thank-you-public-hero .section-inner {
  display: block;
}

.thank-you-letter {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: stretch;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 248, 252, 0.9)),
    var(--paper-strong);
  box-shadow: 0 22px 62px rgba(18, 56, 79, 0.16);
}

.thank-you-letter-media {
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: #d9edf6;
}

.thank-you-letter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.thank-you-letter-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thank-you-letter-copy h2,
.thank-you-memory-heading h2,
.thank-you-final-note h2 {
  margin: 8px 0 18px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
}

.thank-you-letter-copy p,
.thank-you-final-note p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}

.thank-you-signature {
  margin-top: 10px;
  color: var(--green-dark) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.25 !important;
}

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

.thank-you-card {
  box-shadow: 0 16px 40px rgba(18, 56, 79, 0.1);
}

.thank-you-memory-section {
  margin-top: 48px;
}

.thank-you-memory-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.thank-you-collage {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  grid-auto-rows: minmax(190px, 21vw);
  gap: 12px;
}

.thank-you-collage figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #d9edf6;
  box-shadow: 0 14px 32px rgba(18, 56, 79, 0.12);
}

.thank-you-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thank-you-collage-tall {
  grid-row: span 2;
}

.thank-you-collage-tall img {
  object-position: center 24%;
}

.thank-you-final-note {
  margin-top: 48px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 57, 79, 0.95), rgba(27, 91, 117, 0.92)),
    var(--green-dark);
  color: var(--paper-strong);
}

.thank-you-page .thank-you-final-note .eyebrow,
.thank-you-page .thank-you-final-note h2,
.thank-you-page .thank-you-final-note p {
  color: var(--paper-strong);
}

.scholarship-home-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: 48px;
  padding: clamp(38px, 6vw, 68px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scholarship-home-copy {
  max-width: 760px;
}

.scholarship-home-copy h2 {
  color: var(--green-dark);
  font-size: clamp(36px, 5vw, 60px);
}

.scholarship-home-copy p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.scholarship-page {
  background: var(--paper-strong);
}

.scholarship-hero {
  position: relative;
  min-height: min(720px, calc(100svh - 110px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background-image: url("/assets/photos/bernard-scholarship-formal-event.jpg");
  background-position: center 38%;
  background-size: cover;
  color: var(--paper-strong);
}

.scholarship-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 27, 38, 0.92),
      rgba(5, 27, 38, 0.75) 48%,
      rgba(5, 27, 38, 0.18) 78%
    ),
    linear-gradient(0deg, rgba(5, 27, 38, 0.82), transparent 56%);
}

.scholarship-hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(72px, 12vw, 132px);
  padding-bottom: clamp(46px, 7vw, 78px);
}

.scholarship-hero h1 {
  max-width: 780px;
  font-size: clamp(46px, 7vw, 82px);
}

.scholarship-hero .intro {
  max-width: 670px;
}

.scholarship-hero .button-secondary {
  color: var(--paper-strong);
  border-color: rgba(251, 253, 255, 0.48);
  background: rgba(5, 27, 38, 0.34);
}

.legacy-paths-section,
.legacy-faq,
.scholarship-closing {
  padding: clamp(68px, 9vw, 112px) 0;
}

.legacy-section-heading {
  max-width: 820px;
}

.legacy-section-heading h2,
.fund-flow-layout h2,
.scholarship-closing h2 {
  color: var(--green-dark);
  font-size: clamp(36px, 5vw, 62px);
}

.legacy-section-heading > p:last-child,
.fund-flow-copy,
.scholarship-closing p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.legacy-section-heading > p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
}

.legacy-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 6vw, 82px);
  margin-top: clamp(42px, 6vw, 72px);
}

.legacy-path {
  min-width: 0;
  padding-top: 28px;
  border-top: 4px solid var(--green);
}

.legacy-path-fund {
  border-top-color: var(--gold);
}

.legacy-step {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legacy-status {
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 850;
}

.legacy-status-live {
  color: #0d4c32;
  background: #dff4e8;
}

.legacy-status-review {
  color: #65440e;
  background: #f7ebcf;
}

.legacy-path h3 {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.legacy-path > p:not(.legacy-step, .legacy-status) {
  color: var(--muted);
  font-size: 18px;
}

.scholarship-facts {
  display: grid;
  grid-template-columns: 0.8fr 0.7fr 1.5fr;
  gap: 1px;
  margin: 28px 0;
  padding: 1px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
}

.scholarship-facts div {
  min-width: 0;
  padding: 16px;
  background: var(--paper);
}

.scholarship-facts dd {
  margin-top: 8px;
  font-size: clamp(20px, 2.4vw, 27px);
}

.legacy-path .button {
  margin-top: 6px;
}

.award-growth-note,
.fund-purpose-note {
  padding-left: 18px;
  border-left: 3px solid var(--green);
}

.fund-purpose-note {
  border-left-color: var(--gold);
}

.button-fund {
  color: #18100a;
  background: var(--gold);
}

.button-disabled {
  cursor: not-allowed;
  color: #5d6e75;
  border-color: #c6d5db;
  background: #e4eef2;
}

.fund-flow-section {
  padding: clamp(58px, 8vw, 92px) 0;
  background: #ddecf2;
}

.fund-flow-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.fund-flow-copy p {
  margin: 0;
}

.fund-flow-copy p + p {
  margin-top: 20px;
}

.legacy-faq {
  background: var(--paper);
}

.legacy-faq-list {
  max-width: 880px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.legacy-faq details {
  border-bottom: 1px solid var(--line);
}

.legacy-faq summary {
  position: relative;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 700;
  list-style: none;
}

.legacy-faq summary::-webkit-details-marker {
  display: none;
}

.legacy-faq summary::after {
  position: absolute;
  right: 6px;
  content: "+";
  color: var(--green-dark);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.legacy-faq details[open] summary::after {
  content: "−";
}

.legacy-faq details p {
  max-width: 760px;
  margin: -4px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.scholarship-closing {
  color: var(--paper-strong);
  background: var(--green-dark);
}

.scholarship-closing .section-inner {
  max-width: 900px;
}

.scholarship-closing h2,
.scholarship-closing p,
.scholarship-closing .text-link {
  color: var(--paper-strong);
}

.scholarship-closing p {
  max-width: 760px;
  margin: 20px 0 24px;
}

.scholarship-closing .text-link {
  text-decoration-color: var(--gold);
}

.guest-list-page {
  --ink: #123142;
  --muted: #4d6978;
  --paper: #eaf7fd;
  --paper-strong: #fbfdff;
  --line: #b9d7e7;
  --green: #6fb4d6;
  --green-dark: #12384f;
  --gold: #7fbedd;
}

.guest-list-hero {
  background:
    linear-gradient(90deg, rgba(9, 42, 66, 0.9), rgba(109, 178, 211, 0.42)),
    url("/assets/photos/bernard-golf.jpg");
  background-position: center;
  background-size: cover;
}

.family-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.family-access-panel,
.family-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.family-access-panel h2,
.family-card h3,
.family-dashboard h2 {
  margin: 8px 0 14px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

.family-access-panel h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.family-status {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.family-status-error {
  color: #9b2c2c;
}

.family-dashboard {
  background: var(--paper-strong);
}

.family-dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.family-dashboard-heading h2 {
  font-size: clamp(38px, 6vw, 68px);
}

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

.family-card h3 {
  font-size: clamp(26px, 3.6vw, 36px);
}

.family-card p,
.family-card li {
  color: var(--muted);
  font-size: 17px;
}

.family-card-wide {
  grid-column: 1 / -1;
}

.brochure-card-grid {
  align-items: start;
}

.brochure-proof-card {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: 24px;
  align-items: start;
}

.brochure-path {
  margin: 16px 0 0;
  overflow-wrap: anywhere;
  font-family:
    ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.pdf-frame {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.brochure-preview-card {
  display: grid;
  gap: 22px;
}

.brochure-preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.brochure-preview-heading p {
  max-width: 820px;
}

.brochure-spread-preview {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.brochure-approval-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.brochure-approval-grid p {
  min-height: 76px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-dark);
  font-weight: 850;
}

.layout-card-grid {
  grid-template-columns: 1fr;
}

.layout-plan-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(520px, 0.65fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.layout-plan-card > * {
  min-width: 0;
}

.layout-file-card {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(280px, 0.35fr);
  gap: 24px;
  align-items: start;
}

.layout-preview-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.venue-diagram {
  position: relative;
  min-height: 620px;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(126, 195, 223, 0.14) 0 1px, transparent 1px)
      0 0 / 40px 40px,
    linear-gradient(180deg, rgba(126, 195, 223, 0.14) 0 1px, transparent 1px)
      0 0 / 40px 40px,
    #fbfeff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.venue-diagram::before {
  content: "";
  position: absolute;
  inset: 42px 52px;
  border: 1px dashed rgba(15, 64, 85, 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.diagram-edge {
  position: absolute;
  z-index: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagram-edge-top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.diagram-edge-bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.diagram-edge-left {
  top: 50%;
  left: 8px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
}

.diagram-edge-right {
  top: 50%;
  right: 8px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
}

.venue-zone,
.guest-table {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(126, 195, 223, 0.86);
  border-radius: 8px;
  background: rgba(231, 246, 252, 0.96);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.guest-table {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 64, 85, 0.1);
}

.zone-tv,
.zone-screen {
  top: 54px;
  left: 38%;
  width: 24%;
  min-height: 58px;
  background: var(--green-dark);
  color: #ffffff;
  border-color: var(--green-dark);
}

.zone-av {
  top: 124px;
  left: 42%;
  width: 16%;
  min-height: 50px;
}

.zone-memory {
  top: 78px;
  left: 9%;
  width: 23%;
  min-height: 96px;
}

.zone-memory-alt {
  bottom: 72px;
  left: 10%;
  width: 28%;
  min-height: 100px;
}

.zone-buffet {
  top: 86px;
  right: 9%;
  width: 18%;
  min-height: 190px;
}

.zone-buffet-alt {
  top: 80px;
  right: 10%;
  width: 18%;
  min-height: 240px;
}

.zone-dessert {
  top: 300px;
  right: 9%;
  width: 18%;
  min-height: 72px;
}

.zone-dessert-alt {
  bottom: 86px;
  right: 12%;
  width: 20%;
  min-height: 74px;
}

.zone-bar {
  top: 222px;
  left: 5%;
  width: 18%;
  min-height: 80px;
  background: #f7f2e8;
  border-color: rgba(209, 156, 62, 0.7);
}

.zone-entrance {
  bottom: 72px;
  left: 43%;
  width: 15%;
  min-height: 58px;
  background: #f7f2e8;
  border-color: rgba(209, 156, 62, 0.7);
}

.zone-walkway,
.zone-open,
.zone-beam {
  z-index: 1;
  border-style: dashed;
  color: rgba(15, 64, 85, 0.55);
  background: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.zone-walkway {
  bottom: 64px;
  left: 28%;
  width: 45%;
  min-height: 74px;
}

.zone-open {
  top: 255px;
  left: 30%;
  width: 36%;
  min-height: 158px;
}

.zone-projector {
  bottom: 88px;
  left: 42%;
  width: 16%;
  min-height: 72px;
  background: #fff;
}

.zone-beam {
  top: 130px;
  left: 35%;
  width: 30%;
  min-height: 316px;
}

.table-a {
  top: 218px;
  left: 30%;
}

.table-b {
  top: 220px;
  left: 49%;
}

.table-c {
  top: 322px;
  left: 30%;
}

.table-d {
  top: 326px;
  left: 49%;
}

.table-e {
  top: 430px;
  left: 28%;
}

.table-f {
  top: 432px;
  left: 48%;
}

.table-g {
  top: 420px;
  left: 68%;
}

.table-h {
  top: 430px;
  left: 12%;
}

.venue-diagram-secondary .table-a {
  top: 205px;
  left: 28%;
}

.venue-diagram-secondary .table-b {
  top: 205px;
  left: 48%;
}

.venue-diagram-secondary .table-c {
  top: 330px;
  left: 24%;
}

.venue-diagram-secondary .table-d {
  top: 330px;
  left: 52%;
}

.venue-diagram-secondary .table-e {
  top: 448px;
  left: 42%;
}

.venue-diagram-secondary .table-f {
  top: 448px;
  left: 62%;
}

.venue-diagram-secondary .table-g {
  top: 78px;
  left: 22%;
}

.venue-diagram-secondary .table-h {
  top: 78px;
  left: 64%;
}

.venue-diagram-projector .zone-memory {
  top: 90px;
  left: 8%;
  width: 22%;
}

.venue-diagram-projector .zone-buffet {
  top: 82px;
  right: 8%;
  width: 18%;
  min-height: 220px;
}

.venue-diagram-projector .table-a {
  top: 248px;
  left: 18%;
}

.venue-diagram-projector .table-b {
  top: 248px;
  left: 68%;
}

.venue-diagram-projector .table-c {
  top: 360px;
  left: 18%;
}

.venue-diagram-projector .table-d {
  top: 360px;
  left: 68%;
}

.venue-diagram-projector .table-e {
  top: 470px;
  left: 20%;
}

.venue-diagram-projector .table-f {
  top: 470px;
  left: 62%;
}

.venue-diagram-projector .table-g {
  top: 440px;
  left: 42%;
}

.venue-diagram-projector .table-h {
  top: 250px;
  left: 42%;
}

.guest-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.guest-stat-grid div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.guest-stat-grid strong {
  display: block;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.guest-stat-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.guest-list-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.guest-list-controls label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 850;
}

.guest-list-controls input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  font: inherit;
}

.guest-list-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.guest-list-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.guest-list-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  color: var(--ink);
}

.guest-review-table {
  min-width: 920px;
}

.guest-list-table th,
.guest-list-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guest-list-table th {
  background: var(--paper);
  color: var(--green-dark);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guest-list-table td {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.guest-list-table .guest-list-number-cell {
  width: 54px;
  color: var(--green-dark);
  font-weight: 850;
  white-space: nowrap;
}

.guest-list-table .guest-list-name-cell {
  color: var(--ink);
  font-weight: 850;
}

.ops-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.ops-list li + li {
  margin-top: 10px;
}

.ops-summary-grid,
.ops-asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ops-summary-grid div,
.ops-asset-grid div {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.ops-summary-grid strong,
.ops-asset-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 15px;
}

.ops-summary-grid span,
.ops-asset-grid span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.ops-timeline {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ops-timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.ops-timeline-compact li {
  grid-template-columns: 110px minmax(0, 1fr);
}

.ops-timeline time {
  color: var(--green-dark);
  font-weight: 900;
}

.ops-timeline strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.ops-timeline span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.ops-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 18px;
}

.ops-check-grid-compact {
  margin-top: 22px;
}

.ops-check-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.ops-check-grid input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-dark);
  flex: 0 0 auto;
}

.copy-block {
  white-space: pre-line;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.logistics-list {
  display: grid;
  gap: 16px;
}

.logistics-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.logistics-card h3 {
  margin: 10px 0 12px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.logistics-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.hotel-list {
  display: grid;
  gap: 18px;
}

.hotel-list div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hotel-list h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.hotel-list p {
  margin: 0;
}

.text-link {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.reception-panel p {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.rsvp-card,
.form-frame-wrap {
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rsvp-card {
  width: min(760px, 100%);
  padding: clamp(24px, 4vw, 42px);
}

.rsvp-card h3 {
  margin: 10px 0 16px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.04;
}

.rsvp-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.rsvp-checklist {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding-left: 22px;
  color: var(--green-dark);
  font-size: 18px;
}

.form-frame {
  width: 100%;
  min-height: 2400px;
  display: block;
  border: 0;
}

.form-fallback {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 253, 247, 0.72);
  background: #071210;
}

.site-footer p {
  margin: 0;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--green-dark);
  color: var(--paper-strong);
}

.not-found {
  width: min(680px, 100%);
}

@media (max-width: 850px) {
  body {
    overflow-x: hidden;
  }

  main,
  section {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .section-inner {
    width: calc(100% - 64px);
    max-width: calc(100% - 64px);
  }

  .layout-page {
    overflow-x: hidden;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    font-size: 13px;
  }

  nav a {
    min-width: 0;
  }

  h1,
  h2,
  h3,
  p,
  dd {
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .virtual-service-card h3 {
    font-size: clamp(24px, 6.7vw, 28px);
  }

  .detail-grid dd {
    font-size: 24px;
  }

  .virtual-service-card p {
    font-size: 15px;
  }

  .virtual-service-card {
    width: 100%;
    max-width: 100%;
    padding: 22px;
  }

  .hero {
    min-height: calc(100vh - 118px);
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(6, 13, 12, 0.3), rgba(6, 13, 12, 0.92)),
      url("/assets/photos/bernard-golf.jpg");
    background-size:
      100% 100%,
      auto 100%;
    background-position:
      center,
      center bottom;
    background-repeat: no-repeat;
  }

  .notice-layout,
  .memory-layout,
  .story-layout,
  .contact-layout,
  .reception-layout,
  .logistics-layout,
  .family-hero-layout,
  .family-card-grid,
  .ops-summary-grid,
  .ops-asset-grid,
  .ops-check-grid,
  .brochure-proof-card,
  .brochure-preview-heading,
  .brochure-approval-grid,
  .virtual-service-card,
  .layout-plan-card,
  .layout-file-card,
  .guest-stat-grid,
  .guest-list-controls,
  .thank-you-letter,
  .thank-you-card-grid,
  .thank-you-collage,
  .scholarship-home-band,
  .legacy-paths,
  .fund-flow-layout {
    grid-template-columns: 1fr;
  }

  .public-memorial-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thank-you-letter {
    padding: 22px;
  }

  .thank-you-letter-media {
    min-height: 420px;
  }

  .thank-you-collage {
    grid-auto-rows: minmax(260px, auto);
  }

  .thank-you-collage-tall {
    grid-row: auto;
  }

  .thank-you-collage figure {
    min-height: 260px;
  }

  .scholarship-home-band .button {
    width: 100%;
  }

  .scholarship-hero {
    min-height: min(650px, calc(100svh - 124px));
    background-position: 45% center;
  }

  .scholarship-hero-shade {
    background:
      linear-gradient(0deg, rgba(5, 27, 38, 0.94), rgba(5, 27, 38, 0.26) 78%),
      linear-gradient(90deg, rgba(5, 27, 38, 0.48), transparent);
  }

  .scholarship-hero h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .legacy-paths {
    gap: 48px;
  }

  .scholarship-facts {
    grid-template-columns: 1fr;
  }

  .legacy-path .button,
  .button-disabled {
    width: 100%;
  }

  .virtual-service-action {
    min-width: 0;
  }

  .venue-diagram {
    min-height: 560px;
    width: 100%;
    max-width: 100%;
  }

  .layout-plan-card {
    display: block;
    width: 100%;
    max-width: calc(100vw - 54px);
    overflow: hidden;
  }

  .layout-plan-card .venue-diagram {
    margin-top: 20px;
  }

  .layout-page .family-access-panel,
  .layout-page .family-card,
  .layout-page .intro {
    max-width: calc(100vw - 54px);
  }

  .venue-zone,
  .guest-table {
    padding: 6px;
    font-size: 9px;
  }

  .guest-table {
    width: 54px;
    height: 54px;
  }

  .diagram-edge-left,
  .diagram-edge-right {
    display: none;
  }

  .zone-memory {
    left: 8%;
    width: 22%;
  }

  .zone-buffet,
  .zone-buffet-alt {
    right: 8%;
    width: 20%;
  }

  .zone-bar {
    left: 7%;
    width: 18%;
  }

  .zone-walkway {
    left: 34%;
    width: 34%;
  }

  .ops-timeline li {
    grid-template-columns: 1fr;
  }

  .brochure-preview-heading {
    display: grid;
  }

  .family-dashboard-heading {
    display: grid;
  }

  .detail-grid,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .detail-grid div {
    min-height: 170px;
  }

  .photo-card {
    min-height: 320px;
  }

  .form-frame {
    min-height: 2850px;
  }
}

@media print {
  .layout-page .site-header,
  .layout-page .family-hero,
  .layout-page .site-footer,
  .layout-page .button {
    display: none !important;
  }

  .layout-page [hidden] {
    display: block !important;
  }

  .layout-page .family-dashboard {
    padding: 0;
  }

  .layout-page .section-inner {
    max-width: none;
  }

  .layout-plan-card {
    break-inside: avoid;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .venue-diagram {
    min-height: 560px;
    box-shadow: none;
  }
}

@media (min-width: 851px) {
  .hero-content {
    width: min(700px, calc(100% - 72px));
    margin-left: clamp(42px, 13vw, 230px);
    margin-right: auto;
  }

  .hero-small .hero-content {
    width: min(580px, calc(100% - 72px));
    margin-left: clamp(36px, 8vw, 132px);
  }

  h1 {
    max-width: 700px;
  }

  .hero-small h1 {
    max-width: 580px;
    font-size: clamp(52px, 7.2vw, 96px);
  }

  .intro {
    max-width: 600px;
  }

  .hero-small .intro {
    max-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
