/* ============================================================
   site.css — shared styles for sabinaboyer.com
   Single source of truth for design tokens, typography, nav,
   sections, home-page modules (hero, work grid, accolades),
   and footer. Link from every page with:
     <link rel="stylesheet" href="/assets/site.css" />
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  /* ---------- Core palette ----------
     Warm cream paper + warm ink, with a cool navy primary and
     a warm brass secondary. The warmth of cream/ink/brass gives
     the site a book-jacket feel; navy anchors it.
  */
  --bg:              #F4F2EC;   /* page — warm cream */
  --bg-alt:          #EAE7DE;   /* slightly darker cream (card wells) */
  --paper:           #FAF8F2;   /* lightest cream (on-navy text in logo) */
  --ink:             #1A1815;   /* near-black with warm undertone */
  --ink-muted:       #5D5851;   /* body meta / secondary text */
  --ink-soft:        #8C8780;   /* tertiary / captions */
  --rule:            #DCD7CC;   /* hairline rules on cream */
  --accent:          #1F2D44;   /* primary — deep navy */
  --accent-hover:    #2F4266;
  --accent-2:        #B5824A;   /* secondary — warm brass */
  --accent-2-hover:  #9C6E3C;

  /* ---------- Footer palette (tokens for on-navy surface) ----------
     Every footer-surface color lives here so the footer stays
     consistent and is easy to re-tune in one place.
  */
  --footer-bg:          var(--accent);
  --footer-heading:     #F0EEE8;            /* brand name, hover states */
  --footer-text:        #D6D4CB;            /* primary links, email/phone */
  --footer-text-dim:    #C7C4BC;            /* secondary link column text */
  --footer-meta:        #A8A69E;            /* legal / copyright (tuned for 11px uppercase on navy) */
  --footer-rule:        rgba(227,226,221,0.18);
  --footer-rule-soft:   rgba(227,226,221,0.15);
  --footer-icon-bg:     rgba(255,255,255,0.08);
  --footer-icon-bg-hov: rgba(255,255,255,0.18);

  /* ---------- Layout ---------- */
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);

  /* ---------- Typography — 3 faces for variety ---------- */
  --serif: "Newsreader", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 242, 236, 0.88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.nav-logo-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);         /* navy tile */
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(14,16,19,0.04), 0 6px 16px -8px rgba(31,45,68,0.3);
  color: var(--paper);               /* cream S on navy */
  transform: translateY(-2px);       /* optical nudge to align with wordmark */
}
.nav-logo-mark .monogram {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-logo-mark .monogram text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  fill: currentColor;
}
.nav-logo-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variation-settings: "opsz" 36;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }

/* Dropdown arrow indicator */
.nav-arrow {
  font-size: 10px;
  margin-left: 2px;
  display: inline-block;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown container */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 14px 0 0;
  padding: 10px 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px -8px rgba(26, 24, 21, 0.12);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}
/* Invisible hover bridge so menu doesn't close between link and dropdown */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu li { padding: 0; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 24px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown-menu a:hover {
  color: var(--accent);
  background: var(--bg-alt);
}

/* ---------- Hamburger button (hidden on desktop) ---------- */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  margin: -6px;
  line-height: 0;
}

/* ---------- Mobile slide-out menu ---------- */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 21, 0.35);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-mobile-overlay.open {
  display: block;
  opacity: 1;
}
.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--paper);
  z-index: 100;
  padding: 24px 28px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.nav-mobile.open {
  transform: translateX(0);
}
.nav-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  margin: 0 0 24px auto;
  line-height: 0;
}
.nav-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-links li {
  border-bottom: 1px solid var(--rule);
}
.nav-mobile-links a {
  display: block;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-mobile-links a:hover { color: var(--accent); }
.nav-mobile-sub a {
  padding-left: 20px;
  font-size: 11px;
  color: var(--ink-muted);
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* ---------- Generic section ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.022em;
  margin: 12px 0 0;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
}
.section-link {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.section-link:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ============================================================
   HOME PAGE MODULES
   Hero, featured work grid, accolades broadsheet. These used to
   live inline in index.html — consolidated here so every page has
   a single stylesheet and styles can be reused on other pages.
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 120px) var(--gutter) clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 680px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 40px;
    gap: 28px;
  }
  .hero-title {
    font-size: clamp(36px, 11vw, 54px);
    margin-bottom: 18px;
  }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 10vw, 156px);
  line-height: 0.93;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }

.hero-tag {
  font-family: var(--mono);
  font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
  margin: 0 0 44px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.4;
}
.hero-tag span { display: block; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.hero-cta:hover { color: var(--accent-2); border-color: var(--accent-2); gap: 18px; }
.hero-cta .arrow { font-family: var(--serif); font-size: 20px; line-height: 1; }

/* Portrait wrapper is the positioning context for the offset navy card */
.hero-portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 620px;
  margin: 0 0 0 auto;
}
/* Offset navy card peeking out bottom-left, behind the portrait */
.hero-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 18px 18px -18px -18px;
  background: var(--accent);
  z-index: 0;
  pointer-events: none;
}
.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  background: var(--bg-alt);
  overflow: hidden;
  transition: transform 0.4s ease;
}
.hero-portrait-wrap:hover .hero-portrait { transform: translateY(-4px); }
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 140px rgba(26,24,21,0.10);
  pointer-events: none;
}
/* ---------- Hero mobile overrides (must come after base hero styles) ---------- */
@media (max-width: 680px) {
  .hero-text { text-align: center; }
  .hero-title .line { display: inline; }
  .hero-tag {
    font-size: 13px;
    letter-spacing: 0.14em;
    gap: 0;
    margin-bottom: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.8;
  }
  .hero-tag span { display: inline; }
  .hero-tag span + span::before {
    content: " · ";
    margin: 0 4px;
  }
  .hero-cta { display: none; }
  .hero-portrait-wrap {
    margin-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Featured work grid (Portfolio) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .work-grid { grid-template-columns: 1fr; } }

.work-card { display: block; position: relative; }
.work-cover {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.work-card:hover .work-cover { transform: translateY(-4px); }
.work-cover-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  text-align: center;
}
.work-cover-inner .title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
/* Three card tints — deliberate warm / cool / warm rhythm:
   tint-1 reads as parchment (brass-leaning),
   tint-2 reads as pewter (desaturated navy sibling),
   tint-3 reads as aged gold (pure brass family).
   All three share the ink text color so the palette stays coherent. */
.work-cover.tint-1 {
  background: url('images/scripts.jpg') center / cover no-repeat;
}
.work-cover.tint-2 {
  background: url('images/creative_nonfiction.jpg') center / cover no-repeat;
}
.work-cover.tint-3 {
  background: url('images/books.jpg') center / cover no-repeat;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.work-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 6px;
}
.work-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Accolades — Cinema Broadsheet ---------- */
.accolades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px clamp(32px, 5vw, 64px);
}
@media (max-width: 780px) { .accolades-grid { grid-template-columns: 1fr; } }

.accolade-project { padding: 0; }
.accolade-project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.accolade-project-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
}
.accolade-project-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
  white-space: nowrap;
}
.accolade-awards {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.accolade-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 6px 0;
  align-items: baseline;
}
.accolade-line {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.accolade-line .label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-right: 8px;
}
.accolade-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============================================================
   FOOTER (shared component)
   All on-navy surface colors come from the --footer-* tokens
   defined at the top of this file.
   ============================================================ */
.site-footer {
  background: var(--footer-bg);          /* navy — matches logo tile & brand */
  color: var(--footer-text);
  margin-top: clamp(56px, 8vw, 120px);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* Column 1 — brand + contact */
.footer-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--footer-heading);
}
.footer-tag {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 28px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.4;
}
.footer-tag span { display: block; }

.footer-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-rule);
}
.footer-email,
.footer-phone {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--footer-text);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.footer-email:hover,
.footer-phone:hover { color: var(--footer-heading); }

/* Footer social — subtle pill buttons on navy, lift on hover */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-social .social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--footer-icon-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social .social-btn:hover {
  background: var(--footer-icon-bg-hov);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Columns 2 & 3 — link columns */
.footer-col-title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--accent-2);
}
.footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-list a {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--footer-text-dim);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.footer-col-list a:hover { color: var(--footer-heading); }

/* Legal row — spans all columns */
.footer-legal-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--footer-rule-soft);
}
/* Privacy and copyright MUST match: same font, size, color, weight, tracking */
.footer-legal,
.footer-privacy {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--footer-meta);
  margin: 0;
  font-weight: 500;
}
.footer-privacy { transition: color 0.2s ease; }
.footer-privacy:hover { color: var(--footer-heading); }
