/* Greentree website styles.
   Sections 1 and 2 are the design system (design-system/tokens.css and
   components/bundle.css) with self-hosted WOFF2 fonts. Section 3 onwards is
   site layout composed from the same tokens. */

/* ---------- 1. Tokens ---------- */
@font-face { font-family: "Source Serif Pro"; src: url("../fonts/source-serif-pro-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("../fonts/source-serif-pro-it.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("../fonts/source-serif-pro-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("../fonts/source-code-pro-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --green-500: #28c83c;
  --green-600: #23b334;
  --green-700: #32863b;
  --green-200: #90e29a;
  --green-050: #f0faf1;
  --charcoal: #333333;
  --ink: #000000;
  --slate: #444444;
  --muted: #666666;
  --paper: #fefefe;
  --mist: #ededed;
  --rule: #e8e8e8;
  --font-serif: "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "Source Code Pro", ui-monospace, Menlo, Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 28px;
  --space-6: 32px;
  --space-7: 40px;
  --radius-none: 0px;
  --radius-sm: 3px;
  --measure: 65ch;

  /* Site additions, derived from the tokens above */
  --text-display: clamp(30px, 2.2vw + 22px, 38.56px);
  --text-h2: clamp(24px, 1vw + 20px, 28px); /* between heading (21px) and display */
  --text-heading: 21px;
  --gutter: var(--space-4);
  --band: calc(var(--space-7) * 2);
  --page: 1120px;
}

/* ---------- 2. Components (from the design system) ---------- */
.gt-root { font-family: var(--font-serif); font-size: 16px; line-height: 24px; color: var(--charcoal); background: var(--paper); }

.gt-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-mono); font-weight: 400; font-size: 15px; letter-spacing: .13em; text-transform: uppercase; line-height: 1.2;
  color: var(--ink); background: var(--green-600); border: 0; border-radius: var(--radius-sm); padding: 20px 34px; text-decoration: none; text-align: center; cursor: pointer; }
.gt-button--sm { font-size: 12px; padding: 12px 30px; }
.gt-button:hover { background: var(--green-500); }
.gt-button:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }

.gt-link { color: var(--green-700); text-decoration: none; font-family: var(--font-serif); }
.gt-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.gt-link:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.gt-link--arrow::after { content: "\00a0\00bb"; }
.gt-on-mist .gt-link, .gt-on-mist a:not(.gt-button) { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }

.gt-eyebrow { font-family: var(--font-mono); font-size: 13px; line-height: 1.3; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0; }

.gt-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-7); }
.gt-service { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.gt-service h3 { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-heading); line-height: 1.3; letter-spacing: .01em; margin: 0; color: var(--charcoal); }
.gt-service p { margin: 0; max-width: var(--measure); }

.gt-quote { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--measure); }
.gt-quote blockquote { margin: 0; font-family: var(--font-serif); font-size: var(--text-heading); line-height: 1.4; letter-spacing: .01em; color: var(--charcoal); }
.gt-quote figcaption { font-family: var(--font-mono); font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.gt-reg { font-family: var(--font-serif); font-size: 13px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--rule); padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); max-width: 72ch; }
.gt-reg p { margin: 0; }
.gt-reg .gt-reg__warning { color: var(--charcoal); font-weight: 600; }
.gt-reg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--space-4); }
body { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: .01em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
:target { scroll-margin-top: var(--space-4); }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--mist { background: var(--mist); }
.band--tight { padding-block: var(--space-7); }
.stack > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-4); }
.display { font-size: var(--text-display); line-height: 1.3; }
.h2 { font-size: var(--text-h2); line-height: 1.3; }
.heading { font-size: var(--text-heading); line-height: 1.3; }
.lead { font-size: var(--text-heading); line-height: 1.5; max-width: var(--measure); }
.measure { max-width: var(--measure); }
.note { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-3); top: -100px; background: var(--paper); color: var(--charcoal); padding: var(--space-2) var(--space-3); z-index: 10; }
.skip:focus { top: var(--space-3); }

/* Running text: links are underlined so they don't rely on colour alone */
.prose > * + * { margin-top: var(--space-3); }
.prose { max-width: var(--measure); }
.prose a:not(.gt-button) { text-decoration: underline; }
.prose h2 { font-size: var(--text-h2); line-height: 1.3; margin-top: var(--space-7); }
.prose h3 { font-size: var(--text-heading); line-height: 1.3; margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-2); }

.section-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }

/* ---------- 4. Header ---------- */
.util { background: var(--mist); font-size: 15px; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 44px; }
.util a { display: inline-block; padding-block: 10px; }

.site-header { position: relative; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--charcoal); text-decoration: none; font-size: 18px; line-height: 1.2; letter-spacing: .01em; }
.brand img { width: 39px; height: 40px; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: var(--space-5); list-style: none; padding: 0; }
.nav-desktop a { color: var(--charcoal); text-decoration: none; padding-block: var(--space-2); }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green-500); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-desktop .nav-phone { color: var(--green-700); white-space: nowrap; }

.nav-mobile summary { list-style: none; cursor: pointer; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--charcoal); padding: 12px 0 12px 12px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: "\00a0+"; }
.nav-mobile[open] summary::after { content: "\00a0\2013"; }
.nav-mobile ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 0; padding: 0 var(--gutter) var(--space-4); background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav-mobile li a { display: block; padding: 12px 0; color: var(--charcoal); text-decoration: none; font-size: var(--text-heading); line-height: 1.3; }
.nav-mobile li a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green-500); text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (min-width: 880px) {
  .util, .nav-mobile { display: none; }
  .nav-desktop { display: block; }
}

/* ---------- 5. Home ---------- */
.hero { padding-block: var(--space-6) var(--band); }
.hero__grid { display: grid; gap: var(--space-7); align-items: center; }
.hero__copy > * + * { margin-top: var(--space-4); }
.hero__copy .gt-eyebrow + h1 { margin-top: var(--space-3); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.hero__actions .gt-link { font-size: var(--text-heading); white-space: nowrap; }
.hero__actions + .note { margin-top: var(--space-3); }

/* Portrait: square photo sitting on two square blocks, after the Cover component */
.portrait { display: grid; grid-template-columns: 112px 1fr; gap: var(--space-3) var(--space-4); align-items: center; }
.portrait__frame { position: relative; }
.portrait__frame img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption { display: flex; flex-direction: column; gap: var(--space-2); }

@media (min-width: 880px) {
  .hero { padding-block: var(--space-7) var(--band); }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: calc(var(--space-7) * 2); }
  .portrait { display: block; }
  .portrait__frame { margin: 0 var(--space-4) var(--space-4) 0; }
  .portrait__frame::before { content: ""; position: absolute; right: calc(var(--space-4) * -1); bottom: calc(var(--space-4) * -1); width: 62%; height: 62%; background: var(--green-500); }
  .portrait__frame::after { content: ""; position: absolute; left: calc(var(--space-4) * -1); top: var(--space-7); width: var(--space-4); height: 45%; background: var(--mist); }
  .portrait figcaption { margin-top: var(--space-7); }
}

.compare { display: grid; gap: var(--space-6) var(--space-7); list-style: none; padding: 0; }
.compare li { font-size: var(--text-heading); line-height: 1.4; padding-top: var(--space-3); position: relative; }
.compare li::before { content: ""; position: absolute; top: 0; left: 0; width: var(--space-7); height: var(--space-1); background: var(--green-500); }
@media (min-width: 600px) { .compare { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .compare { grid-template-columns: repeat(4, 1fr); } }

.reviews { display: grid; gap: var(--space-7); }
.reviews__lead blockquote { font-size: var(--text-h2); line-height: 1.35; }
.reviews__more { display: grid; gap: var(--space-6); }
.reviews__links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-6); }
.reviews__links a { padding-block: var(--space-1); }
@media (min-width: 880px) { .reviews { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--space-7) * 2); align-items: start; } }

.also { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; margin-top: var(--space-7); }
.also a { display: inline-block; padding-block: var(--space-2); }

.story { display: grid; gap: var(--space-7); align-items: center; }
.story__copy > * + * { margin-top: var(--space-3); }
.story__copy .lead { margin-top: var(--space-2); }
@media (min-width: 880px) { .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--space-7) * 2); } }
.proverb { margin-top: var(--band); }
.proverb blockquote { font-style: italic; }

.talk { display: grid; gap: var(--space-7); align-items: start; }
.talk__copy > * + * { margin-top: var(--space-3); }
.talk__routes { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.talk__routes .route { font-size: var(--text-heading); line-height: 1.3; }
.talk__routes a.route { display: inline-block; padding-block: var(--space-1); }
@media (min-width: 880px) { .talk { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: calc(var(--space-7) * 2); } }

/* ---------- 6. Footer ---------- */
.site-footer { padding-block: var(--band) var(--space-7); }
.footer-grid { display: grid; gap: var(--space-7); margin-bottom: var(--space-7); }
.footer-grid h2 { margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li a { display: inline-block; padding-block: 6px; color: var(--charcoal); text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-grid .gt-link { color: var(--green-700); }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1.4fr; } }

.signup p { max-width: 40ch; }
.signup form { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-end; }
.signup .field { flex: 1 1 200px; }
.signup .hp { display: none; }
.signup-status { margin-top: var(--space-3); }
.signup-status:empty { display: none; }
.signup-status:focus { outline: none; }
.signup small { display: block; margin-top: var(--space-3); font-size: 13px; line-height: 1.55; color: var(--muted); }
.signup small a { color: inherit; text-decoration: underline; }

.field label { display: block; margin-bottom: var(--space-1); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--charcoal); background: var(--paper); border: 1px solid var(--muted); border-radius: var(--radius-none); padding: 10px 12px; }

/* ---------- 6b. Inner pages ---------- */
.page-head { padding-block: var(--space-7) var(--band); }
.page-head > .wrap > * + * { margin-top: var(--space-4); }
.page-head .gt-eyebrow + h1 { margin-top: var(--space-3); }
.page-head--tight { padding-bottom: var(--space-7); }
.page-body { padding-bottom: var(--band); }

.split { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: calc(var(--space-7) * 2); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.aside > * + * { margin-top: var(--space-3); }
.aside h2 { margin-top: var(--space-6); }
.aside h2:first-child { margin-top: 0; }
.aside address { font-style: normal; }
.aside a { text-decoration: underline; }

/* Blocks of heading + paragraph, two across on desktop */
.topics { display: grid; gap: var(--space-7); }
.topic > * + * { margin-top: var(--space-3); }
.topic h2, .topic h3 { font-size: var(--text-heading); line-height: 1.3; }
.topic p { max-width: var(--measure); }
.topic p a { text-decoration: underline; }
@media (min-width: 880px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) calc(var(--space-7) * 2); } }

.fee { font-size: var(--text-heading); line-height: 1.4; max-width: var(--measure); padding-left: var(--space-4); border-left: var(--space-1) solid var(--green-500); }
.warning { font-weight: 600; max-width: var(--measure); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.actions .gt-link { font-size: var(--text-heading); }

.charter { list-style: none; padding: 0; display: grid; gap: var(--space-4); max-width: var(--measure); }
.charter li { padding-left: var(--space-5); position: relative; }
.charter li::before { content: ""; position: absolute; left: 0; top: 10px; width: var(--space-3); height: var(--space-1); background: var(--green-500); }

.bio { display: grid; gap: var(--space-6); align-items: start; }
.bio img { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; }
.bio__copy > * + * { margin-top: var(--space-3); }
.bio__copy h3 { font-size: var(--text-heading); line-height: 1.3; margin-top: var(--space-6); }
.bio__copy ul { list-style: none; padding: 0; }
@media (min-width: 700px) { .bio { grid-template-columns: 280px minmax(0, 1fr); gap: calc(var(--space-7) * 2); } }

.faq { max-width: var(--measure); }
.faq section + section { margin-top: var(--space-7); }
.faq h2 { font-size: var(--text-heading); line-height: 1.3; }
.faq section > * + * { margin-top: var(--space-3); }
.faq a { text-decoration: underline; }

.quotes { columns: 1; column-gap: calc(var(--space-7) * 2); }
.quotes .gt-quote { break-inside: avoid; margin-bottom: var(--space-7); }
.quotes .gt-quote blockquote { font-size: 18px; line-height: 1.5; }
@media (min-width: 880px) { .quotes { columns: 2; } }
.quote-lead blockquote { font-size: var(--text-h2); line-height: 1.35; }

/* Shared ownership example: a split bar in place of the old pie chart */
.shares { max-width: var(--measure); }
.shares figcaption { font-size: var(--text-heading); line-height: 1.3; margin-bottom: var(--space-3); }
.shares__bar { display: flex; height: var(--space-7); }
.shares__you { flex: 1; background: var(--green-500); }
.shares__ha { flex: 3; background: var(--slate); }
.shares__key { list-style: none; padding: 0; margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.shares__key li { display: flex; align-items: center; gap: var(--space-2); }
.shares__key li::before { content: ""; width: var(--space-3); height: var(--space-3); background: var(--slate); }
.shares__key li:first-child::before { background: var(--green-500); }

.form-embed { width: 100%; height: 1000px; border: 0; background: var(--paper); scroll-margin-top: var(--space-5); }
.form-embed.is-sent { height: 420px; }
.photo-caption { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: var(--space-2); }

.mt-0 { margin-top: 0 !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-7 { margin-top: var(--space-7) !important; }
.underline { text-decoration: underline; }
.gt-eyebrow a { color: inherit; text-decoration: underline; }
.prose .shares { margin-block: var(--space-7); }

/* ---------- 7. Small screens ---------- */
@media (max-width: 599px) {
  :root { --gutter: 20px; --band: 56px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand img { width: 31px; height: 32px; }
  .gt-button:not(.gt-button--sm) { font-size: 14px; padding: 18px 22px; }
  .lead { font-size: 18px; }
}

@media print {
  .util, .nav-mobile, .nav-desktop, .signup form { display: none; }
  body { color: var(--ink); }
}
