:root {
  --ink: #151c19;
  --muted: #66706b;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #ded8cb;
  --forest: #17483e;
  --deep: #102f2a;
  --copper: #a45f3b;
  --gold: #d3a85f;
  --mist: #eaf1f3;
  --sage: #dfe8dd;
  --rose: #f2e7df;
  --danger: #923b3b;
  --focus: #0f6f9d;
  --radius: 8px;
  --radius-small: 6px;
  --shadow: 0 24px 70px rgba(21, 28, 25, 0.14);
  --soft-shadow: 0 16px 44px rgba(21, 28, 25, 0.08);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--deep);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(222, 216, 203, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 1px;
  text-decoration: none;
}

.brand span {
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  min-height: 36px;
  padding: 8px 12px;
  color: #48534e;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--ink);
  background: rgba(23, 72, 62, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: max(640px, calc(88svh - 68px));
  background:
    linear-gradient(110deg, rgba(223, 232, 221, 0.95), rgba(251, 250, 246, 0.98) 50%, rgba(234, 241, 243, 0.95)),
    var(--paper);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--deep);
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(16, 47, 42, 0.84));
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.visual-caption {
  position: absolute;
  left: clamp(18px, 5vw, 54px);
  right: clamp(18px, 5vw, 54px);
  bottom: clamp(18px, 5vw, 54px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  color: #fff;
}

.visual-caption span {
  max-width: 18ch;
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.98;
  text-wrap: balance;
}

.visual-caption strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
  padding: clamp(34px, 7vw, 84px);
}

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

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

h1 {
  margin-bottom: 24px;
  font-size: 6.4rem;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 22px;
  font-size: 3.7rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.lede {
  max-width: 66ch;
  color: #33403b;
  font-size: 1.24rem;
  text-wrap: pretty;
}

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

.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 30px rgba(23, 72, 62, 0.18);
}

.button.secondary {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.58);
}

.button.full {
  width: 100%;
}

.button:focus-visible,
.small-button:focus-visible,
nav a:focus-visible,
.brand:focus-visible,
.text-link:focus-visible,
.site-footer a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 111, 157, 0.26);
  outline-offset: 2px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 620px;
}

.hero-meta div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(222, 216, 203, 0.92);
  border-radius: var(--radius);
}

.hero-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-meta strong {
  display: block;
  margin-top: 3px;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 56px);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.event-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-column,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.text-link {
  color: var(--forest);
  font-weight: 800;
}

.event-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.event-details div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.purpose-section {
  background: linear-gradient(180deg, var(--paper), #f4f1ea);
}

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

.principles article,
.flow-grid article {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 18px;
  color: var(--deep);
  background: var(--rose);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.takeaway-band {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 47, 42, 0.98), rgba(23, 72, 62, 0.92)),
    var(--forest);
}

.takeaway-band .eyebrow {
  color: var(--gold);
}

.takeaway-inner {
  max-width: 980px;
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0;
  font-size: 3.65rem;
  line-height: 1.04;
  font-weight: 800;
  text-wrap: balance;
}

.collection-flow {
  background: var(--mist);
}

.form-section {
  background: var(--sage);
}

.memory-section {
  background: #eef2f0;
}

.assurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.assurance-list span {
  padding: 8px 10px;
  color: #2b3934;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(222, 216, 203, 0.9);
  border-radius: 999px;
  font-size: 0.9rem;
}

.form-panel {
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.action-panel {
  align-self: start;
}

.field,
fieldset,
.recorder {
  margin: 0 0 18px;
}

label,
legend {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bbc7c1;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.field-group {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
  gap: 14px;
}

fieldset,
.recorder {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 246, 0.62);
}

.recorder video {
  width: 100%;
  margin-top: 14px;
  border-radius: var(--radius);
  background: #111;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 10px 0;
  font-weight: 500;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.check-row span {
  min-width: 0;
}

.help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 64ch;
}

.form-note,
.privacy-note {
  color: #3a4641;
  background: rgba(234, 241, 243, 0.6);
  border: 1px solid rgba(187, 199, 193, 0.78);
  border-radius: var(--radius);
}

.form-note {
  padding: 14px 16px;
  margin: 0 0 20px;
}

.form-note h3 {
  margin-bottom: 6px;
}

.form-note p,
.privacy-note {
  font-size: 0.95rem;
}

.form-note p {
  margin-bottom: 0;
}

.privacy-note {
  padding: 12px 14px;
  margin: 16px 0;
}

.form-status {
  margin: 14px 0 0;
  font-weight: 800;
}

.form-status.success {
  color: #1e6b4f;
}

.form-status.error,
.danger {
  color: var(--danger);
}

.small-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--forest);
  background: #fff;
}

.small-button.danger {
  border-color: var(--danger);
}

.progress-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.progress-item {
  padding: 10px 12px;
  color: var(--muted);
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.94rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--deep);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

.site-footer div {
  max-width: 760px;
}

.footer-note {
  margin-top: 6px !important;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.admin-body {
  background: linear-gradient(135deg, #f4f2ec, #eaf1f3);
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 80px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-top h1 {
  margin-bottom: 8px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.admin-subtitle {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.admin-panel,
.record {
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.record {
  margin-bottom: 14px;
}

.record h3 {
  margin-bottom: 4px;
}

.record-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-edit {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 1180px) {
  h1 {
    font-size: 5rem;
  }

  h2,
  blockquote p {
    font-size: 3rem;
  }

  .visual-caption span {
    font-size: 2.35rem;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .two-column,
  .form-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-copy {
    padding: 30px 22px 44px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2,
  blockquote p {
    font-size: 2.35rem;
  }

  .lede {
    font-size: 1.12rem;
  }

  .visual-caption span {
    font-size: 1.85rem;
  }

  .hero-meta,
  .principles,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .field-group {
    grid-template-columns: 1fr;
  }

  .event-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .visual-caption {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 124px;
  }

  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1 1 auto;
    padding-inline: 10px;
  }

  .hero-copy {
    padding: 28px 18px 38px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 0.98;
  }

  h2,
  blockquote p {
    font-size: 2rem;
  }

  .visual-caption strong,
  .eyebrow {
    font-size: 0.74rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section,
  .takeaway-band {
    padding-inline: 16px;
  }

  .form-panel {
    padding: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
