/* Same palette and fonts as photos.aayansiddiqui.com so the two sites feel related. */
:root {
  --bg: #fbfaf7;
  --fg: #1b1c20;
  --heading: #2b2e36;
  --muted: #6b6f78;
  --line: #e7e4dd;
  --card: #efece6;
  --accent: #c2761c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --fg: #e4e6f2; --heading: #c4cddc; --muted: #8a8f9c;
    --line: #1c1d22; --card: #111215; --accent: #e8a33d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --fg: #e4e6f2; --heading: #c4cddc; --muted: #8a8f9c;
  --line: #1c1d22; --card: #111215; --accent: #e8a33d; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { display: block; max-width: 100%; height: auto; }

main { max-width: 680px; margin: 0 auto; padding: 72px 20px 48px; }
@media (min-width: 720px) { main { padding-top: 112px; } }

/* ---------- home: intro ---------- */
h1 { font: 400 clamp(40px, 7vw, 56px)/1.05 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; color: var(--heading); }
h1 .dot { color: var(--accent); }
.intro p { margin: 0 0 12px; max-width: 34em; }
.now { font: 400 14px/1.5 var(--sans); color: var(--muted); margin-top: 18px !important; }
.now b { font-weight: 500; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; font-size: 11px; margin-right: 8px; }

.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font: 400 14px/1 var(--sans); }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--fg); }
.links .primary a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- sections ---------- */
section { margin-top: 64px; }
h2 { font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* experience / education */
.roles { list-style: none; margin: 0; padding: 0; }
.role { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0; }
.role + .role { border-top: 1px solid var(--line); }
.role .what { font-weight: 500; color: var(--heading); }
.role .where { color: var(--muted); }
.role .when { font: 400 13px/1.9 var(--sans); color: var(--muted); white-space: nowrap; }
.role .note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 16px; }
@media (max-width: 520px) {
  .role { grid-template-columns: 1fr; }
  .role .when { line-height: 1.4; }
}

/* project list */
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.project a { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; padding: 12px; margin: 0 -12px; border-radius: 10px; text-decoration: none; transition: background-color .15s; }
.project a:hover { background: var(--card); }
.thumb { aspect-ratio: 4 / 3; border-radius: 6px; background: var(--card); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.project h3 { font: 500 18px/1.3 var(--serif); margin: 0 0 4px; color: var(--heading); }
.project h3 .arrow { color: var(--muted); font-family: var(--sans); font-size: 14px; margin-left: 4px; transition: transform .15s; display: inline-block; }
.project a:hover .arrow { transform: translateX(3px); color: var(--accent); }
.project p { margin: 0 0 8px; font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.tags .stat { color: var(--accent); }
@media (max-width: 520px) {
  .project a { grid-template-columns: 84px 1fr; gap: 14px; }
}

/* ---------- project pages ---------- */
.back { font: 400 13px/1 var(--sans); color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 36px; }
.back:hover { color: var(--fg); }
.article h1 { font-size: clamp(32px, 6vw, 44px); margin-bottom: 10px; }
.meta { font: 400 13px/1.6 var(--sans); color: var(--muted); margin: 0 0 24px; }
.lede { font-size: 19px; margin: 0 0 28px; }
.hero { margin: 0 0 32px; }
.hero img, figure img { border-radius: 8px; width: 100%; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0 0 40px; }
.spec { background: var(--bg); padding: 14px 16px; }
.spec b { display: block; font: 500 20px/1.2 var(--serif); color: var(--heading); }
.spec span { display: block; font: 400 12px/1.4 var(--sans); color: var(--muted); margin-top: 4px; }

.article h2 { margin-top: 44px; }
.article p, .article li { max-width: 36em; }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 6px; }
figure { margin: 28px 0; }
figcaption { font: 400 13px/1.5 var(--sans); color: var(--muted); margin-top: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }
.chart-bg { background: #fff; border-radius: 8px; padding: 8px; }

/* footer */
footer { max-width: 680px; margin: 0 auto; padding: 32px 20px 56px; font: 400 13px/1.6 var(--sans); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.theme-toggle { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
