/* craigandamber.com — "The Operator's Logbook"
   Tokens per design-direction.md. Ink navy / warm paper / brushed gold.
   Besley (display) · Mulish (body) · IBM Plex Mono (data). Self-hosted. */

@font-face { font-family: "Besley"; src: url("/assets/fonts/besley-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Besley"; src: url("/assets/fonts/besley-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Besley"; src: url("/assets/fonts/besley-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Besley"; src: url("/assets/fonts/besley-italic-600.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/assets/fonts/mulish-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/assets/fonts/mulish-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/assets/fonts/mulish-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0B1826;
  --navy: #14293E;
  --mist: #93A7B8;
  --paper: #F6F4EE;
  --paper-deep: #EDEAE0;
  --ink-on-paper: #182838;
  --gold: #C29B3C;
  --gold-deep: #A17F2A;
  --display: "Besley", "Georgia", serif;
  --body: "Mulish", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --wrap: 1140px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-on-paper);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.6em; color: inherit; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ---------- Eyebrow + section grammar (the logbook voice) ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold); }
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section.on-dark { background: var(--ink); color: var(--paper); }
.section.band { background: var(--navy); border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.section.on-dark p { color: #C7D2DC; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 24ch; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: var(--measure); }
.prose { max-width: var(--measure); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--paper);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.brand { text-decoration: none; line-height: 1.15; }
.brand-names { font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: block; }
.brand-names em { font-style: italic; color: var(--gold); }
.brand-sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); display: block; margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); }
.site-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 600; color: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; }

.btn {
  display: inline-block; font-weight: 700; font-size: 0.95rem;
  padding: 0.65rem 1.25rem; border: 1px solid var(--gold); border-radius: 2px;
  text-decoration: none; cursor: pointer; font-family: var(--body);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); }
.btn-ghost:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--paper); }
.on-paper .btn-ghost { color: var(--ink-on-paper); }

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    border-radius: 2px; padding: 10px 9px; cursor: pointer;
  }
  .nav-toggle-bar { width: 20px; height: 2px; background: var(--paper); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
    flex-direction: column; align-items: flex-start; padding: 1.1rem var(--pad) 1.4rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.1rem; padding-block: 0.35rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* plain rgba, not color-mix(...,transparent): the latter composited opaque in some Chrome paths */
  background: linear-gradient(78deg, rgba(11, 24, 38, 0.92) 0%, rgba(11, 24, 38, 0.68) 46%, rgba(11, 24, 38, 0.28) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(5rem, 14vw, 9.5rem) clamp(6rem, 15vw, 10rem); }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.3rem); font-weight: 800; max-width: 15ch; }
.hero h1 .gold { color: var(--gold); }
.hero .lede { color: #D4DCE3; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ---------- Spec strip (signature) ---------- */
.spec-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0; margin: 0;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.spec { padding: 1.1rem 1.25rem; border-left: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.spec:first-child { border-left: none; }
.spec dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--mist); margin-bottom: 0.3rem; }
.spec dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.on-dark .spec dd, .hero .spec dd { color: var(--paper); }
.hero-specs { position: relative; z-index: 2; background: rgba(11, 24, 38, 0.8); backdrop-filter: blur(6px); }
.on-paper .spec dt { color: #6B7A87; }
@media (max-width: 640px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec { border-left: none; border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
  .spec:nth-child(-n+2) { border-top: none; }
}

/* ---------- Cards (portfolio) ---------- */
.card-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 2.5rem; }
.bcard {
  background: var(--navy); color: var(--paper); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.bcard:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--paper); }
.bcard-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; }
.bcard-body { padding: 1.2rem 1.3rem 1.4rem; }
.bcard h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.bcard-spec { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); margin: 0; }
.bcard-soon { opacity: 0.75; }
.bcard-soon .bcard-img { display: grid; place-items: center; color: var(--mist); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Property page ---------- */
.prop-hero { background: var(--ink); color: var(--paper); }
.prop-hero-inner { padding-block: clamp(3rem, 8vw, 5rem) 0; }
.prop-hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
.prop-hero-img { margin-top: 2rem; max-height: 62vh; overflow: hidden; }
.prop-hero-img img { width: 100%; object-fit: cover; }
.glance { margin-block: 2.5rem; }
.highlights { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--measure); }
.highlights li { padding: 0.7rem 0 0.7rem 1.6rem; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.highlights li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.testimonial { border-left: 2px solid var(--gold); padding-left: 1.5rem; margin: 2.5rem 0 0; max-width: var(--measure); }
.testimonial blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.4; }
.testimonial cite { font-family: var(--mono); font-style: normal; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-top: 0.9rem; }
.on-dark .testimonial cite { color: var(--gold); }

/* ---------- Before / after (signature interaction) ---------- */
.ba-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 2.5rem; }
.ba { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px;
  background: var(--gold); pointer-events: none;
}
.ba-handle::after {
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold); color: var(--ink); font-size: 0.65rem; letter-spacing: 0.05em;
  padding: 0.3rem 0.45rem; border-radius: 999px; white-space: nowrap; font-family: var(--mono);
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; touch-action: none;
}
.ba-tag {
  position: absolute; bottom: 0.7rem; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper);
  background: color-mix(in srgb, var(--ink) 75%, transparent); padding: 0.25rem 0.55rem;
  pointer-events: none;
}
.ba-tag-before { left: 0.7rem; }
.ba-tag-after { right: 0.7rem; }
.ba-caption { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); margin-top: 0.6rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 2rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Forms ---------- */
.signup-form { max-width: 460px; }
.signup-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signup-row input[type="email"] {
  flex: 1 1 220px; padding: 0.65rem 0.9rem; font: inherit;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--paper) 96%, transparent); color: var(--ink-on-paper); border-radius: 2px;
}
.on-dark .signup-row input[type="email"], .site-footer .signup-row input[type="email"] { background: var(--navy); color: var(--paper); }
.hp { position: absolute; left: -9999px; }
.form-privacy, .form-note { font-size: 0.8rem; color: var(--mist); margin-top: 0.6rem; }
.form-status { font-weight: 700; margin-top: 0.5rem; min-height: 1.2em; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #D9776B; }
input:disabled, button:disabled { opacity: 0.55; cursor: not-allowed; }

.field { margin-bottom: 1.1rem; max-width: 460px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.65rem 0.9rem; font: inherit; border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: #fff; color: var(--ink-on-paper);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 7vw, 4.5rem) 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.footer-brand .brand-names { font-size: 1.4rem; margin-bottom: 0.4rem; }
.footer-line { color: var(--mist); font-size: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { text-decoration: none; color: #C7D2DC; }
.footer-nav a:hover { color: var(--gold); }
.footer-nav .nav-cta { display: none; }
.footer-signup-title { font-size: 1.15rem; }
.footer-signup p { color: #C7D2DC; font-size: 0.95rem; }
.footer-legal { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.footer-legal p { font-size: 0.78rem; color: var(--mist); max-width: none; }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bcard, .btn { transition: none; }
}

/* ---------- Utility sections ---------- */
.split-2 { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split-2 { grid-template-columns: 5fr 4fr; } }
.team-photo img { width: 100%; max-height: 640px; object-fit: cover; object-position: center 30%; }
.team-photo { border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.team-role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.7rem; }
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li { padding: 1rem 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.value-list strong { font-family: var(--display); font-size: 1.1rem; display: block; margin-bottom: 0.2rem; }
