/* ============ Fonts (self-hosted) ============
   Served from /fonts instead of fonts.googleapis.com so the first paint
   doesn't wait on a third-party DNS + TLS + CSS round trip.
   Libre Caslon Text & Archivo, SIL Open Font License 1.1. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/archivo-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/archivo-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/archivo-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/archivo-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/archivo-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/archivo-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-400i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-400i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/libre-caslon-text-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/libre-caslon-text-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Warm cream palette — cream paper, ink brown, terracotta accent
   (from the "Color & Type Explorations" reference, option 2a:
   Libre Caslon Text + Archivo on the cream/ink/terracotta set)
   ============================================================ */
:root {
  --paper:     #F2E4CA;  /* cream card / panel surface */
  --sand:      #E9E2D6;  /* warm page ground */
  --shell:     #FAF3E6;  /* lightest cream, alternating sections */
  --ink:       #211B12;  /* warm near-black, body text */
  --espresso:  #241C11;  /* deep warm brown, dark sections */
  --muted:     #4A4136;  /* secondary text on cream */
  --subtle:    #6B6053;  /* meta / captions */
  --terracotta:#B3542E;  /* accent */
  --amber:     #D99A56;  /* accent on dark ground */
  --oat:       #CDBFA4;  /* body text on dark ground */
  --line:      rgba(33, 27, 18, 0.14);

  --font-display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-height: 4.25rem;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: pretty;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; margin-bottom: 2.5rem; }
h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.75rem; }

/* Italic terracotta emphasis inside headings */
h1 em, h2 em, h3 em,
.accent {
  font-style: italic;
  color: var(--terracotta);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
}

section { padding: 6rem 0; position: relative; }

/* Divider between consecutive sections: a centred hairline spanning 80% of
   the page, tinted terracotta and fading out at both ends */
section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(179, 84, 46, 0.35) 22%,
    rgba(179, 84, 46, 0.45) 50%,
    rgba(179, 84, 46, 0.35) 78%,
    transparent 100%
  );
}

/* ============ Header / nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(242, 228, 202, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.9rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ============ Hero ============ */
.hero {
  background: var(--paper);
  padding-top: 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy .sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 1.25rem 0 2.25rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(179, 84, 46, 0.24);
}

.btn-primary:hover { background: #9B4626; }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid rgba(33, 27, 18, 0.3);
}

.btn-ghost:hover {
  background: rgba(33, 27, 18, 0.06);
  border-color: var(--ink);
}

.btn-light {
  background: var(--paper);
  color: var(--espresso);
}

.btn-light:hover { background: var(--shell); }

/* Portrait */
.hero-portrait {
  justify-self: center;
  text-align: center;
}

.portrait-frame {
  position: relative;
  width: min(420px, 80vw);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(33, 27, 18, 0.22);
}

.portrait-frame picture { display: block; }

.portrait-frame img {
  width: 100%;
  height: auto; /* let the photo keep its own proportions - no crop */
  display: block;
}

/* ============ Offerings ============ */
.offerings { background: var(--shell); }

.offerings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.offering {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.offering h3 { color: var(--ink); }

.offering p + p { margin-top: 1rem; }

.offering p {
  color: var(--muted);
  font-size: 0.97rem;
}

.offering strong { color: var(--ink); font-weight: 600; }

.offering-list {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
}

.offering-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
}

.offering-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--terracotta);
}

/* ============ Work ============ */
.work { background: var(--shell); }

h2 { color: var(--terracotta); }

.work-list {
  display: grid;
  gap: 3.5rem;
}

.work-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(33, 27, 18, 0.07);
}

.work-head { margin-bottom: 1.25rem; }

.work-head h3 { margin-bottom: 0.35rem; }

.work-meta {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--subtle);
}

.work-desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
  margin-top: 1.25rem;
}

/* ---- Carousel ---- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: var(--sand);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-track picture {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: block;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* For shots where the subject sits high in the frame: bias the 16/9 crop
   upwards so faces aren't clipped, trimming from the bottom instead. */
.carousel-track img.focus-top { object-position: center 15%; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(242, 228, 202, 0.88);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(33, 27, 18, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover { background: var(--paper); color: var(--terracotta); }

.carousel-btn:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(242, 228, 202, 0.65);
  box-shadow: 0 1px 3px rgba(33, 27, 18, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots button.is-active {
  background: var(--terracotta);
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ============ About ============ */
.about { background: var(--shell); }

/* Keep the container's own width so the section's left edge lines up with
   Offerings/Selected work; constrain the measure on the children instead. */
.about-inner > * {
  max-width: 44rem;
}

.about-inner p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-inner p + p { margin-top: 1.25rem; }
.about-inner .eyebrow + p { margin-top: 0; }

/* ============ Contact ============ */
.contact {
  background: var(--espresso);
}

/* No divider needed here — the dark block is its own delineation */
.contact::before { display: none; }

.contact-inner { text-align: center; }

.contact .eyebrow { color: var(--amber); }

.contact h2 { color: var(--paper); margin-bottom: 1rem; }

.contact h2 em { color: var(--amber); }

.contact-blurb {
  color: var(--oat);
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.site-footer {
  background: #1F1A13;
  color: #9A8C70;
  font-size: 0.82rem;
  padding: 1.5rem 0;
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  section { padding: 4rem 0; }

  .hero { padding-top: 3rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-copy .sub { margin-inline: auto; }

  .hero-actions { justify-content: center; }

  .offerings-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open { max-height: 240px; }

  .site-nav a {
    padding: 1rem 4%;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.active { border-bottom-color: var(--line); }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
}
