/* satwikkansal.xyz - one stylesheet, one self-hosted font, no third-party requests. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #55575c;
  --ink-3: #8b8d92;
  --rule: #e4e4e6;
  --rule-strong: #0b0b0c;
  --accent: #1f3dff;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 76rem;
  --measure: 38rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule); }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule-strong); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 60px; flex-wrap: wrap; padding-block: 12px; }
.brand { text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.brand .mark { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Type */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 88px); letter-spacing: -0.045em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 16px; text-wrap: pretty; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--ink-3); margin: 0 0 10px; }
.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 40rem; margin-top: 28px; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }
.prose { max-width: var(--measure); }
.prose p { font-size: 18px; }

main section { padding-block: clamp(48px, 7vw, 96px); }
main section + section { border-top: 1px solid var(--rule-strong); }
.page-head { padding-block: clamp(56px, 9vw, 120px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(38px, 6vw, 72px); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(7.5rem, 24vw, 16rem); gap: clamp(20px, 4vw, 56px); align-items: start; }
.hero .portrait { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15.5px; text-decoration: none; padding: 13px 20px; border: 1px solid var(--ink); border-radius: 0; }
.btn::after { content: "\2192"; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 0; }
.btn.ghost:hover { color: var(--accent); }

/* Section head */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.more { font-size: 15px; text-decoration: none; }
.more::after { content: " \2192"; }

/* Grids: columns separated by hairlines, no boxes */
.grid-2, .grid-3 { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 > *, .grid-3 > * { padding: 28px 32px 28px 0; }
.grid-2 > * + *, .grid-3 > * + * { padding-left: 32px; border-left: 1px solid var(--rule); }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > * { padding-right: 0; }
  .grid-3 > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 > * { padding-right: 0; }
  .grid-2 > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
.card { display: block; background: none; border: 0; border-radius: 0; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; }
a.card:hover h3 { color: var(--accent); }
.card h3 { margin-bottom: 10px; }

/* Numbered domains */
.domains { counter-reset: d; }
.pillar { counter-increment: d; }
.pillar::before { content: counter(d, decimal-leading-zero); display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.pillar h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.pillar ul { list-style: none; margin: 18px 0 0; padding: 0; }
.pillar li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }

/* Index rows (selected work) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) minmax(0, 12rem); gap: 8px 32px; padding: 22px 0; text-decoration: none; align-items: baseline; }
.rows .t { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.rows .d { color: var(--ink-2); }
.rows .k { color: var(--ink-3); font-size: 14px; text-align: right; }
.rows a:hover .t { color: var(--accent); }
@media (max-width: 760px) { .rows a { grid-template-columns: 1fr; } .rows .k { text-align: left; } }

/* Tags as quiet inline text */
.tags { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 12px 0 0; }
.tags li { font-size: 13.5px; color: var(--ink-3); }
.tags li + li::before { content: "/"; margin: 0 8px; color: var(--rule); }

/* Project list (work page) */
.project { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 8px 40px; padding: 28px 0; border-top: 1px solid var(--rule); }
.project:first-of-type { border-top: 1px solid var(--rule-strong); }
.project .meta { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.project h3 { margin-bottom: 8px; }
.project h3 a { text-decoration: none; }
.project h3 a::after { content: " \2197"; font-weight: 400; color: var(--ink-3); }
.project p { color: var(--ink-2); margin-bottom: 0; max-width: var(--measure); }
@media (max-width: 720px) { .project { grid-template-columns: 1fr; } }
section h2 { margin-bottom: 28px; }

/* Timeline (about page) */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.timeline li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.timeline .when { color: var(--ink-3); font-size: 14.5px; grid-row: span 2; }
.timeline strong { font-weight: 600; }
.timeline p { color: var(--ink-2); margin: 0; grid-column: 2; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; } .timeline p { grid-column: 1; } }

/* Lists (writing page, facts) */
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule-strong); }
.list li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list li a { text-decoration: none; }
.list li a:hover { text-decoration: underline; }
.list .where { font-size: 14px; color: var(--ink-3); white-space: nowrap; }

/* Closing band */
.callout { border-top: 1px solid var(--rule-strong); padding-top: 36px; }
.callout h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.04em; margin-bottom: 16px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule-strong); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--ink-3); font-size: 14px; padding-top: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule-strong); padding-block: 28px 44px; color: var(--ink-2); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }

/* Narrow screens: nav scrolls sideways instead of overflowing the page. */
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-header nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .nav { flex-wrap: nowrap; gap: 22px; }
  .nav a { white-space: nowrap; }
}

/* Callout inside a grid column: the grid already draws the top rule. */
.grid-2 > .callout { border-top: 0; padding-top: 28px; }

/* Photo: monochrome, square corners, hairline frame */
.photo { margin: 0; border: 1px solid var(--rule-strong); background: #f2f2f3; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
/* The photo stays beside the text at every width; it only shrinks. */
