/* Ink & brass: deep ink blue, polished brass, cool paper. */
:root {
  --ink: #1b2436;
  --ink-soft: #2c3850;
  --brass: #b8913a;        /* fills, on dark */
  --brass-deep: #7f6118;   /* text/links on light (AA contrast) */
  --paper: #f5f6f3;
  --paper-tint: #eceee8;
  --rule: #d6d8d0;
  --text: #2a2f3a;
  --muted: #5d6472;

  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
  --bs-link-color-rgb: 127, 97, 24;
  --bs-link-hover-color-rgb: 27, 36, 54;
}

body { font-size: 1.0625rem; line-height: 1.6; }

h1, h2, h3, .h3, .h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); line-height: 1.15; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; line-height: 1.25; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: var(--paper); padding: .5rem 1rem; }

/* Buttons & links */
.btn { font-weight: 600; border-radius: 999px; padding-inline: 1.4rem; }
.btn-brass { --bs-btn-bg: var(--brass); --bs-btn-border-color: var(--brass); --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: #cfa64a; --bs-btn-hover-border-color: #cfa64a; --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: #a07c2c; --bs-btn-active-border-color: #a07c2c; --bs-btn-active-color: var(--ink); }
.btn-outline-ink { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-color: var(--paper); --bs-btn-hover-border-color: var(--ink); }
.link-brass { color: var(--brass-deep); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-brass:hover { color: var(--ink); }

/* Navigation */
.site-nav { background: var(--ink); padding-block: .9rem; transition: background-color .25s ease; }
.site-nav .navbar-brand { font-family: var(--font-display); font-size: 1.45rem; color: #fff; }
.site-nav .nav-link { color: rgba(255,255,255,.8); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav.is-overlay { position: fixed; inset: 0 0 auto 0; z-index: 1030; background: transparent; }
.site-nav.is-overlay.is-scrolled, .site-nav.is-overlay:has(.navbar-collapse.show) { background: var(--ink); }

/* Hero: the one loud moment */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-media, .hero-media .carousel-inner, .hero-media .carousel-item { position: absolute; inset: 0; width: 100%; height: 100%; }
video.hero-media, .hero-media img { object-fit: cover; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(18,24,38,.88) 0%, rgba(18,24,38,.35) 45%, rgba(18,24,38,.15) 100%); }
.hero-copy { position: relative; padding-bottom: clamp(5rem, 12vh, 8rem); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw + 1rem, 5.6rem); max-width: 13ch; margin-bottom: 1rem; }
.hero .lead { color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); color: rgba(255,255,255,.8);
  text-decoration: none; font-size: .9rem; padding-bottom: 1.4rem; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 1rem; background: var(--brass); }
.hero-pause { position: absolute; right: 1rem; bottom: 1.5rem; background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; font-size: .8rem; padding: .3rem .8rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--paper-tint); }
.section-intro { color: var(--muted); max-width: 40rem; margin-bottom: 2rem; }
.narrow { max-width: 42rem; }
.page-head { background: var(--paper-tint); padding-block: 3rem 2.5rem; border-bottom: 1px solid var(--rule); }
.page-head .lead { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--muted); font-size: .95rem; }

.story-lead { font-size: 1.25rem; color: var(--ink); }
.story-figure img { width: 100%; height: auto; border-radius: 6px; }
.story-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* A real sequence, so numbers are earned */
.process { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); counter-reset: step; }
.process li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.process li::before { content: counter(step); font-family: var(--font-display); font-size: 2.2rem; color: var(--brass-deep); display: block; line-height: 1; margin-bottom: .6rem; }
.process p { color: var(--muted); margin: 0; }

/* Project cards */
.project-card { position: relative; }
.project-card a { text-decoration: none; color: inherit; }
.project-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; }
.project-card a:hover .project-card-title { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.project-card-title { font-size: 1.3rem; margin-bottom: .35rem; }
.project-card-summary { margin-bottom: .35rem; }
.project-card-meta { font-size: .9rem; color: var(--muted); margin: 0; }

/* Gallery filters */
.filters { display: grid; gap: .75rem; margin-bottom: 2.5rem; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.filter-label { font-weight: 600; margin-right: .5rem; min-width: 5.5rem; }
.chip { border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .85rem; font-size: .92rem; text-decoration: none; color: var(--text); background: #fff; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-active-bg: var(--ink); }

/* Project page */
.project-hero img { width: 100%; height: auto; border-radius: 6px; }
.project-hero figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.thumbs { display: flex; gap: .75rem; margin-top: .75rem; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; width: 7rem; overflow: hidden; }
.thumb img { width: 100%; height: auto; display: block; }
.thumb.is-on { border-color: var(--brass); }
.prose { max-width: 40rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose blockquote { border-left: 3px solid var(--brass); padding-left: 1rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.spec-card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.5rem; position: sticky; top: 1.5rem; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin-bottom: 1.5rem; }
.specs dt { font-weight: 600; color: var(--muted); }
.specs dd { margin: 0; }

/* Order page */
.jump-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.jump-links a { color: var(--ink); font-weight: 600; }
.styles-table { --bs-table-bg: transparent; }
.styles-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.styles-table td.text-end { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.material img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: .9rem; }
.material h3 { margin-bottom: .25rem; }
.material p { color: var(--muted); margin-bottom: .4rem; }

/* Contact */
.contact-form .form-control, .contact-form .form-select { border-color: var(--rule); padding: .65rem .85rem; background-color: #fff; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--brass); box-shadow: 0 0 0 .2rem rgba(184,145,58,.25); }
.form-label { font-weight: 600; }
.steps-list { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.steps-list li { margin-bottom: .4rem; }

/* CTA band + footer */
.cta-band { background: var(--ink); color: rgba(255,255,255,.85); padding-block: 3.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.site-footer { background: #141b29; color: rgba(255,255,255,.7); padding-block: 3rem 2rem; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--brass); }
.site-footer li { margin-bottom: .35rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: .4rem; }
.footer-fine { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
