.heading {
  border-color: #51472e;
  box-shadow: none;
}

.heading::before {
  background: linear-gradient(90deg, #11100e 37%, #11100eeb 43%, #11100e78 52%, transparent 68%),
    linear-gradient(0deg, #0c0c0cb3, transparent 19%);
}

.heading::after {
  display: none;
}

.hero-photo {
  object-position: 50% 43%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo {
    animation: planner-photo-in 780ms ease-out both;
  }

  .hero-copy > * {
    animation: planner-copy-in 740ms cubic-bezier(.2, .7, .2, 1) both;
  }

  .hero-copy > h1 { animation-delay: 120ms; }
  .hero-copy > p { animation-delay: 240ms; }
  .hero-copy > .hero-actions { animation-delay: 360ms; }

  @keyframes planner-photo-in {
    from { opacity: .25; }
    to { opacity: 1; }
  }

  @keyframes planner-copy-in {
    from { opacity: .18; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.heading .primary {
  background: linear-gradient(120deg, #f1da91, #d4af37);
  color: #21160b;
  box-shadow: 0 9px 24px -10px #d4af378f;
}

.heading .primary:hover {
  background: #f4dca6;
}

@media (max-width: 650px) {
  .heading {
    padding-top: clamp(205px, 64vw, 360px);
  }

  .hero-photo {
    height: clamp(244px, 74vw, 402px);
    object-position: center 42%;
  }

  .heading::before {
    background: linear-gradient(180deg, transparent clamp(139px, 49vw, 288px),
      #11100e clamp(250px, 72vw, 385px));
  }
}

.planner-guide {
  margin-block: 24px;
  padding: clamp(16px, 3vw, 27px);
  border-color: #d4af374f;
  background: radial-gradient(ellipse at 0 0, #272013, #151515 66%);
}

.planner-guide h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.8vw, 2.075rem);
  line-height: 1.13;
}

.planner-guide ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  padding: 0;
  list-style: none;
}

.planner-guide li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 4px 9px;
  padding-top: 12px;
  border-top: 1px solid #d4af3755;
}

.guide-number {
  grid-row: 1 / span 2;
  color: var(--gold-light);
  font-size: .80rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.planner-guide h3 {
  margin: 0;
  color: var(--ink);
  font: 400 1.15rem/1.25 "Tenor Sans", Georgia, serif;
  line-height: 1.25;
}

.planner-guide li p {
  grid-column: 2;
  margin: 0;
  font-size: .94rem;
  line-height: 1.5;
}

#household-settings {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #d4af3740;
  border-radius: 8px;
  background: #171511;
}

#household-settings > legend {
  padding-inline: 4px;
  font: 400 1.24rem/1.15 "Tenor Sans", Georgia, serif;
}

#household-settings > p {
  margin: 0 0 12px;
  line-height: 1.5;
}

#household-settings .household-actions {
  display: grid;
  gap: 6px;
}

#household-settings #add-member {
  width: 100%;
  border-color: #d4af3770;
}

#household-count {
  text-align: center;
}

.layout > aside, .workspace {
  min-width: 0;
  background: #141413;
  border-color: #51472e;
  border-radius: 14px;
}

.workspace .tabs {
  flex-wrap: wrap;
  gap: 4px 8px;
  border-color: #403a29;
}

.workspace .tabs button {
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: #beb9ad;
}

.workspace .tabs button:hover, .workspace .tabs button[aria-pressed="true"] {
  border-bottom-color: #d4af37;
  color: #f1da91;
}

.workspace .tabs button:focus-visible {
  outline: 2px solid #f1da91;
  outline-offset: 2px;
}

.layout .primary {
  background: linear-gradient(120deg, #f1da91, #d4af37);
  color: #151106;
}

@media (max-width: 650px) {
  #settings input:not([type="checkbox"], [type="radio"]), #settings select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px;
  }

  #settings > #auto-settings,
  .household-member-body > .fields,
  .household-member [data-member-auto] {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace .tabs button { padding-inline: 7px; font-size: .875rem; }
}

@media (max-width: 640px) {
  .planner-guide ol { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
