/* build.snowdesk.info — one stylesheet, no build step.
 *
 * Colours and type follow the Snowdesk app's @theme tokens
 * (snowdesk-data-pipeline: src/css/main.css) so the blog reads as the same
 * product. They are copied, not shared: the blog is a snapshot and does not
 * need to track the app's palette. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/dm-sans-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: #f2f0ec;
  --card: #ffffff;
  --text-1: #1a1916;
  --text-2: #4a4843;
  --text-3: #6e6b65;
  --border: rgba(0, 0, 0, 0.09);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 68ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b19;
    --card: #2a2825;
    --text-1: #edece8;
    --text-2: #c4c0b8;
    --text-3: #9a968e;
    --border: rgba(255, 255, 255, 0.09);
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
  }
}

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

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

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  color: var(--text-1);
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin: 2rem 0 0.5rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.3em;
}

pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  padding: 0.5rem 0.75rem;
}

.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-title {
  color: var(--text-1);
  font-weight: 600;
  text-decoration: none;
}

main {
  padding-bottom: 3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  color: var(--text-3);
  font-size: 0.9375rem;
}

.intro p {
  font-size: 1.125rem;
}

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

.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list a {
  font-weight: 600;
  font-size: 1.125rem;
}

.post-list time,
.post-meta {
  display: block;
  color: var(--text-3);
  font-size: 0.9375rem;
}

.post-list p {
  margin: 0.25rem 0 0;
}

.post-lede {
  font-size: 1.1875rem;
  color: var(--text-1);
}

.post-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.video {
  margin: 2rem 0;
}

.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: var(--card);
}

.video figcaption {
  color: var(--text-3);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
