:root {
  --fridge: #D6ECDF; --door: #E8F4ED; --rim: #B2D5C1; --ink: #17332A; --ink-soft: #46645A; --card: #FFFFFF;
  --red: #E8453C; --red-deep: #B42F27; --note-y: #FFEC9E; --note-ink: #2A2A26;
  --f-ui: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fridge: #10241D; --door: #17332A; --rim: #23473A; --ink: #E3F2EA; --ink-soft: #A9C9BB; --card: #1B3A30; --red: #FF6A5F; --red-deep: #C9433A; color-scheme: dark; }
}
:root[data-theme="dark"] { --fridge: #10241D; --door: #17332A; --rim: #23473A; --ink: #E3F2EA; --ink-soft: #A9C9BB; --card: #1B3A30; --red: #FF6A5F; --red-deep: #C9433A; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--fridge); color: var(--ink); font-family: var(--f-ui); font-size: 1.0625rem; line-height: 1.65; }
a { color: var(--red); font-weight: 700; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 780px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header.top .wrap { padding-block: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1140px; }
header.top .wrap > a:last-child { text-decoration: none; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: 0 4px 0 var(--red-deep); font-weight: 800; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
main .wrap { padding-block: 40px 80px; }
main .wrap > h1:first-child, main .wrap > .crumbs + h1 { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 900; margin: 0 0 12px; }
h2 { font-size: 1.5rem; font-weight: 900; margin: 40px 0 10px; }
h3 { font-size: 1.15rem; font-weight: 800; margin: 26px 0 6px; }
p, li { max-width: 68ch; }
.meta { color: var(--ink-soft); font-size: .92rem; }
.todo { background: var(--note-y); color: var(--note-ink); padding: 0 .3em; border-radius: 4px; font-weight: 800; }
.box { position: relative; background: var(--card); border-radius: 20px; padding: 22px 22px 20px; margin: 26px 0; box-shadow: 0 5px 0 var(--rim); }
.box::before { content: ""; position: absolute; top: -11px; left: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); box-shadow: inset 0 -3px 0 rgba(0,0,0,.22); }
.mark { font-weight: 800; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; font-variant-numeric: tabular-nums; background: var(--card); border-radius: 16px; overflow: hidden; }
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 16px; box-shadow: 0 4px 0 var(--rim); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rim); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 900; background: var(--door); }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.cta { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 16px; background: var(--red); color: #fff !important; text-decoration: none; font-weight: 800; box-shadow: 0 5px 0 var(--red-deep); }
footer.bottom .wrap { padding-block: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; max-width: 1140px; }
footer.bottom a { color: var(--ink); font-weight: 800; text-decoration: none; }
