/* VestFloor — identity layer.
 *
 * The site is a compiled export whose stylesheet is byte-for-byte the donor's;
 * only the values of a few custom properties ever differed. Everything below
 * loads AFTER that stylesheet and overrides it. Nothing here is rebuilt, so a
 * bad idea is one file away from being reverted.
 *
 * Four things carried the donor's signature and all four are replaced:
 *   1. Archivo + IBM Plex Mono, the exact same self-hosted files
 *   2. buttons as 2px blocks with a hard 4px offset shadow that slides on hover
 *   3. zero radius everywhere and the same hard-offset shadow on every card
 *   4. flat, low-contrast muted text on a mint-green ground
 */

/* ------------------------------------------------------------------ type */

:root {
  /* Schibsted Grotesk reads like a markets page — news-desk grotesque with
     real character in the numerals, which this site is full of. Space Mono
     carries the clerical, form-stamped side the copy leans on. */
  --font-display: "Schibsted Grotesk", "Archivo", system-ui, sans-serif;
  --font-ui: "Schibsted Grotesk", "Archivo", system-ui, sans-serif;
  --font-mono: "Space Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

/* Schibsted's caps are wider than Archivo's, so the display tracking that was
   tuned for Archivo now reads loose. Pull it back and drop the weight a step:
   at 96px an 800 in this face is heavier than the same number in Archivo. */
.display {
  font-weight: 700;
  letter-spacing: -0.045em;
}

/* Space Mono runs wide. Small uppercase labels need less tracking than the
   0.14em the sheet asks for, or they break out of their containers. */
.field-label {
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* ---------------------------------------------------------------- colour */

:root {
  /* The same green identity, taken deeper and less minty. The logo, the OG
     card and the badge art all live on this ground, so the hue stays; it is
     the value that changes. */
  --blue: #0e5334;
  --blue-deep: #062e1d;
  --blue-dark: #041c11;
  --blue-shade: #2c8b5b;
  --bg: #0e5334;

  /* One warm accent, used for every interactive state. The donor has no such
     colour anywhere, and against this green it is the loudest single change
     on the page. */
  --accent: #e9b44c;
  --accent-deep: #c8901f;
  --accent-ink: #241800;

  /* Muted text on the green ground was washed out. */
  --ink-muted: #d3e7dc;
  --ink-faint: #a2c6b3;
  --on-blue-muted: #d3e7dc;

  --rule: #cfd6d1;
  --rule-strong: #10241a;
}

/* --------------------------------------------------------------- contour */

:root {
  /* Not fully square any more, but nowhere near a pill: enough to read as a
     deliberate choice next to the pixel art rather than a default. */
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;

  /* Hard offset blocks out, real depth in. This is the single biggest tell. */
  --shadow-card: 0 1px 2px rgba(4, 28, 17, 0.10), 0 8px 20px -6px rgba(4, 28, 17, 0.18);
  --shadow-raised: 0 2px 4px rgba(4, 28, 17, 0.14), 0 18px 40px -12px rgba(4, 28, 17, 0.30);

  /* The extruded headline shadow was the donor's loudest flourish. */
  --extrude: none;
}

/* The headline loses the extrude, so give it presence a different way: a rule
   under the block, in the accent, the width of the text rather than the page. */
h1.display.extruded {
  text-shadow: none;
  position: relative;
  padding-bottom: 0.12em;
}
h1.display.extruded::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.2em;
  height: 5px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------------------------------------------------------------- buttons */

/* Targeted by the hard-shadow utility rather than by a component class,
   because this build has no component classes — every button is a bag of
   Tailwind utilities and the shadow is what makes it a button. */
a[class*="shadow-[4px_4px_0"],
a[class*="shadow-[3px_3px_0"],
button[class*="shadow-[4px_4px_0"],
button[class*="shadow-[3px_3px_0"] {
  box-shadow: none !important;
  border-width: 1px !important;
  border-radius: 3px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    letter-spacing 0.18s var(--ease-out);
}

/* The fill sweeps in from the left instead of the whole block jumping. */
a[class*="shadow-[4px_4px_0"]::before,
a[class*="shadow-[3px_3px_0"]::before,
button[class*="shadow-[4px_4px_0"]::before,
button[class*="shadow-[3px_3px_0"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out);
}

a[class*="shadow-[4px_4px_0"]:hover::before,
a[class*="shadow-[3px_3px_0"]:hover::before,
button[class*="shadow-[4px_4px_0"]:hover::before,
button[class*="shadow-[3px_3px_0"]:hover::before {
  transform: scaleX(1);
}

a[class*="shadow-[4px_4px_0"]:hover,
a[class*="shadow-[3px_3px_0"]:hover,
button[class*="shadow-[4px_4px_0"]:hover,
button[class*="shadow-[3px_3px_0"]:hover {
  color: var(--accent-ink) !important;
  border-color: var(--accent-deep) !important;
  letter-spacing: 0.01em;
}

/* Kill the slide. The whole point is that the button no longer moves. */
a[class*="shadow-[4px_4px_0"]:hover,
a[class*="shadow-[3px_3px_0"]:hover,
button[class*="shadow-[4px_4px_0"]:hover,
button[class*="shadow-[3px_3px_0"]:hover {
  transform: none !important;
}

/* Disabled buttons must not light up. */
a[class*="shadow-[4px_4px_0"][aria-disabled="true"]::before,
button[class*="shadow-[4px_4px_0"]:disabled::before,
button[class*="shadow-[3px_3px_0"]:disabled::before {
  display: none;
}

/* ----------------------------------------------------------------- links */

/* Text links get a rule that grows from the left rather than a colour flip. */
a[class*="hover:text-ink"]:not([class*="shadow-["]) {
  position: relative;
  transition: color 0.16s var(--ease-out);
}
a[class*="hover:text-ink"]:not([class*="shadow-["])::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease-out);
}
a[class*="hover:text-ink"]:not([class*="shadow-["]):hover::after {
  transform: scaleX(1);
}

/* ----------------------------------------------------------------- cards */

/* Anything the sheet drew as a hairline box gets a real edge and lifts a
   little under the cursor, instead of sitting in a hard-shadowed block. */
[class*="border-rule"][class*="bg-surface"] {
  border-radius: var(--radius);
  transition:
    border-color 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}

/* Table rules were mid-grey on both sides of the theme; give the header row a
   weight of its own so long tables have a top edge again. */
thead th {
  border-bottom-width: 2px;
  border-bottom-color: var(--rule-strong);
}
tbody tr {
  transition: background-color 0.14s var(--ease-out);
}
tbody tr:hover {
  background-color: rgba(233, 180, 76, 0.07);
}

/* --------------------------------------------------------------- header */

/* The wordmark tile used the same translate-on-hover as everything else. */
header a[aria-label*="home"] img,
header a[aria-label*="home"] span:first-of-type {
  transition: transform 0.2s var(--ease-out);
}
header a[aria-label*="home"]:hover img {
  transform: none;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Nav items: a marker in the accent rather than a colour change alone. */
header nav a {
  position: relative;
  padding-bottom: 2px;
}
header nav a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease-out);
}
header nav a:hover::before {
  transform: scaleX(1);
}

/* --------------------------------------------------------------- focus */

/* The build has no visible focus style at all. Keyboard users get one. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ------------------------------------------------------------- restraint */

@media (prefers-reduced-motion: reduce) {
  a[class*="shadow-["]::before,
  a[class*="hover:text-ink"]::after,
  header nav a::before {
    transition: none;
  }
}

/* ------------------------------------------------- handbook-only utilities

   The compiled Tailwind build only contains classes the original pages used.
   The handbook is hand-written, so a handful it needs were never emitted —
   including three text colours, which would otherwise inherit and leave the
   copy invisible on the white cards. */

.min-h-14 { min-height: 3.5rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-x-6 { column-gap: 1.5rem; }
.pl-5 { padding-left: 1.25rem; }
.space-y-14 > :not([hidden]) ~ :not([hidden]) { margin-top: 3.5rem; }
.min-w-\[520px\] { min-width: 520px; }
.min-w-\[560px\] { min-width: 560px; }
.text-paper-muted { color: var(--paper-muted); }
.text-paper-faint { color: var(--paper-faint); }
.text-rule-strong { color: var(--rule-strong); }

@media (min-width: 1024px) {
  .lg\:top-20 { top: 5rem; }
}

/* ------------------------------------------------- the app's wallet button

   The compiled pages ship a wagmi button that only ever finds an injected
   extension and tells everyone else "No wallet found". It is replaced by a
   Privy-backed one from privy-header.js, so this hides the original rather
   than leaving two buttons that disagree about who is signed in. */
header .relative.hidden.h-8 {
  display: none !important;
}
