/* Midwest Native Co.
   Brand: Loam Brown #6c5a55, Baptisia Cream #fbf9f4, Rudbeckia Gold #fabb59,
   Carex Green #9ca881, Woodland Olive #62634e, Purpurea Pink #cd72ab.
   Titles: Roboto Slab 600. Body: Roboto. Both self-hosted. */

@font-face { font-family: 'Roboto Slab'; src: url('/fonts/roboto-slab-600.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('/fonts/roboto.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Metric-matched fallback so the swap to Roboto does not shift the layout. */
@font-face { font-family: 'Roboto Fallback'; src: local('Arial'); size-adjust: 100.3%; ascent-override: 92.5%; descent-override: 24.4%; line-gap-override: 0%; }

:root {
  /* Brand */
  --loam: #6c5a55;
  --cream: #fbf9f4;
  --gold: #fabb59;
  --carex: #9ca881;
  --olive: #62634e;
  --pink: #cd72ab;

  /* Roles */
  --paper: var(--cream);
  --paper-2: #f1f0e5;       /* cream with a little Carex */
  --sage: #e6e9da;          /* Carex tint for callouts */
  --ink: #4f423e;           /* Loam Brown, one step deeper for long reading */
  --ink-2: var(--olive);    /* secondary text */
  --heading: var(--loam);
  --action: var(--loam);
  --action-hover: #57463f;
  --line: #ddd6c8;

  --serif: 'Roboto Slab', 'Rockwell', 'Roboto', Georgia, serif;
  --sans: 'Roboto', 'Roboto Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 8px;
  --header: 76px;
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); scrollbar-color: var(--carex) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; caret-color: var(--pink); }
::selection { background: var(--gold); color: var(--loam); }
img, svg { display: block; max-width: 100%; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--loam); text-decoration-color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--heading); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 36em; }
.small { font-size: 1rem; color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--loam); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: var(--cream); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 600 1.05rem/1 var(--serif); letter-spacing: 0.01em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--ghost { border-color: var(--loam); color: var(--loam); background: transparent; }
.btn--light { background: var(--cream); color: var(--loam); }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #f4a93e; color: var(--ink); }
  .btn--ghost:hover { background: var(--loam); color: var(--cream); }
  .btn--light:hover { background: #fff; color: var(--loam); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--loam); text-decoration: none; min-height: 44px; }
.link-arrow::after { content: ''; width: 18px; height: 10px; background: currentColor; clip-path: polygon(0 40%, 70% 40%, 70% 0, 100% 50%, 70% 100%, 70% 60%, 0 60%); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(4px); } }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__row { display: flex; align-items: center; gap: 28px; height: var(--header); }
.logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.logo img { height: 48px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--loam); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; padding: 10px 12px; border-radius: var(--radius); transition: background-color 160ms ease; }
.nav__links a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { background: var(--paper-2); color: var(--loam); } }
.nav__cta { min-height: 44px; }
.nav__toggle { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; background: none; border: 1.5px solid var(--loam); border-radius: var(--radius); font: 600 1rem/1 var(--serif); color: var(--loam); cursor: pointer; }
.nav__toggle-bars, .nav__toggle-bars::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 200ms var(--ease-out); }
.nav__toggle-bars::before { content: ''; position: absolute; top: 6px; }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
.menu { border-top: 1px solid var(--line); background: var(--paper); height: calc(100svh - var(--header)); overflow: auto; padding: 16px 0 32px; }
.menu__links { display: flex; flex-direction: column; margin-bottom: 24px; }
.menu__links a { font: 600 1.75rem/1.2 var(--serif); color: var(--loam); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (min-width: 901px) { .menu { display: none !important; } }

/* Hero */
.hero { min-height: calc(100svh - var(--header)); display: grid; align-items: center; padding: clamp(24px, 4vw, 48px) 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__copy { display: grid; gap: 22px; align-content: center; }
.hero__copy h1 { max-width: 14ch; }
.hero__fact { font-weight: 500; color: var(--loam); display: flex; gap: 10px; align-items: baseline; }
.hero__fact::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); transform: translateY(-1px); }
.hero__copy .actions { margin-top: 6px; }
.hero__art .photo { aspect-ratio: 5 / 6; max-height: calc(100svh - var(--header) - 96px); width: 100%; }

/* Photos and art */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--sage); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo--art svg { width: 100%; height: 100%; }
img.photo { height: auto; }

/* Sections */
.section { padding: var(--section) 0; }
.section--tint { background: var(--paper-2); }
.section--flush { padding-top: 0; }
.section--dark { background: var(--loam); color: var(--cream); }
.section--dark h2 { color: var(--cream); }
.section--dark p { color: #f3efe9; }
.section--dark a, .section--dark .link-arrow { color: var(--cream); }
.section--dark a:hover { color: #fff; text-decoration-color: var(--gold); }
.section--dark :focus-visible { outline-color: var(--gold); }
.section--dark .split__media--diagram svg { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.section__head { display: grid; gap: 14px; max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head p { color: var(--ink); }
.section__head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > .split__copy { order: 1; }
.split > .split__media { order: 2; }

.split__copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
.split__copy > p { max-width: 34em; }
.split__media--diagram svg { border-radius: var(--radius); width: 100%; height: auto; }
.note { color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; font-size: 1.02rem; }

.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { border-top: 2px solid var(--carex); padding-top: 20px; display: grid; gap: 10px; align-content: start; position: relative; }
.step h3 a::after { content: ''; position: absolute; inset: 0; }
.step__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); font: 600 1rem/1 var(--serif); color: var(--loam); font-variant-numeric: tabular-nums; }
.step h3 a { color: var(--heading); text-decoration: none; }
.step h3 a:hover { color: var(--loam); text-decoration: underline; text-decoration-color: var(--pink); }
.step p { color: var(--ink); font-size: 1.05rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ''; flex: none; width: 14px; height: 8px; border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg) translate(2px, -2px); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.value { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--carex); padding-top: 20px; }
.value p { color: var(--ink); }

.narrow > h2 + p { margin: 16px 0 24px; }

/* FAQ */
.faq-preview { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-preview .section__head { margin: 0; justify-items: start; }
.faq-list { display: grid; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2, .faq summary h3 { font-size: 1.25rem; letter-spacing: 0; line-height: 1.3; }
.faq__icon { flex: none; width: 16px; height: 16px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--olive); transition: transform 200ms var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq[open] .faq__icon::after { transform: rotate(0deg); }
.faq p { padding: 0 0 22px; color: var(--ink); max-width: 40em; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover :is(h2,h3) { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 0.2em; } }

/* Blog lists */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.post-list--stack { grid-template-columns: 1fr; gap: 0; }
.post-list--single { grid-template-columns: minmax(0, 720px); }

.post-card { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--line); padding: 22px 0; position: relative; }
.post-card :is(h2,h3) { font-size: 1.25rem; line-height: 1.3; letter-spacing: 0; }
.post-card :is(h2,h3) a { color: var(--heading); text-decoration: none; }

.post-card :is(h2,h3) a::after { content: ''; position: absolute; inset: 0; }
.post-card__img { margin-bottom: 6px; }
.post-card p { color: var(--ink); font-size: 1.05rem; }
.post-card time { font-size: 0.95rem; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .post-card:hover :is(h2,h3) a { text-decoration: underline; text-decoration-color: var(--pink); } }

/* Close band */
.close { background: var(--sage); color: var(--ink); padding: clamp(72px, 9vw, 112px) 0; }
.close__inner { display: grid; gap: 18px; justify-items: start; }
.close h2 { color: var(--heading); max-width: 16ch; }
.close p { color: var(--ink); max-width: 34em; font-size: 1.15rem; }

/* Page heads */
.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head--split .split { align-items: center; }
.page-head--split .split__copy { gap: 18px; }
.page-head h1 { max-width: 18ch; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { text-decoration: none; color: var(--ink); background: var(--gold); border: 1.5px solid var(--gold); border-radius: 999px; font-family: var(--serif); padding: 10px 16px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.jump a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .jump a:hover { background: #f4a93e; border-color: #f4a93e; color: var(--ink); } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__intro { display: grid; gap: 22px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--loam); }
.facts dd { margin: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; box-shadow: 0 18px 40px -28px rgb(108 90 85 / 0.45); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 500; color: var(--loam); font-size: 1rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 1.5px solid #cbc2b4; border-radius: var(--radius); padding: 11px 13px; min-height: 48px; width: 100%; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgb(205 114 171 / 0.28); }
.field [aria-invalid='true'] { border-color: #a3301e; }
.field__error { color: #a3301e; font-size: 0.95rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 0.9rem; color: var(--ink-2); }
.form__status { font-weight: 600; min-height: 1.5em; }
.form__status.is-ok { color: var(--olive); }
.form__status.is-err { color: #a3301e; }
.form.is-sending button { opacity: 0.7; pointer-events: none; }

/* Posts */
.post__head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 40px); }
.post__head .wrap { display: grid; gap: 18px; }
.crumbs { display: flex; gap: 10px; font-size: 0.98rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.post__meta { color: var(--ink-2); font-size: 1rem; }
.answer { background: var(--sage); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; margin-top: 8px; }
.answer h2 { font: 600 1rem/1.2 var(--serif); letter-spacing: 0; color: var(--olive); }
.post__image { margin-bottom: 32px; }
.prose { padding-bottom: 24px; }
.prose img { border-radius: var(--radius); height: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--olive); }
.post__faq { padding-top: 32px; padding-bottom: 32px; display: grid; gap: 18px; }
.post__faq h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.post__cta { margin-top: 24px; margin-bottom: var(--section); }
.post__cta { display: grid; gap: 14px; justify-items: start; }
.post__cta > * { max-width: 760px; }
.post__cta h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.post__cta { background: none; }
.post__cta::before { content: ''; display: block; height: 2px; background: var(--carex); width: 100%; margin-bottom: 18px; }

/* Footer */
.footer { background: var(--olive); color: var(--cream); padding: 72px 0 32px; font-family: var(--serif); }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__grid > * { min-width: 0; }
.footer__logo { display: inline-flex; min-height: 44px; }
.footer__logo img { width: min(320px, 100%); height: auto; }
.footer__col { display: grid; gap: 2px; align-content: start; }
.footer__col h2 { font: 600 1.5rem/1.2 var(--serif); letter-spacing: 0; color: var(--cream); margin-bottom: 10px; }
.footer__col > a { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1.02rem; }
.footer__email { font-family: var(--sans); margin-bottom: 12px; overflow-wrap: anywhere; }
.footer__email strong { font-family: var(--serif); font-weight: 600; }
.footer__email a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__social { display: flex; gap: 6px; margin-left: -10px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); color: #d7d9c8; transition: background-color 160ms ease, color 160ms ease; }
.footer__social a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--gold); display: grid; gap: 4px; justify-items: center; text-align: center; font-size: 0.98rem; font-weight: 600; }
.footer__legal-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 10px; }
.footer__legal-links span { color: var(--gold); }
.footer__legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Entrance: once, on load, for the first screen only */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes bloom { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
@media (prefers-reduced-motion: no-preference) {
  [data-enter] h1, [data-enter] .lede, [data-enter] .hero__fact, [data-enter] .actions, [data-enter] .jump, [data-enter] .answer, [data-enter] .crumbs, [data-enter] .post__meta { animation: rise 600ms var(--ease-out) both; }
  [data-enter] .lede, [data-enter] .post__meta { animation-delay: 70ms; }
  [data-enter] .hero__fact, [data-enter] .jump, [data-enter] .answer { animation-delay: 130ms; }
  [data-enter] .actions { animation-delay: 180ms; }
  .hero .art .art__stems { animation: rise 700ms var(--ease-out) both; animation-delay: 120ms; }
  .hero .art .flower { transform-box: fill-box; transform-origin: 50% 100%; animation: bloom 700ms var(--ease-out) both; animation-delay: calc(500ms + var(--i) * 2ms); }
}

/* Responsive */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .post-list { grid-template-columns: 1fr 1fr; }
  .post-list--stack { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero__grid, .split, .faq-preview, .contact { grid-template-columns: 1fr; }
  .hero__grid { min-height: 0; }
  .hero__art .photo { aspect-ratio: 4 / 3; max-height: none; }
  .split > .split__copy { order: 2; }
  .split > .split__media { order: 1; }
  .page-head--split .split > .split__copy { order: 1; }
  .page-head--split .split > .split__media { order: 2; }
  .values { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__logo img { width: 260px; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .steps, .post-list { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .section__head--row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .logo img { height: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
