/* GDFIS: built on the Travel With Glen design system (same tokens, type, and components)
   so Glen's sites read as one family. GDFIS-only pieces are marked below. */
:root {
  --forest: #0F4D3A;
  --forest-dark: #0B3A2C;
  --forest-mid: #1C6A52;
  --accent: #B4480C;
  --accent-dark: #8A3B10;
  --peach: #F6C9A6;
  --sand: #F4F1EA;
  --line: #E4E1D8;
  --ink: #12241D;
  --muted: #4A5A53;
  --body: #3A4A43;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --link: #0F4D3A;
  --link-hover: #0B3A2C;
  --prose: #22332C;
  --input-border: #C9C4B8;
  --tile-hover: #ECE7DB;
  --shadow: rgba(18,36,29,.10);
  --t-basics: #2F6FA8; --t-seo: #0F7A5C; --t-email: #7A4C9E; --t-automation: #B4480C; --t-publishing: #A8395A;
  color-scheme: light;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'Source Sans 3', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1714; --surface: #16221D; --sand: #121D19; --line: #2A3A33; --ink: #E8EFEB; --muted: #A3B3AB; --body: #C2CFC8;
    --link: #7FD1B0; --link-hover: #A6E3CA; --prose: #D5DFDA; --input-border: #3A4C44; --tile-hover: #1C2A24; --shadow: rgba(0,0,0,.45);
    --t-basics: #8DBCE6; --t-seo: #7FD1B0; --t-email: #C7A6E3; --t-automation: #F2A26B; --t-publishing: #EE9BB4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1714; --surface: #16221D; --sand: #121D19; --line: #2A3A33; --ink: #E8EFEB; --muted: #A3B3AB; --body: #C2CFC8;
  --link: #7FD1B0; --link-hover: #A6E3CA; --prose: #D5DFDA; --input-border: #3A4C44; --tile-hover: #1C2A24; --shadow: rgba(0,0,0,.45);
  --t-basics: #8DBCE6; --t-seo: #7FD1B0; --t-email: #C7A6E3; --t-automation: #F2A26B; --t-publishing: #EE9BB4;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; z-index: 20; } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; display: block; }
.site-footer .brand-logo { width: 44px; height: 44px; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--link); }
.nav .nav-cta { color: #fff; background: var(--accent); padding: 10px 18px; border-radius: 999px; }
.nav .nav-cta:hover { color: #fff; background: var(--accent-dark); }
.theme-toggle { font: inherit; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--link); color: var(--link); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; line-height: 1.2; font-family: var(--text); font-size: 17px; cursor: pointer; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-dark); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Type */
.h-display { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; }
.h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 4.4vw, 42px); }
.lede { margin: 0; font-size: 19px; color: var(--body); }
h1, h2, h3 { font-family: var(--display); }

/* Sections */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-tight { padding-top: 40px; padding-bottom: 24px; }
.section-sand { background: var(--sand); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.head-row p { margin: 10px 0 0; color: var(--muted); max-width: 560px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--forest); color: #fff; }
.hero .wrap { padding-top: 72px; padding-bottom: 64px; }
.hero p { margin: 0; font-size: 20px; color: #DCEAE3; max-width: 540px; }
.hero-kicker { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--peach) !important; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 8px; font-size: 15px; color: #DCEAE3; }
.stats strong { display: block; font-family: var(--display); font-size: 26px; color: #fff; }

/* GDFIS: asset ladder sits where Travel With Glen puts its hero photo */
.hero-panel { position: relative; border-radius: 20px; overflow: hidden; background: var(--forest-mid); padding: 32px 30px 26px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(28rem 16rem at 100% 0%, rgba(246, 201, 166, .22), transparent 70%); pointer-events: none; }
.hero-panel > * { position: relative; }
.hero-panel .cap { font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff; margin: 0 0 18px; }
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: rung; position: relative; }
.ladder::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 2px; background: rgba(255,255,255,.25); }
.ladder li { counter-increment: rung; position: relative; padding: 10px 0 10px 58px; }
.ladder li::before { content: counter(rung); position: absolute; left: 0; top: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 16px var(--display); color: var(--forest); background: #fff; }
.ladder li:last-child::before { background: var(--accent); color: #fff; }
.ladder b { display: block; font: 700 18px/1.25 var(--display); color: #fff; }
.ladder span { font-size: 15px; color: #DCEAE3; }
.hero-panel figcaption { margin-top: 18px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.hero-panel figcaption span { display: block; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ladder li { opacity: 0; transform: translateY(6px); animation: rise .5s ease-out forwards; }
  .ladder li:nth-child(2) { animation-delay: .12s; } .ladder li:nth-child(3) { animation-delay: .24s; } .ladder li:nth-child(4) { animation-delay: .36s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Strip under the hero (same pattern as the Travel With Glen booking strip) */
.booking { background: var(--sand); padding: 32px 0; }
.booking-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.booking-card strong { font-family: var(--display); font-size: 22px; display: block; }
.booking-card span { color: var(--muted); }
.booking-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { text-decoration: none; color: var(--ink); background: var(--sand); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; border-top: 4px solid var(--tc, var(--forest)); }
.tile:hover { background: var(--tile-hover); color: var(--ink); }
.tile strong { font-family: var(--display); font-size: 21px; }
.tile span { color: var(--muted); font-size: 15px; }
.t-basics { --tc: var(--t-basics); } .t-seo { --tc: var(--t-seo); } .t-email { --tc: var(--t-email); }
.t-automation { --tc: var(--t-automation); } .t-publishing { --tc: var(--t-publishing); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { text-decoration: none; color: var(--ink); background: var(--surface); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; }
.card:hover { color: var(--ink); box-shadow: 0 10px 30px var(--shadow); transform: translateY(-2px); }
.card-band { height: 6px; background: var(--tc); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body strong { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.card-d { color: var(--body); font-size: 16px; flex: 1; }
.card-body small { color: var(--muted); font-size: 14px; }
.card-big { background: var(--forest); color: #fff; border-color: transparent; }
.card-big:hover { color: #fff; }
.card-big .card-band { background: var(--accent); }
.card-big .card-body { padding: 30px; gap: 12px; }
.card-big strong { font-size: clamp(24px, 3vw, 32px); }
.card-big .card-d { color: #DCEAE3; font-size: 18px; }
.card-big small { color: #B5CCC1; }
.card-big .card-d { flex: 0 0 auto; }
.card-big .card-cta { align-self: flex-start; margin-top: auto; }
.card-big small { margin-bottom: 8px; }
.card-big .chip { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
@media (min-width: 900px) { .cards-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards-feature .card-big { grid-column: span 2; grid-row: span 2; } }
.chip { align-self: flex-start; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--surface); border: 1px solid var(--line); color: var(--tc, var(--link)); padding: 3px 12px; border-radius: 999px; }

/* Panels */
.panel { background: var(--sand); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.section-sand .panel { background: var(--surface); border: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 26px; }
.panel p { margin: 0; color: var(--body); }

/* GDFIS: freedom number calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.calc form { padding: 32px; display: grid; gap: 18px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 700; font-size: 15px; }
.money { display: flex; align-items: center; border: 1px solid var(--input-border); border-radius: 12px; background: var(--surface); padding-left: 14px; }
.money:focus-within { border-color: var(--forest-mid); box-shadow: 0 0 0 3px rgba(28,106,82,.18); }
.money i { font-style: normal; color: var(--muted); font-weight: 600; }
.money input { flex: 1; min-width: 0; font: 600 19px var(--text); padding: 13px 14px 13px 6px; border: 0; background: transparent; color: var(--ink); }
.money input:focus { outline: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--input-border); }
.seg input { position: absolute; opacity: 0; }
.seg label { text-align: center; padding: 10px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--body); }
.seg input:checked + label { background: var(--forest); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--accent); }
.calc .result { background: var(--forest); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.calc output { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 8vw, 84px); line-height: 1; letter-spacing: -.03em; }
.calc .unit { font-family: var(--display); font-weight: 700; font-size: 22px; }
.calc .explain { color: #DCEAE3; margin: 8px 0 18px; }
.calc .note { font-size: 13px; color: #B5CCC1; margin: 14px 0 0; }

/* Article */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--accent); }
.article-head, .page-hero { background: var(--sand); padding: 56px 0 40px; }
.article-head .wrap > *, .page-hero .wrap > * { max-width: 860px; }
.article-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 16px 0 14px; }
.page-hero .lede { margin-top: 14px; }
.meta { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 18px 0 0; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: #fff; font: 800 13px var(--display); flex: none; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.post-grid { display: grid; grid-template-columns: 230px minmax(0, 820px); gap: 56px; justify-content: center; padding-top: 40px; padding-bottom: 32px; }
.toc { position: sticky; top: 96px; font-size: 15px; }
.toc-h { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.disc-inline { font-size: 15px; color: var(--body); background: var(--sand); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; padding: 14px 18px; margin: 0 0 28px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--prose); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 1.8em 0 .6em; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 23px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose mark { background: color-mix(in srgb, var(--peach) 70%, transparent); color: inherit; padding: .05em .2em; border-radius: 4px; }
.prose blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; color: var(--body); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--sand); font-family: var(--display); }
.author { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 24px; border-radius: 18px; background: var(--sand); color: var(--body); font-size: 16px; }
.author p { margin: 0; }
.related { padding: 56px 0 72px; background: var(--sand); }
.page { max-width: 868px; padding-top: 40px; padding-bottom: 24px; }

/* Guides page */
.search { display: block; max-width: 620px; margin: 24px 0 16px; }
.search input { width: 100%; font: 400 18px var(--text); padding: 14px 18px 14px 48px; border-radius: 999px; border: 1px solid var(--input-border); color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%234A5A53' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 18px 50%; }
.search input:focus { outline: none; border-color: var(--forest-mid); box-shadow: 0 0 0 3px rgba(28,106,82,.18); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: 600 15px var(--text); padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--link); }
.filter.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.empty { color: var(--muted); padding: 24px 0; }

/* Newsletter */
.signup-band { padding: 0 0 72px; }
.related + .signup-band { background: var(--sand); }
.cta-box { background: var(--forest); color: #fff; border-radius: 18px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.cta-box strong { font-family: var(--display); font-size: 24px; display: block; margin-bottom: 4px; }
.cta-box span { color: #DCEAE3; max-width: 640px; display: block; }

/* Newsletter form (Netlify Forms) */
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 380px; max-width: 520px; }
.signup-form input[type=email] { flex: 1 1 220px; font: 400 17px var(--text); padding: 14px 18px; border-radius: 999px; border: 0; color: #12241D; background: #fff; min-width: 0; }
.signup-form input[type=email]:focus { outline: 3px solid var(--peach); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #DCEAE3; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; font-size: 15px; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #fff; color: var(--forest); }
.site-footer strong { color: #fff; }
.site-footer a { color: #DCEAE3; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #1F5443; padding-top: 18px; padding-bottom: 28px; font-size: 14px; color: #B5CCC1; }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: none; }
}
@media (max-width: 720px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc form, .calc .result { padding: 24px; }
  .nav { gap: 6px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
