/* maneeshkasera.in: one small stylesheet, system fonts, light and dark. */

:root {
  --bg: #fbfaf7;
  --text: #24292f;
  --muted: #5f6670;
  --line: #e4e1da;
  --accent: #1f5f8b;
  --code-bg: #f1efe9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --text: #e6e6e3;
    --muted: #9ba1a8;
    --line: #2d3136;
    --accent: #7ab3dc;
    --code-bg: #22262b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

header.site, main, footer.site {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site { padding-top: 2rem; padding-bottom: 1rem; }
.brand { color: var(--text); font-weight: 600; text-decoration: none; letter-spacing: .01em; }

main { padding-bottom: 3rem; }

h1 { font-size: 2rem; line-height: 1.25; margin: 2.5rem 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 .5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 1.5rem 0 .25rem; }

p, ul, ol { margin: .75rem 0; }
li { margin: .3rem 0; }

a { color: var(--accent); text-underline-offset: 2px; }

.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

code {
  font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg);
  padding: .1em .35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.projects { list-style: none; padding: 0; }
.projects li { padding: 1rem 0; border-top: 1px solid var(--line); }
.projects li:last-child { border-bottom: 1px solid var(--line); }
.projects a { font-weight: 600; }
.projects p { margin: .25rem 0 0; color: var(--muted); }

.download {
  display: inline-block;
  margin: .5rem 0;
  padding: .7rem 1.2rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.download:hover { filter: brightness(1.1); }

.note {
  border-left: 3px solid var(--accent);
  padding: .25rem 0 .25rem 1rem;
  color: var(--muted);
}

figure { margin: 1.5rem 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; display: block; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

footer.site { padding-top: 1.5rem; padding-bottom: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer.site a { color: var(--muted); }
