/* manubhat.com */

:root {
  color-scheme: dark;
  --bg:     #0C0B0A;
  --raised: #131210;
  --line:   #262320;
  --hair:   #1C1A17;
  --text:   #EAE7E1;
  --dim:    #9E9A91;
  --faint:  #6E6A61;
  --accent: #D9BB8D;

  --display: "Abril Fatface", "Playfair Display", Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #FFFFFF; --raised: #FAF8F3; --line: #E6E1D7; --hair: #F0ECE4;
    --text: #17150F; --dim: #5B564C; --faint: #8C877C; --accent: #8A6A3D;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --raised: #FAF8F3; --line: #E6E1D7; --hair: #F0ECE4;
  --text: #17150F; --dim: #5B564C; --faint: #8C877C; --accent: #8A6A3D;
}

* { box-sizing: border-box; }

/* reserve the scrollbar gutter so short and long pages line up */
html { overflow-y: scroll; scrollbar-gutter: stable; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.col { width: 100%; max-width: 660px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 520px) { .col { padding-inline: 18px; } }

/* bar */
.bar { border-bottom: 1px solid var(--hair); position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); }
.bar .inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px; height: 52px;
  display: flex; align-items: center;
}
.bar nav { margin-left: auto; display: flex; align-items: center; }
.home, #theme {
  display: inline-flex; align-items: center;
  height: 20px; line-height: 1;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--faint); background: none; border: 0; padding: 0; cursor: pointer;
}
.home:hover, #theme:hover { text-decoration: none; color: var(--accent); }

/* index */
.ident {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding-block: 40px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  color: var(--faint);
}
.list { padding-block: 34px 64px; }
.post {
  display: block;
  padding-block: 24px;
  border-top: 1px solid var(--hair);
  color: inherit;
}
.post:hover { text-decoration: none; }
.post h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin: 7px 0 9px;
  color: var(--text);
}
.post:hover h2 { color: var(--accent); }
.post p { margin: 0; color: var(--dim); font-size: 15.5px; line-height: 1.6; }

/* article */
article { padding-block: 64px 40px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
article h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1.1;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 12px 0 20px;
}
.dek {
  font-size: 20px;
  line-height: 1.5;
  color: var(--dim);
  margin: 0 0 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

article h2 {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  margin: 46px 0 14px;
}
article h3 { font-weight: 500; font-size: 18px; margin: 32px 0 8px; }
article p { margin: 0 0 22px; }
article ul { margin: 0 0 22px; padding-left: 22px; }
article li { margin-bottom: 8px; }
article strong { font-weight: 500; }
figure { margin: 0 0 26px; }
figure img, figure video {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--raised);
}
figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.back { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; padding-bottom: 40px; }

blockquote {
  margin: 0 0 24px;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent);
  color: var(--dim);
  font-size: 18px;
}
blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: var(--mono); font-size: .84em;
  background: var(--raised); border: 1px solid var(--hair);
  border-radius: 2px; padding: 1px 5px;
}
pre {
  margin: 0 0 24px; padding: 18px 20px;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 3px; overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.7; color: var(--dim); }

