/* jagadeeswaran.info
   Jagadeeswaran G — Art Director, Creative Strategist, UX/UI
   Warm, typographic, restrained. Edit tokens below to reskin the whole site. */

/* ---------- tokens ---------- */
:root {
  --bg:        #FAF9F7;
  --bg-alt:    #F2F0EC;
  --card:      #FFFFFF;
  --ink:       #0F0F0E;
  --ink-2:     #5C5852;
  --ink-3:     #97928A;
  --line:      #E4E0D8;
  --accent:    #B4441C;

  --max:       1240px;
  --gut:       clamp(20px, 5vw, 64px);

  --f-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.12rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.50vw, 1.50rem);
  --step-2:  clamp(1.55rem, 1.30rem + 1.20vw, 2.30rem);
  --step-3:  clamp(2.10rem, 1.55rem + 2.60vw, 3.60rem);
  --step-4:  clamp(2.80rem, 1.60rem + 5.60vw, 6.00rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 10vw, 140px); }
.section + .section { border-top: 1px solid var(--line); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.label {
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 clamp(24px, 4vw, 48px);
}

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 400; margin: 0; }
h1 { font-family: var(--f-display); font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.015em; }
h2 { font-family: var(--f-display); font-size: var(--step-3); line-height: 1.06; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink); max-width: 30ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand {
  font-family: var(--f-display);
  font-size: var(--step-1);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(16px, 3vw, 34px); }
.nav a {
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 640px) {
  .site-head .wrap { min-height: 58px; gap: 12px; }
  .brand { font-size: var(--step-0); }
  .nav { gap: 16px; }
  .nav a.home { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(72px, 14vw, 172px) clamp(56px, 9vw, 116px); }
.hero h1 { max-width: 15ch; }
.hero .disciplines {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; list-style: none;
}
.hero .disciplines li {
  font-size: var(--step--1);
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  background: var(--card);
}
.hero-foot {
  display: grid; gap: clamp(20px, 4vw, 56px);
  grid-template-columns: 1fr;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) { .hero-foot { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.hero-foot .stat { font-family: var(--f-display); font-size: var(--step-2); line-height: 1; }

/* ---------- work grid ---------- */
.grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
.grid.thirds { grid-template-columns: 1fr; }
@media (min-width: 700px)  { .grid.thirds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid.thirds { grid-template-columns: repeat(3, 1fr); } }

.project { display: block; text-decoration: none; }
.project .thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.project:hover .thumb img { transform: scale(1.03); }
.project .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.project h3 { transition: color .18s ease; }
.project:hover h3 { color: var(--accent); }
.project .tag { font-size: var(--step--1); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.project p { margin-top: 6px; color: var(--ink-2); font-size: var(--step--1); max-width: 46ch; }

/* wide first item */
@media (min-width: 700px) { .grid .project.feature { grid-column: 1 / -1; } }
.grid .project.feature .thumb { aspect-ratio: 16 / 7; }

/* ---------- approach ---------- */
.steps { display: grid; gap: clamp(28px, 4vw, 40px); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step .n {
  font-family: var(--f-display); font-size: var(--step-2); line-height: 1;
  color: var(--ink-3); display: block; margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; }
.step .sub { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
.step p { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- two column prose ---------- */
.cols { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1.35fr; } .cols .label { margin-bottom: 0; } }

.deflist { margin: 0; }
.deflist > div { padding-block: 22px; border-top: 1px solid var(--line); }
.deflist > div:first-child { border-top: 0; padding-top: 0; }
.deflist dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .10em; color: var(--ink-3); margin-bottom: 8px; }
.deflist dd { margin: 0; color: var(--ink-2); }
.deflist dd strong { color: var(--ink); font-weight: 500; }

/* ---------- case study ---------- */
.case-hero { padding-block: clamp(56px, 9vw, 108px) clamp(32px, 5vw, 56px); }
.case-hero h1 { font-size: var(--step-3); max-width: 20ch; }
.case-facts { display: grid; gap: 24px 40px; grid-template-columns: repeat(2, 1fr); margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 760px) { .case-facts { grid-template-columns: repeat(4, 1fr); } }
.case-facts dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .10em; color: var(--ink-3); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-size: var(--step--1); }
.figure { margin: 0 0 clamp(28px, 5vw, 56px); }
.figure img { border: 1px solid var(--line); width: 100%; }
.figure figcaption { font-size: var(--step--1); color: var(--ink-3); margin-top: 10px; }
.figure-pair { display: grid; gap: clamp(16px, 3vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .figure-pair { grid-template-columns: 1fr 1fr; } }
.prose h3 { margin-top: clamp(32px, 5vw, 52px); margin-bottom: 10px; }
.prose h3:first-child { margin-top: 0; }
.pull {
  font-family: var(--f-display); font-size: var(--step-2); line-height: 1.15;
  border-left: 2px solid var(--accent); padding-left: clamp(18px, 3vw, 32px);
  margin: clamp(36px, 6vw, 64px) 0; max-width: 24ch;
}

/* ---------- contact ---------- */
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.contact-links a {
  font-size: var(--step-1);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .18s ease, color .18s ease;
}
.contact-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: baseline; }
.site-foot a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-foot a:hover { border-bottom-color: var(--ink-3); }

/* ---------- utilities ---------- */
.link-more {
  display: inline-block; margin-top: clamp(32px, 5vw, 48px);
  text-decoration: none; font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}
.link-more:hover { color: var(--accent); border-bottom-color: var(--accent); }
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
