/* Boonwright — main stylesheet.
   Visual identity guide: Navy #1E2A44, Oxblood #5C1F1C, Olive #23402F, Parchment #EFE3C8,
   Gold #C9A45C, Walnut #2E1C12. Type: Libre Caslon Text (SIL OFL, self-hosted in
   /assets/fonts/, licence in OFL.txt) for titles, body and italics. No third-party requests. */

@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #1e2a44;
  --walnut: #2e1c12;
  --parchment: #efe3c8;
  --ivory: #f8f2e4;          /* page ground: parchment lightened for reading */
  --brass: #c9a45c;          /* identity Gold: ornament, borders, and text on dark only */
  --brass-text: #6f5628;     /* gold darkened for text on light (AA on ivory and parchment) */
  --ink: #2a2118;
  --olive: #23402f;
  --oxblood: #5c1f1c;
  --logo-paper: #efe3c8;

  --serif: "Libre Caslon Text", Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: var(--serif); /* the guide specifies one serif family; small labels use it with tracking */

  --measure: 38rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: clamp(3rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--brass); }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--navy); color: var(--ivory); padding: 0.75rem 1rem; font-family: var(--sans);
}
.skip-link:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; color: var(--navy); letter-spacing: 0.01em; }
h1 { font-size: clamp(2.125rem, 1.4rem + 3.6vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.4375rem); line-height: 1.5; color: var(--ink); }
.eyebrow {
  font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-text); margin: 0 0 1rem; max-width: none;
}
.on-dark .eyebrow { color: var(--brass); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark .lede { color: var(--parchment); }
.on-dark a { color: var(--parchment); }

/* ---------- Ornament ---------- */
.dentil {
  height: 30px;
  background:
    url("/assets/images/fleur-gold.png") center / auto 26px no-repeat,
    linear-gradient(var(--brass), var(--brass)) left 0 center / calc(50% - 2.25rem) 1px no-repeat,
    linear-gradient(var(--brass), var(--brass)) right 0 center / calc(50% - 2.25rem) 1px no-repeat;
}
.site-footer .dentil { margin-inline: var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--brass); margin: 0; }
.rule-double { border: 0; border-top: 3px double var(--brass); margin: 0 0 2rem; max-width: 6rem; }

/* ---------- Header ---------- */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--brass); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; padding-block: 0.4rem; }
/* Horizontal lockup: emblem + live-text wordmark (Caslon capitals, per the identity guide). */
.wordmark {
  font-family: var(--serif); color: var(--navy); text-decoration: none; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.3125rem; font-weight: 400;
  display: inline-flex; align-items: center; gap: 0.85rem; min-height: 44px;
}
.wordmark img { height: 3.25rem; width: auto; flex: none; }
.wordmark span { display: block; padding-top: 0.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-toggle {
  display: none; min-height: 44px; min-width: 44px; padding: 0 1rem; background: transparent; color: var(--navy);
  border: 1px solid var(--navy); font-family: var(--sans); font-size: 0.9375rem; letter-spacing: 0.04em; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: clamp(0.5rem, 2vw, 1.75rem); margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; font-family: var(--sans);
  font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--brass); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }

@media (max-width: 47.99em) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--brass); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { width: 100%; min-height: 48px; border-bottom: 1px solid rgba(201,164,92,0.35); }
  .site-header .wrap { flex-wrap: wrap; }
  /* no-JS fallback: nav stays visible below the wordmark */
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; padding: 0 0 0.75rem; gap: 0.25rem 1rem; }
  html:not(.js) .site-nav a { width: auto; border-bottom: 2px solid transparent; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.75rem;
  background: var(--navy); color: var(--ivory); border: 1px solid var(--navy); font-family: var(--sans);
  font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.button:hover { background: var(--ivory); color: var(--navy); }
.on-dark .button { background: var(--brass); border-color: var(--brass); color: var(--walnut); }
.on-dark .button:hover { background: transparent; color: var(--parchment); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section--parchment { background: var(--parchment); }
.section--navy, .section--walnut { color: var(--parchment); }
.section--navy { background: var(--navy); }
.section--walnut { background: var(--walnut); }
.page-title { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-title p { font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.4375rem); line-height: 1.5; }

/* Home hero */
.hero { background: var(--parchment); padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); text-align: center; border-bottom: 1px solid var(--brass); }
.hero .wrap { display: grid; justify-items: center; }
.hero-art { width: min(100%, 38rem); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 0.6rem 2rem rgba(46,28,18,0.22); }
.hero-art img { width: 100%; height: auto; display: block; }
.hero h1 { margin-bottom: 0.35em; }
.hero .tagline { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); font-style: italic; color: var(--brass-text); margin: 0 auto 1.25rem; }
.hero p { margin-inline: auto; }

/* Featured band */
.feature { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 48em) { .feature { grid-template-columns: 1fr 1fr; } }
.status {
  display: inline-block; font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 0.3rem 0.75rem; margin: 0 0 1.25rem; color: var(--brass-text);
}
.on-dark .status { color: var(--brass); }

/* Principles */
.principles { display: grid; gap: 2rem; margin-top: 2.5rem; padding: 0; list-style: none; }
@media (min-width: 48em) { .principles { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.principles li { border-top: 1px solid var(--brass); padding-top: 1.25rem; }
.principles .numeral { font-family: var(--serif); color: var(--brass-text); font-size: 0.9375rem; letter-spacing: 0.2em; display: block; margin-bottom: 0.5rem; }
.principles p { margin: 0; }

/* Wordmark-style product name */
.product-name { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.22em; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem); color: var(--parchment); margin: 0 0 0.4rem; font-weight: 400; line-height: 1.1; }

/* Image slots (reserved until approved artwork is supplied) */
.slot {
  position: relative; background: var(--walnut); aspect-ratio: 4 / 3; width: 100%;
  display: grid; place-items: center; color: var(--brass); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--brass), inset 0 0 0 7px var(--walnut), inset 0 0 0 8px rgba(201,164,92,0.55);
}
.slot--wide { aspect-ratio: 16 / 9; }
.slot .numeral { font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 4vw, 5rem); letter-spacing: 0.12em; padding-left: 0.12em; line-height: 1; }
.slot .caption { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.slot img { width: 100%; height: 100%; object-fit: cover; }

/* Project feature (Projects page) */
.project { display: grid; gap: clamp(1.5rem, 4vw, 3rem); background: var(--walnut); color: var(--parchment); padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--brass); }
@media (min-width: 48em) { .project { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.project + .project { margin-top: 2rem; }
.project h2 { color: var(--parchment); }

/* Excolo editorial rows */
.editorial { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 48em) {
  .editorial { grid-template-columns: 1fr 1fr; }
  .editorial:nth-of-type(even) .slot { order: 2; }
}
.editorial + .editorial { border-top: 1px solid rgba(201,164,92,0.5); }
.badge-slot {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0.5rem 1.5rem; border: 1px solid var(--brass);
  font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0.06em; color: var(--parchment); margin: 0.5rem 0 1.5rem;
}
.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-family: var(--sans); font-size: 0.9375rem; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; }

/* Prose / legal */
.prose { padding-bottom: var(--space); }
.prose h2 { margin-top: 2.25rem; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.prose ul { max-width: var(--measure); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5em; }
.draft-banner {
  background: var(--oxblood); color: var(--ivory); font-family: var(--sans); font-size: 0.9375rem; letter-spacing: 0.04em;
  text-align: center; padding: 0.75rem var(--gutter); font-weight: 700;
}
.marker { background: #f3e2b3; color: var(--ink); padding: 0 0.25em; font-family: var(--sans); font-size: 0.875em; }
.studio-note { color: var(--olive); }

/* Contact */
.contact-mail { font-size: clamp(1.25rem, 1rem + 1.5vw, 1.875rem); overflow-wrap: anywhere; }
/* Visible flag while the placeholder address is still in place */
a[href$="example.invalid"]::after, a[href*="example.invalid?"]::after { content: " [PLACEHOLDER EMAIL]"; font-family: var(--sans); font-size: 0.6em; color: var(--oxblood); letter-spacing: 0.05em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--parchment); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.site-footer a { color: var(--parchment); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.footer-brand img { height: 3.5rem; width: auto; }
.footer-brand .footer-name { margin: 0; }
.footer-name { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.16em; font-size: 1.125rem; margin: 0 0 0.5rem; color: var(--parchment); }
.footer-line { margin: 0; font-style: italic; color: var(--brass); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; font-family: var(--sans); font-size: 0.9375rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(201,164,92,0.5); font-family: var(--sans); font-size: 0.8125rem; max-width: none; }

/* ---------- Excolo product page ---------- */
.excolo-plate {
  background: #1f1308; padding: clamp(0.75rem, 3vw, 1.5rem);
  box-shadow: inset 0 0 0 1px var(--brass), inset 0 0 0 7px #1f1308, inset 0 0 0 8px rgba(201,164,92,0.55);
}
.excolo-plate img { width: 100%; height: auto; }
.byline { font-style: italic; color: var(--brass); margin: 0 0 1.25rem; }
.byline a { color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 0.5rem; }
.excolo-mark { width: clamp(5rem, 14vw, 7.5rem); height: auto; border-radius: 22.4%; box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.35); margin-bottom: 1.25rem; }

/* Waitlist form */
.waitlist { max-width: 34rem; }
.waitlist label { display: block; font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.5rem; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.handle-field { flex: 1 1 14rem; display: flex; align-items: stretch; background: var(--ivory); border: 1px solid var(--brass); min-height: 48px; }
.handle-field:focus-within { outline: 3px solid var(--brass); outline-offset: 3px; }
.handle-field span { display: inline-flex; align-items: center; padding: 0 0.25rem 0 0.9rem; color: var(--brass-text); font-size: 1.125rem; }
.handle-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink); padding: 0.6rem 0.9rem 0.6rem 0.1rem; outline: none; }
.waitlist button { cursor: pointer; }
.waitlist button[disabled] { opacity: 0.6; cursor: progress; }
.waitlist .fine { font-size: 0.9375rem; margin: 0.9rem 0 0; opacity: 0.9; }
.waitlist-msg { margin: 0.9rem 0 0; min-height: 1.65em; font-size: 1.0625rem; }
.waitlist-msg.is-ok { color: var(--brass); }
.waitlist-msg.is-error { color: #f1b9a8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound p { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-nav, .nav-toggle, .skip-link { display: none; } }

.excolo-link { display: grid; justify-items: center; }
.excolo-mark--lg { width: min(100%, 16rem); margin: 0; }
.excolo-plate h1 { margin: 0; line-height: 0; }
