/*
 * forge.css — ironsmith.io
 * Hand-authored. Hugo fingerprints it at build (forge.<hash>.css); see
 * site/layouts/_partials/head.html. Design rules: CODING_STANDARDS.md § CSS.
 */

/* ─────────────────────────────────────────────────────────────
   tokens
   ───────────────────────────────────────────────────────────── */

/* Self-hosted fonts (site/static/fonts/, SIL OFL 1.1, licenses alongside).
   Variable WOFF2, latin subset, downloaded once from Google Fonts; nothing
   is fetched from a third party at runtime. swap = text shows at once in
   the fallback font, then switches. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:    #0E0F11;
  --iron:   #1C1F24;
  --anvil:  #2A2E35;
  --patina: #3E5C54;
  --bone:   #EDE7DA;
  --ash:    #B7B1A4;
  --ember:  #B33B0A; /* 4.8:1 on --bone (WCAG AA needs 4.5:1 for text); was #C2410C at 4.2:1 */
  --coal:   #6B2A0E;

  --serif: 'Cormorant Garamond', 'EB Garamond', ui-serif, 'Iowan Old Style',
           'Apple Garamond', 'Baskerville', Cambria, Georgia,
           'Times New Roman', serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular,
           Menlo, Consolas, 'Liberation Mono', monospace;

  --step--1: clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
  --step-0:  clamp(1rem,    0.93rem + 0.36vw, 1.25rem);
  --step-1:  clamp(1.25rem, 1.10rem + 0.75vw, 1.75rem);
  --step-2:  clamp(1.75rem, 1.40rem + 1.75vw, 2.75rem);
  --step-3:  clamp(2.50rem, 1.80rem + 3.50vw, 4.75rem);
  --step-4:  clamp(3.75rem, 2.40rem + 6.75vw, 8.00rem);

  --measure: 68ch;
  --gutter:  clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --rule:    1px solid var(--ash);

  --bg: var(--bone);
  --fg: var(--ink);
  --fg-dim: color-mix(in srgb, var(--ink) 65%, var(--bone));
  --line: var(--anvil);
}

/* ─────────────────────────────────────────────────────────────
   reset
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 80ms linear;
}

a:hover { color: var(--ember); text-decoration-thickness: 2px; }
a:visited { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

::selection { background: var(--ember); color: var(--bone); }

/* hammered surface — subtle SVG turbulence at very low opacity */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

body > * { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────────
   theme: iron (dark)
   ───────────────────────────────────────────────────────────── */

body.theme-iron {
  --bg: var(--iron);
  --fg: var(--bone);
  --fg-dim: color-mix(in srgb, var(--bone) 65%, var(--iron));
  --line: color-mix(in srgb, var(--bone) 18%, var(--iron));
  --rule: 1px solid var(--line);
}

body.theme-iron::before { mix-blend-mode: screen; opacity: 0.04; }

/* ─────────────────────────────────────────────────────────────
   skip link
   ───────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -999px; top: -999px;
  background: var(--ember);
  color: var(--bone);
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem; top: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────
   layout
   ───────────────────────────────────────────────────────────── */

.shell {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell--narrow { max-width: 56rem; }

main { padding-block: clamp(2rem, 4vw, 4rem); }

/* ─────────────────────────────────────────────────────────────
   site chrome — header / footer
   ───────────────────────────────────────────────────────────── */

.site-header {
  padding-block: 1.25rem;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
}

.brand:hover { color: var(--ember); text-decoration: none; }

.brand__mark {
  width: 1.6rem; height: 1.6rem;
  color: currentColor;
}

.site-nav {
  font-family: var(--mono);
  font-size: var(--step--1);
  margin-left: auto;
  max-width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.site-nav a {
  text-decoration: none;
  color: inherit;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  color: var(--ember);
}

/* Current page: kept in the menu, marked rather than hidden. */
.site-nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer {
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-block: 1.5rem 2rem;
  border-top: 2px solid var(--line);
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--fg-dim);
}

/* Footer links: a real list in a "Footer" nav landmark, laid out as one
   wrapping line of text. The dots are decoration with empty alt text, so
   screen readers skip them (the first content rule is the fallback). Each
   dot is glued to the word before it, so a line never starts with one. */
.site-footer__text nav,
.site-footer__links,
.site-footer__links li { display: inline; }
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__text > span::after,
.site-footer__links li:not(:last-child)::after {
  content: "\A0\B7";
  content: "\A0\B7" / "";
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--ember); }

.site-footer__mark {
  width: 1.4rem; height: 1.4rem;
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────
   typography
   ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); font-weight: 600; }

p, ul, ol, dl, table { margin: 0 0 1em; }

p { max-width: var(--measure); }

strong { font-weight: 600; }
em { font-style: italic; }

code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* letterpress impression on display headings */
.h-pressed {
  text-shadow: 0 1px 0 rgba(255,255,255,0.55), 0 -1px 0 rgba(0,0,0,0.10);
}

body.theme-iron .h-pressed {
  text-shadow: 0 1px 0 rgba(0,0,0,0.65), 0 -1px 0 rgba(255,255,255,0.05);
}

/* mono section labels */
.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.section-label::before {
  content: "§ ";
  opacity: 0.6;
}

/* labeled spine rule: a 2px line with the mono label inset */
.spine {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: clamp(2rem, 4vw, 3rem) 0 1.5rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.spine::before {
  content: "§ " attr(data-step) " —";
  white-space: nowrap;
}

.spine::after {
  content: "";
  flex: 1;
  border-top: 2px solid var(--line);
}

/* ─────────────────────────────────────────────────────────────
   home: hero
   ───────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem);
}

.hero__label {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 1rem;
}

.hero__display {
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

/* the offer as the H1: a sentence, so one step down and a measure */
.hero__display--offer {
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.3;
  max-width: 40ch;
  color: var(--fg);
  margin: 0;
  font-style: italic;
  font-variation-settings: "wght" 420;
}

.hero__byline {
  clear: both;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 1.25rem 0 0;
  max-width: 40rem;
  text-wrap: balance;
}

.headshot {
  float: right;
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin: 0 0 1rem 1.5rem;
  border: var(--rule);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
}

/* link styled as a button: mono caps, ember outline; primary is filled.
   Bone on ember and ember on bone are both 4.8:1 (WCAG AA). */
.button {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ember);
  border: 2px solid var(--ember);
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  line-height: 1.6;
}

.button:hover {
  color: var(--coal);
  border-color: var(--coal);
}

.button--primary {
  background: var(--ember);
  color: var(--bone);
}

.button--primary:hover {
  background: var(--coal);
  color: var(--bone);
}

/* the single ember band: current commission */
.commission {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 1rem 0 1.25rem;
  border-top: 2px solid var(--ember);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

.commission__label {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}

.commission__list {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.commission__item {
  display: grid;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px dashed color-mix(in srgb, var(--line) 60%, transparent);
}

.commission__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.commission__title {
  font-size: var(--step-1);
  font-weight: 500;
  margin: 0;
  max-width: 56ch;
}

.commission__cta {
  justify-self: start;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
}

.commission__cta:hover {
  color: var(--coal);
  border-color: var(--coal);
}

/* ─────────────────────────────────────────────────────────────
   home: works grid
   ───────────────────────────────────────────────────────────── */

.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}

.work {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
  border-right: var(--rule);
  border-bottom: var(--rule);
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background 120ms linear;
}

.work:hover {
  background: color-mix(in srgb, var(--ember) 6%, transparent);
  color: inherit;
}

.work__name {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.work__name .dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--patina);
  display: inline-block;
}

.work__kind {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--fg-dim);
  margin: 0 0 0.75rem;
}

.work__blurb {
  font-size: var(--step-0);
  margin: 0;
  color: var(--fg-dim);
}

/* product index cards use h2, which .doc would otherwise number */
.doc .work h2 {
  border-top: 0;
  padding-top: 0;
  margin: 0 0 0.25rem;
  font-size: var(--step-1);
}

.doc .work h2::before { content: none; }

.product-shot {
  margin: 0 0 1.5rem;
}

.product-shot img {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  border: var(--rule);
}

.product-shot figcaption {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────
   home: client quote
   ───────────────────────────────────────────────────────────── */

.quote {
  margin: 1.5rem 0 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--ember);
  max-width: var(--measure);
}

.quote p {
  font-size: var(--step-1);
  font-style: italic;
  margin: 0 0 0.75rem;
}

.quote footer {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.quote cite {
  font-style: normal;
}

/* ─────────────────────────────────────────────────────────────
   home: contact
   ───────────────────────────────────────────────────────────── */

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1rem 0;
  font-size: var(--step-1);
}

/* ─────────────────────────────────────────────────────────────
   compliance pages (privacy, terms, cookies, contact)
   ───────────────────────────────────────────────────────────── */

.doc h1 {
  font-size: var(--step-3);
  margin-bottom: 0.25rem;
}

.doc h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
  border-top: 2px solid var(--line);
  padding-top: 1.25rem;
  position: relative;
}

.doc h2::before {
  content: "§ " counter(doc-section);
  counter-increment: doc-section;
  display: block;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 0.4rem;
}

.doc { counter-reset: doc-section; }

.doc h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: var(--step-1);
}

.doc h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.doc p, .doc li {
  font-size: var(--step-0);
  line-height: 1.6;
}

.doc ul, .doc ol {
  padding-left: 1.5rem;
  max-width: var(--measure);
}

.doc li { margin-bottom: 0.25rem; }

.doc a {
  color: var(--ember);
  text-decoration-thickness: 1px;
}

/* .doc a is more specific than .button, which hid the label (ember on ember). */
.doc a.button {
  color: var(--ember);
  text-decoration: none;
}
.doc a.button:hover { color: var(--coal); }
.doc a.button--primary,
.doc a.button--primary:hover { color: var(--bone); }

.effective-date {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 2rem;
}

.toc {
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 2.5rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ash) 12%, var(--bg));
}

body.theme-iron .toc {
  background: color-mix(in srgb, var(--bone) 4%, var(--iron));
}

.toc h2 {
  border-top: 0;
  padding-top: 0;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.toc h2::before { content: none; }

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 600px) { .toc ul { columns: 1; } }

.toc li {
  font-size: var(--step--1);
  line-height: 1.7;
  break-inside: avoid;
}

.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--ember); text-decoration: underline; }

.warning-box {
  border-left: 3px solid var(--ember);
  background: color-mix(in srgb, var(--ember) 5%, var(--bg));
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: var(--step-0);
}

body.theme-iron .warning-box {
  background: color-mix(in srgb, var(--ember) 12%, var(--iron));
}

.warning-box p:last-child, .warning-box ul:last-child { margin-bottom: 0; }

.info-box, .info-section, .response-time {
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--patina);
  background: color-mix(in srgb, var(--patina) 6%, var(--bg));
}

body.theme-iron .info-box,
body.theme-iron .info-section,
body.theme-iron .response-time {
  background: color-mix(in srgb, var(--patina) 14%, var(--iron));
}

.info-box p:last-child,
.info-section p:last-child,
.info-section ul:last-child { margin-bottom: 0; }

.product-section {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 1.5rem 0;
  margin: 2.5rem 0;
}

.contact-info {
  border-top: var(--rule);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

.all-caps, .uppercase {
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* tables (cookie table etc.) */
.cookie-table, .doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  margin: 1.25rem 0;
}

.cookie-table th, .cookie-table td,
.doc table th, .doc table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cookie-table th, .doc table th {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-bottom: 2px solid var(--line);
}

/* contact page grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.contact-card {
  border: 1px solid var(--line);
  padding: 1.25rem;
}

/* Card and box headings are h2 (no level skip after the h1) but must not
   look like numbered .doc sections. */
.contact-card h2,
.info-section h2 {
  border-top: 0;
  padding-top: 0;
  margin: 0 0 0.5rem;
}
.contact-card h2::before,
.info-section h2::before { content: none; }

.contact-card h2 {
  font-size: var(--step-0);
  font-weight: 600;
}

.info-section h2 { font-size: var(--step-1); }

.contact-card .email {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ember);
  word-break: break-all;
}

.contact-card .description {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--fg-dim);
}

.hours-table {
  font-family: var(--mono);
  font-size: var(--step--1);
}

.hours-table > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}

.hours-table > div:last-child { border-bottom: none; }

/* ─────────────────────────────────────────────────────────────
   utilities
   ───────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--fg-dim); }
.mono  { font-family: var(--mono); letter-spacing: 0.04em; }

/* ─────────────────────────────────────────────────────────────
   ornaments: drop cap, wax seal
   ───────────────────────────────────────────────────────────── */

/* drop cap — applied to hero lede.
   Lede is italic; the drop cap is roman so the initial reads
   like a stamped capital rather than a slanted swash. */
.hero__lede.h-dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 700;
  font-size: 4em;
  line-height: 0.82;
  padding: 0.05em 0.14em 0 0;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,0.55), 0 -1px 0 rgba(0,0,0,0.10);
}

body.theme-iron .hero__lede.h-dropcap::first-letter {
  color: var(--bone);
  text-shadow: 0 1px 0 rgba(0,0,0,0.65), 0 -1px 0 rgba(255,255,255,0.05);
}

/* wax seal — stamped on legal pages just before the footer. */
.wax-seal {
  display: flex;
  justify-content: center;
  margin: clamp(3rem, 6vw, 4.5rem) auto 1rem;
  color: var(--fg-dim);
}

.wax-seal svg {
  width: clamp(96px, 11vw, 132px);
  height: auto;
  opacity: 0.85;
}

/* ─────────────────────────────────────────────────────────────
   motion preferences
   ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
  }
  body::before { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   print
   ───────────────────────────────────────────────────────────── */

@media print {
  body::before { display: none; }
  body { background: white; color: black; }
  .site-header, .site-footer { display: none; }
  a { color: black; text-decoration: underline; }
}
