/* akakika.dev: plain developer look, one reading column, light and soft dark (Kika, 25 Oct 2026; dark softened
   to akakika.com's sheet grey the same day).
   Titles Geist, reading text Source Serif 4, small interface text Fira Sans, code Fira Code (fonts.css). */

:root {
  --paper: #F3F2ED; --ink: #0D0D0D; --dark: #3A3A3A; --muted: #6B6B6B; --accent: #6D80A6;
  --line: rgba(13, 13, 13, 0.10); --wash: rgba(13, 13, 13, 0.035); --card: #FBFAF7;
  --title: "Geist", "Fira Sans", system-ui, sans-serif; --mono: "Fira Code", ui-monospace, monospace;
  --read: "Source Serif 4", Georgia, serif; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #2C2D30; --ink: #E4E2DC; --dark: #C3C1BB; --muted: #9D9EA1; --line: rgba(228, 226, 220, 0.11); --wash: rgba(228, 226, 220, 0.05); --card: #343539; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #2C2D30; --ink: #E4E2DC; --dark: #C3C1BB; --muted: #9D9EA1; --line: rgba(228, 226, 220, 0.11); --wash: rgba(228, 226, 220, 0.05); --card: #343539; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: "Fira Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* Top line: home on the left, three plain links on the right */
.top { max-width: 720px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 900; letter-spacing: -0.06em; font-size: 18px; }
.brand span { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.top nav { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); }
.top nav a:hover, .foot a:hover { color: var(--ink); }

/* The post: one column of about 66 characters */
.post { max-width: 720px; margin: 0 auto; padding: 36px 20px 20px; }
.meta { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.post h1 { margin: 14px 0 0; font-family: var(--title); font-weight: 700; font-size: 44px; letter-spacing: -0.045em; line-height: 1.02; }
.deck { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--dark); }
.body { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); font-family: var(--read); font-size: 19px; line-height: 1.7; color: var(--dark); }
.body p { margin: 0 0 1.1em; }
.body h2 { margin: 1.9em 0 0.5em; font-family: var(--title); font-weight: 650; font-size: 24px; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); }
.body h3 { margin: 1.6em 0 0.4em; font-family: var(--title); font-weight: 650; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.body strong { color: var(--ink); font-weight: 650; }
.body ul, .body ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.body li { margin: 0.3em 0; }
.body code { font-family: var(--mono); font-size: 0.82em; background: var(--wash); border: 1px solid var(--line); border-radius: 5px; padding: 0.1em 0.35em; }
.body pre { font-family: var(--mono); font-size: 14px; line-height: 1.6; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.body pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.body figure { margin: 2em 0; }
.body img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.body figcaption { margin-top: 10px; font-family: "Fira Sans", system-ui, sans-serif; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.body blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--ink); font-style: italic; }
.body table { width: 100%; border-collapse: collapse; font-family: "Fira Sans", system-ui, sans-serif; font-size: 14.5px; margin: 1.4em 0; }
.body th, .body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* The way back: the post's app on akakika.com */
.app { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; margin-top: 40px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.app img { width: 52px; height: 52px; border-radius: 12px; }
.app span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.app b { display: block; margin-top: 2px; font-family: var(--title); font-size: 18px; letter-spacing: -0.03em; }
.app p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.app > a { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--dark); }
.app > a:hover { border-color: var(--accent); color: var(--ink); }

/* More writing: three plain lines */
.more { margin-top: 44px; }
.more h2 { margin: 0 0 8px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.more a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.more a:hover span { color: var(--accent); }
.more time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.foot { max-width: 720px; margin: 40px auto 0; padding: 22px 20px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 620px) {
  .top nav { gap: 12px; font-size: 13px; }
  .post { padding-top: 20px; }
  .post h1 { font-size: 34px; }
  .deck { font-size: 17.5px; }
  .body { font-size: 18px; }
  .app { grid-template-columns: 44px 1fr; }
  .app img { width: 44px; height: 44px; }
  .app > a { grid-column: 1 / -1; justify-content: center; }
}
.foot .sp { flex: 1; }

/* The home page: every post, newest first, grouped by year */
.list { max-width: 720px; margin: 0 auto; padding: 36px 20px 10px; }
.list h1 { margin: 0; font-family: var(--title); font-weight: 700; font-size: 40px; letter-spacing: -0.045em; line-height: 1.05; }
.list .intro { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--dark); }
.list .intro a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.list h2 { margin: 40px 0 6px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.list .item { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.list .item b { display: block; font-family: var(--title); font-weight: 650; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.list .item span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
/* The date in its own quiet column on the left, the titles lined up next to it (Kika's pick A, 25 Oct) */
.list .item { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.list .item time { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
@media (max-width: 620px) { .list .item { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; } }
.list .item:hover b { color: var(--accent); }
.notfound { max-width: 720px; margin: 0 auto; padding: 60px 20px; }
.notfound h1 { font-family: var(--title); font-size: 40px; letter-spacing: -0.045em; margin: 0 0 12px; }
.notfound p { color: var(--dark); font-size: 17px; line-height: 1.6; }
.notfound a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.top a:focus-visible, .foot a:focus-visible, .list a:focus-visible, .more a:focus-visible, .app a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list > h2:first-of-type { margin-top: 8px; }
/* The light and dark switch, top right, like akakika.com (Kika, 25 Oct) */
.top nav { align-items: center; }
.theme { width: 30px; height: 30px; margin-left: -6px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme:hover { background: var(--wash); color: var(--ink); }
.theme svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 620px) { .top nav a:nth-child(2) { display: none; } }
