/* ==========================================================================
   Brora — design system
   Palette: ink #12212F · deep navy #0C1A28 · steel #5F7A8F
            bronze #A6875A · ivory #F6F4EE · hairline #DAD3C6
   Type:    Newsreader (display) · Public Sans (body, UI)
   ========================================================================== */

:root {
  --ink: #12212F;
  --navy: #0C1A28;
  --navy-2: #14263A;
  --steel: #56707F;
  --bronze-text: #826840;
  --steel-light: #9FB2C0;
  --bronze: #A6875A;
  --bronze-light: #C2A87E;
  --ivory: #F6F4EE;
  --ivory-2: #EFEBE1;
  --hairline: #DAD3C6;
  --hairline-navy: rgba(246, 244, 238, 0.16);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --w-max: 1160px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--bronze); color: var(--navy); }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* --- Labels (the small-caps rail voice) ---------------------------------- */

.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.on-navy .label { color: var(--steel-light); }

/* --- Header --------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--ivory);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.brand svg { width: 34px; height: 34px; }
.brand-word {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
.site-nav a:hover { border-bottom-color: var(--bronze); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--bronze); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--hairline);
    z-index: 50;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--pad-x) 1.25rem;
  }
  .site-nav li { border-top: 1px solid var(--hairline); }
  .site-nav a { display: block; padding: 0.9rem 0; }
  .site-header { position: relative; }
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(7rem, 16vh, 11.5rem);
  padding-bottom: clamp(7rem, 16vh, 11.5rem);
  max-width: var(--w-max);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 17ch;
  margin-top: 1.4rem;
  text-wrap: balance;
}
.hero p.lede {
  margin-top: 2rem;
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--steel-light);
}
.hero-link {
  display: inline-block;
  margin-top: 2.75rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-light);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 0.18rem;
  transition: color 160ms ease;
}
.hero-link:hover { color: var(--ivory); }

.hero-arcs {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: min(62vw, 780px);
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-arcs { right: -40%; opacity: 0.55; }
}

/* Interior page hero (shorter, no artwork) */
.hero.hero-page .wrap {
  padding-top: clamp(4.75rem, 10vh, 7.5rem);
  padding-bottom: clamp(4.75rem, 10vh, 7.5rem);
}

/* --- Sections --------------------------------------------------------------- */

.band { padding-top: clamp(5.75rem, 11vw, 10rem); padding-bottom: clamp(5.75rem, 11vw, 10rem); }
.band-navy { background: var(--navy); color: var(--ivory); }
.band-tint { background: var(--ivory-2); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
}

h2.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  max-width: 22ch;
}
.band-navy h2.display { color: var(--ivory); }

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.2rem; }
.band-navy .prose { color: var(--steel-light); }
.prose strong { font-weight: 500; color: inherit; }

/* --- Ruled index (focus areas) ---------------------------------------------- */

.index { list-style: none; margin-top: 0.5rem; }
.index li { border-top: 1px solid var(--hairline); }
.index li:last-child { border-bottom: 1px solid var(--hairline); }
.band-navy .index li { border-color: var(--hairline-navy); }

.index a,
.index .index-row {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 2rem 0;
  text-decoration: none;
  transition: padding-left 180ms ease;
}
.index a:hover { padding-left: 0.6rem; }
.index a:hover .index-name { color: var(--bronze); }

.index-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  transition: color 160ms ease;
}
.index-desc { font-size: 0.95rem; color: var(--steel); max-width: 52ch; }
.band-navy .index-desc { color: var(--steel-light); }
.index-arrow { align-self: center; display: inline-flex; }
.index-arrow svg { width: 15px; height: 15px; stroke: var(--bronze); }

@media (max-width: 760px) {
  .index a, .index .index-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.25rem 0;
  }
  .index-arrow { display: none; }
}

/* --- Principles / definition list -------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4.25rem);
  margin-top: 3.5rem;
}
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

.principle h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
}
.band-navy .principle h3 { border-color: var(--hairline-navy); }
.principle p { font-size: 0.97rem; color: var(--steel); }
.band-navy .principle p { color: var(--steel-light); }

/* --- Focus page article blocks ------------------------------------------------ */

.focus-item { border-top: 1px solid var(--hairline); padding: 3.75rem 0; }
.focus-item:last-of-type { border-bottom: 1px solid var(--hairline); }
.focus-item h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8125rem;
  margin-bottom: 1rem;
}

/* --- Photo slots ---------------------------------------------------------------- */

.photo-slot {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1B334A 100%);
  /* Placeholder height (AB-2). When licensed photography is installed, add the
     `has-image` class and set the final height to suit the chosen crop —
     the placeholder height must not dictate the photographic composition. */
  min-height: clamp(200px, 24vw, 340px);
}
/* Installed photography: contained editorial insert — natural ratio, the manual
   crop IS the composition; no cover-cropping, no full-bleed prominence. */
.photo-slot.has-image {
  background: none;
  min-height: 0;
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.photo-slot.has-image::before { content: none; }
.photo-slot.has-image img,
.photo-slot.has-image picture { position: static; width: 100%; height: auto; }
.photo-slot--inset.has-image { max-width: 960px; }
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 340' fill='none'%3E%3Cpath d='M-100 250 Q720 140 1540 250' stroke='rgba(246,244,238,0.10)' stroke-width='1'/%3E%3Cpath d='M-100 300 Q720 210 1540 300' stroke='rgba(166,135,90,0.35)' stroke-width='1.2'/%3E%3Ccircle cx='1180' cy='170' r='300' stroke='rgba(246,244,238,0.06)'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  pointer-events: none;
}
.photo-slot:has(img)::before { content: none; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-slot figcaption {
  position: relative;
  z-index: 1;
  padding: 1.25rem var(--pad-x);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-light);
}

/* --- Contact ---------------------------------------------------------------------- */


.contact-detail { border-top: 1px solid var(--hairline); padding: 1.4rem 0; }
.contact-detail .label { display: block; margin-bottom: 0.4rem; }
.contact-detail a { text-decoration: none; font-size: 1.15rem; font-family: var(--font-display); }
.contact-detail a:hover { color: var(--bronze); }


/* --- Legal / prose pages -------------------------------------------------------------- */

.legal-prose { max-width: 68ch; }
.legal-prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 2.4rem 0 0.8rem;
}
.legal-prose p + p { margin-top: 1rem; }
.legal-prose ul { margin: 1rem 0 1rem 1.2rem; }

/* --- Empty state (Insights) -------------------------------------------------------------- */

.empty-state {
  border: 1px solid var(--hairline);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.empty-state p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  max-width: 34ch;
  margin: 0 auto;
}
.empty-state .label { display: block; margin-top: 1.2rem; }

/* --- Footer ---------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--steel-light);
  padding: 4.5rem 0 2.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--hairline-navy);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand-word { color: var(--ivory); }
.footer-note { margin-top: 1rem; max-width: 40ch; font-size: 0.85rem; }

.footer-legal {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* --- Reveal motion ------------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms ease, transform 640ms ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Photo slot refinements (v2) ------------------------------------------------ */

.photo-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(159, 178, 192, 0.14) 0%, rgba(159, 178, 192, 0) 45%),
    linear-gradient(180deg, rgba(246, 244, 238, 0) 61.8%, rgba(166, 135, 90, 0.5) 61.9%, rgba(246, 244, 238, 0) 62.3%);
  pointer-events: none;
}
.photo-slot img + figcaption { text-shadow: 0 1px 8px rgba(12, 26, 40, 0.6); }
.photo-slot img ~ * { z-index: 1; }
.photo-slot--band { min-height: clamp(190px, 26vw, 320px); }



/* --- Simplified footer (v5) ------------------------------------------------ */

.footer-simple {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--hairline-navy);
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--bronze-light); }
.footer-legal { justify-content: flex-start; }

.footer-contact { margin-top: 0.75rem; }
