/* oscarito.us — plain CSS, no build step. Colors and fonts are set once here. */
:root {
  --ink: #12161C;
  --muted: #5A6472;
  --line: #DCE0E6;
  --accent: #1F3A8A;
  --fill: #EEF1F5;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); line-height: 1.5; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: #AEB6C2; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Page frame */
.wrap { max-width: 49rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.wrap, main { display: flex; flex-direction: column; gap: 4rem; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 44px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand::before { content: ""; width: 0.75rem; height: 0.75rem; background: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.site-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.site-footer span { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Shared pieces */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.eyebrow { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.page-title { font-size: clamp(3rem, 13vw, 4.5rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.lede { font-size: 1.375rem; line-height: 1.5; }
.prose { font-size: 1.1875rem; line-height: 1.65; }

/* Home */
.intro { display: flex; flex-direction: column; gap: 1.5rem; }
.home-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 0.5rem; background: var(--fill); }
.post-list { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.post-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem; padding: 0.875rem 0; border-top: 1px solid var(--line); }
.post-list time { flex: 0 0 7rem; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.post-list a { flex: 999 1 18rem; min-width: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 600; text-decoration: none; }
.more { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; font-size: 1.0625rem; font-weight: 600; }
.cards { display: flex; flex-wrap: wrap; gap: 1rem; }
.card { flex: 1 1 16rem; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; border: 1px solid var(--line); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card strong { font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.card span { font-size: 1.0625rem; line-height: 1.5; }
.card small { margin-top: 0.5rem; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }

/* Links page */
.link-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.link-list a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); text-decoration: none; }
.link-list a:hover { border-color: var(--accent); }
.link-list strong { font-size: 1.375rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.link-list small { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }

/* Blog index */
.year { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 2rem; }
.year h2 { flex: 0 0 7rem; padding-top: 0.5rem; font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.year ul { flex: 999 1 22rem; min-width: 0; list-style: none; padding: 0; }
.year li { border-bottom: 1px solid var(--line); }
.year a { display: block; padding: 0.75rem 0; font-size: 1.125rem; line-height: 1.4; font-weight: 500; text-decoration: none; }

/* Post */
.post { max-width: 42rem; }
.kicker { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.post h1 { margin-top: 1rem; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.post-hero { display: block; width: 100%; margin-top: 2rem; background: var(--fill); }
.post-body { margin-top: 2rem; font-size: 1.1875rem; line-height: 1.65; overflow-wrap: break-word; }
.post-body > * + * { margin-top: 1.25rem; }
.post-body h2 { margin-top: 3rem; font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.post-body h3 { margin-top: 2.5rem; font-size: 1.375rem; line-height: 1.25; font-weight: 800; }
.post-body h4, .post-body h5, .post-body h6 { margin-top: 2rem; font-size: 1.1875rem; font-weight: 800; }
.post-body ul, .post-body ol { padding-left: 1.5rem; }
.post-body li + li { margin-top: 0.5rem; }
.post-body li > ul, .post-body li > ol { margin-top: 0.5rem; }
.post-body blockquote { padding-left: 1.25rem; border-left: 2px solid var(--accent); font-size: 1.3125rem; line-height: 1.5; }
.post-body blockquote > * + * { margin-top: 0.75rem; }
.post-body cite { display: block; font-family: var(--mono); font-size: 0.875rem; font-style: normal; color: var(--muted); }
.post-body hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
.post-body img { display: block; background: var(--fill); }
.post-body figure > img, .post-body p > img { width: auto; max-height: 46rem; }
.post-body figcaption { margin-top: 0.5rem; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.post-body code { font-family: var(--mono); font-size: 0.9em; }
.gallery { columns: 2; column-gap: 0.5rem; }
.gallery figure { break-inside: avoid; margin: 0 0 0.5rem; }
.gallery a { display: block; }
.gallery img { width: 100%; }
.embed { aspect-ratio: 16 / 9; background: var(--fill); }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-strava { aspect-ratio: auto; max-width: 590px; }
.embed-strava iframe { height: 405px; }
.table-wrap { overflow-x: auto; }
.post-body table { border-collapse: collapse; font-size: 1rem; }
.post-body td, .post-body th { padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.post-nav { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { flex: 1 1 16rem; min-width: 0; display: flex; flex-direction: column; gap: 0.375rem; text-decoration: none; }
.post-nav span { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-nav strong { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }

@media (max-width: 30rem) {
  .wrap, main { gap: 3rem; }
  .wrap { padding-top: 1.25rem; }
  .lede { font-size: 1.25rem; }
  .post-body { font-size: 1.125rem; }
}
