/*
  markalanbaker.com — shared stylesheet
  Layout: sticky nav · hero · three-card grid · bio strip | about: header + two-col body
  Palette: amber signature, warm ink, cream ground
  Type: Inter (single typeface)
*/

:root {
  --amber:    #F0B429;
  --amber-dk: #C8900A;
  --ink:      #1A1105;
  --gray:     #5A4E3C;
  --cream:    #FFFCF0;
  --card:     #FFF8DE;
  --rule:     #D4A020;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --amber:    #F0B429;
    --amber-dk: #F5C84A;
    --ink:      #F0E8CC;
    --gray:     #B8A88A;
    --cream:    #1C1409;
    --card:     #251B08;
    --rule:     #5A4010;
    color-scheme: dark;
  }
  /* Text that sits on the amber bands must stay dark in dark mode */
  .site-nav, .hero-band, .about-band { --ink: #1A1105; }
  .site-footer { background: #0F0A03; color: var(--amber); }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* NAV */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  background: var(--amber);
  border-bottom: 2px solid var(--ink);
  position: sticky; top: 0; z-index: 100;
}
.wordmark {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-link {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color 0.15s;
}
.nav-link:hover, .nav-link.active { border-color: var(--ink); }

/* HOME: HERO */
.hero-band { background: var(--amber); border-bottom: 2px solid var(--ink); }
.hero {
  max-width: 1100px; margin-inline: auto; padding: 4rem 2rem 3.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.hero-eyebrow {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); opacity: 0.6; margin: 0 0 0.75rem;
}
.hero-name {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: clamp(3rem, 8vw, 5.25rem); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.03em; font-weight: 800;
  margin: 0 0 1.5rem; text-wrap: balance; color: var(--ink);
}
.hero-statement { font-size: 1.1rem; line-height: 1.65; color: var(--ink); max-width: 38ch; margin: 0; }

/* Image panel. To use a photo, add class "has-image" and set the
   background-image in the HTML (see comment in index.html). */
.hero-panel {
  background: var(--ink); aspect-ratio: 3/4; max-height: 400px;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.hero-panel:not(.has-image)::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.02)  0, rgba(255,255,255,0.02)  1px, transparent 1px, transparent 9px);
}

/* HOME: CARDS */
.section { max-width: 1100px; margin-inline: auto; padding: 3rem 2rem; }
.section-eyebrow {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray); margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--card); border: 1.5px solid var(--rule); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.card-bar { width: 2.5rem; height: 3px; background: var(--amber-dk); }
.card-title {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 1.2rem; font-weight: 600;
  letter-spacing: -0.01em; margin: 0; color: var(--ink);
}
.card-desc { font-size: 0.9rem; line-height: 1.65; color: var(--gray); margin: 0; flex: 1; }
.card-link {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0; color: var(--ink);
  text-decoration: none; border-bottom: 1.5px solid var(--rule); padding-bottom: 1px;
  align-self: flex-start; margin-top: 0.25rem; transition: border-color 0.15s;
}
.card-link:hover { border-color: var(--ink); }

/* HOME: BIO STRIP */
.bio-strip { border-top: 1.5px solid var(--rule); padding-top: 2.25rem; margin-top: 2.5rem; }
.bio-strip p { font-size: 1.05rem; color: var(--gray); max-width: 64ch; margin: 0 0 0.8rem; }
.bio-strip p:last-child { margin-bottom: 0; }
.bio-more {
  display: inline-block; margin-top: 1.25rem;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0; color: var(--ink);
  text-decoration: none; border-bottom: 1.5px solid var(--rule); padding-bottom: 1px;
}
.bio-more:hover { border-color: var(--ink); }

/* ABOUT: HEADER */
.about-band { background: var(--amber); border-bottom: 2px solid var(--ink); }
.about-hdr { max-width: 1100px; margin-inline: auto; padding: 3.5rem 2rem; }
.about-tagline {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 1rem; text-wrap: balance; color: var(--ink);
}
.about-sub { font-size: 1rem; font-style: italic; color: var(--ink); opacity: 0.7; margin: 0; }

/* ABOUT: BODY */
.about-body {
  max-width: 1100px; margin-inline: auto; padding: 3rem 2rem;
  display: grid; grid-template-columns: 3fr 1fr; gap: 4rem; align-items: start;
}
.about-section { margin-bottom: 2.75rem; }
.about-section:last-child { margin-bottom: 0; }
.about-section-label {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray); margin: 0 0 0.9rem;
  padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--rule);
}
.about-section p { margin: 0 0 0.85rem; font-size: 1rem; }
.about-section p:last-child { margin-bottom: 0; }
.shaped-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.shaped-list li { padding-left: 1.3rem; position: relative; font-size: 1rem; }
.shaped-list li::before { content: '▸'; position: absolute; left: 0; color: var(--amber-dk); font-size: 0.7rem; top: 0.3em; }

/* ABOUT: SIDEBAR */
.about-sidebar { position: sticky; top: 72px; }
.sb-card { background: var(--card); border: 1.5px solid var(--rule); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.sb-card:last-child { margin-bottom: 0; }
.sb-label {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray); margin: 0 0 0.6rem;
}
.sb-link {
  display: block; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0; color: var(--ink); text-decoration: none;
  padding: 0.45rem 0; border-bottom: 1px solid var(--rule); transition: color 0.15s; line-height: 1.2;
}
.sb-link:last-child { border-bottom: none; }
a.sb-link:hover { color: var(--amber-dk); }
.sb-sub { display: block; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-style: italic; font-size: 0.72rem; color: var(--gray); margin-top: 0.1rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.sb-email { font-size: 0.85rem; margin: 0; word-break: break-all; }
.sb-email a { color: var(--gray); }

/* 404 */
.notfound { max-width: 700px; margin: 5rem auto; padding: 0 2rem; text-align: center; }
.notfound h1 { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 2.5rem; margin: 0 0 1rem; }

/* FOOTER */
.site-footer {
  background: var(--ink); color: var(--amber); border-top: 2px solid var(--ink);
  padding: 1.4rem 2rem; text-align: center;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 0.8rem; letter-spacing: 0.02em;
}

/* Keyboard focus visibility */
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* RESPONSIVE */
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; padding: 2.5rem 1.25rem; gap: 2rem; }
  .hero-panel { max-height: 200px; aspect-ratio: 16/9; }
  .cards { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; gap: 2rem; }
  .about-sidebar { position: static; }
  .section, .about-hdr, .about-body { padding-inline: 1.25rem; }
  .site-nav { padding-inline: 1.25rem; }
  .nav-links { gap: 1.1rem; }
}


/* HERO (dark, with ink illustration) — image is a background layer on the band;
   its right edge fades into black so the text sits on solid black. */
.hero-dark { position: relative; background: #000; overflow: hidden; border-bottom: 2px solid var(--amber); }
.hero-dark::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0;
  width: min(936px, 100%);
  background: url('/images/hero.webp') left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 65%, transparent 100%);
  mask-image: linear-gradient(to right, #000 65%, transparent 100%);
}
.hero-dark .hero { position: relative; z-index: 1; padding: 3.5rem 2rem; min-height: 414px; align-items: center; }
.hero-dark .hero-image-spacer { min-height: 1px; }
.hero-dark .hero-eyebrow { color: var(--amber); opacity: 0.85; }
.hero-dark .hero-name { color: var(--amber); }
.hero-dark .hero-statement { color: #FFFCF0; }

@media (max-width: 680px) {
  .hero-dark::before { position: relative; display: block; width: 100%; height: 230px; background-position: 30% center;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .hero-dark .hero { grid-template-columns: 1fr; padding: 0 1.25rem 2.5rem; min-height: 0; gap: 0; }
  .hero-dark .hero-image-spacer { display: none; }
}
