/* ==========================================================================
   Design tokens
   ========================================================================== */
:root{
  --basalt: #14161A;
  --fog:    #EDEAE3;
  --foam:   #F6F4EF;
  --north-sea: #2B4C5C;
  --swell:  #7C97A0;
  --lichen: #C97A3D;
  --ink:    #1F2320;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--north-sea);
}

/* ==========================================================================
   Strata bands — signature motif: thin horizontal color layers,
   used behind headlines, as dividers, and as thumbnail frames.
   ========================================================================== */
.strata{
  display:flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.strata span{ display:block; width:100%; }

.strata--divider{ height: 14px; }
.strata--divider span:nth-child(1){ background: var(--north-sea); height: 3px; }
.strata--divider span:nth-child(2){ background: var(--lichen);    height: 2px; }
.strata--divider span:nth-child(3){ background: var(--swell);     height: 5px; }
.strata--divider span:nth-child(4){ background: var(--basalt);    height: 4px; }

.strata--thin{ height: 6px; }
.strata--thin span:nth-child(1){ background: var(--swell); height: 2px; }
.strata--thin span:nth-child(2){ background: var(--lichen); height: 1px; }
.strata--thin span:nth-child(3){ background: var(--north-sea); height: 3px; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 20;
  background: rgba(237,234,227,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20,22,26,0.1);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.wordmark{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration:none;
  color: var(--ink);
}
.wordmark b{ color: var(--lichen); font-weight: 700; }

.site-nav ul{
  list-style:none; display:flex; gap: 28px; margin:0; padding:0;
}
.site-nav a{
  text-decoration:none;
  font-size: 14px;
  letter-spacing: .02em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav a:hover, .site-nav a.active{
  border-color: var(--lichen);
}
.nav-toggle{ display:none; }

/* ==========================================================================
   Hero
   ========================================================================== */
/*
  Hero: full-bleed background image with text on top.

  Sizing strategy (answers "how does this scale across resolutions"):
  - The image itself is absolutely positioned and uses object-fit:cover,
    so it always fills the box and crops to fit — no stretching, no gaps,
    at any monitor width from a small laptop to an ultrawide.
  - The box height uses `min-height: 100svh` (small viewport height).
    svh accounts for mobile browser chrome (the address bar) so the hero
    doesn't jump or leave a gap as the browser UI shows/hides on scroll.
    Older browsers that don't understand svh just fall back to the
    `100vh` declared right above it — the cascade handles the fallback,
    no @supports needed.
  - Text sizes, hero padding, and line lengths all use clamp(), so type
    scales fluidly between a minimum and maximum rather than jumping at
    fixed breakpoints.
*/
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate; /* keeps z-index stacking self-contained */
}

.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shifts the visible "window" of the image on narrow screens so the
     brighter accent area (right side of the source image) isn't the
     only thing left after cropping — see the mobile media query below. */
  object-position: center;
  z-index: 0;
}

/* Scrim: a gradient placed in CSS, independent of the image itself.
   This is what makes text legible over ANY photo you swap in later —
   don't rely on a naturally dark patch in the image; the gradient does
   the work regardless of what's underneath it. */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(5,6,7,0.65) 0%,
    rgba(5,6,7,0.25) 45%,
    rgba(5,6,7,0.05) 75%
  );
}

.hero .wrap{
  position: relative;
  z-index: 2;
  padding-top: clamp(120px, 22vw, 220px);
  padding-bottom: clamp(56px, 9vw, 100px);
  width: 100%;
}

.hero .eyebrow{ color: var(--swell); }

.hero h1{
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  max-width: 14ch;
  margin-bottom: .3em;
  color: var(--foam);
}
.hero p.lede{
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  max-width: 42ch;
  color: var(--fog);
  opacity: .88;
}
.hero-meta{
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--swell);
  letter-spacing: .04em;
}

/* Mobile / vertical layout adjustments.
   The layout doesn't change shape (still text-over-image, still
   bottom-aligned) — only spacing, line length, and the image's focal
   point shift, since a portrait viewport crops a wide image much
   tighter and the interesting part of the scene can get cut off. */
@media (max-width: 640px){
  .hero{ align-items: flex-end; }
  .hero-bg{ object-position: 62% center; } /* keep the warm accent area in frame */
  .hero .wrap{ padding-top: clamp(90px, 30vw, 140px); }
  .hero h1{ max-width: 12ch; }
  .hero p.lede{ max-width: 34ch; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section{ padding: clamp(48px, 8vw, 90px) 0; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap: 20px; margin-bottom: 36px; flex-wrap:wrap;
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
.link-more{
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--lichen);
  white-space: nowrap;
}

/* ==========================================================================
   Painting grid / cards
   ========================================================================== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
@media (max-width: 880px){ .grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid{ grid-template-columns: 1fr; } }

.card{ text-decoration:none; color: inherit; display:block; }
.card-frame{
  position:relative;
  background: var(--basalt);
  overflow:hidden;
  margin-bottom: 14px;
}
.card-frame img{
  width:100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-frame img{ transform: scale(1.04); }
.card-frame .strata--thin{
  position:absolute; left:0; right:0; bottom:0;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.card:hover .card-frame .strata--thin{ transform: translateY(0); }

.card h3{ font-size: 1.25rem; margin-bottom: .15em; }
.card .meta{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--north-sea);
  letter-spacing: .03em;
}

/* ==========================================================================
   Painting detail
   ========================================================================== */
.detail{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items:start;
}
@media (max-width: 860px){ .detail{ grid-template-columns: 1fr; } }

.detail-image{ background: var(--basalt); }
.detail-image img{ width:100%; }

.detail-info h1{ font-size: clamp(2rem, 3.4vw, 2.8rem); }
.spec-table{
  font-family: var(--font-mono);
  font-size: 13.5px;
  margin: 22px 0 26px;
  border-top: 1px solid rgba(20,22,26,.15);
}
.spec-table div{
  display:flex; justify-content:space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(20,22,26,.1);
}
.spec-table span:first-child{ color: var(--north-sea); text-transform:uppercase; letter-spacing:.06em; }

.detail-nav{
  display:flex; justify-content:space-between;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.detail-nav a{ text-decoration:none; border-bottom: 1px solid var(--lichen); }

/* ==========================================================================
   About page
   ========================================================================== */
.about-layout{
  display:grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items:start;
}
@media (max-width: 820px){ .about-layout{ grid-template-columns: 1fr; } }
.portrait{ background: var(--basalt); }
.about-copy p{ margin: 0 0 1.1em; max-width: 62ch; }
.pull-quote{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--north-sea);
  border-left: 3px solid var(--lichen);
  padding-left: 22px;
  margin: 1.6em 0;
  max-width: 44ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--basalt);
  color: var(--fog);
  padding: 44px 0 34px;
  margin-top: 40px;
}
.site-footer .wrap{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
}
.site-footer p{ margin:0; font-size: 13px; opacity:.7; }
.site-footer a{ text-decoration:none; opacity:.85; }

/* ==========================================================================
   Focus visibility / reduced motion
   ========================================================================== */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--lichen);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .card-frame img, .card-frame .strata--thin{ transition:none; }
}

/* ==========================================================================
   Mobile nav
   ========================================================================== */
@media (max-width: 640px){
  .site-nav ul{ gap: 16px; }
  .site-nav a{ font-size: 13px; }
}
