:root {
  --bg: #fbf7f0;
  --surface: #fffaf3;
  --surface-strong: #ffffff;
  --text: #2e2823;
  --muted: #6f6258;
  --line: rgba(46, 40, 35, 0.14);
  --accent: #8d5f3f;
  --accent-dark: #6d4429;
  --shadow: 0 24px 80px rgba(46, 40, 35, 0.10);
  --radius: 24px;
  --container: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(141, 95, 63, 0.14), transparent 35rem),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  padding: 12px 16px;
  background: var(--text);
  color: white;
  border-radius: 12px;
  z-index: 20;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(251, 247, 240, 0.80);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

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

.hero {
  padding: clamp(56px, 9vw, 112px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: var(--muted);
  max-width: 720px;
}

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

.button {
  appearance: none;
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(141, 95, 63, 0.24);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.hero-media {
  margin: 0;
}

.media-placeholder,
.gallery-card {
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(141, 95, 63, 0.14), rgba(255, 255, 255, 0.38)),
    var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.media-placeholder span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.media-placeholder small {
  display: block;
  margin-top: 6px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.muted {
  background: rgba(255, 255, 255, 0.42);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  min-height: 220px;
  box-shadow: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card,
.contribution-form {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(46, 40, 35, 0.06);
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.contribute-section {
  background: linear-gradient(180deg, transparent, rgba(141, 95, 63, 0.08));
}

.contribute-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.notice {
  padding: 16px;
  border-radius: 18px;
  background: rgba(141, 95, 63, 0.10);
  border: 1px solid rgba(141, 95, 63, 0.16);
  color: var(--accent-dark);
}

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

label,
legend {
  font-weight: 720;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.amount-grid button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  font-weight: 760;
  cursor: pointer;
}

.amount-grid button.is-selected {
  border-color: var(--accent);
  background: rgba(141, 95, 63, 0.12);
  color: var(--accent-dark);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--muted);
}

.checkbox input {
  width: auto;
  margin: 4px 0 0;
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 650;
}

.site-footer {
  padding: 36px 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .contribute-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }

  .media-placeholder {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .cards,
  .gallery,
  .amount-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .header-inner {
    min-height: 64px;
  }
}
