/* Hoggo site. Palette and shapes follow the Polsia draft (warm paper, dark green text, terracotta accent). */
@font-face {
  font-family: "Work Sans";
  src: url("fonts/work-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f0e7;
  --card: #faf8f2;
  --text: #26382f;
  --muted: #536057;
  --border: #d6d5ca;
  --soft: #d5dfcf;
  --accent: #8d452e;
  --accent-dark: #6f3523;
  --tint: #e4e8db;
  --clay: #ecd9cb;
  --green: #4f7a63;
  --ochre: #d9a441;
  --radius: .875rem;
  --max: 68rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 2.5rem; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .5rem .85rem; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .98rem; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--soft); font-weight: 600; }
.nav a.cta { background: var(--accent); color: #fff; }
.nav a.cta:hover { background: var(--accent-dark); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; font: inherit; color: var(--text); cursor: pointer; }

@media (max-width: 52rem) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); padding: .75rem 1.25rem 1.25rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: .75rem 1rem; }
}

/* typography and layout */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; flex: none; width: 1.5rem; height: 2px; background: currentColor; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }

.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
/* decoration: the four steps as small blocks on a base, only where there is room next to the text */
@media (min-width: 64rem) {
  .hero .hero-bars { display: block; position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: clamp(2rem, 6vw, 4.5rem); width: clamp(12rem, 16vw, 16rem); height: auto; }
}
.hero-bars { display: none; }
.hero h1 .accent { color: var(--accent); }

/* Home: the closing call-to-action is the one loud moment on the page. */
.callout.callout-loud { background: var(--accent); border-left: 0; color: #fff; padding: clamp(2rem, 6vw, 4rem); border-radius: calc(var(--radius) * 1.6); }
.callout-loud h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }
.callout-loud p { font-size: 1.2rem; max-width: 36rem; }
.callout-loud .btn { background: var(--card); color: var(--accent); border-color: var(--card); }
.callout-loud .btn:hover { background: #fff; color: var(--accent-dark); }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--border); }
.section.tinted { background: var(--tint); }
.section > .wrap > h2 + .lead { margin-bottom: 2rem; }

.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid var(--accent); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn.secondary:hover { background: var(--soft); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.grid > .card:nth-child(3n+2) { border-top-color: var(--green); }
.grid > .card:nth-child(3n) { border-top-color: var(--ochre); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.num { display: inline-block; margin-bottom: .75rem; padding: .05rem .7rem; border-radius: 999px; background: var(--soft); color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem 1.25rem 4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 1.25rem; top: 1.15rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; font-size: 1.08rem; }

/* diagram: who does what */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .75rem; align-items: stretch; margin-bottom: 1.5rem; }
.flow-node { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.flow-node strong { display: block; font-size: 1.15rem; }
.flow-node span { display: block; color: var(--muted); font-size: .95rem; margin-top: .25rem; }
.flow-node.hoggo { border-color: var(--accent); }
.flow-node.supplier { border-color: var(--ochre); }
.flow-node.you { background: var(--green); border-color: var(--green); color: #fff; }
.flow-node.you span { color: #fff; }
.flow-link { align-self: center; max-width: 7.5rem; text-align: center; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.flow-link::after { content: "\2192"; content: "\2192" / ""; display: block; margin-top: .15rem; font-size: 1.6rem; line-height: 1; color: var(--accent); }
.flow-link.both::after { content: "\21C4"; content: "\21C4" / ""; }

/* diagram: the four steps as a staircase */
.stair { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; align-items: end; }
.stair li { display: flex; flex-direction: column; gap: .3rem; min-height: calc(7.5rem + var(--i) * 2.75rem); background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--c, var(--green)); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 1rem 1.1rem; }
.stair li:nth-child(3) { --c: var(--ochre); }
.stair li:nth-child(4) { --c: var(--accent); }
.stair .label { font-weight: 700; color: var(--accent); }
.stair .chip { align-self: flex-start; margin-top: auto; background: var(--accent); color: #fff; border-radius: 999px; padding: .05rem .65rem; font-size: .8rem; font-weight: 600; }
.foundation { margin: 0; background: var(--green); color: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: .9rem 1.25rem; }
.foundation strong { margin-right: .4rem; }

/* example of the advice report */
.example { display: grid; grid-template-columns: 1fr 1.7fr; gap: 2.5rem; align-items: start; }
.report { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 .5rem 1.5rem rgba(38, 56, 47, .08); overflow: hidden; font-size: .95rem; line-height: 1.55; }
.report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; background: var(--soft); padding: .75rem 1.25rem; }
.badge { background: var(--card); border-radius: 999px; padding: .05rem .75rem; font-size: .8rem; font-weight: 600; color: var(--accent); }
.report-body { padding: 1.25rem; }
.report-body h3, .report-body h4 { margin: 0 0 .5rem; }
.report-body h4 { margin-top: 1.5rem; font-size: 1.05rem; }
.report-body p { margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
.report table { width: 100%; border-collapse: collapse; }
.report th, .report td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
.report th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.report dl { margin: 0; }
.report dt { margin-top: .6rem; font-weight: 700; }
.report dd { margin: 0; }

@media (max-width: 52rem) {
  .flow { grid-template-columns: 1fr; }
  .flow-link { max-width: none; }
  .flow-link::after { content: "\2193"; content: "\2193" / ""; }
  .flow-link.both::after { content: "\21C5"; content: "\21C5" / ""; }
  .stair { grid-template-columns: 1fr; gap: .5rem; }
  .stair li { min-height: 0; margin-left: calc(var(--i) * 1rem); border-bottom: 1px solid var(--border); border-radius: var(--radius); }
  .foundation { margin-top: .5rem; border-radius: var(--radius); }
  .example { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 40rem) {
  .report thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .report tr, .report td { display: block; }
  .report tr { padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .report td { padding: .1rem .6rem; border: 0; }
  .report td:first-child { font-weight: 700; }
  .report td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

.callout { background: var(--soft); border-left: .4rem solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.callout p:last-child { margin-bottom: 0; }
.grid + .callout { margin-top: 1.25rem; }
.callout .actions { margin-top: 1rem; }

.list { margin: 0 0 1rem; padding: 1.25rem 1.5rem 1.25rem 2.75rem; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: var(--radius); }
.list li { margin-bottom: .4rem; }
.list li:last-child { margin-bottom: 0; }
.list li::marker { color: var(--accent); }

.mail { font-size: 1.25rem; font-weight: 600; word-break: break-all; }
.copy-status { margin-left: .75rem; color: var(--muted); font-size: .95rem; }

.site-footer { background: var(--text); padding: 2rem 0 3rem; color: var(--soft); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: baseline; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ochre); }
.footer-brand { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
/* Flex aligns the image by its bottom edge; the wordmark baseline sits 14/64 above it, so shift the image down to line the text up with "Hoggo". */
.footer-brand img { display: block; width: auto; height: 1.5rem; position: relative; top: calc(1.5rem * 14 / 64); }

/* Contact form */
.form { max-width: 36rem; margin-top: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--card); color: var(--text); font: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; }
/* Spam trap: visually hidden but still in the DOM so bots fill it */
.field-extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Blog */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.25rem; }
.prose .steps { margin: 1.25rem 0; }
.meta { color: var(--muted); font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }

/* Call to action at the top of the Quickscan page */
.cta-strip { background: var(--tint); border-bottom: 1px solid var(--border); }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .85rem; }
.cta-strip p { margin: 0; font-size: 1.05rem; }
.cta-strip .btn { padding: .6rem 1.25rem; }

/* Photos */
.photo { margin: 0 0 1.75rem; }
.photo img { display: block; width: 100%; height: auto; max-height: 28rem; object-fit: cover; object-position: center 40%; border-radius: var(--radius); }
.photo-band { padding-top: 0; }
.card-img { display: block; margin-bottom: 1rem; }
.card-img img { display: block; width: 100%; height: 11rem; object-fit: cover; border-radius: calc(var(--radius) * .6); }

/* Five principles on one screen: 3 + 2 cards, the last card spans two columns. */
@media (min-width: 52rem) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 > .card:nth-child(5) { grid-column: span 2; }
  .grid-5 .card p { line-height: 1.5; }
}

/* Scroll animations: subtle, only when site.js runs (adds .js-anim) and motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .reveal { opacity: 0; transform: translateY(1.1rem); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .js-anim .reveal.in { opacity: 1; transform: none; }
  .js-anim .photo { overflow: hidden; border-radius: var(--radius); }
  .js-anim .photo.reveal { transform: none; }
  .js-anim .photo.reveal img { transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
  .js-anim .photo.reveal.in img { transform: scale(1); }
  .js-anim .hero .reveal { transition-duration: .9s; }
  /* Hero bars grow up from the base, left to right. */
  .js-anim .hero-bars rect:not(:last-child) { transform-box: fill-box; transform-origin: bottom; animation: bar-grow .9s cubic-bezier(.2,.7,.2,1) backwards; }
  .js-anim .hero-bars rect:nth-child(1) { animation-delay: .5s; }
  .js-anim .hero-bars rect:nth-child(2) { animation-delay: .65s; }
  .js-anim .hero-bars rect:nth-child(3) { animation-delay: .8s; }
  .js-anim .hero-bars rect:nth-child(4) { animation-delay: .95s; }
  @keyframes bar-grow { from { transform: scaleY(0); } }
  .js-anim .card.reveal.in:hover, .js-anim .flow-node.reveal.in:hover { transform: translateY(-3px); box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.07); transition-delay: 0ms; transition-duration: .25s; }
  .site-header { transition: box-shadow .3s ease; }
  .site-header.scrolled { box-shadow: 0 .4rem 1rem rgba(0,0,0,.06); }
}

/* Home make-over (2026-10-24): open hero with a report fragment, calmer sections, price card. See Website/DESIGN.md. */
.home .section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.home-hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.home-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -.03em; max-width: 13ch; }
.home-hero .lead { max-width: 34rem; }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 1.5rem 0 0; padding: 0; color: var(--muted); font-size: .95rem; font-weight: 500; }
.facts li { display: inline-flex; align-items: center; gap: .55rem; }
.facts li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--ochre); }

.report-mini { transform: rotate(1deg); box-shadow: -1rem 1rem 0 var(--clay), 0 .5rem 1.5rem rgba(38, 56, 47, .08); }
.report-mini .report-body { padding: 1.4rem 1.5rem 1.5rem; }
.report-title { font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 1rem; }
.report-total { display: flex; flex-direction: column; gap: .1rem; background: var(--tint); border-radius: calc(var(--radius) * .7); padding: .8rem 1rem; margin-bottom: 1rem; }
.report-total span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.report-total strong { font-size: 1.45rem; letter-spacing: -.02em; color: var(--accent); }
.chances { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: kans; }
.chances li { counter-increment: kans; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.chances li > span:first-child { display: flex; flex-direction: column; }
.chances li > span:first-child::before { content: "Kans " counter(kans); font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.chances small { color: var(--muted); font-size: .85rem; }
.prio { flex: none; border-radius: 999px; padding: .1rem .7rem; font-size: .8rem; font-weight: 600; background: var(--tint); color: var(--muted); }
.prio.now { background: var(--accent); color: #fff; }
.report-link { font-weight: 600; font-size: .95rem; }
@media (max-width: 40rem) {
  .report-mini { transform: none; box-shadow: -.6rem .6rem 0 var(--clay); margin-left: .6rem; }
}

.principles { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.5rem; }
.principles > div { border-top: 2px solid var(--text); padding-top: 1.1rem; }
.principles p { color: var(--muted); margin: 0; }

.offer { display: grid; gap: 1.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 56rem) { .offer { grid-template-columns: 1.3fr 1fr; gap: 2.5rem; } }
.deliverables { display: grid; gap: 1.75rem; }
.deliverable { padding-left: 4rem; position: relative; }
.deliverable .num { position: absolute; left: 0; top: 0; }
.deliverable h3 { margin-bottom: .4rem; }
.deliverable p { margin: 0; }
.price-card { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 .5rem 1.5rem rgba(38, 56, 47, .08); }
.price-label { margin: 0 0 .25rem; font-weight: 600; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: 0 0 1.25rem; }
.price strong { font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.price span { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.checks li { padding-left: 1.75rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .8rem; height: .45rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.price-card .actions { margin-top: 1.5rem; }
.price-note { margin: 1rem 0 0; font-size: .95rem; }

.split { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split .lead { margin-top: 2.6rem; } }

.about > * { max-width: 46rem; }
.about h2 { font-size: clamp(2rem, 4.5vw, 3rem); }

.footer-brand .slogan { color: #fff; font-weight: 500; }
.footer-brand .footer-note { color: var(--soft); opacity: .8; }

/* FAQ as disclosure widgets */
.faq { max-width: 46rem; border-top: 1px solid var(--border); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.1rem 3rem 1.1rem 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 0; top: calc(50% - .9rem); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); font-size: 1.2rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: 40rem; }

/* Secondary button on the loud terracotta call-to-action */
.callout-loud .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.callout-loud .btn.secondary:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.callout-loud :focus-visible { outline-color: #fff; }
.offer > .steps { margin: 0; }

/* Long-read pages: give each labelled part its own breathing room */
.prose > .eyebrow:not(:first-child) { margin-top: clamp(2.75rem, 6vw, 4rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--border); }

/* Blog overview: newest article featured, the rest in two columns */
.blog-grid { display: grid; gap: 1.5rem; }
.blog-grid .card-img img { height: 13rem; }
@media (min-width: 44rem) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid .featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 2.25rem; align-content: center; padding: 1.75rem; }
  .blog-grid .featured .card-img { grid-row: 1 / span 3; margin: 0; }
  .blog-grid .featured .card-img img { height: 100%; min-height: 17rem; }
  .blog-grid .featured > :not(.card-img) { grid-column: 2; }
  .blog-grid .featured .meta { align-self: end; }
  .blog-grid .featured h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; }
}

/* Blog articles: byline, a calmer photo at reading width, and calculation tables */
.byline { color: var(--muted); font-size: .95rem; margin: 0; }
.post .photo { max-width: 44rem; }
.post .photo img { max-height: 19rem; }
.calc { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); font-size: .98rem; }
.calc caption { text-align: left; font-weight: 600; padding: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.calc th, .calc td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--border); }
.calc thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.calc tbody th { font-weight: 600; }
.calc .num-col { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc tfoot th, .calc tfoot td { border-bottom: 0; font-weight: 700; color: var(--accent); }

/* Contact: introduction left, form in a card on the right */
.contact-grid { display: grid; gap: 2rem 3.5rem; align-items: start; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-notes { margin: 1.5rem 0; }
.form-card { margin-top: 0; max-width: none; background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 .5rem 1.5rem rgba(38, 56, 47, .08); }
.form-card .field input, .form-card .field textarea { background: #fff; }
@media (max-width: 40rem) {
  .calc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .calc tr, .calc th, .calc td { display: block; }
  .calc tr { padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
  .calc th, .calc td { padding: .1rem 0; border: 0; }
  .calc .num-col { text-align: left; }
  .calc tfoot tr { border-bottom: 0; }
}
