/* Hallmark · v2.0.0 · direction: custom (by request: like sagartamang.com, simple and text-first) · genre: editorial · tone: simple, sentence case
 * shape: Letter, one column · signature: Sparky's own tile beside its project · material: real (LinkedIn profile, Sparky's docs) · absent: photos (declined), metrics, quotes
 * pre-emit critique: P4 H4 E4 S4 R5 V3 · weakest: V, a one-column text page is the shape asked for; kept it, gave Sparky its own page instead of a longer list */

:root {
  --paper: #f6f4ef;
  --ink: #1b1a17;
  --muted: #5d5a53;
  --rule: #dcd7cc;
  --tile: #ee6a3c;
  --mark: #ffffff;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
  --gap: 3.5rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131312;
    --ink: #ecebe6;
    --muted: #a8a59d;
    --rule: #34322e;
  }
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4rem, 14vh, 8rem) 1.25rem 4rem;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: break-word;
  min-width: 0;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 1rem; text-wrap: balance; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.25rem; line-height: 1.5; margin-top: 1rem; max-width: 30rem; }
.quiet { color: var(--muted); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--ink); }
a:active { color: var(--muted); text-decoration-color: var(--muted); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; text-decoration-color: var(--ink); }

.links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 1.5rem; padding: 0; list-style: none; }

section { margin-top: var(--gap); }

/* roles, studies: what on the left, when on the right */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.rows .what { min-width: 0; }
.rows .where { display: block; color: var(--muted); }
.rows .when { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* a project: its tile, then what it is */
.project { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.tile { width: 3.25rem; height: 3.25rem; display: block; }
.tile rect { fill: var(--tile); }
.tile path { fill: var(--mark); stroke: var(--mark); }
.project h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.15; color: var(--ink); margin: 0 0 0.35rem; }
.project p { margin-bottom: 0.6rem; }

.skills { margin: 0; }
.skills dt { font-weight: 600; margin-top: 0.75rem; }
.skills dt:first-child { margin-top: 0; }
.skills dd { margin: 0.15rem 0 0; color: var(--muted); }

/* the Sparky page */
.back { display: inline-block; margin-bottom: 2.5rem; color: var(--muted); }
.title { display: flex; align-items: center; gap: 1rem; }
.title .tile { width: 3.5rem; height: 3.5rem; flex: none; }
.does { margin: 0; padding-left: 1.1rem; }
.does li { margin-bottom: 0.5rem; }
.does li::marker { color: var(--muted); }

footer { margin-top: calc(var(--gap) + 1rem); padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
footer p { margin: 0; }

@media (max-width: 30rem) {
  .rows li { grid-template-columns: minmax(0, 1fr); }
  .rows .when { margin-top: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none; transition: none; scroll-behavior: auto; }
}
