/* Jason Fazey — static personal website | Draft 2 */
:root {
  color-scheme: dark;
  --background: #0b0b0c;
  --panel: #131315;
  --card: #1a1a1d;
  --text: #f5f3ee;
  --muted: #b6b4b0;
  --gold: #d2ad64;
  --gold-dark: #a9803e;
  --line: #33302a;
  --max-width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-panel { background: var(--panel); }
.gold-text { color: var(--gold); }
.eyebrow { color: var(--gold); font-size: .76rem; font-weight: 750; letter-spacing: .2em; line-height: 1.5; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.13; }
h2 { font-size: clamp(2.3rem, 4.4vw, 4rem); margin-bottom: 28px; }
h3 { line-height: 1.3; }
p { color: var(--muted); }
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--gold); color: #101010; padding: 10px 16px; z-index: 20; }
.skip-link:focus { top: 10px; }
/* Header */
.site-header { background: rgba(11,11,12,.96); border-bottom: 1px solid #272421; }
.header-inner { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.025em; }
.brand-logo { width: 64px; height: 64px; object-fit: contain; }
.main-nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 34px); font-size: .9rem; }
.main-nav a, .site-footer a { transition: color .2s ease; }
.main-nav a:hover, .site-footer a:hover { color: var(--gold); }
/* Hero */
.hero { padding-block: 120px 135px; background: radial-gradient(ellipse at 80% 40%, #272017 0%, transparent 48%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(45px, 7vw, 110px); align-items: center; }
.hero h1 { font-size: clamp(3.6rem, 7.4vw, 7.2rem); max-width: 800px; margin: 22px 0 30px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-lead { color: #f0e6d4; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.45; max-width: 620px; }
.hero-description { max-width: 590px; font-size: 1.05rem; }
.text-link { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); margin-top: 22px; font-weight: 700; }
/* CSS-drawn arrows avoid emoji glyph substitution. */
.arrow { display: inline-block; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); flex: none; }
.arrow-up { transform: rotate(-45deg); }
.portrait-frame { position: relative; border: 1px solid #574629; padding: 12px;  max-width: 430px; width: 100%; justify-self: end; }
/* Natural ratio avoids cropping the portrait or coastline. */
.portrait { width: 100%; height: auto; }
.portrait-corner { position: absolute; width: 38px; height: 38px; border-color: var(--gold); }
.portrait-corner-top { top: -2px; left: -2px; border-top: 3px solid var(--gold); border-left: 3px solid var(--gold); }
.portrait-corner-bottom { bottom: -2px; right: -2px; border-bottom: 3px solid var(--gold); border-right: 3px solid var(--gold); }
/* About */
.two-column { display: grid; grid-template-columns: 1fr 1.15fr; gap: 9%; }
.body-copy { font-size: 1.08rem; }
.body-copy p:last-child { margin-bottom: 0; }
/* Journey timeline */
.section-heading { max-width: 780px; margin-bottom: 55px; }
.section-heading > p:last-child { font-size: 1.08rem; }
.timeline { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.timeline li { display: grid; grid-template-columns: 145px 1fr; gap: 40px; border-top: 1px solid var(--line); padding: 25px 0; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline-year { color: var(--gold); font-size: .94rem; font-weight: 750; letter-spacing: .045em; padding-top: 3px; }
.timeline h3 { font-size: 1.25rem; margin: 0 0 6px; }
.timeline p { margin: 0; }
/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { background: var(--card); border: 1px solid #39342d; padding: 32px; min-height: 275px; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
a.project-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.project-category { color: var(--gold); font-size: .7rem; font-weight: 750; letter-spacing: .17em; }
.project-card h3 { font-size: 1.45rem; margin: 24px 0 10px; }
.project-card p { font-size: .95rem; margin-bottom: 24px; }
.project-action { color: var(--gold); display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .87rem; font-weight: 700; }
.project-action.muted { color: #a5a09a; }
/* Minimal footer */
.site-footer { border-top: 1px solid var(--line); padding: 25px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .85rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.footer-inner p { margin: 0; }
.footer-inner > a { display: flex; align-items: center; gap: 10px; }
/* Tablet */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 0.8fr; gap: 32px; }
  .hero h1 { font-size: clamp(3.3rem, 7vw, 5.5rem); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 85px; }
}
/* Mobile */
@media (max-width: 650px) {
  .container { width: min(calc(100% - 36px), var(--max-width)); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 12px 18px; }
  .brand-logo { width: 48px; height: 48px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 8px; font-size: .84rem; }
  .section { padding-block: 70px; }
  .hero-grid, .two-column { grid-template-columns: 1fr; }
  .hero { padding-top: 75px; }
  .hero h1 { font-size: clamp(3.1rem, 12vw, 5rem); }
  .portrait-frame { max-width: 360px; justify-self: center; margin-top: 24px; }
  .two-column { gap: 12px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 225px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
