/* ---------------------------------------------------------------
   aniketvinchurkar.com
   Type and colour lifted from the CV: Bitstream Charter, pure black
   on white, hairline rules, #e5e5e5 chips. Nothing else.
   --------------------------------------------------------------- */

:root {
  --bg:      #ffffff;
  --ink:     #000000;
  --muted:   #5a5a5a;
  --faint:   #8a8a8a;
  --rule:    #000000;
  --hairline:#d8d8d8;
  --uline:   #9a9a9a;
  --chip:    #e5e5e5;
  --measure: 34rem;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", "DejaVu Sans Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #111111;
    --ink:     #eeeeee;
    --muted:   #a6a6a6;
    --faint:   #7d7d7d;
    --rule:    #eeeeee;
    --hairline:#3a3a3a;
    --uline:   #6f6f6f;
    --chip:    #2a2a2a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 3.5rem 1.5rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-size: 18px;
  line-height: 1.62;
  font-kerning: normal;
  font-variant-numeric: oldstyle-num;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--measure); margin: 0 auto; }

/* ---------- masthead ---------- */

.masthead { text-align: center; margin-bottom: 2.25rem; }

.portrait {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  filter: grayscale(100%);
}

.masthead h1 {
  font-size: 2.15rem;
  font-weight: normal;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.masthead .subtitle {
  margin: 0.15rem 0 0;
  font-size: 1.12rem;
}

.masthead .meta {
  margin: 0.4rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- section headings: CV style, roman weight + hairline rule ---------- */

h2 {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 3rem 0 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  font-weight: bold;
  margin: 1.8rem 0 0.35rem;
}

p { margin: 0 0 1.05rem; }

.lede { margin-bottom: 1.4rem; }

/* ---------- links ---------- */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--uline);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-color: currentColor; }

/* ---------- the flat index list ---------- */

.list { list-style: none; margin: 0; padding: 0; }

.list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--hairline);
}
.list li:last-child { border-bottom: none; }

.list .t { flex: 1 1 auto; }

.list .t > a { font-size: 1.02rem; }

.list .d {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  font-variant-numeric: oldstyle-num;
  white-space: nowrap;
}

.list .note {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- CV-style role chips ---------- */

.role {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1.15rem 0 0.2rem;
}

.chip {
  background: var(--chip);
  padding: 0.15rem 0.45rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.76rem;
}

.role .d {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  white-space: nowrap;
}

.role-note {
  margin: 0 0 0.55rem;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- essay pages ---------- */

.backlink {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  text-decoration: none;
}
.backlink:hover { text-decoration: underline; }

article header { margin-bottom: 1.9rem; }

article header h1 {
  font-size: 1.85rem;
  font-weight: normal;
  line-height: 1.22;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

article header .kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.5rem;
}

article header .standfirst {
  font-size: 1.04rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

article header .byline {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

article ul, article ol { padding-left: 1.15rem; margin: 0 0 1.05rem; }
article li { margin-bottom: 0.42rem; }

blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--hairline);
  color: var(--muted);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2.4rem 0;
}

.callout {
  border: 1px solid var(--hairline);
  padding: 0.9rem 1.1rem;
  margin: 1.6rem 0;
  font-size: 0.94rem;
  line-height: 1.55;
}
.callout p:last-child { margin-bottom: 0; }

.footnote { font-size: 0.86rem; color: var(--muted); }

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

footer {
  margin-top: 3.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

/* ---------- small screens ---------- */

@media (max-width: 34rem) {
  body { padding: 2.25rem 1.15rem 3.5rem; font-size: 17px; }
  .masthead h1 { font-size: 1.8rem; }
  article header h1 { font-size: 1.5rem; }
  .list li { flex-direction: column; gap: 0.1rem; }
  .list .d { order: -1; }
  .role { flex-wrap: wrap; gap: 0.4rem; }
  .role .d { margin-left: 0; width: 100%; }
}
