/* Bobble Ventures site template: base styles. Sites override the :root tokens from site.yml (theme:). */
@font-face { font-family: "Inter"; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --accent: #2f5d3a; --accent-ink: #ffffff; --accent-soft: #e9f0ea; --ink: #1f2421; --muted: #5d665f; --paper: #ffffff;
  --panel: #f6f4ef; --line: #e6e2d8; --warn: #9a5200; --warn-bg: #fff6e6; --ok: #2b6a3d; --bad: #a3271b;
  --radius: 14px; --wrap: 72rem; --shadow: 0 1px 2px rgba(20, 20, 10, .05), 0 6px 24px rgba(20, 20, 10, .07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font: 1.0625rem/1.65 var(--font); color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
html, body { overflow-x: clip; }   /* .bleed is 100vw wide, which includes the scrollbar: without this the page scrolls sideways */
body > .wrap { width: 100%; }
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); margin: .5em 0 .3em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); margin: 2.2em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; clip: auto; background: #fff; padding: .5rem 1rem; z-index: 50; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .4rem; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 44rem; }
.prose { max-width: 46rem; }
.note { font-size: .86rem; color: var(--muted); }
.bleed { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
.band { background: var(--panel); padding-block: 2.5rem; margin-block: 2.5rem; }
.band > :first-child { margin-top: 0; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; }
.brand svg { height: 2rem; width: auto; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: .2rem 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--accent); }
.nav a.nav-cta { color: var(--accent-ink); padding: .5rem 1rem; border: 0; margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: .5rem; margin-right: -.5rem; cursor: pointer; }
@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem 1.25rem 1rem; }
  .nav-open .nav { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.nav-cta { margin: .9rem 0 0; text-align: center; border: 0; }
}

/* hero: full-width photo with the title over it */
.hero { position: relative; color: #fff; isolation: isolate; min-height: min(78vh, 40rem); display: flex; align-items: center; text-align: center; }
.hero.small { min-height: min(46vh, 24rem); text-align: left; align-items: flex-end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 10, .25) 0%, rgba(10, 12, 10, .45) 55%, rgba(10, 12, 10, .7) 100%); }
.hero .wrap { padding-block: 3.5rem; width: 100%; }
.hero h1 { color: #fff; margin: .2em auto .35em; max-width: 18ch; font-size: clamp(2.3rem, 7vw, 4rem); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero.small h1 { margin-left: 0; max-width: 24ch; font-size: clamp(1.9rem, 5vw, 3rem); }
.hero .kicker { color: rgba(255, 255, 255, .85); }
.hero .lede { color: rgba(255, 255, 255, .93); margin: 0 auto 1.6rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 40rem; }
.hero.small .lede { margin-left: 0; }
.hero .credit { position: absolute; right: .8rem; bottom: .5rem; font-size: .72rem; color: rgba(255, 255, 255, .75); }
.hero .credit a { color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.hero.small .actions { justify-content: flex-start; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: .7rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem; border: 0; cursor: pointer; font-family: inherit; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.btn.light { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }

/* footer: brand column + link columns + base line. Background = near-black tinted by the site's accent
   (theme `foot` overrides it). */
.site-foot { --foot: #1c1e1d; background: var(--foot); background: var(--foot-bg, color-mix(in srgb, var(--accent) 24%, #121212)); color: rgba(255, 255, 255, .68); font-size: .95rem; padding: 3.2rem 0 2rem; margin-top: 4.5rem; }
.site-foot a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 2.2rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 40rem) { .foot-grid { grid-template-columns: repeat(var(--foot-cols, 3), minmax(0, 1fr)); } }
@media (min-width: 60rem) { .foot-grid { grid-template-columns: minmax(0, 1.5fr) repeat(var(--foot-cols, 3), minmax(0, 1fr)); } .foot-brand { grid-column: auto; } }
.foot-brand p { margin: .9rem 0 0; max-width: 24rem; line-height: 1.6; }
.foot-name { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; color: #fff !important; }
.foot-name:hover { text-decoration: none !important; }
.foot-logo { display: inline-flex; background: #fff; border-radius: 8px; padding: .28rem .32rem; }
.foot-logo svg { height: 1.25rem; width: auto; display: block; }
.foot-cta { margin-top: 1.4rem; font-size: .92rem; }
.site-foot .foot-cta { color: var(--accent-ink); }
.site-foot .foot-cta:hover { text-decoration: none; }
.foot-col h2 { font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: .35rem 0 1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 .62rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.6rem; padding-top: 1.4rem; font-size: .84rem; color: rgba(255, 255, 255, .55); }
.foot-base p { margin: 0; }
/* the operator line stays on one line on a desktop: beside the © when both fit, else on its own row */
.crumbs { font-size: .84rem; color: var(--muted); padding-top: 1rem; }
.crumbs a { color: var(--muted); }
main { padding-bottom: 1rem; }

/* building blocks */
.panel { background: var(--panel); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0 0 1.4rem; }
.panel > :last-child { margin-bottom: 0; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); margin-bottom: 1.5rem; }
.card { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; color: inherit; text-decoration: none; }
.card h3 { margin-top: 0; }
a.card { transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 20, 10, .06), 0 14px 34px rgba(20, 20, 10, .12); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.facts li { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: .8rem 1rem; }
.facts b { display: block; font-size: 1.2rem; font-family: var(--serif); font-weight: 600; }
.facts span { font-size: .86rem; color: var(--muted); }
.warn { background: var(--warn-bg); border-left: 4px solid var(--warn); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.4rem; }
.warn > :last-child { margin-bottom: 0; }
.warn h3 { margin-top: 0; }
.badge { display: inline-block; font-family: var(--font); font-size: .74rem; font-weight: 600; padding: .15rem .6rem; border-radius: 99px; background: var(--panel); white-space: nowrap; vertical-align: middle; }
.badge.free { background: #e3f2e6; color: var(--ok); }
.badge.paid { background: #f4ece4; color: #7a4a22; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.table-wrap table { margin: 0; }
th, td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { background: var(--panel); font-weight: 600; font-size: .86rem; color: var(--muted); }
figure { margin: 0 0 1.5rem; }
figure img { border-radius: var(--radius); display: block; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: .45rem; }
.offer { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.4rem; font-size: .97rem; }
.offer small { color: var(--muted); display: block; margin-top: .3rem; }
details { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: .9rem 1.2rem; margin: 0 0 .7rem; }
summary { font-weight: 600; cursor: pointer; }
details[open] summary { margin-bottom: .5rem; }
@media (min-width: 48rem) { .two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-head, .site-foot, .offer, .hero::after { display: none; } .hero { color: var(--ink); min-height: 0; } }
main figure > img { max-width: min(100%, 48rem); }   /* never wider than the screen (a bare 48rem overrode img { max-width: 100% } on phones) */
