/* Dollars And Freedom — Neubrutalism, light-first.
   Source of truth: design-system/dollars-and-freedom/MASTER.md (Project overrides). */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work-sans-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
:root {
  --paper: #fff8e7; --card: #fff; --ink: #111; --ink-2: #3d3d3d; --muted: #5c5c5c;
  --green: #2bd47d; --green-ink: #0a6b3a; --yellow: #ffd23f; --coral: #ff7a5c; --lilac: #c9b8ff; --sky: #8fd3ff;
  --line: 3px solid var(--ink); --line-thin: 2px solid var(--ink);
  --sh: 5px 5px 0 var(--ink); --sh-lg: 8px 8px 0 var(--ink); --sh-sm: 3px 3px 0 var(--ink);
  --r: 8px; --wrap: 1240px; --narrow: 760px;
  --head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t: 160ms ease-out;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.has-popup { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.7 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--green-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); background: var(--yellow); text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6, .h1, .h4 { font-family: var(--head); font-weight: 700; color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1, .h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.35rem; } h4, .h4 { font-size: 1.15rem; } h5 { font-size: 1.05rem; } h6 { font-size: 1rem; }
p, ul, ol, table, figure, blockquote { margin: 0 0 1.15em; }
mark, .mark { background: var(--yellow); color: var(--ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: var(--narrow); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); border: var(--line); padding: 8px 12px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.fine { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.label { font: 700 .78rem/1 var(--head); text-transform: uppercase; letter-spacing: .09em; }

/* buttons: mechanical press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; background: var(--green); color: var(--ink); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); font: 700 1rem/1 var(--head); text-decoration: none; cursor: pointer; transition: transform var(--t), box-shadow var(--t); }
.btn:hover { background: var(--green); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn--yellow { background: var(--yellow); } .btn--yellow:hover { background: var(--yellow); }

/* stickers (category labels) */
.sticker { display: inline-block; font: 700 .74rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 7px 10px 6px; border: var(--line-thin); border-radius: 999px; background: var(--green); color: var(--ink); text-decoration: none; box-shadow: var(--sh-sm); }
.sticker:hover { color: var(--ink); background: var(--yellow); }
.c-green { background: var(--green); } .c-yellow { background: var(--yellow); } .c-coral { background: var(--coral); } .c-lilac { background: var(--lilac); } .c-sky { background: var(--sky); }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--line); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { background: none; color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__word { font: 700 1.35rem/1 var(--head); letter-spacing: -0.03em; white-space: nowrap; }
.brand__word span { background: var(--yellow); padding: 0 .1em; border-radius: 4px; }
.nav { position: relative; }
.nav__toggle { list-style: none; display: none; width: 48px; height: 48px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.nav__toggle::-webkit-details-marker { display: none; }
.nav__toggle span { display: block; width: 22px; height: 3px; background: var(--ink); }
.nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav__list a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 2px solid transparent; border-radius: var(--r); color: var(--ink); font: 600 .98rem/1 var(--head); text-decoration: none; }
.nav__list a:hover { background: var(--card); border-color: var(--ink); }
.nav__list a[aria-current] { background: var(--yellow); border-color: var(--ink); }
.nav__m { display: none; position: relative; }
.nav__search { background: var(--card); border: var(--line-thin) !important; box-shadow: var(--sh-sm); }
.nav__search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1180px) {
  .nav__list--desk { display: none; }
  .nav__m { display: block; }
  .nav__toggle { display: flex; }
  .nav__m .nav__list { position: absolute; right: 0; top: calc(100% + 12px); flex-direction: column; align-items: stretch; flex-wrap: nowrap; min-width: 250px; padding: 10px; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); }
  .nav__m[open] .nav__toggle { background: var(--yellow); }
  .nav__m .nav__search span { position: static; width: auto; height: auto; clip: auto; }
}
@media (max-width: 420px) { .brand__word { font-size: 1.12rem; } .brand__mark { width: 38px; height: 38px; } }

/* hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 5vw, 64px); border-bottom: var(--line); background:
  radial-gradient(circle at 1px 1px, rgba(17,17,17,.13) 1px, transparent 0) 0 0 / 22px 22px, var(--paper); }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.hero__kicker { margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 mark { display: inline-block; transform: rotate(-1.5deg); border: var(--line); border-radius: 6px; padding: 0 .14em; box-shadow: var(--sh-sm); margin-top: .08em; }
.hero__lead { font-size: 1.18rem; color: var(--ink-2); max-width: 56ch; }
.hero__form { margin-top: 26px; max-width: 540px; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 18px; }
.hero__form .label { display: block; margin-bottom: 10px; }
.hero__topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero__topics li:nth-child(odd) a { transform: rotate(-1.2deg); }
.hero__topics li:nth-child(even) a { transform: rotate(1.4deg) translateY(10px); }
.hero__topics a { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 120px; padding: 16px; border: var(--line); border-radius: var(--r); box-shadow: var(--sh); color: var(--ink); text-decoration: none; transition: transform var(--t), box-shadow var(--t); }
.hero__topics a:hover { background-image: none; transform: rotate(0) translate(-2px, -2px) !important; box-shadow: var(--sh-lg); color: var(--ink); }
.hero__topics strong { font: 700 1.2rem/1.1 var(--head); }
.hero__topics span { display: flex; justify-content: space-between; align-items: center; font: 600 .9rem/1 var(--head); }
.hero__topics svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero__topics li a { transform: none !important; } }
@media (max-width: 480px) { .hero__topics { gap: 12px; } .hero__topics a { min-height: 100px; padding: 14px 12px; } .hero__topics strong { font-size: 1.02rem; hyphens: auto; overflow-wrap: anywhere; } }

/* start here strip */
.strip { background: var(--ink); color: var(--paper); border-bottom: var(--line); }
.strip__row { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 0; }
.strip__label { display: flex; align-items: center; padding: 18px 22px 18px 0; font: 700 1rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.strip a { display: flex; gap: 12px; align-items: baseline; padding: 18px 20px; border-left: 2px solid #3a3a3a; color: var(--paper); text-decoration: none; font: 600 1rem/1.3 var(--head); }
.strip a:hover { background: var(--green); color: var(--ink); }
.strip a b { color: var(--green); font-size: 1.4rem; line-height: 1; }
.strip a:hover b { color: var(--ink); }
@media (max-width: 900px) { .strip__row { grid-template-columns: 1fr; } .strip a { border-left: 0; border-top: 2px solid #3a3a3a; padding-inline: 0; } .strip__label { padding: 16px 0 8px; } }

/* archive + cards */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.section__head h2, .section__head h1 { margin: 0; }
.archive__head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.archive__intro { font-size: 1.12rem; color: var(--ink-2); max-width: 64ch; }
.archive__count { font: 600 .92rem/1 var(--head); color: var(--muted); }
.cards { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; gap: 24px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); transition: transform var(--t), box-shadow var(--t); }
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lg); }
.card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--line); border-radius: 5px 5px 0 0; background: var(--yellow); }

.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__noimg { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 1px 1px, rgba(17,17,17,.18) 1px, transparent 0) 0 0 / 16px 16px; }
.card__noimg .brand__mark { width: 72px; height: 72px; transform: rotate(-6deg); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; flex: 1; }
.card__cat { align-self: flex-start; margin-top: -15px; transform: rotate(-2deg); position: relative; z-index: 1; }
.card__title { font-size: 1.24rem; line-height: 1.22; margin: 2px 0 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card__title a:hover { background: none; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--green); }
.card__desc { margin: 0; font-size: .98rem; color: var(--ink-2); line-height: 1.55; flex: 1; }
.card__meta { margin: 0; font: 600 .84rem/1 var(--head); color: var(--muted); }
.card__cat, .card__meta { position: relative; z-index: 2; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; font: 600 1rem/1 var(--head); }
.pagination a { text-decoration: none; }

/* post */
.post__head { padding-top: clamp(28px, 4vw, 52px); }
.crumbs { font: 600 .9rem/1.4 var(--head); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.post__title { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.35rem); line-height: 1.06; letter-spacing: -0.03em; }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.post__meta span { font: 600 .85rem/1 var(--head); padding: 7px 10px; border: var(--line-thin); border-radius: 999px; background: var(--card); }
.post__cover { margin: 28px auto 8px; }
.post__cover img { width: 100%; height: auto; border: var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); background: var(--yellow); }
.prose { padding-top: 22px; font-size: 1.1rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; padding-top: .15em; }
.prose h3 { margin-top: 1.6em; } .prose h4, .prose h5, .prose h6 { margin-top: 1.35em; }
.prose h2::before { content: ""; display: block; width: 56px; height: 8px; background: var(--green); border: var(--line-thin); margin-bottom: 14px; }
.prose img { display: block; margin: 1.6em auto; border: var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.prose figure img { margin: 0 auto; }
.prose figcaption, .prose .wp-caption-text { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 10px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ink); font-weight: 700; }
.prose li > p { margin-bottom: .5em; }
.prose b, .prose strong { font-weight: 650; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: .96rem; border: var(--line); border-radius: var(--r); background: var(--card); }
.prose th, .prose td { border: 2px solid var(--ink); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th, .prose tr:first-child td { background: var(--yellow); font-family: var(--head); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 16px 20px; border: var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-sm); font-style: italic; }
.prose hr { border: 0; border-top: var(--line); margin: 2.2em 0; }
.prose details { border: var(--line); border-radius: var(--r); background: var(--card); padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--sh-sm); }
.prose summary { font: 700 1.05rem/1.3 var(--head); cursor: pointer; }
.prose .embed { aspect-ratio: 16 / 9; border: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.prose .embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.prose .has-text-align-center, .prose .aligncenter { text-align: center; margin-inline: auto; }
.prose .btn { margin: .3em 0; }
.toc { margin: 1.8em 0; padding: 18px 22px; background: var(--yellow); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); font-size: 1rem; }
.toc__title { font: 700 .9rem/1 var(--head); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 12px; }
.toc ul { margin: 0; padding-left: 1.2em; } .toc ul ul { margin-top: .25em; }
.toc li { margin-bottom: .25em; } .toc a { color: var(--ink); text-decoration-thickness: 1px; }
.toc a:hover { background: var(--card); }
.post__foot { margin-top: 44px; }
.post__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 .95rem/1 var(--head); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 36px 0; }
.pager__a { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); color: var(--ink); text-decoration: none; font: 700 1rem/1.3 var(--head); transition: transform var(--t), box-shadow var(--t); }
.pager__a:hover { background: var(--card); color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--sh); }
.pager__a small { font: 700 .74rem/1 var(--head); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.pager__a--next { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager__a--next { grid-column: auto; text-align: left; } }
.related { padding: 48px 0 24px; margin-top: 24px; border-top: var(--line); }
.page { padding: clamp(28px, 4vw, 52px) 0 40px; }
.page__head h1 { margin-bottom: .3em; }

/* author */
.post__meta .post__author { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; background: var(--lilac); }
.post__author img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.post__author a { color: var(--ink); }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; margin: 8px 0 28px; padding: 22px; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.author-box__img { width: 96px; height: 96px; border-radius: 50%; border: var(--line); object-fit: cover; background: var(--lilac); }
.author-box__label { margin: 0 0 10px; }
.author-box__name { margin: 0; font-size: 1.35rem; }
.author-box__name a { color: var(--ink); text-decoration: none; }
.author-box__role { margin: 2px 0 10px; font: 600 .9rem/1.3 var(--head); color: var(--muted); }
.author-box__bio { margin: 0 0 12px; font-size: .98rem; line-height: 1.6; }
.author-box__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font: 600 .95rem/1.2 var(--head); }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }
.author-head { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; max-width: 900px; }
.author-head > img { width: 140px; height: 140px; border-radius: 50%; border: var(--line); box-shadow: var(--sh); object-fit: cover; background: var(--lilac); }
.author-head h1 { margin-bottom: .1em; }
@media (max-width: 640px) { .author-head { grid-template-columns: 1fr; gap: 16px; } .author-head > img { width: 112px; height: 112px; } }

/* quick answer + service status */
.quick { margin-top: 26px; }
.quick__box { padding: 20px 22px 18px; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.quick__label { margin: 0 0 12px; transform: rotate(-1.5deg); }
.quick__box ul { margin: 0 0 12px; padding-left: 1.2em; font-size: 1.04rem; }
.quick__box li { margin-bottom: .35em; }
.quick__check { margin: 12px 0 0; padding-top: 12px; border-top: 2px dashed var(--ink); font-size: .95rem; color: var(--ink-2); }
.quick__loose { list-style: none; padding: 0 !important; margin: 10px 0 0 !important; font-size: .95rem !important; }
.quick__loose .sticker { box-shadow: none; padding: 4px 8px; font-size: .68rem; margin-right: 4px; }
.status { margin: -.2em 0 1.2em; padding: 10px 12px; background: var(--card); border: var(--line-thin); border-radius: var(--r); font-size: .97rem; line-height: 1.5; }
.status .sticker { box-shadow: none; padding: 4px 8px; font-size: .68rem; margin-right: 6px; vertical-align: 1px; }
.status__proof { color: var(--muted); font-size: .88rem; }

/* forms */
.subscribe__row, .searchbar { display: flex; gap: 10px; }
input[type=email], input[type=text], input[type=search], input[type=number], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 500 1rem var(--body); color: var(--ink); background: var(--card); border: var(--line); border-radius: var(--r); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px var(--ink); }
.subscribe__row input { flex: 1; min-width: 0; }
.subscribe__note { margin: 10px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 480px) { .subscribe__row { flex-direction: column; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__msg { margin: 12px 0 0; padding: 10px 12px; border: var(--line-thin); border-radius: var(--r); font: 600 .95rem/1.35 var(--head); }
.form__msg.ok { background: var(--green); } .form__msg.err { background: var(--coral); } .form__msg:not(.ok):not(.err) { background: var(--card); }
.subscribe-box { margin: 28px 0; padding: 22px 24px; background: var(--green); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.subscribe-box p { margin-bottom: 14px; }
.subscribe-box .subscribe__note { color: var(--ink); }
.subscribe-box .subscribe__note a { color: var(--ink); }
.subscribe-box input { box-shadow: none; }
.subscribe-box .btn { background: var(--yellow); }
.contact-form { margin-top: 36px; padding: 24px; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.contact-form h2::before { display: none; }
.contact-form h2 { margin-top: 0; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font: 700 .95rem/1.2 var(--head); }
.contact-form textarea { resize: vertical; }
.searchbar { margin-bottom: 28px; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.search-list li { padding: 16px 18px; background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.search-list a { font: 700 1.15rem/1.25 var(--head); color: var(--ink); text-decoration: none; }
.search-list p { margin: 8px 0 0; color: var(--ink-2); font-size: .97rem; }
.search-list .sticker { margin-left: 8px; vertical-align: 2px; box-shadow: none; padding: 4px 8px; }

/* calculators */
.calc { margin: 2.2em 0; padding: 22px 24px; background: var(--lilac); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); font-size: 1rem; }
.calc h3 { margin: 6px 0 4px; font-size: 1.4rem; }
.calc__kicker { margin: 0; }
.calc__lead { margin-bottom: 16px; color: var(--ink); }
.calc__grid { display: grid; gap: 14px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc__grid label { display: flex; flex-direction: column; gap: 6px; font: 700 .9rem/1.25 var(--head); }
.calc__out { display: block; margin-top: 18px; padding: 14px 16px; background: var(--card); border: var(--line); border-radius: var(--r); font-size: 1.05rem; line-height: 1.55; }
.calc__out strong { background: var(--yellow); padding: 0 .15em; }
.calc__note { margin: 12px 0 0; font-size: .84rem; color: var(--ink-2); }
@media (max-width: 600px) { .calc__grid { grid-template-columns: 1fr; } .calc { padding: 18px; } }

/* popup: modest card, bottom sheet on phones; never on first load */
.popup { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17,17,17,.5); }
.popup[hidden] { display: none; }
.popup__card { position: relative; width: 100%; max-width: 480px; padding: 30px 28px 24px; background: var(--paper); border: var(--line); border-radius: 12px; box-shadow: 10px 10px 0 var(--ink); }
.popup__card h2 { font-size: 1.6rem; }
.popup__card h2 mark { border-radius: 4px; }
.popup__kicker { margin: 0 0 12px; display: inline-block; transform: rotate(-2deg); }
.popup__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--card); border: var(--line-thin); border-radius: 50%; font: 700 1.4rem/1 var(--head); cursor: pointer; color: var(--ink); }
.popup__close:hover { background: var(--coral); }
@media (max-width: 640px) { .popup { align-items: flex-end; padding: 0; } .popup__card { max-width: none; border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: none; padding: 26px 20px 20px; } .popup__card h2 { font-size: 1.3rem; } }

/* footer */
.colophon { margin-top: 56px; padding: 48px 0 24px; background: var(--ink); color: #e9e4d6; border-top: var(--line); }
.colophon a { color: var(--paper); }
.colophon a:hover { color: var(--ink); background: var(--yellow); }
.colophon__grid { display: grid; gap: 36px; grid-template-columns: 1.2fr 1.1fr .6fr; }
.colophon .brand { color: var(--paper); }
.colophon .brand__word span { color: var(--ink); }
.colophon__about p { margin-top: 16px; font-size: .98rem; color: #cfc9ba; }
.colophon .h4 { color: var(--paper); }
.colophon__subscribe { padding: 20px; background: #1d1d1d; border: 3px solid var(--paper); border-radius: var(--r); box-shadow: 5px 5px 0 var(--green); }
.colophon__subscribe p { color: #cfc9ba; font-size: .96rem; }
.colophon .subscribe input { border-color: var(--paper); }
.colophon .subscribe__note { color: #b9b3a5; }
.colophon__nav { display: flex; flex-direction: column; gap: 10px; font: 600 1rem/1.2 var(--head); }
.colophon__nav a { text-decoration: none; }
.colophon__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 2px solid #333; font-size: .86rem; color: #b9b3a5; }
@media (max-width: 960px) { .colophon__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .card:hover, .btn:hover, .pager__a:hover, .hero__topics a:hover { transform: none !important; } .hero__topics a, .hero h1 mark, .card__cat, .popup__kicker { transform: none !important; } }
