@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-italic.woff2) format('woff2');
}

/* A contract page after a sharp TC has been through it: bond paper, form print,
   a highlighter, a red pen and the blue of filled-in blanks. Nothing else. */
:root {
  --paper: #fdfdfb;
  --ink: #161616;
  --ink-2: #45454a;
  --rule: #cfcfca;
  --rule-strong: #161616;
  --red: #c22b1f;
  --red-ink: #a8231a;
  --blue: #1d3fa8;
  --hi: #ffe94d;
  --hi-pressed: #ffe12e;
  --bond: #ffffff;
  --desk: #eceae4;
  --font: 'Archivo', system-ui, sans-serif;
  --measure: 68ch;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--ink-2) var(--desk);
}
::selection { background: var(--hi); color: var(--ink); }
input, button { font: inherit; color: inherit; caret-color: var(--red); }
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 1px; }
b, strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Form header and footer: the lines every promulgated page carries. */
.formhead { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule-strong); }
.formhead-in, .formfoot-in { max-width: 76rem; margin: 0 auto; padding: 0.7rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-stretch: 88%; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 1.6rem; height: 1.6rem; }
.initials { margin: 0 auto 0 0; font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.blank { display: inline-block; width: 2.2rem; border-bottom: 1px solid var(--ink); margin: 0 0.25rem; text-align: center; }
.blank.signed { color: var(--blue); font-style: italic; font-weight: 600; }
.formfoot { border-top: 1px solid var(--rule-strong); margin-top: 4rem; }
.formfoot-in { justify-content: space-between; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-2); padding-block: 1rem 2.5rem; }
.formfoot p { margin: 0; }
.initials-foot { display: none; width: 100%; }
.flag.flag-after { display: none; }

/* The one control shape on the page: a sign-here flag. The arrow shape lives on a
   layer behind the label so the element itself keeps its focus ring and shadow. */
.flag {
  --notch: 0.9rem;
  --flag-bg: var(--hi);
  position: relative; isolation: isolate;
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 2.5rem; padding: 0.35rem calc(var(--notch) + 0.9rem) 0.35rem 0.9rem;
  background: none; color: var(--ink); border: 0; cursor: pointer;
  font-weight: 800; font-stretch: 80%; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.05; text-decoration: none;
  filter: drop-shadow(0 1px 1.5px rgb(22 22 22 / 0.28));
  transition: transform 0.35s var(--ease-out);
}
.flag::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--flag-bg);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%);
  transition: background-color 0.2s;
}
.flag:hover { transform: translateX(4px); color: var(--ink); --flag-bg: var(--hi-pressed); }
.flag:active { transform: translateX(1px); }
.flag:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.flag:disabled { opacity: 0.55; cursor: progress; transform: none; }
.flag-sub { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; }
.flag-lg { min-height: 3.4rem; font-size: 1.08rem; padding-inline: 1.3rem calc(var(--notch) + 1.5rem); --notch: 1.2rem; }

/* Opening: the offer on the left, the marked-up exhibit on the right. */
.agreement { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.opening { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem) 3.5rem; }
.title-block { position: sticky; top: 6rem; }
h1 {
  margin: 0 0 1.1rem; font-weight: 850; font-stretch: 68%; text-transform: uppercase;
  font-size: clamp(2.7rem, 6.3vw, 5.4rem); line-height: 0.92; letter-spacing: -0.012em; text-wrap: balance;
}
.terms { font-size: clamp(1.25rem, 2.1vw, 1.55rem); line-height: 1.3; margin: 0 0 0.9rem; font-stretch: 90%; }
.terms strong { background: linear-gradient(transparent 58%, var(--hi) 58%, var(--hi) 92%, transparent 92%); padding-inline: 0.1em; }
.lede { max-width: 34ch; color: var(--ink-2); margin: 0 0 1.8rem; }

.exhibit { margin: 0; }
.sheet {
  background: var(--bond); padding: 1.25rem clamp(1.15rem, 2.4vw, 1.9rem) 1.6rem;
  box-shadow: 0 0 0 1px rgb(22 22 22 / 0.07), 0 2px 3px rgb(22 22 22 / 0.08), 0 8px 14px -6px rgb(22 22 22 / 0.16);
  font-size: 0.93rem; line-height: 1.5;
}
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 0.55rem; margin-bottom: 0.9rem; }
.typed { color: var(--blue); font-weight: 500; }
.cc-short { display: none; }
.clause { display: grid; grid-template-columns: minmax(0, 1fr) 12.5rem; gap: 1.6rem; padding-block: 0.8rem; }
.clause + .clause { border-top: 1px dashed var(--rule); }
.clause-text { margin: 0; font-stretch: 94%; }
mark {
  color: inherit; background: none; padding: 0.05em 0;
  background-image: linear-gradient(var(--hi), var(--hi));
  background-repeat: no-repeat; background-size: 100% 78%; background-position: 0 70%;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.circled { position: relative; white-space: nowrap; font-weight: 700; }
.circled svg { position: absolute; inset: -0.55em -0.55em -0.5em -0.6em; width: calc(100% + 1.15em); height: calc(100% + 1.05em); overflow: visible; pointer-events: none; }
.circled path, .note-hook path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Filled-in blanks: blue, on the form's own underline. */
.fill-wrap { display: inline; }
.fill {
  border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; color: var(--blue);
  font-weight: 600; font-stretch: 94%; padding: 0 0.15rem; border-radius: 0; line-height: 1.2;
}
.fill:hover { background: color-mix(in srgb, var(--blue) 6%, transparent); }
.fill:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.fill:invalid { border-bottom-color: var(--red); }
.fill-date { width: 9.6rem; }
.fill-days { width: 2.4rem; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.fill-days::-webkit-inner-spin-button, .fill-days::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fill-date::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.8; filter: invert(19%) sepia(71%) saturate(2300%) hue-rotate(221deg) brightness(88%); }
.fill-date::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Red pen notes in the margin, tied to their phrases by leader lines. */
.sheet { position: relative; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.leaders path { fill: none; stroke: var(--red); stroke-width: 1.25; stroke-linecap: round; }
.leaders circle { fill: var(--red); }
.has-leaders .note:not(.note-try)::before { display: none; }
.note {
  margin: 0; position: relative; color: var(--red-ink);
  font-weight: 650; font-stretch: 78%; font-size: 0.97rem; line-height: 1.38;
}
.note::before { content: ''; position: absolute; left: -1.35rem; top: 0.62em; width: 1rem; border-top: 1px solid var(--red); }
.note .d { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note .why { display: block; font-weight: 500; margin-top: 0.2rem; }
.note-quiet { font-weight: 500; }
.note-try { font-weight: 600; display: flex; gap: 0.4rem; align-items: flex-start; }
.note-try::before { display: none; }
.note-hook { flex: none; width: 1.3rem; height: 0.75rem; margin-top: 0.28em; }
.note.flash { animation: rewrite 0.55s var(--ease-out); }
@keyframes rewrite { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
figcaption { font-size: 0.8rem; color: var(--ink-2); margin-top: 0.8rem; max-width: 60ch; }

/* Agreement paragraphs. */
.clauses { border-top: 1px solid var(--rule-strong); }
.para { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1rem, 5vw, 4.5rem); padding-block: 2.2rem; border-bottom: 1px solid var(--rule); }
.para h2 { margin: 0; font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1; letter-spacing: 0.005em; }
.pnum { font-variant-numeric: tabular-nums; margin-right: 0.25em; }
.para > p, .subs, .checks { margin: 0; max-width: var(--measure); }
.subs { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.subs b { margin-right: 0.35rem; }
.blank-fill { color: var(--blue); border-bottom: 1.5px solid var(--ink); padding: 0 0.2em; font-weight: 700; }
sup a { text-decoration: none; color: var(--red-ink); font-weight: 700; padding-inline: 0.1em; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.6rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-size: 0.97rem; }
.checks li b { margin-right: 0.4rem; font-stretch: 85%; white-space: nowrap; }
.box {
  width: 1rem; height: 1rem; border: 1.5px solid var(--ink); margin-top: 0.22em; position: relative; flex: none; background: var(--bond);
}
.checks .box::after {
  content: ''; position: absolute; left: 0.2rem; top: -0.1rem; width: 0.38rem; height: 0.72rem;
  border: solid var(--red); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}

/* Signature block: the signup form. */
.signatures { border-bottom: 0; }
.sig-intro { margin: 0.8rem 0 0; color: var(--ink-2); max-width: 32ch; }
.signatures form { display: grid; gap: 1.6rem; }
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.sig-wide { grid-column: 1 / -1; }
.sig-line { display: flex; flex-direction: column-reverse; gap: 0.25rem; }
.sig-line span { font-size: 0.82rem; color: var(--ink-2); }
.sig-line input {
  border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 0.35rem 0.1rem;
  font-size: 1.15rem; font-weight: 600; color: var(--blue); border-radius: 0;
}
.sig-line input:focus-visible { outline: none; border-bottom-color: var(--red); box-shadow: 0 1.5px 0 var(--red); }
.sig-line input[aria-invalid="true"] { border-bottom-color: var(--red); }
.boxes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.boxes legend { font-size: 0.82rem; color: var(--ink-2); padding: 0; margin-bottom: 0.55rem; width: 100%; }
.boxes .req { color: var(--ink-2); }
.boxes label { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; }
.boxes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.boxes .box { margin-top: 0; transition: background-color 0.15s; }
.boxes label:hover .box { background: color-mix(in srgb, var(--hi) 55%, var(--bond)); }
.boxes input:checked + .box::after {
  content: ''; position: absolute; left: 0.22rem; top: -0.12rem; width: 0.38rem; height: 0.74rem;
  border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}
.boxes input:focus-visible + .box { outline: 2px solid var(--red); outline-offset: 2px; }
.boxes.invalid .box { border-color: var(--red); }
.sig-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; }
.sig-sign, .sig-date { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 0.4rem; }
.sig-date { grid-template-columns: 1fr; }
.sig-x { font-weight: 800; font-size: 1.2rem; line-height: 1; padding-bottom: 0.3rem; }
.sig-mirror { min-height: 2.2rem; border-bottom: 1.5px solid var(--ink); color: var(--blue); font-style: italic; font-weight: 600; font-stretch: 85%; font-size: 1.45rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-date .sig-mirror { font-style: normal; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.sig-cap { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink-2); margin-top: 0.25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sig-submit { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 600; font-stretch: 85%; }
.form-msg.bad { color: var(--red-ink); }
.form-msg.ok { color: var(--blue); }
.source { font-size: 0.8rem; color: var(--ink-2); margin: 2rem 0 0; max-width: var(--measure); }
.source a { color: var(--red-ink); font-weight: 700; margin-right: 0.3rem; text-decoration: none; }

/* Privacy notice. */
.notice { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.notice .para:first-of-type { border-top: 1px solid var(--rule-strong); }
.notice-title { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.notice-title h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 0.6rem; }
.notice-title p { margin: 0; color: var(--ink-2); }

/* The one authored moment: the markup lands on the page. */
@media (prefers-reduced-motion: no-preference) {
  .js .exhibit mark { animation: sweep 0.9s var(--ease-out) both; }
  .js .exhibit .clause:nth-child(3) mark { animation-delay: 0.25s; }
  .js .exhibit .clause:nth-child(4) mark { animation-delay: 0.5s; }
  .js .circled path { stroke-dasharray: 320; animation: draw 0.9s 0.7s var(--ease-out) both; }
  .js .exhibit .note { animation: rewrite 0.7s var(--ease-out) both; }
  .js .exhibit .clause:nth-child(2) .note { animation-delay: 0.45s; }
  .js .exhibit .clause:nth-child(3) .note { animation-delay: 0.65s; }
  .js .exhibit .clause:nth-child(4) .note { animation-delay: 0.85s; }
  .js .exhibit .clause:nth-child(5) .note { animation-delay: 1.1s; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .leaders.intro path { stroke-dasharray: var(--l); animation: lead 0.75s calc(0.55s + var(--i) * 0.2s) var(--ease-out) both; }
  .js .leaders.intro circle { animation: dot 0.3s 0.5s var(--ease-out) both; }
}
@keyframes lead { from { stroke-dashoffset: var(--l); } to { stroke-dashoffset: 0; } }
@keyframes dot { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { background-size: 0% 78%; } to { background-size: 100% 78%; } }
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }

@media (max-width: 1100px) {
  .initials { display: none; }
  .initials-foot { display: block; }
  .formhead-in { justify-content: space-between; }
}
@media (max-width: 900px) {
  .opening, .para { grid-template-columns: minmax(0, 1fr); }
  .title-block { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .opening { padding-block: 1.6rem 2.5rem; gap: 1.4rem; }
  h1 { margin-bottom: 0.7rem; }
  .terms { margin-bottom: 0; }
  .title-block .lede, .title-block .flag-lg { display: none; }
  .flag.flag-after { display: flex; margin-top: 1.2rem; }
  h1 { font-size: 2.45rem; }
  .opening { padding-top: 1.2rem; }
  .sheet { padding-top: 0.9rem; }
  .sheet-head { flex-wrap: nowrap; margin-bottom: 0.5rem; padding-bottom: 0.45rem; white-space: nowrap; }
  .cc-label { display: none; }
  .cc-short { display: inline; }
  .sheet-head > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .sheet-head > span:last-child { flex: none; }
  .clause { padding-block: 0.6rem; }
  .note-hook { transform: rotate(90deg); }
  .leaders { display: none; }
  .has-leaders .note:not(.note-try)::before { display: block; }
  .sig-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .clause { grid-template-columns: 1fr; gap: 0.45rem; }
  .note { padding-left: 1.4rem; }
  .note::before { left: 0; }
  .note-try { padding-left: 0; }
  .checks, .sig-grid { grid-template-columns: 1fr; }
  .flag:not(.flag-lg) .flag-sub { display: none; }
  .flag-lg { width: 100%; align-items: flex-start; }
  .para { padding-block: 1.8rem; }
}
