/* KotRock — blog-kt-life.com */
:root {
  --bg: #fdfcfa;
  --surface: #f3f1ec;
  --text: #1f2328;
  --muted: #5c636b;
  --line: #e2ded6;
  --accent: #1f6f5c;
  --accent-soft: #e6f2ee;
  --note-bg: #fff7e0;
  --note-line: #e8c96a;
  --measure: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1e2226;
    --text: #e6e8ea;
    --muted: #a0a8b0;
    --line: #2e3439;
    --accent: #6cc7ac;
    --accent-soft: #1c2e29;
    --note-bg: #2a2516;
    --note-line: #8a7433;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 4px 8px; z-index: 10; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.site-header nav { display: flex; gap: 1rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--text); }

main.wrap { padding-top: 2rem; padding-bottom: 3rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 1.5rem 0 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .5rem 0; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: .25rem 0; }

/* Type */
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: 1.9rem; margin: 0 0 .5rem; }
h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
blockquote { margin: 1.25rem 0; padding: .25rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code { background: var(--surface); padding: .1em .3em; border-radius: 3px; font-size: .9em; }

/* Top page */
.intro { margin-bottom: 2.5rem; }
.lead { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.post-link { font-size: 1.15rem; font-weight: 600; text-decoration: none; display: block; }
.post-link:hover { text-decoration: underline; }
.post-list time { color: var(--muted); font-size: .9rem; }
.post-list p { margin: .35rem 0 0; }

/* Post */
.post-header { margin-bottom: 1.25rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }
.meta a { color: var(--muted); }
.disclosure {
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: .95rem;
  margin: 0 0 1.75rem;
}
.disclosure p { margin: 0; }

/* Tables: scroll inside the box on small screens, never the page */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 34rem; }
th, td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
th { background: var(--surface); }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}
