/* joefenten.com — styles */

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

:root {
  --navy:   #0D1C2E;
  --linen:  #F4F1EB;
  --ink:    #1A1918;
  --muted:  #5C5650;
  --stone:  #D9D3C8;
  --brass:  #B08D57;
  --mist:   #A9B4C2;   /* secondary text on navy */
  --cloud:  #C5CCD6;   /* links on navy */

  --serif: 'Newsreader', Georgia, serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --gutter: 24px;
  --section: 128px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }

a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 4px; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--brass); color: var(--navy); padding: 10px 16px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brass); color: var(--navy); font-weight: 600; }
.btn-primary:hover { background: #C09E68; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #FFFFFF; }
.btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { background: var(--navy); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-family: var(--serif); font-size: 24px; font-weight: 500; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.nav-actions { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--cloud); text-decoration: none; }
.nav-links a:hover { color: #FFFFFF; }
.nav-cta { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { background: var(--navy); color: #FFFFFF; border-top: 1px solid rgba(255,255,255,0.08); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; padding-top: 120px; padding-bottom: 136px; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero-rule { width: 48px; height: 1px; background: var(--brass); margin-bottom: 24px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); margin-bottom: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 40px; max-width: 11em; text-wrap: balance; }
.hero-titles { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.hero-terms { font-size: 16px; color: var(--mist); margin-bottom: 44px; }
.hero-img { order: 2; flex: 1 1 240px; max-width: 300px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }

/* Statement */
.statement { padding: var(--section) 0 112px; }
.statement .container { max-width: 880px; }
.statement p { font-family: var(--serif); font-size: clamp(28px, 3.1vw, 40px); line-height: 1.3; color: var(--navy); }

/* Proof */
.proof { padding-bottom: var(--section); }
.proof-lead { border-top: 1px solid var(--ink); padding-top: 32px; }
.proof-lead .figure { font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); line-height: 1; color: var(--navy); }
.proof-lead p { max-width: 34em; color: var(--muted); margin-top: 16px; }
.proof-support { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.proof-support > div { border-top: 1px solid var(--stone); padding-top: 20px; }
.proof-support .figure { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--navy); }
.proof-support p { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Section headings */
.section { padding-bottom: var(--section); }
.section h2, .contact h2, .statement p { text-wrap: balance; }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; }
.section-intro { color: var(--muted); max-width: 36em; margin-top: 12px; }

/* Ways to work */
.section-band { background: #FBFAF7; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); padding-top: var(--section); margin-bottom: var(--section); }
.section-band .ways > div { border-top-color: #CFC8BA; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
.ways > div { border-top: 1px solid var(--stone); padding-top: 24px; }
.ways h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.2; margin-bottom: 10px; }
.ways p { color: var(--muted); font-size: 16px; }
.ways a { font-weight: 500; }

/* Experience */
.chronology { border-top: 1px solid var(--ink); margin-top: 56px; }
.chapter { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 32px 0; border-bottom: 1px solid var(--stone); }
.chapter-name { flex: 0 0 220px; }
.chapter-name h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.2; }
.chapter-name span { font-size: 14px; color: var(--muted); }
.chapter-body { flex: 1 1 420px; min-width: 0; }
.chapter-body strong { font-weight: 500; }
.chapter-body p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.credentials { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* Contact */
.contact { background: var(--navy); color: #FFFFFF; padding: 96px 0; }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.contact h2 { flex: 1 1 420px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; }

/* Footer */
.footer { background: var(--navy); color: var(--mist); font-size: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.footer a { color: var(--cloud); }
.footer a:hover { color: #FFFFFF; }

/* Mobile */
@media (max-width: 760px) {
  :root { --section: 88px; }
  .nav-links { display: none; }
  .hero-inner { padding-top: 56px; padding-bottom: 80px; gap: 32px; }
  .hero-img { order: -1; max-width: 180px; }
  .statement { padding: 88px 0 72px; }
  .proof-support { grid-template-columns: 1fr; margin-top: 40px; gap: 32px; }
  .ways { grid-template-columns: 1fr; margin-top: 40px; gap: 36px; }
  .nav-cta { min-height: 44px; display: inline-flex; align-items: center; }
  .chronology { margin-top: 40px; }
  .chapter { padding: 24px 0; }
  .chapter-name { flex-basis: 100%; }
  .contact { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
