@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1b3027;
  --muted: #4d5b51;
  --green: #254635;
  --soft: #e6ebdc;
  --paper: #f6f5ee;
  --white: #fefdf8;
  --line: #d7dbce;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid #7c5930; outline-offset: 4px; }
h1:focus { outline: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  width: min(100% - clamp(2rem, 8vw, 8rem), 82rem);
  margin-inline: auto;
}
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.masthead { min-height: 5.7rem; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: .75rem; font-size: 1.12rem; font-weight: 750; line-height: 1.14; }
.identity img { flex: none; }
.identity small { display: block; color: var(--muted); font-size: .875rem; font-weight: 500; margin-top: .28rem; }
.footer { margin-top: auto; border-top: 1px solid var(--line); padding: 1.3rem 0; font-size: .875rem; color: var(--muted); }
.footer cite { font-style: normal; margin-left: .38rem; }
main { padding-block: clamp(1.5rem, 4vh, 3rem); }

.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(29rem, 73vh, 45rem);
  border-radius: 1.7rem;
  overflow: hidden;
  background: #e9ecde;
}
.welcome-copy { padding: clamp(2.1rem, 5.8vw, 6.1rem); align-self: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; font-size: .875rem; }
.eyebrow span { height: 1px; width: 1.75rem; background: currentColor; }
h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.035em; margin: 0; }
.welcome h1 { font-size: clamp(5.2rem, 9.6vw, 10rem); line-height: .83; margin: 1.45rem 0 1.65rem; }
.welcome h1 em { font-weight: inherit; color: #4d6343; }
.welcome-copy > p { color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.3rem); line-height: 1.55; max-width: 25ch; }
.start { margin-top: 2rem; }
.welcome-photo { min-height: 100%; margin: 0; position: relative; background: #2b3d30; }
.welcome-photo img { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: 50% 52%; }

.primary, .secondary, .quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: .73rem 1.4rem;
  border: 1px solid transparent;
  border-radius: .72rem;
  font-weight: 690;
  line-height: 1.22;
  text-align: center;
}
.primary { background: var(--green); color: #fff; padding-inline: clamp(1.25rem, 3vw, 2rem); }
.primary:hover:not(:disabled) { background: #315b45; }
.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.quiet { background: transparent; color: var(--ink); min-height: 2.75rem; padding-inline: .65rem; }
.secondary:hover:not(:disabled), .quiet:hover:not(:disabled) { background: var(--soft); }

.progress { margin: 0 auto 1.05rem; max-width: 61rem; }
.progress ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; padding: 0; margin: 0; list-style: none; }
.progress li { border-top: 3px solid var(--line); padding-top: .48rem; font-size: .875rem; font-weight: 620; color: var(--muted); }
.progress li[data-complete] { border-color: #8ba181; }
.progress li[aria-current] { border-color: var(--green); color: var(--green); font-weight: 750; }
.work-panel {
  max-width: 61rem;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--white);
  padding: clamp(1.2rem, 4vw, 3.05rem);
}
.panel-header h1, .thanks h1 { font-size: clamp(2.8rem, 5.1vw, 5rem); line-height: .99; }
.panel-header p, .follow-up p { color: var(--muted); line-height: 1.55; }
.panel-header p { margin-top: .7rem; }
.fields { margin-top: 1.65rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.18rem; }
.field { display: grid; gap: .38rem; font-weight: 680; }
.field-wide { grid-column: 1 / -1; }
.field input {
  width: 100%;
  min-height: 3.15rem;
  border-radius: .62rem;
  border: 1px solid #c1cabc;
  background: #fcfcf8;
  color: var(--ink);
  padding: .65rem .78rem;
  font-weight: 450;
}
.field input::placeholder { color: #58635a; opacity: 1; }
.actions { display: flex; justify-content: space-between; gap: .7rem; margin-top: 1.7rem; }
fieldset { padding: 0; border: 0; min-width: 0; margin: 1.55rem 0 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.team-option {
  position: relative;
  display: flex;
  min-height: 4.55rem;
  align-items: center;
  gap: .65rem;
  padding: .67rem .7rem;
  border: 1px solid var(--line);
  border-radius: .73rem;
  cursor: pointer;
}
.team-option:hover { background: #f3f5eb; }
.team-option:has(input:checked) { border-color: #416149; background: #eaf0e3; box-shadow: inset 0 0 0 1px #416149; }
.team-option:has(input:focus-visible) { outline: 3px solid #7c5930; outline-offset: 2px; }
.team-option input { margin: 0 0 0 auto; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--green); }
.team-icon { display: grid; place-items: center; background: #e6ebdb; color: var(--green); border-radius: .53rem; width: 2.5rem; height: 2.5rem; flex: none; }
.team-icon svg { width: 1.28rem; height: 1.28rem; }
.team-name { display: block; font-weight: 720; line-height: 1.1; margin-bottom: .25rem; }
.team-leads { display: block; font-size: .875rem; line-height: 1.15; color: var(--muted); }
.leader-grid { margin: 1.45rem 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.leader {
  min-width: min(12rem, 100%);
  display: flex;
  align-items: center;
  gap: .76rem;
  padding: .68rem 1rem .68rem .68rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.leader-avatar {
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  background: var(--soft);
  color: var(--green);
  display: grid;
  place-items: center;
  border-radius: .6rem;
  overflow: hidden;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.05rem;
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.follow-up { background: #eef1e6; border-radius: .78rem; display: flex; align-items: baseline; gap: .8rem; padding: .85rem 1.05rem; }
.follow-up span { font-size: .875rem; color: var(--green); letter-spacing: .08em; font-weight: 780; }
.error, .notice { color: #732a1c; background: #faeade; border-radius: .62rem; padding: .75rem 1rem; margin: .8rem 0; }
.thanks { text-align: center; min-height: 27rem; display: grid; align-content: center; justify-items: center; gap: .95rem; padding-block: 2.75rem; }
.check { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; color: var(--green); background: var(--soft); font-size: 1.6rem; }
.thanks h1 { max-width: 17ch; }
.return-message { font-size: .9rem; color: var(--muted); }
.reset-progress { width: min(12rem, 100%); margin-top: .5rem; height: .2rem; border-radius: 1rem; background: var(--soft); overflow: hidden; }
.reset-progress span { display: block; width: 100%; height: 100%; background: #557054; transform-origin: left; }
.screen.enter { animation: appear .27s ease-out both; }
.thanks.enter .reset-progress span { animation: countdown 3s linear both; }
@keyframes appear { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 850px) {
  .welcome-copy { padding-inline: clamp(1.5rem, 4vw, 3rem); }
  .welcome h1 { font-size: clamp(4.7rem, 10.6vw, 6.8rem); }
}
@media (max-width: 650px) {
  .masthead { min-height: 4.5rem; }
  .welcome { grid-template-columns: 1fr; min-height: auto; }
  .welcome-copy { padding: 2rem 1.55rem; }
  .welcome h1 { font-size: clamp(4.6rem, 15vw, 6.7rem); }
  .welcome-photo { min-height: 13rem; }
  .welcome-photo img { object-position: 50% 42%; }
  .footer { align-items: flex-start; flex-direction: column; gap: .35rem; }
}
@media (max-width: 470px) {
  .fields, .team-grid { grid-template-columns: 1fr; }
  .desktop-break { display: none; }
  .leader { min-width: 0; flex: 1 1 9.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .screen.enter, .thanks.enter .reset-progress span { animation: none; }
}
