/* ---------------------------------------------
   Chandini Sushma — portfolio
   Design tokens
--------------------------------------------- */
:root {
  --paper: #f7f3ed;
  --ink: #211d18;
  --ash: #8b8478;
  --line: #e0dac9;
  --plum: #5b3a5c;
  --mustard: #d9a441;
  --paper-raised: #fffdf9;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--plum); }

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

/* ---------- layout shell ---------- */

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

header.masthead {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

header.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

nav.primary {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}

nav.primary a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav.primary a[aria-current="page"],
nav.primary a:hover {
  border-bottom-color: var(--plum);
}

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 56px;
}

.hero .eyebrow {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 14ch;
}

.hero p {
  max-width: var(--measure);
  color: var(--ink);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.hero p.muted { color: var(--ash); }

/* ---------- section headings ---------- */

section.block {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

section.block > .wrap > h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 28px;
}

/* ---------- work rows ---------- */

.project {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.project:first-of-type { border-top: none; }

.thumb {
  width: 168px;
  height: 118px;
  border-radius: 3px;
  background: linear-gradient(155deg, var(--plum), var(--mustard));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.28), transparent 45%),
    radial-gradient(circle at 75% 80%, rgba(0,0,0,0.18), transparent 55%);
}

.project .meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.project .tags {
  color: var(--ash);
  font-size: 0.92rem;
}

.project:hover h3 { color: var(--plum); }

/* ---------- explorations grid ---------- */

.explorations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.exploration {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  background: var(--paper-raised);
}

.exploration .swatch {
  width: 100%;
  height: 96px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.swatch.a { background: linear-gradient(135deg, var(--mustard), #f2d9a1); }
.swatch.b { background: linear-gradient(135deg, var(--plum), #8a6b8b); }
.swatch.c { background: repeating-linear-gradient(45deg, var(--ink), var(--ink) 2px, transparent 2px, transparent 10px); background-color: #efe8d8; }

.exploration h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.exploration .tags { color: var(--ash); font-size: 0.88rem; }

/* ---------- publication ---------- */

.citation {
  max-width: var(--measure);
  border-left: 3px solid var(--mustard);
  padding-left: 20px;
}
.citation .title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.citation .authors,
.citation .venue {
  color: var(--ash);
  font-size: 0.94rem;
  margin: 0 0 4px;
}

/* ---------- about page ---------- */

.about-body {
  max-width: var(--measure);
}
.about-body p { margin: 0 0 18px; }

/* ---------- footer ---------- */

footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.social {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}
.social a { text-decoration: none; }
.copyright { color: var(--ash); font-size: 0.88rem; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .project { grid-template-columns: 1fr; }
  .thumb { width: 100%; height: 160px; }
  .explorations { grid-template-columns: 1fr; }
  nav.primary { gap: 18px; font-size: 0.9rem; }
}

/* ---------- accessibility ---------- */

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

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