/*
  Telosphere Holdings: stylesheet.

  STYLE NOTES (from the "Telosphere Holdings" design)
  - Mood: classical and calm. Cream paper, deep forest green (#0A2C06) and METALLIC gold as the
    dominant accent. The metal effect is a blend of four gold tokens (shadow, base, light,
    shine) used on buttons, rules, the quote, the acorn and the sphere. Small text on cream
    uses --accent, a deeper flat gold, so it stays readable. Generous white space, large
    serif headings. Colors updated 2026-11-04 at Brindie's request.
  - Fonts: Cormorant Garamond (headings, Google Fonts), Work Sans (body and labels).
    Noto Serif is a fallback because Cormorant has no Greek letters.

  RULE: colors are set ONLY in the :root blocks below. Never write a hex color anywhere else.
  Keep --ui a sans-serif even though --display is a serif.
*/

:root {
  --bg: #F4F1E8;
  --ink: #10231A;
  --line: #D8D2C2;
  --muted: #3F453A;
  --caption: #4A4F44;
  --label: #5A5F53;
  --card: #FBF9F3;
  --alt: #ECE7DA;
  --accent: #7A5C1C;        /* deep flat gold for small text on cream (5.5:1) */
  --accent-hover: #4F3B10;
  --on-accent: #FBF9F3;
  --on-gold: #10231A;       /* text on gold buttons (4.9:1 or better across the gradient) */

  --forest: #0A2C06;        /* deep forest green, used for every green surface */
  --forest-line: #3F5E37;
  --on-forest: #ECE6D6;
  --on-forest-muted: #C9C3B2;
  /* Metallic gold: four tones blended into a sheen. --gold alone is the flat fallback
     and is used for gold text on green (5.0:1 on --forest). */
  --gold-shadow: #8A6A25;
  --gold-low: #A9873F;
  --gold: #C9A65A;
  --gold-light: #E3C77E;
  --gold-shine: #F3E3AE;
  /* sheen for lines and rules: dark ends, bright centre */
  --gold-sheen: linear-gradient(90deg, var(--gold-shadow), var(--gold) 25%, var(--gold-shine) 50%, var(--gold) 75%, var(--gold-shadow));
  /* sheen for buttons: lit from above, like a bevelled metal plate */
  --gold-plate: linear-gradient(180deg, var(--gold-shine), var(--gold-light) 22%, var(--gold) 58%, var(--gold-low));
  --gold-plate-hover: linear-gradient(180deg, var(--gold-shine), var(--gold-light) 40%, var(--gold) 85%, var(--gold));
  /* sheen for text: stays light enough to read on green */
  --gold-text: linear-gradient(100deg, var(--gold) 20%, var(--gold-shine) 50%, var(--gold) 80%);
  --soft-shadow: rgb(0 0 0 / 0.12);
  --footer: var(--forest);
  --on-footer: #B9B4A3;

  --display: "Cormorant Garamond", "Noto Serif", Garamond, Georgia, serif;
  --ui: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12160F;
    --ink: #ECE6D6;
    --line: #3A4234;
    --muted: #C2BCAB;
    --caption: #B4AE9D;
    --label: #A8A291;
    --card: #1A1F16;
    --alt: #171C13;
    --accent: #C9A65A;
    --accent-hover: #E3C77E;
    --on-accent: #12160F;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 16px;
  background: var(--ink); color: var(--bg); border-radius: 2px;
}
.skip-link:focus { top: 8px; }

.display { font-family: var(--display); font-weight: 500; margin: 0; }
.eyebrow {
  margin: 0 0 16px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.eyebrow--on-forest { color: var(--gold); }
.lede { margin: 24px 0 0; max-width: 620px; font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 2px solid var(--gold); border-image: var(--gold-sheen) 1; }
.site-header__inner {
  padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 30px; height: 40px; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0.22em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Buttons */
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  font-family: var(--ui); font-weight: 500; font-size: 15px; text-decoration: none; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
}
.btn--primary, .btn--accent {
  background: var(--gold); background-image: var(--gold-plate); color: var(--on-gold);
  border-color: var(--gold-low);
  box-shadow: inset 0 1px 0 var(--gold-shine), 0 1px 2px var(--soft-shadow);
}
.btn--primary:hover, .btn--accent:hover { background-image: var(--gold-plate-hover); color: var(--on-gold); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }

/* Hero */
.hero {
  padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero__title { font-size: clamp(48px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.01em; }
.hero__visual { flex: 1 1 360px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__visual figcaption { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--caption); text-align: center; }

/* Armillary sphere (inline SVG in _layouts/home.html) */
.sphere { display: block; width: 100%; max-width: 460px; height: auto; overflow: visible; }
.sphere__line { fill: none; stroke: var(--ink); }
.sphere__edge { fill: none; stroke: var(--ink); }
.sphere__fill { fill: none; stroke: var(--bg); }
.sphere__edge--gold { stroke: var(--gold-shadow); }
.sphere__gold { fill: none; stroke: var(--gold); stroke: url(#metal-band) var(--gold); }
.sphere__gold--ring { stroke: url(#metal-ring) var(--gold); }
.sphere__collar { fill: var(--gold); fill: url(#metal-collar) var(--gold); stroke: var(--gold-shadow); }
.sphere__bead { fill: var(--gold); fill: url(#metal-bead) var(--gold); stroke: var(--gold-shadow); }
.sphere__core { fill: var(--forest); stroke: var(--gold); stroke: url(#metal-rim) var(--gold); }
.sphere__core-ring { fill: none; stroke: var(--gold); opacity: 0.55; }
.sphere__acorn { fill: var(--gold); fill: url(#metal-acorn) var(--gold); }
/* gradient stops for the metallic gold (colors from :root) */
.gs-shadow { stop-color: var(--gold-shadow); }
.gs-low { stop-color: var(--gold-low); }
.gs-base { stop-color: var(--gold); }
.gs-light { stop-color: var(--gold-light); }
.gs-shine { stop-color: var(--gold-shine); }
.sphere__ticks { fill: none; stroke: var(--ink); opacity: 0.6; }
/* every ring turns except the solid gold band; speeds and directions differ so it feels like an instrument */
.sphere__spin { transform-box: view-box; transform-origin: 200px 200px; animation: sphere-spin 140s linear infinite; }
.sphere__spin--frame { animation-duration: 300s; animation-direction: reverse; }
.sphere__spin--a { animation-duration: 90s; }
.sphere__spin--b { animation-duration: 65s; animation-direction: reverse; }
@keyframes sphere-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sphere__spin { animation: none; } }

/* Sections */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.section.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.section--alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--forest { background: var(--forest); color: var(--on-forest); }
.section__title { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; max-width: 760px; }
.section__intro { margin: 24px 0 0; max-width: 640px; font-size: 18px; color: var(--muted); }
.section--forest .section__intro { color: var(--on-forest-muted); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.section__head > div { flex: 1 1 420px; min-width: 0; }
.section__head .section__intro { flex: 1 1 360px; max-width: 460px; margin: 0; }

.triptych { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.triptych__item { border-top: 1px solid var(--gold); border-image: var(--gold-sheen) 1; padding-top: 28px; }
.triptych__item h3 { font-weight: 600; font-size: 30px; margin: 8px 0 12px; }
.triptych__item p { margin: 0; color: var(--on-forest-muted); }
.triptych__item .triptych__greek { font-family: var(--display); font-size: 22px; color: var(--gold); margin: 0; }

.quote { margin: 88px 0 0; padding: 0; text-align: center; }
.quote--solo { margin-top: 0; }
.quote p { font-style: italic; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; margin: 0; }
.section--forest .quote p { color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section--forest .quote p {
    background-image: var(--gold-text); -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.quote footer { margin-top: 14px; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-forest-muted); }

.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-weight: 600; font-size: 30px; line-height: 1.1; }
.card p { margin: 0; color: var(--muted); }
.card__link { margin-top: auto; padding: 10px 0; font-weight: 500; font-size: 15px; }

.approach { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.approach__num { font-size: 40px; line-height: 1; color: var(--accent); margin: 0 0 8px; }
.approach h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; }
.approach p { margin: 0; color: var(--muted); }

/* Call to action */
.cta {
  padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px);
  display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; align-items: center;
}
.cta__text { flex: 1 1 460px; min-width: 0; }
.cta h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; }

/* Inner pages */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head__title { font-size: clamp(42px, 6vw, 76px); line-height: 1.05; max-width: 900px; }

.prose-wrap { padding-bottom: clamp(48px, 7vw, 96px); }
.prose { max-width: 700px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.prose em { font-family: var(--display); font-size: 1.15em; color: var(--ink); }

.glossary { margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.glossary__item { border-top: 1px solid var(--line); padding-top: 20px; }
.glossary dt { margin: 0; }
.glossary dd { margin: 8px 0 0; color: var(--muted); }
.glossary__greek { font-family: var(--display); font-size: 28px; color: var(--accent); margin-right: 8px; }
.glossary__word { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }

.service-list { padding-bottom: clamp(32px, 5vw, 64px); }
.service { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 40px 0; border-top: 1px solid var(--line); }
.service__intro { flex: 1 1 340px; min-width: 0; }
.service__num { font-size: 40px; line-height: 1; color: var(--accent); margin: 0 0 8px; }
.service__intro h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.service__intro p { margin: 12px 0 0; color: var(--muted); }
.service__points { flex: 1 1 340px; min-width: 0; margin: 0; padding: 0 0 0 20px; color: var(--muted); }
.service__points li { padding: 4px 0; }

/* First principles (Gallery page) */
.canon { padding-bottom: clamp(48px, 7vw, 96px); }
.canon__list { list-style: none; margin: 0; padding: 0; max-width: 960px; }
.canon__item {
  display: grid; grid-template-columns: minmax(72px, 120px) minmax(0, 1fr); gap: 12px 40px;
  padding: clamp(40px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.canon__item:first-child { border-top: 1px solid var(--gold); border-image: var(--gold-sheen) 1; }
.canon__num { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--accent); }
.canon__greek { margin: 0; font-family: var(--display); font-size: 24px; color: var(--accent); }
.canon__title { margin: 6px 0 4px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.canon__gloss { margin: 0 0 20px; font-family: var(--display); font-style: italic; font-size: 19px; color: var(--caption); }
.canon__text { margin: 0; max-width: 660px; font-size: 18px; }
.canon__practice {
  margin: 20px 0 0; max-width: 660px; padding-left: 16px; border-left: 2px solid var(--gold);
  font-size: 15px; color: var(--muted);
}
.canon__practice span {
  display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
}
.canon__epigraph { margin: 0 0 20px; padding: 0; }
.canon__epigraph p { margin: 0; font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; }
.canon__epigraph footer { margin-top: 6px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); }
@media (max-width: 640px) { .canon__item { grid-template-columns: minmax(0, 1fr); } }

.causes__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.causes__item { border-top: 1px solid var(--gold); border-image: var(--gold-sheen) 1; padding-top: 24px; }
.causes__greek { margin: 0; font-family: var(--display); font-size: 22px; color: var(--gold); }
.causes__item h3 { margin: 8px 0 4px; font-size: 28px; font-weight: 600; }
.causes__question { margin: 0 0 10px; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--on-forest); }
.causes__item p:last-child { margin: 0; color: var(--on-forest-muted); }
.causes__note {
  margin: 72px auto 0; max-width: 780px; text-align: center; font-style: italic;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.3; color: var(--gold);
}

.creed { text-align: center; }
.creed__heading { margin: 0 0 24px; }
.creed__list { list-style: none; margin: 0 auto; padding: 0; font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.5; }
.creed__list li::before { content: ""; display: block; width: 28px; margin: 10px auto; border-top: 1px solid var(--gold); }
.creed__list li:first-child::before { display: none; }

.faq { max-width: 820px; margin-left: 0; padding-bottom: clamp(32px, 5vw, 64px); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; padding: 22px 0; min-height: 44px; list-style: none; display: flex;
  justify-content: space-between; gap: 16px; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--ui); font-weight: 400; color: var(--accent); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0 0 24px; max-width: 680px; color: var(--muted); }

.contact { padding-bottom: clamp(64px, 9vw, 120px); display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.contact__details { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail__label { margin: 0 0 4px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.detail__value { margin: 0; font-family: var(--display); font-size: 26px; overflow-wrap: anywhere; }
.form { flex: 1 1 420px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: clamp(24px, 4vw, 40px); }
.form h2 { font-size: 32px; margin-bottom: 20px; }
.field { margin: 0 0 20px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--forest-line); border-radius: 2px;
}
.field textarea { resize: vertical; }

/* Footer */
.site-footer { background: var(--footer); color: var(--on-footer); font-size: 14px; border-top: 3px solid var(--gold); border-image: var(--gold-sheen) 1; }
.site-footer a { color: var(--on-footer); }
.site-footer a:hover { color: var(--gold); }
.site-footer__inner { padding-top: 40px; padding-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; color: var(--on-forest); }
.site-footer__brand img { display: block; width: 24px; height: 32px; }
.site-footer__brand .brand__name { font-size: 20px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__nav a { padding: 10px 0; text-decoration: none; }
.site-footer__contact { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__legal { padding-bottom: 40px; }
.site-footer__legal p { margin: 8px 0 0; max-width: 760px; }
