:root {
  color-scheme: light;
  --ink: #1f2521;
  --muted: #657069;
  --paper: #fbfaf6;
  --wash: #f0ebe1;
  --sage: #617363;
  --rose: #b46962;
  --gold: #c89549;
  --line: rgba(31, 37, 33, 0.13);
  --shadow: 0 22px 70px rgba(31, 37, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 246, 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  left: 0;
  min-height: 68px;
  padding: 0 6vw;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 12px 34px rgba(31, 37, 33, 0.08);
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: lowercase;
}

nav a:hover {
  color: var(--ink);
}

nav a[aria-current="page"] {
  color: var(--rose);
}

.hero {
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-overlay,
.hero-content,
.construction-panel {
  grid-area: 1 / 1;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.construction-panel {
  align-self: center;
  background: rgba(255, 253, 247, 0.88);
  border: 2px solid rgba(31, 37, 33, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 37, 33, 0.18);
  color: var(--ink);
  display: grid;
  gap: 18px;
  justify-self: center;
  letter-spacing: 0;
  max-width: min(760px, calc(100% - 32px));
  padding: 22px 28px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.construction-label {
  font-size: clamp(1.4rem, 4vw, 3.4rem);
  font-weight: 800;
}

.name-form {
  display: grid;
  gap: 12px;
}

.name-form label {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
}

.name-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.name-row input {
  background: #fff;
  border: 1px solid rgba(31, 37, 33, 0.22);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0 14px;
}

.name-row button {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fffdf7;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 0 18px;
  text-transform: uppercase;
}

.saved-name {
  color: var(--sage);
  font-weight: 800;
  margin: 0;
  min-height: 1.4em;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 24, 21, 0.76) 0%, rgba(20, 24, 21, 0.38) 43%, rgba(20, 24, 21, 0.1) 100%),
    linear-gradient(0deg, rgba(251, 250, 246, 0.18), rgba(251, 250, 246, 0));
}

.hero-content {
  align-self: center;
  color: #fffdf7;
  max-width: 780px;
  padding: 120px 6vw 80px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 560px;
}

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

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  max-width: 12ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-transform: lowercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary-button {
  background: #fffdf7;
  border: 1px solid #fffdf7;
  color: var(--ink);
}

.secondary-button {
  background: rgba(255, 253, 247, 0.12);
  border: 1px solid rgba(255, 253, 247, 0.75);
  color: #fffdf7;
}

.dark-button {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf7;
  margin-top: 12px;
}

.section {
  padding: 96px 6vw;
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  margin: 0 auto 34px;
  max-width: 1120px;
  padding-bottom: 18px;
}

.section-kicker {
  color: var(--rose);
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.section-title-link {
  display: inline-block;
}

.section-title-link:hover h2 {
  color: var(--rose);
}

.about-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  margin: 0 auto;
  max-width: 1120px;
}

.intro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 54px);
}

.intro p {
  color: #39413b;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.8;
  margin: 0;
}

.intro p + p {
  margin-top: 22px;
}

.quick-notes {
  display: grid;
  gap: 14px;
}

.quick-notes div,
.memory-card {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.quick-notes span,
.memory-date {
  color: var(--rose);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.quick-notes strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.45;
}

.memories-section {
  background: #efe7da;
}

.page-hero {
  align-items: end;
  color: #fffdf7;
  display: grid;
  min-height: 54vh;
  padding: 130px 6vw 76px;
  position: relative;
}

.page-hero::before {
  background:
    linear-gradient(90deg, rgba(20, 24, 21, 0.82), rgba(20, 24, 21, 0.28)),
    url("assets/hero-corner.png") center / cover;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.page-hero h1 {
  max-width: 720px;
}

.page-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 860px;
  padding: clamp(28px, 5vw, 54px);
}

.page-content p {
  color: #39413b;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.8;
  margin: 0;
}

.page-content p + p {
  margin-top: 20px;
}

.compact-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 34px;
  padding: 0;
  text-align: center;
}

.memory-board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.memory-card {
  background: #fffdf8;
  min-height: 250px;
  padding: 30px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.memory-card:hover {
  box-shadow: 0 18px 44px rgba(31, 37, 33, 0.13);
  transform: translateY(-4px);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.memory-card p:last-child {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

footer {
  background: var(--ink);
  color: #fff8e8;
  padding: 30px 6vw;
  text-align: center;
}

footer p {
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 780px) {
  .site-header {
    align-items: center;
    padding: 0 5vw;
  }

  nav {
    gap: 14px;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-content {
    align-self: end;
    padding: 130px 5vw 54px;
  }

  .name-row {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .memory-board {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 5vw;
  }
}
