:root {
  --bg: #f4eee3;
  --text: #5f574b;
  --strong: #231e17;
  --faint: #6f6656;
  --line: #d3c7b2;
  --gap-entry: 40px;
  --gap-section: 80px;
  --accent: #a3480f;
  --chip-bg: rgba(163, 72, 15, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(163, 72, 15, .22); color: var(--strong); }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* Cursor spotlight */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px at var(--x, 30%) var(--y, 20%), transparent, transparent 80%);
}

.layout { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; gap: 48px; justify-content: space-between; }

/* Left column */
.side {
  position: sticky; top: 0; height: 100vh; width: 42%; max-width: 420px; padding: 96px 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.side h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(2.3rem, 4.8vw, 3.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; color: var(--strong); }
.side h2 { margin-top: 12px; font-size: 1.15rem; font-weight: 500; color: var(--strong); }
.tagline { margin-top: 16px; max-width: 20rem; }

nav { margin-top: 64px; }
nav li + li { margin-top: 4px; }
nav a { display: inline-flex; align-items: center; padding: 10px 0; }
.bar { width: 32px; height: 1px; background: var(--line); margin-right: 16px; transition: width .2s, background .2s; }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); transition: color .2s; }
nav a:hover .bar, nav a.active .bar { width: 64px; background: var(--strong); }
nav a:hover .label, nav a.active .label { color: var(--strong); }

.social { display: flex; gap: 20px; margin-top: 32px; }
.social a { display: block; color: var(--faint); transition: color .2s, transform .2s; }
.social a:hover { color: var(--strong); transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; display: block; }

/* Right column */
.content { width: 52%; padding: 96px 0; }
section { margin-bottom: var(--gap-section); scroll-margin-top: 96px; }
section p + p { margin-top: 16px; }
.section-title { display: none; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--strong); margin-bottom: 20px; }
.inline { font-weight: 500; color: var(--strong); }
.inline:hover { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { font-size: .75rem; font-weight: 500; line-height: 1.2; padding: 6px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--accent); }

.skills > div + div { margin-top: 24px; }
.skills dt { font-weight: 500; color: var(--strong); }
.skills .chips { margin-top: 10px; }

.entries { display: grid; gap: var(--gap-entry); }
.entry { display: grid; grid-template-columns: 110px 1fr; gap: 24px; transition: opacity .2s; }
.entries:hover .entry:not(:hover) { opacity: .55; }
.date { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.entry h4 { font-family: Fraunces, Georgia, serif; font-size: 1.05rem; font-weight: 500; line-height: 1.35; color: var(--strong); }
.entry h4 a:hover { color: var(--accent); }
.entry p { margin-top: 8px; font-size: .92rem; }
.entry .stack { margin-top: 10px; font-size: .82rem; color: var(--faint); }
.thumb { height: 70px; border-radius: 6px; border: 1px solid var(--line); margin-top: 4px; }
.t1 { background: linear-gradient(135deg, #a3480f, #e9c9a6); }
.t2 { background: linear-gradient(135deg, #d9c7a6, #f1e8d6); }
.t3 { background: linear-gradient(135deg, #7a6a52, #cdbd9f); }

.cv { display: inline-block; margin-top: 40px; font-weight: 600; color: var(--strong); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.cv:hover { color: var(--accent); border-color: var(--accent); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

footer { color: var(--faint); font-size: .82rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Tablet and phone: stack columns */
@media (max-width: 900px) {
  .layout { display: block; padding: 0 20px; }
  .side { position: static; height: auto; width: 100%; max-width: none; padding: 64px 0 0; }
  nav { display: none; }
  .social { margin-top: 28px; }
  .content { width: 100%; padding: 48px 0 64px; }
  :root { --gap-section: 64px; }
  .section-title { display: block; position: sticky; top: 0; margin: 0 -20px 20px; padding: 14px 20px; background: rgba(244, 238, 227, .88); backdrop-filter: blur(8px); z-index: 2; }
}
@media (max-width: 520px) {
  .entry { grid-template-columns: 1fr; gap: 6px; }
}
