/* =============================================================
   REFRESH 2026 — Refined & Subtle modernization layer
   Loaded LAST so it overrides the base stylesheets.
   Keeps the existing teal identity; tightens type, spacing,
   buttons, cards, and adds shrink-on-scroll nav.
============================================================= */

/* -------------------------------------------------
   1. PAGE FOUNDATION
-------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  /* base.css set background:var(--bg) which is undefined in light mode (rendered white) */
  background: #ffffff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings reverted to the original system font (per request) */
h1, h2, h3,
.section-title,
.hero-title,
.hero-highlight-title,
.gallery-title,
.project-overlay-title,
.project-hero-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* -------------------------------------------------
   2. TYPE SCALE
-------------------------------------------------- */
#ready h1,
.container > h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #101827;
  margin-bottom: 0.9rem;
}

/* Homepage h1 on a single line on desktop; font scales with the
   viewport so it fits without overflowing. Wraps on mobile. */
@media (min-width: 769px) {
  #ready h1 {
    white-space: nowrap;
    font-size: clamp(1.4rem, 3vw, 2.45rem);
  }
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.section-lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* About section intro paragraphs: let them span the full section
   (comps.css caps .section-lead at 680px) */
#about > .container > .section-lead {
  max-width: none;
}

/* Homepage CTA lead: drop the 680px cap so it sits on one line on
   desktop (it's ~750px wide) and wraps naturally on narrow screens. */
.cta-lead {
  max-width: none;
}

/* -------------------------------------------------
   3. SECTION RHYTHM
-------------------------------------------------- */
.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

/* -------------------------------------------------
   4. BUTTONS — refined, consistent, tactile
-------------------------------------------------- */
.btn-blue,
#ready .btn-blue {
  padding: 0.95rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(35, 115, 127, 0.22);
  transition:
    background var(--transition-fast, 180ms ease-out),
    transform var(--transition-fast, 180ms ease-out),
    box-shadow var(--transition-fast, 180ms ease-out);
}

.btn-blue:hover,
#ready .btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(35, 115, 127, 0.3);
}

.btn-blue:active,
#ready .btn-blue:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(35, 115, 127, 0.22);
}

.btn-blue:focus-visible,
#ready .btn-blue:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

/* -------------------------------------------------
   5. HOMEPAGE FORGE PANELS — softer, more polished
-------------------------------------------------- */
.forge-style__wrap {
  border-radius: 14px;
}

.forge-panel {
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.forge-panel h3 {
  letter-spacing: -2px;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------
   6. PROJECT CARDS — ease the heavy filter
-------------------------------------------------- */
.project-image-wrapper img {
  filter: saturate(0.95) contrast(1.01);
}

/* -------------------------------------------------
   6b. ABOUT — tighten Neill's bio card (too tall / empty)
-------------------------------------------------- */
/* Grid items stretch by default, forcing the card to match the
   tall bio text column. Let it size to its own content instead. */
.bio-grid {
  align-items: start;
}

.bio-sidebar {
  padding: 12px 12px 16px;
}

/* Full-width intro paragraph above the two-column bio grid */
.bio-intro {
  max-width: none;
  margin-bottom: 1.4rem;
}

/* Editorial portrait: larger rounded-rectangle instead of a small circle */
.bio-sidebar img {
  width: 100%;
  border-radius: 16px;
  border: none;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
  margin-bottom: 16px;
}

.bio-stats li {
  margin-bottom: 10px;
}

/* Capabilities list: in-list blue buttons -> subtle accent links
   (they open the Permit / Iron Triangle popups) */
.about-points .btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease;
}

.about-points .btn-blue::after {
  content: "\203A"; /* › */
  font-weight: 700;
  transition: transform 0.18s ease;
}

.about-points .btn-blue:hover {
  background: none;
  color: #103c58;
  transform: none;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-points .btn-blue:hover::after {
  transform: translateX(3px);
}

/* NOTE: shrink-on-scroll nav moved to nav.2026.css so it applies site-wide. */
