/* nasichi — a small blog. No external requests, no tracking. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --sub: #6b6862;
  --line: #e7e4dd;
  --accent: #2f5bd3;
  --accent-soft: #e8eefc;
  --code: #f2f0ea;
  --max: 680px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1b1b1a;
    --text: #ecebe7;
    --sub: #a29f98;
    --line: #2c2b29;
    --accent: #8fb0ff;
    --accent-soft: #1c2640;
    --code: #232220;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 18px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--sub); font-weight: 400; }
.site-nav a { color: var(--sub); text-decoration: none; font-size: 15px; margin-left: 18px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* home */
.intro { padding: 56px 0 28px; }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.intro p { color: var(--sub); margin: 0; max-width: 34em; }
.posts { list-style: none; padding: 0; margin: 12px 0 64px; }
.post-card { display: grid; grid-template-columns: 1fr 112px; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-card:last-child { border-bottom: 1px solid var(--line); }
.post-card time { color: var(--sub); font-size: 14px; }
.post-card h2 { font-family: var(--serif); font-size: 23px; line-height: 1.25; margin: 4px 0 6px; letter-spacing: -0.01em; }
.post-card p { margin: 0; color: var(--sub); font-size: 16px; }
.post-card img { width: 112px; height: 112px; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); }
.post-card:hover h2 { color: var(--accent); }

/* article */
article { padding: 48px 0 24px; }
.meta { color: var(--sub); font-size: 14px; margin: 0 0 10px; }
article h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 7vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--text); margin: 0 0 28px; }
article h2 { font-family: var(--serif); font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin: 48px 0 10px; }
article p, article ul, article ol { margin: 0 0 16px; }
article ul, article ol { padding-left: 1.2em; }
article li { margin: 6px 0; }
article li::marker { color: var(--sub); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--code); padding: 2px 6px; border-radius: 6px; }
strong { font-weight: 650; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 999px; margin: 4px 0 8px; }
.cta:hover { opacity: 0.88; }

/* figures */
figure { margin: 28px 0; }
figcaption { color: var(--sub); font-size: 14px; margin-top: 10px; text-align: center; }
.phone { display: block; margin: 0 auto; width: min(320px, 82%); height: auto; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.08); background: var(--surface); }
.phone-video { aspect-ratio: 480 / 782; object-fit: cover; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; }
.shots figcaption { margin-top: 6px; }
@media (max-width: 560px) { .shots { grid-template-columns: repeat(2, 1fr); } }

.callout { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
.callout p:last-child { margin: 0; }

.gestures { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 16px; }
.gestures td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.gestures td:first-child { color: var(--sub); width: 42%; padding-right: 16px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 22px; padding-bottom: 40px; color: var(--sub); font-size: 14px; }
.site-foot a { color: var(--sub); text-decoration: none; margin-left: 16px; }
.site-foot a:first-child { margin-left: 0; }
.site-foot a:hover { color: var(--text); }

/* legal pages */
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal p { font-size: 16px; }
.todo { color: var(--sub); font-style: italic; }

