@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --fog: #eef2f0;
  --sheet: #fff;
  --ink: #0e1a16;
  --muted: #4a5a53;
  --forest: #173c31;
  --line: #cfd8d3;
  --input-line: #82948c;
  --citrus: #d5e86a;
  --error: #9c2920;
  --error-ground: #faefeb;
  --success-ground: #ecf5ef;
  --shadow: 0 18px 36px -24px #0e1a1654;
  --display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --text: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fog: #0b1a15;
    --sheet: #12271f;
    --ink: #eef2f0;
    --muted: #a9b9b1;
    --forest: #9ad2b7;
    --line: #2b463b;
    --input-line: #66867a;
    --error: #ffa89d;
    --error-ground: #30221e;
    --success-ground: #173328;
    --shadow: 0 18px 36px -24px #000b;
    color-scheme: dark;
  }
  .wordmark img { filter: brightness(0) invert(.94); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font: 400 1rem/1.5 var(--text);
  min-height: 100vh;
}
p, h1, h2, h3 { margin: 0; }
button, input, textarea { font: inherit; }
a { color: var(--forest); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.skip {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: .6rem 1rem;
  color: var(--ink);
  background: var(--sheet);
}
.skip:focus { transform: none; }
.frame { max-width: 77rem; margin-inline: auto; padding-inline: clamp(20px, 5vw, 72px); }
.masthead { border-block-end: 1px solid var(--line); }
.bar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.wordmark { display: flex; padding-block: 10px; align-items: center; min-height: 44px; }
.wordmark img { display: block; width: clamp(126px, 22vw, 156px); height: auto; }
.private-label {
  display: inline-flex; align-items: center; gap: .55em;
  color: var(--forest); font-size: .875rem; font-weight: 700;
}
.private-label::before {
  content: ""; width: .43em; height: .43em; flex: none;
  border: 1px solid currentColor; border-radius: 50%;
}

.layout {
  display: grid;
  gap: clamp(26px, 6vw, 76px);
  align-items: start;
  padding-block: clamp(28px, 6vw, 86px) clamp(36px, 5vw, 76px);
}
.intro { position: relative; isolation: isolate; max-width: 31rem; }
.staff {
  position: absolute;
  z-index: -1;
  inline-size: min(100%, 28rem);
  inset-block-start: .4rem;
  display: grid;
  gap: .53rem;
  mask-image: linear-gradient(90deg, #000 12%, transparent 98%);
  pointer-events: none;
}
.staff i { height: 1px; background: var(--line); }
h1 {
  font: 680 clamp(2.48rem, 5.2vw, 4.65rem)/.99 var(--display);
  letter-spacing: -.055em;
  text-wrap: balance;
}
h1 mark {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  margin-block-start: .09em;
  padding: 0 .11em .055em;
  border: 1px solid #0e1a16;
  border-radius: 5px;
  background: var(--citrus);
  color: #0e1a16;
  transform: rotate(-1.15deg);
  transform-origin: left center;
}
.lede {
  max-width: 34ch;
  margin-top: clamp(14px, 2.5vw, 26px);
  font-size: clamp(1.09rem, 1rem + .55vw, 1.36rem);
  line-height: 1.43;
  text-wrap: pretty;
}
.next {
  max-width: 34ch;
  margin-top: clamp(23px, 4vw, 43px);
  padding-top: 12px;
  border-top: 1px solid var(--input-line);
}
.next h2 { font: 660 1.12rem/1.25 var(--display); letter-spacing: -.02em; }
.next ol { display: grid; gap: .45rem; margin: .55rem 0 0; padding-inline-start: 1.22em; }
.next li { color: var(--muted); padding-inline-start: .12em; }
.next li::marker { color: var(--forest); font-weight: 700; }
.signed {
  display: flex;
  gap: .65rem;
  align-items: center;
  margin-top: clamp(18px, 3vw, 30px);
  line-height: 1.16;
  font-size: .94rem;
  color: var(--muted);
}
.signed img { display: block; border-radius: 7px; }
.signed strong { color: var(--ink); }

.sheet {
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}
.sheet-content { padding: clamp(17px, 3.2vw, 42px); min-width: 0; }
.sheet h2 { font: 660 clamp(1.65rem, 1.25rem + 1.1vw, 2.15rem)/1.07 var(--display); letter-spacing: -.038em; }
.form-intro, .hint, .privacy { color: var(--muted); }
.form-intro { margin-block: .4rem 1.15rem; }
fieldset {
  display: grid;
  gap: 1rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.paired { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
label { font-weight: 700; }
.hint { line-height: 1.4; font-size: .94rem; }
input, textarea {
  width: 100%;
  min-width: 0;
  padding: .58rem .72rem;
  border: 1px solid var(--input-line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--fog);
}
input { min-height: 44px; }
input::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 68px; resize: vertical; }
#goals { min-height: 86px; }
.submit-row { display: grid; gap: .85rem; justify-items: start; margin-top: .18rem; }
button {
  min-height: 46px;
  display: inline-flex;
  gap: .68rem;
  align-items: center;
  justify-content: center;
  padding: .58rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--sheet);
  font-weight: 700;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--forest); border-color: var(--forest); }
button:disabled { opacity: .8; cursor: wait; }
.privacy { display: grid; gap: .32rem; font-size: .9375rem; line-height: 1.4; }
.form-message { margin-top: .9rem; }
.form-message:empty { margin: 0; }
.form-message.error {
  border-inline-start: 2px solid var(--error);
  background: var(--error-ground);
  border-radius: 4px;
  padding: .65rem .8rem;
  color: var(--error);
  font-weight: 650;
}
.notice {
  margin-block-start: 1rem;
  padding: clamp(15px, 2.4vw, 25px);
  border-inline-start: 2px solid var(--forest);
  border-radius: 4px;
  background: var(--success-ground);
}
.notice--invite.is-invalid { background: var(--error-ground); border-color: var(--error); }
.notice h3 { font: 650 1.35rem/1.2 var(--display); letter-spacing: -.025em; }
.notice p { margin-top: .45rem; max-width: 43ch; }
.foot { padding-bottom: 22px; color: var(--muted); font-size: .9375rem; }
.foot a { color: inherit; display: inline-flex; min-height: 44px; align-items: center; }

@media (min-width: 40rem) { .paired { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 55rem) {
  .layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .intro { padding-top: clamp(16px, 3vw, 42px); container-type: inline-size; }
  .intro h1 { font-size: min(clamp(2.48rem, 5.2vw, 4.65rem), 15.2cqi); }
  .staff { inset-block-start: 2.25rem; }
}
@media (max-width: 54.99rem) {
  .layout { grid-template-areas: "intro" "lede" "sheet" "next" "signature"; gap: 24px; }
  .intro { display: contents; }
  .intro h1 { grid-area: intro; }
  .intro .lede { grid-area: lede; margin-top: -12px; }
  .staff { display: none; }
  .sheet { grid-area: sheet; }
  .next { grid-area: next; margin-top: 0; }
  .signed { grid-area: signature; margin-top: -6px; }
}
@media (max-width: 39.99rem) { button { width: 100%; } }
