/* ================== TOKENS ================== */
:root {
  --paper: #FAF9F5;
  --surface: #F1EEE7;
  --ink: #111111;
  --ink-soft: #44403A;
  --ink-mute: #6B6760;
  --accent: #9A4F2F;
  --rule: #DCD6CA;
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Albert Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ================== RESET ================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 35% 0%, rgba(120, 90, 45, 0.04), transparent 34rem),
    #FAF9F5;
  color: #111111;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6 }
::selection { background: var(--accent); color: #fff }
a { color: inherit; text-decoration: none }
img, svg { max-width: 100% }

/* ================== PAPER TEXTURE ================== */
.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("paper-speckle-a.svg"),
    url("paper-speckle-b.svg"),
    radial-gradient(circle at 78% 14%, rgba(142, 113, 72, 0.02), transparent 28rem);
  background-repeat: repeat, repeat, no-repeat;
  background-size: 180px 180px, 260px 260px, cover;
  background-position: 0 0, 57px 43px, center;
  opacity: 0.38;
  mix-blend-mode: multiply;
}

.site {
  position: relative;
  z-index: 1;
}

/* ================== TYPOGRAPHY ================== */
.t-display { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: .95 }
.t-xl { font-size: clamp(48px, 7vw, 96px) }
.t-body { font-size: 16px; line-height: 1.65; color: var(--ink-soft) }
.t-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500 }

/* ================== SECTION TITLE ================== */
.section-title { font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin-bottom: 32px }

/* ================== LAYOUT ================== */
.page { display: flex; min-height: 100vh }
.main { flex: 1; margin-left: 88px }
.wrap { max-width: 1060px; padding: 0 80px }

/* ================== SIDEBAR NAV ================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 88px;
  height: 100vh;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  gap: 4px;
  z-index: 50;
  background: var(--paper);
}
.sidebar a {
  position: relative;
  width: 64px;
  padding: 10px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  color: var(--ink-mute);
  transition: background 150ms, color 150ms, border-color 150ms;
  text-decoration: none;
  border: 1px solid transparent;
}
.sidebar a:hover { color: var(--accent); background: rgba(241,238,231,.45) }
.sidebar a.is-active { color: var(--ink); background: var(--surface); border-color: var(--rule) }
.sidebar a svg { width: 20px; height: 20px; flex-shrink: 0 }
.sidebar-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; font-weight: 500; transition: font-weight 150ms, color 150ms }
.sidebar a.is-active .sidebar-label { font-weight: 700 }
.sidebar-spacer { flex: 1 }

/* ================== SECTION LAYOUT ================== */
.section { padding: 64px 0 }
.hero + .section { border-top: 1px solid var(--rule) }
.section + .section { border-top: 1px solid var(--rule) }

/* ================== HERO ================== */
.hero { padding: 60px 0 80px }
.hero-layout { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start }
.hero-text { padding-top: 40px }
.hero-name { margin-bottom: 12px }
.hero-subtitle { margin-bottom: 28px }
.hero-hook {
  font-family: var(--f-body);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: .5rem;
}
.hero-pedigree {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .01em;
}
.hero-socials { display: flex; gap: 20px; margin-bottom: 16px }
.hero-socials a { color: var(--ink-mute); transition: color 150ms }
.hero-socials a:hover { color: var(--accent) }
.hero-socials a img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter 250ms, opacity 250ms }
.hero-socials a:hover img { filter: grayscale(0%); opacity: 1 }
.hero-location { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-mute); text-transform: uppercase }
.hero-photo { width: clamp(180px, 18vw, 200px); aspect-ratio: 3/4; border-radius: 2px; background: var(--surface); border: 1px solid var(--rule); display: grid; place-items: center; color: var(--ink-mute); font-family: var(--f-mono); font-size: 12px; overflow: hidden }
.hero-photo img { width: 100%; height: 100%; object-fit: cover }

/* ================== EXPERIENCE ROWS ================== */
.exp-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); align-items: start }
.exp-row:last-child { border-bottom: 1px solid var(--rule) }
.exp-logo { width: 44px; height: 44px; border-radius: 2px; background: transparent; border: .5px solid rgba(220, 214, 202, .45); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.04em; color: var(--ink-mute); overflow: hidden; flex-shrink: 0; transition: color 250ms; padding-left: 1px }
.exp-logo img { width: 80%; height: 80%; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter 250ms, opacity 250ms }
.exp-row:hover .exp-logo img { filter: grayscale(0%); opacity: 1 }
.exp-row:hover .exp-logo { color: var(--ink) }
.exp-info { display: flex; flex-direction: column; gap: 1px }
.exp-title { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ink) }
.exp-org-inline { font-weight: 500; color: var(--ink-soft) }
.exp-org { font-size: 14px; color: var(--ink-soft) }
.exp-desc { font-size: 14px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5 }
.exp-desc--bold { font-weight: 600; color: var(--ink) }
.exp-desc--medium { font-weight: 500; color: var(--ink-soft) }
.exp-detail { font-size: 13px; color: var(--ink-mute); margin-top: 3px; line-height: 1.7 }
.exp-check { color: var(--accent); font-size: 12px; margin-right: 4px }
.exp-date { font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute); white-space: nowrap; padding-top: 4px; min-width: 155px; text-align: right }
.section-subtitle { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 32px; margin-bottom: 0; font-weight: 500 }

/* ================== PROJECT ================== */
.project-row { padding: 20px 0 24px; border-top: 1px solid var(--rule) }
.project-row:last-child { border-bottom: 1px solid var(--rule) }
.project-row-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start }
.project-details { padding: 8px 0 0; max-width: 620px }
.project-name { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em }
.project-type { font-size: 14px; color: var(--ink-soft) }
.project-links { display: flex; gap: 12px; flex-wrap: wrap }
.project-link { font-size: 13px; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: color 150ms, text-decoration-color 150ms }
.project-link:hover { color: var(--accent); text-decoration-color: var(--accent) }
.store-icon { width: 14px; height: 14px; flex-shrink: 0 }

/* ================== TAGS ================== */
.tag { display: inline-block; font-family: var(--f-body); font-size: 12px; font-weight: 500; padding: 2px 8px; background: transparent; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-mute) }

/* ================== WRITING ================== */
.editorial-frame {
  background: linear-gradient(180deg, #F1EEE7, #FAF9F5);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 36px 40px;
}
.editorial-intro { margin-top: -18px; margin-bottom: 24px }
.editorial-intro a { text-decoration: underline; text-underline-offset: 4px }
.post-entry { display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 24px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: background 150ms }
.post-entry:last-child { border-bottom: 1px solid var(--rule) }
.post-entry:hover { background: rgba(255,255,255,.4) }
.post-date { font-family: var(--f-mono); font-size: 13px; color: var(--ink-mute); padding-top: 2px }
.post-title { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 4px }
.post-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.5 }

/* ================== INTEREST ROWS ================== */
.interest-row { padding: 18px 0; border-top: 1px solid var(--rule) }
.interest-row:last-child { border-bottom: 1px solid var(--rule) }
.interest-name { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em }
.interest-desc { font-size: 15px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5 }

/* ================== CONTACT ================== */
.contact-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule) }
.contact-row:last-child { border-bottom: 1px solid var(--rule) }
.contact-type { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); width: 100px; flex-shrink: 0 }
.contact-value { font-size: 16px }
.contact-value a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; transition: color 150ms, text-decoration-color 150ms }
.contact-value a:hover { color: var(--accent); text-decoration-color: var(--accent) }

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px }
  .hero-photo { width: 100%; max-width: 320px; height: 360px }
}
@media (min-width: 1100px) {
  .hero-hook { white-space: nowrap }
}
@media (max-width: 700px) {
  .sidebar { position: fixed; bottom: 0; top: auto; left: 0; right: 0; width: 100%; height: auto; flex-direction: row; justify-content: space-around; border-right: none; border-top: 1px solid var(--rule); padding: 6px 4px; gap: 0 }
  .sidebar a { flex: 1; width: auto; padding: 8px 0 5px; gap: 3px }
  .sidebar-label { font-size: 8px }
  .sidebar-spacer { display: none }
  .main { margin-left: 0; margin-bottom: 72px }
  .wrap { padding: 0 24px }
  .editorial-frame { padding: 28px 24px }
  .project-details { padding-left: 0 }
  .exp-row { grid-template-columns: 36px 1fr auto }
  .exp-logo { width: 36px; height: 36px; font-size: 13px }

  .hero { padding: 32px 0 40px }
  .hero-text { padding-top: 8px }
  .hero-layout { gap: 24px }
  .hero-photo { max-width: 200px; height: 240px }
  .hero-subtitle { margin-bottom: 20px }
  .hero-socials { margin-bottom: 12px }

  .section { padding: 40px 0 }

  .exp-row { grid-template-columns: 36px 1fr; gap: 12px }
  .exp-date { grid-column: 2; padding-top: 0; min-width: 0; text-align: left; font-size: 11px }
  .exp-logo img { filter: grayscale(0%); opacity: 1 }

  .project-row-head { grid-template-columns: 1fr auto }

  .post-entry { grid-template-columns: 80px 1fr; gap: 16px }

  .contact-row { flex-direction: column; align-items: flex-start; gap: 4px }
  .contact-type { width: auto }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
}
