@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #29231f;
  --paper: #f4ede3;
  --cream: #fffaf3;
  --terracotta: #bd5439;
  --moss: #286052;
  --gold: #e5c469;
  --muted: #70665e;
  --line: #d7cabd;
  --max: 1160px;
  --font-display: 'DM Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-sans: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 82% 8%, rgba(229, 196, 105, .18), transparent 27rem);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
a { color: inherit; }
::selection { color: var(--cream); background: var(--terracotta); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 4px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 237, 227, .9);
  box-shadow: 0 1px 0 rgba(41, 35, 31, .07);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}
[id] { scroll-margin-top: 104px; }
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}
.logo-mark {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--cream);
  background: var(--terracotta);
  font: 650 14px/1 var(--font-display);
  letter-spacing: -.06em;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 650; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.nav-cta):hover { text-decoration: underline; text-decoration-color: var(--terracotta); text-underline-offset: 7px; }
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 210px;
  padding: 15px 18px;
  border-radius: 999px;
  color: var(--cream);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.nav-cta { min-width: auto; padding: 11px 17px; }
.nav-cta:hover,
.button:hover { transform: translateY(-2px); background: var(--moss); }

.personal-hero {
  min-height: 780px;
  display: grid;
  grid-template-columns: 1.08fr .72fr;
  align-items: center;
  gap: 8vw;
  padding-block: 80px;
}
.eyebrow {
  margin: 0;
  color: var(--moss);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow i {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 9px 3px 0;
  background: var(--terracotta);
}
.personal-hero h1 {
  max-width: 760px;
  margin: 24px 0;
  font: 550 clamp(56px, 6.2vw, 88px)/.98 var(--font-display);
  letter-spacing: -.065em;
}
.personal-hero h1 em { color: var(--terracotta); font-style: normal; font-weight: 550; }
.personal-hero .lead { max-width: 680px; color: #554b44; font-size: 18px; line-height: 1.75; }
.actions { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
.inline-link { font-size: 13px; font-weight: 700; text-underline-offset: 6px; }

.portrait-code {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 48% 48% 5px 5px;
  background-color: var(--moss);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(255,255,255,.06) 30px);
  box-shadow: 16px 16px 0 var(--gold);
}
.portrait-code::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 48% 48% 3px 3px;
}
.portrait-code::after {
  content: 'JO';
  position: absolute;
  right: -12px;
  bottom: -52px;
  color: #f2d9ca;
  font: 650 230px/1 var(--font-display);
  letter-spacing: -.08em;
}
.portrait-code .caption {
  position: absolute;
  z-index: 1;
  top: 44px;
  left: 48px;
  margin: 0;
  color: var(--cream);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.9;
  letter-spacing: .13em;
}

.manifesto { color: var(--cream); background: var(--ink); }
.manifesto .wrap { padding-block: 118px; }
.manifesto blockquote {
  max-width: 1030px;
  margin: 0;
  font: 500 clamp(44px, 5.2vw, 70px)/1.04 var(--font-display);
  letter-spacing: -.055em;
}
.manifesto blockquote em { color: var(--gold); font-style: normal; font-weight: 500; }
.manifesto p { max-width: 650px; margin: 36px 0 0; color: #c9beb5; line-height: 1.75; }

.section { padding-block: 118px; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .55fr 1.45fr; gap: 8vw; }
.section h2 {
  margin: 0;
  font: 550 clamp(44px, 4.8vw, 66px)/1.02 var(--font-display);
  letter-spacing: -.055em;
}
.section-intro { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.note { position: relative; padding: 25px 5px 0; border-top: 1px solid var(--ink); }
.note::before { content: ''; position: absolute; top: -4px; left: 0; width: 42px; height: 7px; background: var(--terracotta); }
.note small { color: var(--moss); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.note h3 { margin: 20px 0 14px; font: 550 28px/1.16 var(--font-display); letter-spacing: -.045em; }
.note p { color: var(--muted); line-height: 1.7; }

.contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8vw;
  margin-block: 110px;
  padding: 70px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #ead8c8;
  box-shadow: 12px 12px 0 var(--terracotta);
}
.contact h2 { margin: 12px 0 0; font: 550 clamp(43px, 4.6vw, 62px)/1.02 var(--font-display); letter-spacing: -.055em; }
.contact p { color: #554b44; line-height: 1.75; }
.contact .button { margin-top: 16px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-block: 38px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
footer div { display: flex; gap: 24px; }
footer a { text-underline-offset: 4px; }

@media (max-width: 820px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .nav { height: 70px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .personal-hero,
  .section-head,
  .contact { grid-template-columns: 1fr; }
  .personal-hero { min-height: auto; gap: 60px; padding-block: 65px 78px; }
  .personal-hero h1 { font-size: 52px; }
  .portrait-code { min-height: 430px; box-shadow: 8px 8px 0 var(--gold); }
  .manifesto .wrap,
  .section { padding-block: 78px; }
  .notes { grid-template-columns: 1fr; gap: 42px; }
  .contact { margin-block: 76px; padding: 42px 28px; box-shadow: 7px 7px 0 var(--terracotta); }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .nav-cta { min-width: auto; }
  .personal-hero h1 { font-size: 44px; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .portrait-code::after { font-size: 190px; }
  .contact h2 { font-size: 42px; }
  footer div { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .nav-cta { transition: none; }
}
