:root {
  color-scheme: light;
  --ink: #2a1d14;
  --muted: #6d5b4e;
  --paper: #f8f3e7;
  --paper-deep: #eee3cf;
  --lemon: #f4bd26;
  --lemon-light: #ffe68d;
  --rust: #8d3d26;
  --line: rgba(42, 29, 20, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 189, 38, 0.13), transparent 26rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--lemon);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 16px; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span { color: var(--rust); }

.desktop-nav { display: flex; gap: clamp(16px, 2.5vw, 34px); }

.desktop-nav a {
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.mobile-menu { display: none; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  min-height: 610px;
  gap: clamp(40px, 7vw, 96px);
  padding: 76px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.08; }

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  letter-spacing: -0.055em;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.button-primary { background: var(--ink); color: white; border-color: var(--ink); }

.hero-art {
  position: relative;
  margin: 0;
  padding: clamp(24px, 4vw, 50px);
  border-radius: 26px 6px 26px 6px;
  background: linear-gradient(145deg, var(--lemon-light), var(--lemon));
  box-shadow: 0 28px 70px rgba(71, 43, 15, 0.2);
  transform: rotate(1deg);
}

.hero-art::before {
  content: "From the family archive";
  position: absolute;
  right: 24px;
  top: 18px;
  color: rgba(42, 29, 20, 0.62);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-art img { display: block; width: 100%; height: auto; margin-top: 14px; }

.status-note {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid rgba(141, 61, 38, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
}

.status-note strong { color: var(--rust); }
.status-note a { color: var(--rust); font-weight: 750; }

.intro-grid { padding: 112px 0; }

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

h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: -0.045em; }

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

.card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(71, 43, 15, 0.1); }

.card-number { color: var(--rust); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; }

.card h3 { margin: 55px 0 12px; font-size: 1.8rem; }

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.home-section { padding: 112px 0 24px; }

.heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.text-link { color: var(--rust); font-weight: 750; }

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.timeline li {
  position: relative;
  padding: 28px 20px 0 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  top: -7px;
  left: 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--rust);
}

.timeline strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.timeline span { display: block; margin-top: 7px; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }

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

.history-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.history-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(71, 43, 15, 0.1); }

.history-card-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 14px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.history-card-media img { width: 100%; height: 100%; object-fit: contain; }
.history-card-media span { font-family: var(--serif); font-size: 2rem; color: var(--rust); }

.history-card-copy { padding: 25px; }
.history-card-copy h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -0.03em; }
.history-card-copy > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }

.memory-cta {
  margin: 112px 0;
  padding: clamp(32px, 6vw, 68px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border-radius: 24px 6px 24px 6px;
  background: var(--lemon);
}

.memory-cta h2 { max-width: 800px; font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
.memory-cta p:last-child { max-width: 700px; margin: 16px 0 0; }
.memory-cta.compact { margin-top: 72px; }

.page-hero {
  min-height: 430px;
  padding: 84px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: clamp(40px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.article-header h1,
.not-found h1,
.contact-page h1 { font-size: clamp(3rem, 7vw, 6rem); }

.page-hero .lede { margin: 0; }

.story-hero { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr); }

.portrait-frame {
  margin: 0;
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 22px 50px rgba(71, 43, 15, 0.15);
  transform: rotate(1.4deg);
}

.portrait-frame img { display: block; width: 100%; max-height: 470px; object-fit: cover; object-position: center 18%; }
.portrait-frame figcaption { padding-top: 9px; color: var(--muted); font-size: 0.78rem; text-align: center; }

.story-copy { padding-top: 80px; }
.opening-paragraph { font-family: var(--serif); font-size: 1.45rem; line-height: 1.5; }

.history-list { padding: 70px 0 110px; display: grid; gap: 22px; }
.history-list .history-card { grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr); grid-template-rows: 250px; }
.history-list .history-card-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 6vw, 60px); }
.history-list .history-card-copy h2 { font-size: clamp(1.8rem, 3.8vw, 3.25rem); }

.history-article,
.status-page { padding: 0 0 100px; }

.article-header { max-width: 900px; padding: 92px 0 58px; }
.article-header .eyebrow { margin-top: 42px; }
.back-link { color: var(--rust); font-size: 0.82rem; font-weight: 750; text-decoration: none; }
.article-deck { max-width: 760px; margin: 25px 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; }

.article-content {
  width: min(760px, 100%);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.78;
}

.article-content h2 { margin: 2.2em 0 0.6em; font-size: clamp(2rem, 4vw, 3rem); }
.article-content h3 { margin: 1.8em 0 0.5em; font-size: 1.55rem; }
.article-content p { margin: 1.35em 0; }
.article-content a { color: var(--rust); font-weight: 650; overflow-wrap: anywhere; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content li { margin: 0.55em 0; }
.article-content blockquote { margin: 2em 0; padding: 2px 0 2px 24px; border-left: 4px solid var(--lemon); font-family: var(--serif); font-size: 1.25rem; }

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 34px auto;
  border-radius: 4px;
}

.article-content figure { margin: 42px auto; }
.article-content figure img { margin-bottom: 10px; }
.article-content figcaption { color: var(--muted); font-size: 0.78rem; text-align: center; }

.article-callout {
  width: min(900px, 100%);
  margin: 82px auto 0;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(141, 61, 38, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.article-callout p { margin: 0; }
.article-callout a { flex: 0 0 auto; color: var(--rust); font-weight: 750; }

.article-navigation {
  margin-top: 74px;
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.article-navigation a { max-width: 430px; color: var(--ink); font-family: var(--serif); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.article-navigation a span { display: block; margin-bottom: 6px; color: var(--rust); font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.article-navigation .next { justify-self: end; text-align: right; }

.artifact-gallery {
  padding: 72px 0 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.artifact-gallery figure { grid-column: span 4; margin: 0; padding: 14px; border: 1px solid var(--line); background: white; }
.artifact-gallery figure:nth-child(1), .artifact-gallery figure:nth-child(2) { grid-column: span 6; }
.artifact-gallery a { display: grid; place-items: center; height: 380px; overflow: hidden; background: var(--paper-deep); }
.artifact-gallery img { display: block; width: auto; height: auto; max-width: 100%; max-height: 380px; object-fit: contain; }
.artifact-gallery figcaption { padding: 12px 2px 0; color: var(--muted); font-size: 0.78rem; }

.contact-page {
  min-height: 670px;
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(50px, 10vw, 130px);
}

.contact-card { padding: clamp(30px, 5vw, 54px); border-radius: 18px; background: var(--lemon); }
.contact-card p { margin: 0 0 18px; color: var(--rust); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.contact-card a { display: block; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2.2rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-card span { display: block; margin-top: 28px; color: rgba(42, 29, 20, 0.72); }

.not-found { max-width: 800px; min-height: 640px; padding: 110px 0; }

.footer-links { display: flex; align-items: flex-start; gap: 26px; }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer p { margin: 0; }
footer a { color: var(--rust); font-weight: 700; }

@media (max-width: 820px) {
  .site-header { min-height: 74px; padding: 14px 0; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { cursor: pointer; color: var(--rust); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; list-style: none; text-transform: uppercase; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; z-index: 20; right: 0; top: 38px; width: min(280px, calc(100vw - 28px)); padding: 12px; display: grid; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 20px 50px rgba(42, 29, 20, 0.2); }
  .mobile-menu a { padding: 11px 12px; border-radius: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
  .mobile-menu a[aria-current="page"] { color: var(--rust); background: var(--paper-deep); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 58px; }
  .hero-art { grid-row: 1; }
  h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .timeline { grid-template-columns: repeat(2, 1fr); border-top: 0; border-left: 2px solid var(--ink); }
  .timeline li { padding: 4px 22px 28px; }
  .timeline li::before { top: 7px; left: -7px; }
  .featured-grid { grid-template-columns: 1fr; }
  .memory-cta { align-items: flex-start; flex-direction: column; }
  .page-hero, .story-hero, .contact-page { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; padding: 64px 0; }
  .page-hero .lede { margin-top: 10px; }
  .portrait-frame { max-width: 520px; }
  .history-list .history-card { grid-template-columns: 1fr; grid-template-rows: 250px auto; }
  .artifact-gallery figure, .artifact-gallery figure:nth-child(1), .artifact-gallery figure:nth-child(2) { grid-column: span 6; }
  .contact-page { min-height: 0; padding: 72px 0; }
  .article-callout { align-items: flex-start; flex-direction: column; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 210px; }
  .card h3 { margin-top: 32px; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .hero { gap: 36px; padding: 36px 0 48px; }
  .hero-art { padding: 25px 18px 18px; border-radius: 18px 4px 18px 4px; }
  .status-note { grid-template-columns: 1fr; gap: 4px; }
  .intro-grid { padding: 84px 0; }
  .home-section { padding-top: 82px; }
  .heading-row, footer { align-items: flex-start; flex-direction: column; }
  .timeline { grid-template-columns: 1fr; }
  .artifact-gallery figure, .artifact-gallery figure:nth-child(1), .artifact-gallery figure:nth-child(2) { grid-column: 1 / -1; }
  .artifact-gallery a { height: 320px; }
  .artifact-gallery img { max-height: 320px; }
  .article-navigation { grid-template-columns: 1fr; }
  .article-navigation .next { justify-self: start; text-align: left; }
  .footer-links { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .history-card { transition: none; }
}
