/* Peregrine wears the Calcytas brand (owner, 11/27/2026; Gavel D-04714): the palette, type, and shapes that
   brand.calcytas.com documents, laid over the fleet showcase kit's page structure. The kit still supplies the layout,
   header, footer, and blocks (css/kit.css); this sheet replaces its color tokens, fonts, radii, and shadows, and holds
   Peregrine's own blocks. The brass accent comes from site.yml. Every value in the token blocks below is a Calcytas
   token (https://brand.calcytas.com/downloads/calcytas-tokens.css) written as the HSL triplet the kit expects; a test
   holds them equal. */

/* ---- Calcytas type: Cormorant Garamond, Manrope, IBM Plex Mono, self-hosted ---- */
@font-face { font-family: "Calcytas Display"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Calcytas Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Calcytas Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Calcytas Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/manrope-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Calcytas Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/manrope-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Calcytas Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/manrope-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Calcytas Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/manrope-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Calcytas Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-mono-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Calcytas Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-mono-500-normal.woff2") format("woff2"); }

/* ---- Calcytas tokens: bone in light, obsidian in dark ---- */
:root {
  --background: 40 35.3% 93.3%; --foreground: 220 13% 9%; --card: 40 52.9% 96.7%; --card-foreground: 220 13% 9%;
  --popover: 40 52.9% 96.7%; --popover-foreground: 220 13% 9%; --muted: 40 32.1% 89%; --muted-foreground: 220 7.1% 33.3%;
  --border: 38.4 20.7% 76.3%; --input: 38.4 20.7% 76.3%;
  --accent-foreground: 40 35.3% 93.3%;
  --font-display: "Calcytas Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Calcytas Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Calcytas Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 2px; --radius-card: 2px; --radius-chip: 2px; --r: 2px;
  --shadow-card: none; --shadow-raised: none;
  --content-max-width: 72rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Fixed obsidian: the hero's copy panel and the closing band stay dark in both themes. */
  --hero-panel: #0E0F12; --hero-ink: #F4F0E8; --hero-muted: #B3ADA2;
}
.dark, [data-theme='dark'] {
  --background: 225 12.5% 6.3%; --foreground: 40 35.3% 93.3%; --card: 222.9 11.9% 11.6%; --card-foreground: 40 35.3% 93.3%;
  --popover: 222.9 11.9% 11.6%; --popover-foreground: 40 35.3% 93.3%; --muted: 220 13% 9%; --muted-foreground: 38.8 9.2% 63.7%;
  --border: 225 8.3% 18.8%; --input: 225 8.3% 18.8%;
  --accent-foreground: 225 12.5% 6.3%;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light):not([data-theme='light']) {
  --background: 225 12.5% 6.3%; --foreground: 40 35.3% 93.3%; --card: 222.9 11.9% 11.6%; --card-foreground: 40 35.3% 93.3%;
  --popover: 222.9 11.9% 11.6%; --popover-foreground: 40 35.3% 93.3%; --muted: 220 13% 9%; --muted-foreground: 38.8 9.2% 63.7%;
  --border: 225 8.3% 18.8%; --input: 225 8.3% 18.8%;
  --accent-foreground: 225 12.5% 6.3%;
  }
}

/* ---- Calcytas type and shapes over the kit's blocks ---- */
body { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.005em; line-height: 1.05; }
h1 { font-size: clamp(2.75rem, 1.6rem + 5.6vw, 5rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.5rem); }
h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
h4, .feature-group .card :is(h3, h4), .fm-row-item dt { font-family: var(--font-sans); font-weight: 600; }
.feature-group .card :is(h3, h4) { font-size: 1rem; line-height: 1.35; }
.card h3, .fm-feature :is(h3, h4), .tour-item h2 { font-family: var(--font-display); font-weight: 500; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
.eyebrow, .label, .card-num { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.brand { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.01em; }
.hero:not(.hero-art) { background: none; }
/* The art hero: display type on fixed obsidian, hairline labels in bone, the image fading into obsidian, not navy. */
.hero-art h1 { font-weight: 300; letter-spacing: 0.005em; word-spacing: normal; line-height: 1.05; }
.hero-art-media { background: #0E0F12; }
.hero-art-media::after { background: linear-gradient(90deg, rgba(14, 15, 18, 0.4), rgba(14, 15, 18, 0) 28%), linear-gradient(0deg, rgba(14, 15, 18, 0.9) 0%, rgba(14, 15, 18, 0.72) 16%, rgba(14, 15, 18, 0) 42%); }
/* The brass rule under a section heading (the brand's 3rem hairline). */
.section-head h2::after { content: ""; display: block; width: 3rem; height: 1.5px; margin-top: 1.25rem; background: var(--accent-c); }
.section-head.center h2::after { margin-inline: auto; }
.btn { border-radius: 2px; border-width: 1px; font: 500 0.8125rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.6rem 1.5rem; }
.btn-ghost { background: transparent; border-color: var(--text); }
.site-nav a, .icon-btn, .skip-link, code, :focus-visible, .brand-fallback, .shot-zoom::after { border-radius: 2px; }
.site-nav a { font-weight: 500; }
.site-nav a[aria-current="page"] { background: transparent; box-shadow: inset 0 -1.5px 0 var(--accent-c); }
.has-art-hero .site-header:not(.is-past-hero) .site-nav a[aria-current="page"] { background: transparent; box-shadow: inset 0 -1.5px 0 var(--hero-accent); }
/* Tags are hairline labels, not pills: accent text on the page color clears 4.5:1 on every band (the soft tint did not
   on the alternate band). */
.tag, .hero-chips .tag { border-radius: 2px; background: transparent; border: 1px solid var(--accent-c); color: var(--accent-text); font: 500 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tag.internal { background: transparent; border-color: var(--line); color: var(--text); }
.hero-art .tag, .hero-art .hero-chips .tag { background: transparent; color: var(--hero-ink); border-color: rgba(244, 240, 232, 0.35); }
.notice { border-left-width: 1.5px; }
.band-contact .btn-primary:hover { background: #FBF8F2; }

/* ---- Peregrine's own blocks ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table-wrap th, .table-wrap td { padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-alt); }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }

.tour-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.tour-nav a { display: inline-flex; align-items: center; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); font-weight: 600; font-size: 0.92rem; min-height: 44px; }
.tour-item { margin-bottom: 4rem; scroll-margin-top: 90px; }
.tour-item h2 { font-size: 1.6rem; }
