/* ──────────────────────────────────────────────────────────
   Shared site styles.
   Three typefaces:
     --display : Author (Fontshare) — serif display, headlines (masthead + titles)
     --text    : Trancoso Sans — humanist sans for body copy
     --mono    : JetBrains Mono — surgical use on the live-site link only
   All self-hosted from assets/fonts/. Author is a free Fontshare/ITF
   face; Trancoso Sans is a licensed YouWorkForThem face (header below).
   Palette tokens are generated by palette.js (algorithmic, WCAG-
   checked) and applied before first paint. The values below are the
   static fallback — the computed "Lab" scheme — so a JS-off render
   still lands on the chromatic ground, never beige.
   ────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────
   Self-hosted fonts. The YouWorkForThem WebFont license header below
   (Trancoso Sans) must remain unaltered and visible in this CSS. Files
   live in assets/fonts/; @font-face rules map them into the site
   families "Author" (display) and "Trancoso Sans" (body). Only weights
   whose files exist render today; drop in the rest and they activate.
   ───────────────────────────────────────────────────────────────── */

/*
Font: 		Trancoso Sans Med
Style: 		Regular
URL: 		https://youworkforthem.com/font/T32296/trancoso-sans
Foundry: 	Genilson Lima Santos
Foundry: 	https://youworkforthem.com/designer/932/genilson-lima-santos
Copyright:
Version: 	18
Created:	April 02, 2026
License: 	https://www.youworkforthem.com/font-license
License: 	The WebFont(s) listed in this document must follow the YouWorkForThem
			WebFont license rules. All other parties are strictly restricted
			from using the WebFonts(s) listed without a purchased license.
			All details above must always remain unaltered and visible in your CSS.
*/

/* ── Author (display) — free Fontshare/ITF face, self-hosted ─ */
@font-face { font-family: "Author"; src: url("fonts/author-extralight.woff")        format("woff"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Author"; src: url("fonts/author-extralight-italic.woff") format("woff"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Author"; src: url("fonts/author-regular.woff")           format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Author"; src: url("fonts/author-italic.woff")            format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Author"; src: url("fonts/author-semibold.woff")          format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Author"; src: url("fonts/author-semibold-italic.woff")   format("woff"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Author"; src: url("fonts/author-bold.woff")              format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Author"; src: url("fonts/author-bold-italic.woff")       format("woff"); font-weight: 700; font-style: italic; font-display: swap; }

/* ── Trancoso Sans (body) — full weight ladder. Verify the file names
   against your YWFT downloads (they use this hyphenated pattern). Only
   Medium (500) is present today; body copy requests 500 so it is the
   one in use. ─ */
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-thin.woff2")       format("woff2"), url("fonts/trancoso-sans-thin.woff")       format("woff"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-extralight.woff2") format("woff2"), url("fonts/trancoso-sans-extralight.woff") format("woff"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-light.woff2")      format("woff2"), url("fonts/trancoso-sans-light.woff")      format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-regular.woff2")    format("woff2"), url("fonts/trancoso-sans-regular.woff")    format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-medium.woff2")     format("woff2"), url("fonts/trancoso-sans-medium.woff")     format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-semibold.woff2")   format("woff2"), url("fonts/trancoso-sans-semibold.woff")   format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-bold.woff2")       format("woff2"), url("fonts/trancoso-sans-bold.woff")       format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-extrabold.woff2")  format("woff2"), url("fonts/trancoso-sans-extrabold.woff")  format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Trancoso Sans"; src: url("fonts/trancoso-sans-black.woff2")      format("woff2"), url("fonts/trancoso-sans-black.woff")      format("woff"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #29b095;
  --bg-deeper: #269d85;
  --ink: #0e0d0b;
  --ink-soft: #163b32;
  --rule: #228671;
  --accent: #710505;

  --display: "Author", Georgia, "Times New Roman", serif;
  --text: "Trancoso Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: none; }
:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0;
}

/* ── Layout shell ─────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px);
}

/* ── Masthead ─────────────────────────────────────── */
header.masthead {
  display: flex;
  align-items: baseline;
  padding: clamp(12px, 2vw, 24px) 0 clamp(28px, 5vw, 56px);
}
.masthead .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.masthead .name:hover { color: var(--accent); }

/* ── Footer ───────────────────────────────────────── */
footer.foot {
  margin-top: clamp(80px, 14vw, 180px);
  padding: clamp(20px, 3vw, 32px) 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.foot a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.foot a:hover { color: var(--accent); border-color: var(--accent); }
.foot .legal {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-soft);
}

/* ── Mono live-site link ──────────────────────────── */
.live-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.live-link:hover { color: var(--accent); border-color: var(--accent); }

/* ── Palette dock ─────────────────────────────────── */
.palette-dock {
  position: fixed;
  bottom: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  z-index: 80;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.palette-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--sw-bg);
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform .12s ease, border-color .12s ease;
}
.palette-swatch::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--sw-accent);
  transform: scale(0.4);
  transition: transform .15s ease;
}
.palette-swatch:hover { transform: scale(1.18); }
.palette-swatch:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.palette-swatch[aria-pressed="true"] { border-color: var(--ink); }
.palette-swatch[aria-pressed="true"]::after { transform: scale(0.7); }

/* ── Hatch defs sit invisibly in markup ───────────── */
.ph-defs { position: absolute; width: 0; height: 0; pointer-events: none; }
