/* pipekits.com: one readable column, in the planner's colours and type. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #f4f5f6;
  --ink: #1d2126;
  --muted: #566069;
  --line: #c6ccd2;
  --card: #ffffff;
  --accent: #f0b800;
  --accent-ink: #1d2126;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181b;
    --ink: #e8ebee;
    --muted: #98a2ad;
    --line: #30363c;
    --card: #1f2428;
    --accent: #f3c21a;
    --accent-ink: #15181b;
  }
}
:root[data-theme="dark"] {
  --bg: #15181b;
  --ink: #e8ebee;
  --muted: #98a2ad;
  --line: #30363c;
  --card: #1f2428;
  --accent: #f3c21a;
  --accent-ink: #15181b;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--text); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2 { font-family: var(--display); line-height: 1.05; letter-spacing: 0.01em; }
h1 { font-size: clamp(36px, 7vw, 56px); font-weight: 700; margin: 0 0 18px; }
h2 { font-size: 30px; font-weight: 600; margin: 0 0 12px; }
p, ul, ol, dl { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
.small { font-size: 15px; color: var(--muted); }

/* One column, with the examples allowed a little wider. */
.top, main > section, .foot { width: min(100% - 32px, 720px); margin-inline: auto; }
main > #examples { width: min(100% - 32px, 960px); }
main > #examples > h2, main > #examples > p { max-width: 720px; margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { font: 700 26px/1 var(--display); text-decoration: none; }
.btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font: 600 16px/1.2 var(--text); text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { padding: 13px 22px; border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font: 700 21px/1.1 var(--display); letter-spacing: 0.02em; }
.btn.primary:hover { border-color: var(--ink); }

main > section { padding: 40px 0; border-top: 1px solid var(--line); }
main > .intro { padding-top: 32px; border-top: 0; }
.intro p:first-of-type { font-size: 20px; }

.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; margin: 0 0 14px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 18px/30px var(--display); text-align: center; }

.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; margin-top: 20px; list-style: none; }
.examples li { margin: 0; }
.examples a { display: block; overflow: hidden; border: 2px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; }
.examples a:hover, .examples a:focus-visible { border-color: var(--accent); }
.examples img { display: block; width: 100%; height: auto; background: #fff; }
.examples span { display: block; padding: 8px 10px 10px; font-weight: 600; font-size: 15px; line-height: 1.3; }
@media (min-width: 760px) {
  .examples { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .examples span { padding: 10px 12px 12px; font-size: 16px; }
}

.changes dt { font: 600 20px/1.2 var(--display); margin-top: 6px; }
.changes dd { position: relative; margin: 4px 0 0; padding-left: 1.3em; }
.changes dd::before { content: "–"; position: absolute; left: 0; color: var(--muted); }

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 6px; }
