/*
 * Visual direction: preserve the original site's black navigation, white canvas,
 * Noto Sans typography, image-led links and quiet hover labels. Improvements are
 * deliberately incremental: reliable tap targets, readable contrast and fluid layouts.
 */
:root {
  color-scheme: light;
  --ink: #111;
  --paper: #fff;
  --muted: #555;
  --line: #e6e6e6;
  --accent: #1683a5;
  --content-width: 820px;
  font-family: "Noto Sans", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.65; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid #1683a5; outline-offset: 5px; border-radius: 2px; }
.wrap { width: min(1200px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: absolute; top: .75rem; left: .75rem; z-index: 10; padding: .65rem .9rem; color: #fff; background: #111; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #000; color: #fff; box-shadow: 0 3px 0 #eee; }
.nav-inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { color: #fff; font-size: 1.35rem; font-weight: 700; text-decoration: none; letter-spacing: -.025em; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: .94rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.is-active { border-bottom-color: #fff; }
.nav-link.is-active { font-weight: 700; }
.site-main { flex: 1; }
.home-landing { padding-block: clamp(2.5rem, 8vh, 5.5rem) 4rem; }
.row { width: 100%; margin-inline: auto; display: flex; flex-flow: row wrap; justify-content: center; }
.expand-column-wrapper { gap: clamp(1.5rem, 5vw, 4.5rem); }
.column { flex: 0 1 230px; min-width: 0; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.2rem; text-align: center; color: var(--ink); text-decoration: none; border-radius: 3px; }
.column-inner { width: 140px; height: 140px; display: grid; place-items: center; transition: transform 180ms ease; }
.column-inner img { display: block; width: 112px; height: 112px; object-fit: contain; }
.expand-column-content { color: #111; font-size: 1.12rem; font-weight: 700; text-decoration: none; text-underline-offset: .25em; text-decoration-color: transparent; transition: color 180ms ease, text-decoration-color 180ms ease; }
.column:hover .column-inner { transform: translateY(-3px); }
.column:hover .expand-column-content, .column:focus-visible .expand-column-content { color: #087d9e; text-decoration: underline; text-decoration-color: currentColor; }
.blog-page { padding-top: clamp(2.5rem, 7vh, 4.5rem); padding-bottom: 5rem; }
.page-intro { margin-bottom: 2rem; }
h1, h2, h3 { line-height: 1.25; overflow-wrap: anywhere; }
.page-intro h1, .article-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.lead { max-width: 48rem; color: var(--muted); font-size: 1.05rem; }
.post-list { max-width: 900px; }
.post-summary { min-height: 75px; padding: 1.3rem 0 1.5rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.post-summary:first-child { border-top: 1px solid var(--line); }
.content-title { margin: 0 0 .45rem; font-size: clamp(1.25rem, 2.5vw, 1.7rem); font-weight: 600; }
.a-nostyle { color: #111; font-weight: inherit; text-decoration: none; }
.a-nostyle:hover { color: #087d9e; text-decoration: underline; }
.ingress { display: block; margin: .35rem 0; color: var(--muted); }
.readmore { display: inline-block; margin-top: .55rem; color: #111; font-size: .94rem; font-weight: 600; text-decoration: none; }
.readmore:hover { color: #087d9e; text-decoration: underline; }
.article { max-width: var(--content-width); padding-top: clamp(2rem, 6vh, 4rem); padding-bottom: 5rem; }
.back-link { display: inline-block; margin-bottom: 1.4rem; color: #444; font-size: .94rem; text-decoration: none; }
.back-link:hover { color: #087d9e; text-decoration: underline; }
.article-header { margin-bottom: 2rem; }
.article-content { font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content h2, .article-content h3 { margin-top: 2.2em; margin-bottom: .7em; line-height: 1.3; }
.article-content p { margin: 0 0 1.25em; }
.article-content a { overflow-wrap: anywhere; }
.article-content img { max-width: 100%; height: auto; }
.article-content figure { max-width: 100%; margin: 1.8rem auto; }
.article-content figure img { display: block; width: auto; max-height: 78vh; margin-inline: auto; object-fit: contain; }
.article-content figcaption { margin-top: .6rem; color: var(--muted); font-size: .9rem; text-align: center; }
.article-content blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid #ccc; color: #444; }
.article-content code, .article-content pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.article-content code { padding: .12em .3em; background: #f1f1f1; border-radius: 2px; }
.article-content pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: #f4f4f4; border: 1px solid #e5e5e5; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content th, .article-content td { padding: .5rem .7rem; border: 1px solid #ddd; }
.site-footer { margin-top: auto; border-top: 1px solid #eee; background: #f7f7f7; }
.footer-inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #555; font-size: .86rem; }
.footer-inner a { color: inherit; text-decoration: none; }
.footer-inner a:hover { color: #087d9e; text-decoration: underline; }
@font-face {
  font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: local("Noto Sans"), local("NotoSans"), url("/i/latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: local("Noto Sans"), local("NotoSans"), url("/i/latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 1.5rem); }
  .nav-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: .25rem; padding-block: .65rem; }
  .primary-nav { width: 100%; gap: 1.4rem; }
  .nav-link { min-height: 40px; }
  .home-landing { padding-top: 1.75rem; }
  .expand-column-wrapper { gap: .25rem; }
  .column { flex: 1 1 100%; min-height: 112px; flex-direction: row; justify-content: flex-start; gap: 1.2rem; padding: .7rem 1rem; }
  .column-inner { width: 76px; height: 76px; flex: 0 0 76px; }
  .column-inner img { width: 64px; height: 64px; }
  .expand-column-content { flex: 1; text-align: left; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: .8rem; gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
