:root {
  color-scheme: light;
  --paper: #fdfcf9;
  --ink: #182a25;
  --muted: #53665f;
  --forest: #183d35;
  --green: #194d3e;
  --line: #c7d4cb;
  --gold: #ffcf61;
  --serif: Georgia, Cambria, serif;
  --sans: system-ui, sans-serif;
  font: 1rem/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .24em; }
:focus-visible { outline: 3px solid #9a501c; outline-offset: 4px; }

.site-header, main { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  min-height: 4.5rem;
}

.wordmark { font: bold 1.55rem var(--serif); color: var(--ink); text-decoration: none; }
.chapter-link { font-weight: 650; }
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff8e9;
  background: var(--forest);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 26rem;
  aspect-ratio: 1;
  border: 1px solid #719481;
  border-radius: 50%;
  box-shadow: 0 0 0 3rem #294d42, 0 0 0 6rem #204439;
  right: -13rem;
  bottom: -22rem;
}

.eyebrow { color: var(--gold); font-size: .9rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); }
h1 { max-width: 15ch; font-size: clamp(2.8rem, 7.5vw, 5.5rem); line-height: 1.01; letter-spacing: -.04em; margin: .75rem 0 1rem; }
h2 { font-size: 1.65rem; line-height: 1.2; margin: 0 0 1rem; }
p { margin: 0; }
.hero p { max-width: 41ch; font-size: 1.1rem; color: #e4eee8; }

.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .91fr); gap: 1.25rem; margin-block: 1.25rem; align-items: start; }
.panel { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.invitation { background: #eef4ed; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
label { display: block; font-weight: 650; margin: .95rem 0 .3rem; }
.optional, .hint { color: var(--muted); font-size: .9rem; font-weight: normal; }
.hint { display: block; margin-top: .45rem; }
input, textarea {
  width: 100%;
  border: 1px solid #82978b;
  border-radius: .55rem;
  color: var(--ink);
  background: #fff;
  padding: .75rem;
  font: inherit;
}
textarea { display: block; resize: vertical; }
#draft { min-height: 13rem; }
.actions { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
button { min-height: 2.75rem; border: 0; border-radius: .55rem; padding: .65rem 1rem; font: inherit; font-weight: 730; color: var(--forest); background: var(--gold); cursor: pointer; }
button:disabled { background: #dce4dc; color: #59695e; cursor: default; }
.footer-note { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer-note h2 { margin-bottom: .35rem; }
.footer-note p { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 46rem) {
  .builder { grid-template-columns: 1fr; }
}

@media (max-width: 29rem) {
  .pair { grid-template-columns: 1fr; gap: 0; }
}
