/* ============================================================
   Aneesh Panoli — simple & elegant, light editorial
   One column, serif for words, near-black on warm off-white.
   ============================================================ */

:root {
  --bg: #f7f6f2;
  --text: #1c1b19;
  --muted: #77746c;
  --faint: #a5a29a;
  --line: rgba(28, 27, 25, 0.12);
  --line-soft: rgba(28, 27, 25, 0.07);
  --accent: #0d7a6e;              /* restrained deep teal, used sparingly */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --col: 660px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--text); text-decoration: none; }

.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 26px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 242, 0.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.name-mark { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-family: var(--sans); font-size: 0.85rem; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Intro ---------- */
.intro { padding: 128px 0 96px; }
.kicker {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 26px;
}
.intro h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.32; letter-spacing: -0.01em;
  margin: 0 0 26px; max-width: 20ch;
}
.intro h1 em { font-style: italic; color: var(--accent); }
.lead {
  font-size: 1.06rem; color: var(--muted); line-height: 1.6;
  max-width: 46ch; margin: 0 0 30px;
}
.intro-links { font-family: var(--sans); font-size: 0.9rem; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.intro-links a { color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.2s; }
.intro-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.block { padding: 56px 0; border-top: 1px solid var(--line-soft); }
.label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 34px;
}

/* ---------- Work / role list ---------- */
.list { }
.group-label {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--muted);
  margin: 34px 0 4px; padding-top: 14px;
}
.group-label:first-child { margin-top: 0; padding-top: 0; }
.item { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.item:first-of-type { border-top: none; }
.item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.item-title { font-family: var(--serif); font-size: 1.14rem; font-weight: 500; }
a.item-title { transition: color 0.2s; }
a.item-title:hover { color: var(--accent); }
a.item-title::after { content: " ↗"; font-size: 0.8em; color: var(--faint); }
.item-year { font-family: var(--sans); font-size: 0.82rem; color: var(--faint); white-space: nowrap; }
.item-desc { color: var(--muted); font-size: 0.98rem; line-height: 1.55; margin: 6px 0 0; max-width: 52ch; }

/* ---------- Prose ---------- */
.prose p { margin: 0 0 20px; color: #34322d; }
.prose p:last-child { margin-bottom: 0; }
.prose a { border-bottom: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.prose a:hover { color: var(--accent); border-color: var(--accent); }
.prose em { font-style: italic; }

/* ---------- Education list ---------- */
.edu { margin-top: 40px; }
.edu ul { list-style: none; margin: 0; padding: 0; }
.edu li {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--sans); font-size: 0.9rem;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
}
.edu li span:first-child { font-weight: 500; }
.muted { color: var(--muted); }

/* ---------- Reads covers ---------- */
.covers { display: flex; flex-wrap: wrap; gap: 12px; }
.covers img {
  height: 128px; width: auto; border: 1px solid var(--line-soft);
  border-radius: 2px; filter: saturate(0.94);
}

/* ---------- Neural art ---------- */
.art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.art img { border-radius: 2px; aspect-ratio: 3/4; object-fit: cover; }

/* ---------- Footer ---------- */
.foot {
  padding: 56px 0 80px; border-top: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: 0.85rem;
}
.foot p { margin: 0 0 8px; }
.foot a { color: var(--muted); transition: color 0.2s; }
.foot a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  body { font-size: 17px; }
  .nav-links { gap: 16px; }
  .intro { padding: 92px 0 72px; }
  .item-head { flex-direction: column; gap: 2px; }
  .art { grid-template-columns: repeat(2, 1fr); }
  .edu li { flex-direction: column; gap: 2px; }
}

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