:root {
  --ink: #14242a;
  --muted: #617075;
  --paper: #f3f6f2;
  --white: #ffffff;
  --line: #d8dfd9;
  --teal: #1f6f68;
  --teal-dark: #12313a;
  --red: #b94438;
  --gold: #b98a42;
  --sage: #6f866d;
  --shadow: 0 22px 70px rgba(18, 49, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body.print-mode * {
  visibility: hidden !important;
}

body.print-mode .print-selected,
body.print-mode .print-selected * {
  visibility: visible !important;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal), var(--red));
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--teal-dark);
  line-height: 1.05;
}

.brand small {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.main-nav a {
  padding: 5px 0;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--teal-dark);
}

.anonamed-link {
  min-height: 34px;
  padding: 6px 11px !important;
  border-radius: 8px;
  background: var(--teal-dark);
  color: white !important;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.7fr);
  align-items: stretch;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(24px, 5vw, 70px) clamp(16px, 5vw, 70px) clamp(22px, 4vw, 42px);
  background:
    linear-gradient(120deg, rgba(185, 138, 66, 0.18), rgba(185, 138, 66, 0) 42%),
    linear-gradient(180deg, #102a31 0%, #183b3c 58%, #214c43 100%);
  min-height: calc(100svh - 66px);
}

.hero-copy {
  align-self: center;
  max-width: 820px;
  color: white;
}

.hero-copy h1 {
  color: white;
  font-size: clamp(2.3rem, 7vw, 5.7rem);
  max-width: 920px;
}

.hero-copy .lede {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.hero-image {
  align-self: center;
  margin: 0;
  padding: clamp(8px, 1.4vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 26px 80px rgba(5, 20, 24, 0.24);
}

.hero-image img,
.reflection-image img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image img {
  max-height: calc(100svh - 120px);
  object-fit: cover;
}

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

h1,
h2,
h3,
h4 {
  color: var(--teal-dark);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.25rem;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0bd73;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 850;
}

.primary {
  background: var(--red);
  color: white;
}

.secondary {
  background: var(--teal-dark);
  color: white;
}

.ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.death-strip {
  display: flex;
  gap: 12px;
  padding: 15px clamp(16px, 5vw, 70px);
  background: #fff;
  border-block: 1px solid var(--line);
}

.death-strip strong {
  color: var(--red);
  white-space: nowrap;
}

.section {
  padding: clamp(42px, 7vw, 86px) clamp(16px, 5vw, 70px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 26px;
}

.two-column,
.difficult-section,
.legal-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: clamp(22px, 5vw, 60px);
  align-items: start;
}

.plain-card,
.source-card,
.choice-grid article,
.finder-grid form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(18, 49, 58, 0.07);
}

.plain-card,
.source-card {
  padding: 22px;
}

.steps {
  padding-left: 1.25rem;
}

.steps li {
  margin-bottom: 14px;
}

.choices-section,
.forms-section {
  background: #ffffff;
}

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

.choice-grid article {
  padding: 20px;
}

.choice-grid ul {
  padding-left: 1.1rem;
}

.choice-grid li {
  margin-bottom: 8px;
}

.note {
  margin: 16px 0 0;
  color: var(--red);
  font-weight: 760;
}

.difficult-section {
  background: #182c2f;
  color: rgba(255, 255, 255, 0.88);
}

.difficult-section h2 {
  color: white;
}

.reflection-image {
  margin: 0;
  justify-self: end;
  max-width: 520px;
}

.print-form,
.wallet-card {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid #bfc9c0;
  border-radius: 8px;
  background: white;
}

.form-header {
  border-bottom: 2px solid var(--teal-dark);
  margin-bottom: 16px;
}

.field-grid,
.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.field-grid label,
.signature-grid label {
  display: block;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid #9fa9a2;
  color: #2b3d42;
  font-weight: 760;
}

.values-page {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.long-answer {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 10px 0;
  color: #2b3d42;
  font-weight: 800;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(111, 134, 109, 0.38) 32px
    );
}

.compact-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-values .long-answer {
  min-height: 150px;
}

.closing-words {
  margin: 18px 0 22px;
  min-height: 190px;
}

.form-subsection,
.capacity-questionnaire {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.form-subsection h4,
.capacity-questionnaire h4 {
  margin-bottom: 8px;
}

.capacity-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.capacity-prompts .long-answer {
  min-height: 160px;
}

.checkbox-list label,
.directive-grid label {
  display: block;
  margin: 8px 0;
}

.directive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.directive-grid section {
  break-inside: avoid;
}

.wallet-card {
  max-width: 760px;
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.finder-grid form {
  padding: 20px;
}

.finder-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 760;
}

.finder-grid input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.finder-grid .button {
  width: 100%;
  margin-top: 14px;
}

.source-card {
  display: grid;
  gap: 10px;
}

.source-card a {
  color: var(--teal);
  font-weight: 760;
}

.subpage-hero {
  padding: clamp(50px, 8vw, 110px) clamp(16px, 5vw, 70px);
  background: #19373b;
  color: white;
}

.subpage-hero h1 {
  max-width: 980px;
  color: white;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.subpage-hero .lede {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  padding: 28px clamp(16px, 5vw, 70px);
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
  color: white;
  font-weight: 850;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .difficult-section,
  .legal-section {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(145deg, rgba(185, 138, 66, 0.16), rgba(185, 138, 66, 0) 42%),
      linear-gradient(180deg, #102a31, #1a403d);
    min-height: auto;
  }

  .hero-copy {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-image img {
    max-height: none;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .choice-grid,
  .finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  .hero {
    padding: 0 0 32px;
  }

  .hero-copy {
    padding: 0 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .hero-image img {
    border-radius: 0;
    box-shadow: none;
  }

  .hero-image {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .death-strip {
    display: block;
  }

  .choice-grid,
  .finder-grid,
  .directive-grid,
  .capacity-prompts,
  .field-grid,
  .signature-grid,
  .compact-values {
    grid-template-columns: 1fr;
  }

  .reflection-image {
    max-width: none;
  }
}

@media print {
  .no-print,
  .site-header,
  .site-footer,
  .hero,
  .death-strip,
  .section:not(.forms-section) {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  body.print-mode .print-selected {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .forms-section {
    padding: 0;
  }

  .section-heading {
    display: none;
  }

  .print-form,
  .wallet-card {
    break-after: page;
    border-radius: 0;
    box-shadow: none;
  }

  .values-page {
    break-before: page;
    break-after: page;
    min-height: 9.2in;
    align-content: stretch;
  }

  .values-page .long-answer {
    min-height: 2.85in;
  }

  .compact-values {
    break-before: auto;
    break-after: auto;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .compact-values .long-answer {
    min-height: 1.7in;
  }

  .closing-words {
    break-before: page;
    min-height: 5.2in;
  }

  .checkbox-list,
  .directive-grid {
    break-before: page;
  }

  .form-subsection,
  .capacity-questionnaire {
    break-before: page;
    border: 1px solid #999;
    background: white;
  }

  .capacity-prompts {
    grid-template-columns: 1fr;
  }

  .capacity-prompts .long-answer {
    min-height: 1.65in;
  }
}
