:root {
  --ink: #172124;
  --muted: #5d686b;
  --paper: #fffdf7;
  --soft: #f4efe4;
  --sage: #63786b;
  --sage-dark: #365447;
  --rose: #c9656b;
  --gold: #d99f45;
  --blue: #315f7d;
  --line: rgba(23, 33, 36, 0.14);
  --shadow: 0 24px 70px rgba(25, 37, 40, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 159, 69, 0.18), transparent 32rem),
    linear-gradient(180deg, #fffdf7 0%, #f8f1e5 42%, #edf3ef 100%);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(23, 33, 36, 0.035) 1px, transparent 1px);
  background-size: 100% 18px;
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.9rem clamp(1rem, 4vw, 4.5rem);
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #fffdf7;
  background: var(--sage-dark);
  border-radius: 50%;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.top-actions a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.94fr) minmax(20rem, 1.06fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(1.5rem, 5vw, 5rem) clamp(1rem, 5vw, 5.5rem) 2rem;
}

.hero-photo-wrap {
  position: relative;
  max-width: 42rem;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  width: 48%;
  height: 35%;
  background: var(--gold);
  z-index: -1;
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(23, 33, 36, 0.18);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 43rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  line-height: 0.95;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.25rem);
}

.hero-lede {
  max-width: 40rem;
  margin: 1.25rem 0 1.7rem;
  color: #334044;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.donation-panel,
.share-card,
.share-text,
.note-form,
.print-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 14px 38px rgba(25, 37, 40, 0.08);
}

.donation-panel {
  padding: clamp(1rem, 3vw, 1.4rem);
  border-left: 0.45rem solid var(--rose);
}

.donation-panel p {
  margin: 0;
  color: #354245;
  font-weight: 600;
}

.donation-actions,
.note-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  color: #fffdf7;
  background: var(--rose);
  box-shadow: 0 12px 24px rgba(201, 101, 107, 0.28);
}

.button-primary:hover {
  background: #b84f56;
}

.button-secondary {
  color: var(--sage-dark);
  background: #fffdf7;
  border-color: rgba(54, 84, 71, 0.28);
}

.button-small {
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  color: #fffdf7;
  background: var(--sage-dark);
}

.copy-status {
  min-height: 1.4rem;
  padding-top: 0.65rem;
  color: var(--sage-dark);
  font-size: 0.92rem;
}

.support-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(54, 84, 71, 0.08);
}

.support-strip article {
  min-height: 10rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.support-strip article:last-child {
  border-right: 0;
}

.support-strip span {
  color: var(--sage-dark);
  font-weight: 900;
}

.support-strip p {
  max-width: 22rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.story-section,
.share-section,
.love-section {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 5.5rem);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(1.4rem, 5vw, 5rem);
  align-items: start;
}

.story-copy {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  color: #354245;
  font-size: 1.13rem;
}

.story-copy p {
  margin: 0;
}

.share-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(18rem, 1.1fr);
  gap: 1rem;
  background: var(--ink);
  color: #fffdf7;
}

.share-card,
.share-text {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 253, 247, 0.08);
  border-color: rgba(255, 253, 247, 0.18);
}

.share-card p,
.share-text label {
  color: rgba(255, 253, 247, 0.78);
}

.share-card h2 {
  max-width: 9ch;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.12);
  border: 1px solid rgba(255, 253, 247, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-weight: 900;
}

.share-text {
  display: grid;
  gap: 0.8rem;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid rgba(23, 33, 36, 0.18);
  border-radius: 0.3rem;
  background: #fffdf7;
  color: var(--ink);
}

textarea {
  resize: vertical;
  padding: 0.85rem;
}

input,
select {
  min-height: 2.8rem;
  padding: 0 0.75rem;
}

.share-text textarea {
  border-color: rgba(255, 253, 247, 0.18);
}

.love-section {
  background:
    linear-gradient(90deg, rgba(201, 101, 107, 0.13), transparent 32%),
    var(--paper);
}

.love-intro {
  max-width: 49rem;
  margin-bottom: 1.5rem;
}

.love-intro p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.card-maker {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(18rem, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.note-form {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
}

.note-form label {
  color: var(--sage-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.print-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 28rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  position: relative;
}

.print-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(23, 33, 36, 0.18);
  pointer-events: none;
}

.print-card.sunrise {
  background: linear-gradient(135deg, #fff8e8, #f2d2c0 48%, #dfece5);
}

.print-card.garden {
  background: linear-gradient(135deg, #f7f6e9, #dce9d8 54%, #cddde0);
}

.print-card.starlight {
  color: #fffdf7;
  background: linear-gradient(135deg, #172124, #315f7d 62%, #6a667f);
}

.card-kicker,
.card-name {
  position: relative;
  margin: 0;
  font-weight: 800;
}

.card-kicker {
  color: var(--rose);
  text-transform: uppercase;
}

.starlight .card-kicker {
  color: #ffd784;
}

.card-message {
  position: relative;
  margin: 1.4rem 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.04;
}

.card-name {
  color: var(--sage-dark);
}

.starlight .card-name {
  color: rgba(255, 253, 247, 0.82);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 5vw, 5.5rem);
  color: rgba(255, 253, 247, 0.78);
  background: var(--sage-dark);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fffdf7;
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .top-actions a:not(.button) {
    display: none;
  }

  .hero,
  .story-section,
  .share-section,
  .card-maker {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  h1 {
    max-width: 11ch;
  }

  .support-strip {
    grid-template-columns: 1fr;
  }

  .support-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .support-strip article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 10rem;
  }

  .button {
    width: 100%;
  }

  .icon-button {
    width: 3rem;
  }

  .donation-actions,
  .note-actions {
    width: 100%;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .print-card,
  .print-card * {
    visibility: visible;
  }

  .print-card {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    border: 0;
    box-shadow: none;
  }
}
