:root {
  --bg: #ffffff;
  --soft: #f3f8fc;
  --tint: #e8f4fb;
  --ink: #2d2f33;
  --muted: #5d6670;
  --line: #e2e8ee;
  --sky: #2b9fd9;      /* logo blue */
  --blue: #1572b3;     /* buttons/links: readable on white and under white text */
  --blue-dark: #0f5a8f;
  --radius: 12px;
  --head: 'Ubuntu', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 4px 16px rgba(16, 42, 67, .06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 46px; height: 42px; flex: none; }
.brand .words { display: flex; flex-direction: column; line-height: 1; }
.brand .name { font: 700 26px/1 var(--head); letter-spacing: -.01em; color: #2f3033; }
.brand .tag { font: italic 400 11px/1 var(--head); letter-spacing: .32em; color: #2f3033; margin-top: 5px; padding-left: 2px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--ink); text-decoration: none; font: 500 15px/1 var(--head); }
.site-header nav a:hover { color: var(--blue); }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; background: var(--soft); border-top: 1px solid var(--line); padding: 44px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0 0 8px; max-width: 700px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand .name { font-size: 20px; }
.site-footer .brand .mark { width: 36px; height: 33px; }
.site-footer .fine { font-size: 13px; }
.site-footer a { color: var(--muted); }

.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; color: #23262b; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.6vw, 46px); margin: 14px 0 10px; }
h2 { font-size: clamp(24px, 3vw, 30px); margin: 52px 0 14px; }
h3 { font-size: 21px; font-weight: 500; margin: 30px 0 8px; }
.byline { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.lede { font-size: 19px; color: var(--muted); }
.prose { max-width: 760px; }
.prose p, .prose li { max-width: 70ch; }
.prose li { margin-bottom: 6px; }

/* ---------- home ---------- */
.home main > article { padding-top: 0; }
.hero { position: relative; margin: 0 -20px; padding: 72px 20px 64px; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 760px; }
.hero .eyebrow { display: inline-block; font: 500 13px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 56px); margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lede { margin: 0 0 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.trust { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.trust div { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.trust strong { display: block; font: 700 17px/1.3 var(--head); color: #23262b; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 15px; }

/* ---------- cards ---------- */
.cards { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: #fff;
  border: 1px solid var(--line); border-top: 4px solid var(--sky); border-radius: var(--radius); color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,42,67,.08), 0 12px 28px rgba(16,42,67,.10); color: var(--ink); }
.card-kicker { font: 500 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.card-title { font: 700 21px/1.3 var(--head); color: #23262b; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card-more { margin-top: auto; padding-top: 6px; font: 500 15px/1 var(--head); color: var(--blue); }

/* ---------- guide content ---------- */
.idea { border-top: 1px solid var(--line); padding-top: 6px; }
.idea h3 { margin-top: 22px; }
.meta { font-size: 14px; color: var(--muted); margin-top: -4px; }
.meta b { color: var(--ink); font-weight: 600; }

.ours { background: var(--tint); border: 1px solid #cfe6f5; border-radius: var(--radius); padding: 24px 26px; margin: 28px 0; }
.ours .tag { display: inline-block; font: 500 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--blue); border-radius: 999px; padding: 6px 10px; }
.ours h3 { margin-top: 12px; }
.ours p:last-child { margin-bottom: 0; }

.btn { display: inline-block; background: var(--blue); color: #fff; padding: 12px 22px; border-radius: 8px;
  font: 500 16px/1 var(--head); text-decoration: none; }
.btn:hover { background: var(--blue-dark); color: #fff; }

.callout { background: var(--soft); border-left: 4px solid var(--sky); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 22px; margin: 24px 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--soft); }
th { font: 500 14px/1.3 var(--head); background: var(--tint); color: #23262b; }

/* affiliate links */
.shop { display: inline-block; margin-top: 2px; font-weight: 600; font-size: 15px; }
.disclosure { font-size: 13px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: -8px 0 24px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 64px; }
  .brand .mark { width: 36px; height: 33px; }
  .brand .name { font-size: 21px; }
  .brand .tag { font-size: 9px; letter-spacing: .26em; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 14px; }
  .hero { padding: 44px 20px 40px; }
}
@media (max-width: 400px) {
  .site-header nav a[href="/about"] { display: none; }
}

/* real logo image */
.brand .logo { display: block; height: 50px; width: auto; }
.site-footer .brand .logo { height: 40px; }
@media (max-width: 640px) { .brand .logo { height: 38px; } }
@media (max-width: 400px) { .brand .logo { height: 32px; } }
.ours.feature { margin-top: 40px; padding: 30px 32px; }
.ours.feature h2 { margin: 14px 0 10px; }

/* star photo inside "We make this" boxes */
.ours { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
.ours-img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.ours-body .tag { margin-top: 2px; }
.ours.feature { grid-template-columns: 300px 1fr; align-items: center; }
@media (max-width: 640px) { .ours, .ours.feature { grid-template-columns: 1fr; } .ours-img { max-width: 320px; } }

/* footer */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-head { font: 700 15px/1.2 var(--head); color: #23262b; margin-bottom: 10px; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 6px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--blue); text-decoration: underline; }
.foot-fine { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* guide header photo */
.guide-hero { margin: 4px 0 28px; }
.guide-hero img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; border-radius: var(--radius); }

/* keep anchored headings clear of the sticky header */
[id] { scroll-margin-top: 96px; }
