/* Freshwake — getfreshwake.com
   No external resources. No cookies. No analytics. */

:root {
  --bg: #fdfcfa;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5c57;
  --line: #e3dfd8;
  --accent: #15607a;
  --accent-soft: #eef4f6;
  --maxw: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --surface: #1f2124;
    --text: #e8e6e3;
    --muted: #a3a09b;
    --line: #34373b;
    --accent: #7fc4dd;
    --accent-soft: #1d2b31;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
               "Noto Sans JP", Meiryo, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── header ─────────────────────────────── */

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 0.92rem;
}

nav.site a:first-child { margin-left: 0; }
nav.site a:hover { color: var(--accent); text-decoration: underline; }

/* ── type ───────────────────────────────── */

main { padding: 2.75rem 0 4rem; }

h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 2.5rem 0 0.6rem;
  padding-top: 0.2rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.4rem;
}

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--accent); }

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 2rem;
}

.updated {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--accent-soft);
  padding: 0.12em 0.35em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

/* ── blocks ─────────────────────────────── */

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
}

.callout > :last-child { margin-bottom: 0; }

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { font-weight: 600; }
thead th { border-bottom-width: 2px; }

.status {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 1.25rem;
}

/* ── footer ─────────────────────────────── */

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

footer.site a { color: var(--muted); }
footer.site p { margin-bottom: 0.4rem; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.65rem; }
  .lede { font-size: 1.06rem; }
  table { font-size: 0.9rem; }
  th, td { padding: 0.5rem 0.4rem; }
}
