/* Mivru — site styles */
:root {
  --ground: #FFFDF9;
  --panel: #FFFFFF;
  --cream: #FCF5F1;
  --ink: #2A1F1F;
  --body: #4E4240;
  --muted: #6A5A57;
  --line: #EADBD3;
  --red: #A11D2E;
  --red-dark: #861625;
  --red-soft: #F8E6E3;
  --green: #1E5B3F;
  --green-soft: #EAF3EE;
  --gold: #F4CF6E;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.4px; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.lead { font-size: 18px; color: var(--body); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* header / footer */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.5px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-footer { background: var(--ink); color: #E9DDD8; margin-top: 0; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; }
.site-footer a { color: #E9DDD8; }
.site-footer .logo { color: #fff; font-size: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 12px; border: none; background: var(--red); color: #fff; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { display: flex; width: 100%; min-height: 56px; font-size: 18px; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-red { background: var(--red); color: #fff; }
.band-red .eyebrow { color: var(--gold); }
.section-title { font-size: 36px; margin: 8px 0 32px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card h3 { font-family: var(--sans); font-size: 17px; letter-spacing: 0; }
.num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tab-card { display: flex; flex-direction: column; gap: 6px; }
.tab-card .head { display: flex; align-items: center; gap: 10px; }
.tab-card p { font-size: 15px; color: var(--body); }

/* product hero */
.crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 20px; }
.crumbs a { color: var(--muted); }
.product { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 64px; }
.gallery { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery-main { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); aspect-ratio: 1280 / 860; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { padding: 6px; border-radius: 10px; background: #fff; border: 2px solid var(--line); cursor: pointer; font: inherit; text-align: left; }
.thumb[aria-pressed="true"] { border-color: var(--red); }
.thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; }
.thumb span { display: block; font-size: 12px; font-weight: 600; padding: 6px 0 2px; color: var(--ink); }
.buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.buy h1 { font-size: 44px; }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.price .now { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--red); }
.price .was { font-size: 20px; color: var(--muted); text-decoration: line-through; }
.pill { font-size: 13px; font-weight: 700; color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 5px 12px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--body); }
.swatches span { display: inline-flex; align-items: center; gap: 6px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--body); }
.trust b { display: block; color: var(--ink); }
.small-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: -8px; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.notice-error { background: var(--red-soft); color: var(--red-dark); }
.notice-ok { background: var(--green-soft); color: #234A38; border: 1px solid #BFD8CA; }

/* printable band */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.pages-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-size: 15px; }
.pages-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.25); break-inside: avoid; }

/* steps & faq */
.step-n { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--red); line-height: 1; }
.step h3 { font-family: var(--sans); font-size: 18px; letter-spacing: 0; margin: 10px 0 6px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--body); }
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final h2 { font-size: 40px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { min-height: 48px; border: 1px solid #D6C4BB; border-radius: 10px; padding: 0 14px; font: inherit; background: #fff; color: var(--ink); }
.hp { position: absolute; left: -5000px; }

/* freebie preview */
.paper { width: 400px; max-width: 100%; aspect-ratio: 8.5 / 11; background: #fff; border-radius: 4px; box-shadow: 0 18px 44px rgba(42,31,31,0.16); overflow: hidden; transform: rotate(-2deg); margin: 0 auto; }
.paper img { width: 100%; height: 100%; object-fit: cover; }

/* home */
.hero-home { padding-top: 80px; padding-bottom: 64px; }
.hero-home h1 { font-size: 56px; max-width: 760px; }
.hero-home .lead { max-width: 620px; margin-top: 18px; }
.product-card { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-decoration: none; color: inherit; }
.product-card img { flex: 1 1 420px; min-width: 0; border-radius: 12px; border: 1px solid var(--line); }
.product-card .info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.product-card h3 { font-size: 30px; }

/* downloads */
.downloads { display: flex; flex-direction: column; gap: 12px; }
.dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.dl b { display: block; }
.dl span { font-size: 14px; color: var(--muted); }

.dl-product { font-family: var(--sans); font-size: 18px; letter-spacing: 0; margin: 12px 0 0; }

/* category pages */
.cat-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 8px 0 40px; }
.cat-hero .text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cat-hero h1 { font-size: 46px; }
.cat-hero figure { flex: 1 1 360px; min-width: 0; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #FFF4B8; border-radius: 999px; font-size: 14px; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #D6C4BB; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--panel); }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; padding: 32px 0 56px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.tile .img { aspect-ratio: 4 / 3; background: var(--cream); position: relative; }
.tile .img img { width: 100%; height: 100%; object-fit: cover; }
.tile .img .tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.tile .img .tag.free { background: var(--green); }
.tile .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.tile h2, .tile h3 { font-family: var(--sans); font-size: 18px; letter-spacing: 0; line-height: 1.3; }
.tile h2 a, .tile h3 a { color: var(--ink); text-decoration: none; }
.tile h2 a::after, .tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile { position: relative; }
.tile .desc { font-size: 14px; color: var(--muted); }
.tile .cost { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 10px; }
.tile .cost b { font-size: 22px; color: var(--red); }
.tile .cost b.free { color: var(--green); }
.tile .cost s { color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; border: 2px dashed var(--line); border-radius: 16px; margin: 32px 0 56px; color: var(--muted); }
.guide { display: flex; flex-wrap: wrap; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.guide .prose { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.75; color: var(--body); }
.guide .prose h2 { font-size: 30px; color: var(--ink); margin-top: 8px; }
.guide .prose h2:first-child { margin-top: 0; }
.related { padding: 40px 0 64px; border-top: 1px solid var(--line); }
.related h2 { font-size: 24px; margin-bottom: 16px; }
.related .list { display: flex; flex-wrap: wrap; gap: 10px; }
.related .list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--panel); border: 1px solid #D6C4BB; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.related .list a:hover { border-color: var(--red); color: var(--red); }
.prod-desc { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.75; color: var(--body); max-width: 760px; }
.prod-desc h2 { font-size: 30px; color: var(--ink); margin-top: 12px; }

/* legal */
.legal { max-width: 760px; padding: 48px 24px 72px; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--body); }
.legal p + p { margin-top: 10px; }

@media (max-width: 640px) {
  .buy h1 { font-size: 34px; }
  .hero-home h1 { font-size: 40px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-title, .final h2 { font-size: 30px; }
  .pages-list { columns: 1; }
  .trust { grid-template-columns: 1fr; }
  .thumb img { width: 96px; height: 64px; }
  .cat-hero h1 { font-size: 34px; }
  .guide .prose h2 { font-size: 26px; }
}
