:root {
  --ink: #232825;
  --ink-2: #3f4642;
  --muted: #59615c;
  --charcoal: #2c312e;
  --night: #0e1311;
  --green: #00a63e;
  --green-ink: #007333;
  --green-press: #005c29;
  --forest: #0d3b2a;
  --mint: #b3e8c4;
  --khaki: #ddd5b8;
  --khaki-2: #cfc49d;
  --sky: #f1f5f9;
  --slate: #d3dfea;
  --slate-2: #94a3b8;
  --red: #b42318;
  --line: #e4e6e3;
  --paper: #fdfdfb;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: var(--khaki-2) var(--paper); }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; caret-color: var(--green-ink); }
::selection { background: var(--khaki); color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--ink); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.3; }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.18; }
h3 { font-size: 1.6rem; line-height: 1.3; }
p { text-wrap: pretty; }
.fig { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* drafting frame */
.frame { max-width: 1376px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; }
.pad { padding-left: 48px; padding-right: 48px; }
.hair { height: 1px; background: var(--line); width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }

/* announcement + nav */
.announce { background: var(--khaki); text-align: center; font-family: var(--serif); font-size: 16px; padding: 12px 24px; }
.announce a { text-decoration: underline; text-decoration-color: transparent; }
.announce a:hover { text-decoration-color: currentColor; }
.top { background: var(--charcoal); color: #fff; position: sticky; top: 0; z-index: 30; }
.top .in { max-width: 1376px; margin: 0 auto; padding: 0 48px; height: 68px; display: flex; align-items: center; gap: 40px; }
.top img { height: 30px; display: block; }
.top ul { list-style: none; display: flex; gap: 8px; margin-left: auto; }
.top ul a { display: block; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; color: #e7ebe8; }
.top ul a:hover { color: #fff; text-decoration: underline; }
.top ul a[aria-current="page"] { color: var(--mint); }

/* buttons: flat, short uppercase labels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 13.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 17px 26px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--night); }
.btn-green { background: var(--green-ink); color: #fff; }
.btn-green:hover { background: var(--green-press); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn:disabled { background: #c9cdc9; color: var(--muted); cursor: not-allowed; }
.btn-sm { padding: 11px 18px; }

/* request form with states */
.req { display: flex; gap: 0; max-width: 470px; }
.req input { flex: 1; min-width: 0; font: 400 16px/1.4 var(--sans); color: var(--ink); padding: 15px 16px; border: 1px solid var(--ink); border-right: 0; border-radius: 2px 0 0 2px; background: #fff; }
.req input::placeholder { color: #6a716c; }
.req input[aria-invalid="true"] { border-color: var(--red); }
.req .btn { border-radius: 0 2px 2px 0; }
.req-msg { font-size: 14.5px; margin-top: 10px; min-height: 1.5em; color: var(--muted); }
.req-msg.err { color: var(--red); }
.req-msg.ok { color: var(--green-ink); font-weight: 600; }
.spin { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the scramble line: resolves through ledger digits */
.scramble { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.3; color: var(--green-ink); white-space: nowrap; min-height: 1.3em; }
.scramble .n { color: var(--khaki-2); font-style: normal; }

/* arches */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; position: relative; }

/* footer */
.foot { background: var(--night); color: #e7ebe8; padding: 56px 0 40px; }
.foot .in { max-width: 1376px; margin: 0 auto; padding: 0 112px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; font-size: 15px; }
.foot .brand img { height: 46px; display: block; }
.foot .brand hr { border: 0; border-top: 1px solid #3a423e; margin: 56px 0 20px; }
.foot .brand p { color: #b9c2bd; max-width: 30ch; }
.foot h2 { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; color: #fff; }
.foot .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid #3a423e; padding-top: 20px; margin-top: 24px; color: #a9b3ad; font-size: 14px; }

.back { position: fixed; left: 16px; bottom: 16px; z-index: 50; background: var(--charcoal); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 2px; text-decoration: none; }

@media (max-width: 900px) {
  .pad { padding-left: 20px; padding-right: 20px; }
  .top .in { padding: 0 20px; gap: 16px; }
  .top ul { display: none; }
  .top .btn { margin-left: auto; }
  .req { flex-direction: column; gap: 8px; }
  .req input { border-right: 1px solid var(--ink); border-radius: 2px; }
  .req .btn { border-radius: 2px; }
  .foot .in { padding: 0 20px; grid-template-columns: 1fr 1fr; }
  .foot .legal { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
