/* styles.css */

/* ───────────────────────────────────────────────
   Design tokens
   ─────────────────────────────────────────────── */
:root {
  /* Warm light palette */
  --bg:           #FAFAF7;
  --bg-alt:       #F4F3EF;

  --panel:        #FFFFFF;
  --panel-border: rgba(26, 25, 22, 0.09);

  /* Warm charcoal — no blue cast */
  --text:           #1A1916;
  --text-secondary: #3D3A35;
  --muted:          #6A6560;
  --faint:          #9A9590;

  /* Bronze accent — muted, not decorative */
  --accent:       #8B6E4E;
  --accent-soft:  rgba(139, 110, 78, 0.10);
  --accent-hover: #73593D;

  --shadow-sm: 0 1px 3px rgba(26, 25, 22, 0.05), 0 1px 2px rgba(26, 25, 22, 0.03);
  --shadow:    0 4px 20px rgba(26, 25, 22, 0.07), 0 1px 4px rgba(26, 25, 22, 0.04);
  --shadow-lg: 0 8px 40px rgba(26, 25, 22, 0.11);

  --radius:     12px;
  --radius-sm:   8px;
  --radius-pill: 999px;
  --maxw:       1100px;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --text-h1:    clamp(2.8rem, 5.5vw, 4rem);
  --text-h2:    clamp(1.45rem, 2.2vw, 1.75rem);
  --text-h3:    clamp(1rem, 1.2vw, 1.1rem);
  --text-body:  clamp(0.95rem, 1.1vw, 1.05rem);
  --text-lede:  clamp(1.05rem, 1.3vw, 1.15rem);
  --text-small: 0.85rem;
  --text-tiny:  0.75rem;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 220ms;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0D0F12;
    --bg-alt:       #131519;

    --panel:        rgba(255, 255, 255, 0.04);
    --panel-border: rgba(255, 255, 255, 0.08);

    --text:           rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.70);
    --muted:          rgba(255, 255, 255, 0.48);
    --faint:          rgba(255, 255, 255, 0.30);

    --accent:       #C9A87C;
    --accent-soft:  rgba(201, 168, 124, 0.12);
    --accent-hover: #D4B88E;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow:    0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.45);
  }
}


/* ───────────────────────────────────────────────
   Reset & base
   ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

p, li { font-size: var(--text-body); }


/* ───────────────────────────────────────────────
   Links
   ─────────────────────────────────────────────── */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--accent-hover); }


/* ───────────────────────────────────────────────
   Skip link (accessibility)
   ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--panel);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  font-size: var(--text-small);
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}


/* ───────────────────────────────────────────────
   Navigation
   ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--panel-border);
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.03em;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.brand:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.015em;
}

.nav-links a {
  color: var(--muted);
  padding: 4px 0;
  position: relative;
  transition: color var(--duration) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }


/* ───────────────────────────────────────────────
   Container
   ─────────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px 80px;
}


/* ───────────────────────────────────────────────
   Hero
   ─────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  padding: 88px 0 72px;
  align-items: center;
}

h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
}

.kicker {
  margin: 0 0 36px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0;
  text-transform: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-disclaimer {
  margin: 22px 0 0;
  font-size: var(--text-tiny);
  color: var(--faint);
  line-height: 1.6;
}

.hero-aside {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  box-shadow: 0 4px 32px rgba(26, 25, 22, 0.13);
  background: #f3f3f3;
}


/* ───────────────────────────────────────────────
   Sections — whitespace + hairline separators
   ─────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section + .section {
  border-top: 1px solid var(--panel-border);
}

#about {
  padding: 52px 0;
}


/* ───────────────────────────────────────────────
   Headings
   ─────────────────────────────────────────────── */
h2 {
  margin: 0 0 36px;
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}


/* ───────────────────────────────────────────────
   Prose — About, Writing
   ─────────────────────────────────────────────── */
.about-text {
  max-width: 65ch;
  font-size: var(--text-lede);
  color: var(--text-secondary);
  line-height: 1.78;
  margin: 0;
}

.section-lede {
  margin: -20px 0 24px;
  font-size: var(--text-small);
  color: var(--muted);
  line-height: 1.6;
}


/* ───────────────────────────────────────────────
   Cards
   ─────────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease);
}

.card:hover { box-shadow: var(--shadow); }


/* ───────────────────────────────────────────────
   Grid — qualifications
   ─────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


/* ───────────────────────────────────────────────
   Qualification list
   ─────────────────────────────────────────────── */
.qual-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.qual-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 12px;
}

.qual-item span {
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.5;
}

.qual-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  opacity: 0.80;
  border-radius: 3px;
}

.qualifications-disclaimer {
  margin-top: 20px;
}

.qual-divider {
  list-style: none;
  margin: 2px 0;
  border-top: 1px solid var(--panel-border);
  height: 0;
  padding: 0;
}

.qual-subhead {
  margin: 8px 0;
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  line-height: 1.2;
  list-style: none;
}

/* Professional credentials — structured rows, no bullets */
.pro-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pro-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.5;
}
.pro-list li:first-child {
  border-top: 1px solid var(--panel-border);
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}
li { margin: 8px 0; }


/* ───────────────────────────────────────────────
   Utility
   ─────────────────────────────────────────────── */
.muted { color: var(--muted); }
.tiny  { font-size: var(--text-tiny); }

.info-note { margin-top: 16px; }


/* ───────────────────────────────────────────────
   Inline links
   ─────────────────────────────────────────────── */
.links { margin-top: 20px; }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 500;
  font-size: var(--text-body);
  position: relative;
  padding-bottom: 1px;
}
.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}
.inline-link:hover::after { transform: scaleX(1); }
.inline-link:hover { color: var(--accent-hover); }


/* ───────────────────────────────────────────────
   Buttons — restrained rectangles, not pill SaaS
   ─────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.button:active { opacity: 0.88; }

.button.ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--panel-border);
}
.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}


/* ───────────────────────────────────────────────
   Builds — editorial list, not product tiles
   ─────────────────────────────────────────────── */
.builds-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel-border);
  gap: 1px;
}

.build-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  transition: background var(--duration) var(--ease);
}

.build-item:hover { background: var(--bg-alt); }

.build-item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.build-item strong {
  display: block;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text);
}

.build-desc {
  display: block;
  font-size: var(--text-small);
  color: var(--muted);
}

.build-arrow {
  font-size: 1rem;
  color: var(--faint);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.build-item:hover .build-arrow {
  transform: translateX(3px);
  color: var(--accent);
}


/* ───────────────────────────────────────────────
   Footer
   ─────────────────────────────────────────────── */
.footer {
  margin: 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--panel-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy {
  margin: 0;
  font-size: var(--text-small);
  color: var(--muted);
}


/* ───────────────────────────────────────────────
   Scroll-triggered fade-in
   ─────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ───────────────────────────────────────────────
   Responsive — tablet
   ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .container {
    padding: 0 20px 60px;
  }

  .nav {
    padding: 13px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0 40px;
    text-align: center;
  }

  .hero-aside {
    order: -1;
    justify-content: center;
  }

  .hero-image {
    max-width: 200px;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-disclaimer {
    text-align: center;
  }

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

  .nav-links {
    gap: 20px;
  }

  .section {
    padding: 64px 0;
  }

  h2 {
    margin-bottom: 28px;
  }

  .about-text {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 14px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 40px 0 28px;
  }

  .hero-image {
    max-width: 168px;
  }

  .section {
    padding: 52px 0;
  }

  .card {
    padding: 22px 20px;
  }

  .button {
    height: 38px;
    padding: 0 16px;
    font-size: 0.8rem;
  }

  .build-item {
    padding: 16px 18px;
  }
}
