/* darshanbaid.com — the one stylesheet. Mostly classless.
   Colours, sizes and motion match the original SvelteKit site exactly. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafafa;
  --fg: #171717;
  --muted: #525252;
  --faint: #a3a3a3;
  --rule: #d4d4d4;
  --code-bg: #f0f0f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); color: var(--fg); }

body {
  max-width: 650px;
  box-sizing: content-box;          /* 650px of content, padding outside it */
  margin: 0 auto;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
  body { padding: 4rem 2rem; }
}

/* page content eases in on load (was .fade-in on the original) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
main { animation: fadeIn .6s ease-out; }
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

/* header: logo mark (+ optional nav) */
body > header { margin-bottom: 4rem; }
body > header a { border: 0; }
body > header nav a { margin-left: 1.25rem; font-size: .8125rem; color: var(--muted); }
body > header nav a:hover { color: var(--fg); }
.logo { opacity: .9; }   /* inline, like the original */
.logo path, .logo circle { stroke: #000; }

h1, h2, h3, h4, h5, h6 { color: var(--fg); font-weight: 600; line-height: 1.5; }
h1 { font-size: 1.5rem; margin-bottom: .5rem; letter-spacing: -.01em; line-height: 1.3; }
h2 { font-size: 1.125rem; margin: 3rem 0 1rem; }
h3 { font-size: 1rem; margin: 2rem 0 .75rem; }

/* the lisp-style section labels: (find-me) */
h5 {
  font-size: .7125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 3.5rem 0 1.25rem;
}

p, ul, ol, pre, blockquote, figure, table { margin-bottom: 1.25rem; }

strong, b { color: var(--fg); font-weight: 600; }

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: all .2s ease;
}
a:hover { border-bottom-color: var(--fg); }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .8125rem;
}
code { background: var(--code-bg); padding: .1em .35em; border-radius: 3px; color: var(--fg); }
pre {
  background: var(--code-bg);
  padding: 1rem 1.1rem;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.55;
}
pre code { background: none; padding: 0; }

blockquote { padding-left: 1rem; border-left: 2px solid var(--rule); }

img { max-width: 100%; height: auto; display: block; }
figcaption { font-size: .8125rem; color: var(--faint); margin-top: .5rem; }

table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--rule); }
th { color: var(--fg); font-weight: 600; }

/* home */
.intro { font-size: 1rem; margin-bottom: 3rem; color: var(--muted); }
.name { color: var(--fg); font-weight: 500; transition: color .2s ease; }
.name:hover { color: var(--muted); }
.meta { font-size: .8125rem; color: var(--faint); }

/* timeline + post list share the "year | text" row */
.timeline, .posts { list-style: none; padding: 0; margin-top: 1.5rem; }
.timeline li, .posts li { display: flex; align-items: baseline; margin-bottom: .85rem; line-height: 1.7; }
.timeline .year, .posts time {
  flex-shrink: 0;
  min-width: 3rem;
  margin-right: 1rem;
  color: var(--fg);
  font-weight: 600;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  transition: all .2s ease;
  cursor: default;
}
.timeline .year:hover { transform: scale(1.05); color: #000; }
.posts time { min-width: 6.5rem; font-weight: 400; color: var(--faint); font-size: .8125rem; }

/* writeup body */
article > h1 + .meta { margin-bottom: 2.5rem; }
article p, article li { color: var(--fg); opacity: .88; }

/* tohfa */
.translit { font-style: italic; margin-top: -.25rem; }
.gifts { list-style: none; padding: 0; }
.gift {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.gift img { width: 7rem; height: 7rem; object-fit: cover; border-radius: 4px; background: var(--code-bg); }
.gift p { margin: 0 0 .35rem; }
.gift .what { color: var(--fg); }
@media (max-width: 420px) {
  .gift { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .gift img { width: 5rem; height: 5rem; }
}

footer { margin-top: 5rem; font-size: .8125rem; color: var(--faint); }
