/*
 * Trailhead: fianna.ca's own palette and type. White ground, the logo's
 * forest green, the site's leaf green for titles and rules, sage bands, black
 * buttons, Cinzel over Source Sans. The leaf green is taken a shade deeper for
 * titles so it clears contrast on white; the brighter one stays for rules,
 * dots and hover, where it is decoration rather than words.
 */
:root {
  --bg: #fff; --bg-alt: #dfe3cf; --card: #fff; --ink: #474747; --muted: #5e5e5e; --title: #2b2b2b;
  --heading: #5f8a17; --accent: #80b324; --accent-ink: #14210b; --btn-bg: #111; --btn-ink: #fff;
  --line: #dcdcd4; --logo-ink: #203729; --hdr-bg: rgba(255, 255, 255, .97); --announce-bg: #fff; --announce-ink: #2c2c2c;
  --ftr-bg: #f5f5f1; --ftr-ink: #474747; --art: #93b25a;
  --tone-0: #d0793c; --tone-1: #6f8f2d; --tone-2: #3f7f95; --tone-3: #5f8a17; --tone-4: #b3871a; --tone-5: #8b5c9c;
  /* The words are set on a typewriter (Sydney, 2026-10-18), Cinzel stays for
     titles. A typewriter face runs wide, so the body comes down a pixel. */
  --font-body: 'Courier Prime', 'Courier New', Courier, monospace;
}
body { font-size: 16px; line-height: 1.7 }

.rulehead__title { font-weight: 400 }

/* Home: the hero ─────────────────────────────────────────────────────────── */
.th-hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: end; overflow: hidden; color: #fff; isolation: isolate }
.th-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden }
.th-hero__par { position: absolute; inset: -10% 0; }
.th-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: th-drift 26s ease-in-out infinite alternate }
@keyframes th-drift { from { transform: scale(1.02) translateX(0) } to { transform: scale(1.1) translateX(-2%) } }
/* The slides lie one on another and the one showing fades up over the last. */
.th-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease }
.th-hero__slide.is-on { opacity: 1 }
.th-hero__dots { position: absolute; right: clamp(16px, 4vw, 40px); bottom: 26px; z-index: 3; display: flex; gap: 10px }
.th-hero__dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); background: transparent; cursor: pointer; transition: background .3s, transform .3s }
.th-hero__dot:hover { transform: scale(1.2) }
.th-hero__dot.is-on { background: #fff }
.th-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px }
/* The editor's way in to the photographs, which the words cover. */
.th-hero__edit { position: absolute; top: 18px; right: 18px; z-index: 3; font: 600 .82rem/1 system-ui, sans-serif; letter-spacing: .02em; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .7); background: rgba(20, 30, 14, .62); color: #fff; cursor: pointer; backdrop-filter: blur(4px) }
.th-hero__edit:hover { background: rgba(20, 30, 14, .85) }
.th-hero__edit::before { content: '✎ ' }
.th-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 8, .05) 0%, rgba(10, 20, 8, .12) 45%, rgba(10, 20, 8, .62) 100%) }
.th-hero__in { position: relative; z-index: 2; padding-block: 120px clamp(70px, 10vw, 120px); text-align: center }
.th-hero__kicker { font-size: calc(.82rem * var(--fce-k, 1)); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, .4) }
.th-hero__title { font-family: var(--font-display); color: #fff; font-size: calc(clamp(2.2rem, 5.4vw, 4.4rem) * var(--fce-k, 1)); line-height: 1.08; max-width: 18ch; margin: 0 auto; text-shadow: 0 2px 30px rgba(0, 0, 0, .35) }
.th-hero__btns { justify-content: center; margin-top: 30px }
.btn.light { border-color: #fff; color: #fff }
.btn.primary.light { background: #fff; color: #111 }
.btn.primary.light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.btn.ghost.light:hover { background: #fff; color: #111 }
.th-hero__cue { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 14px }
.th-hero__cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: th-cue 1.8s ease-in-out infinite }
@keyframes th-cue { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }

/* Home: welcome, with two fronds drawing in at the margins ──────────────── */
.th-welcome { overflow: hidden }
.th-welcome p { font-size: calc(1.12rem * var(--fce-k, 1)) }
.th-welcome__fern { position: absolute; top: 60px; width: clamp(80px, 12vw, 150px); height: auto }
.th-welcome__fern--l { left: max(10px, calc(50% - 640px)); transform: rotate(-8deg) }
.th-welcome__fern--r { right: max(10px, calc(50% - 640px)); top: auto; bottom: 30px; transform: rotate(10deg) scaleX(-1) }
@media (max-width: 900px) { .th-welcome__fern { opacity: .35 } }

.th-lands { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #fff }
.th-lands__media { position: relative; overflow: hidden; min-height: 460px }
.th-lands__media > div { position: absolute; inset: -8% 0 }
.th-lands__media img { width: 100%; height: 100%; object-fit: cover }
.th-lands__text { padding: clamp(40px, 6vw, 90px) clamp(20px, 6vw, 90px); align-self: center }
.th-lands__trail { width: 100%; max-width: 380px; margin-bottom: 18px }
.th-lands__cedar { width: 170px; height: auto; margin-top: 10px }
@media (max-width: 860px) { .th-lands { grid-template-columns: 1fr } .th-lands__media { min-height: 0; aspect-ratio: 16 / 10 } }

.th-values__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) }
.th-values__grid li { text-align: center; display: grid; justify-items: center; align-content: start; gap: 10px }
.th-values__title { font-family: var(--font-display); font-size: calc(1.5rem * var(--fce-k, 1)); color: var(--title) }
.th-values__grid p { color: #3f443a; margin: 0 }
.th-values__fern { position: absolute; left: -24px; bottom: -34px; width: 120px; height: auto; transform: rotate(18deg); opacity: .8 }
@media (max-width: 820px) { .th-values__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto } }

.th-season__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px) }
.th-prog { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: transform .5s var(--ease-out), box-shadow .5s }
.th-prog:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -34px rgba(20, 40, 10, .55) }
.th-prog__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden }
.th-prog__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out) }
.th-prog:hover .th-prog__photo img { transform: scale(1.06) }
.th-prog__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1 }
.th-prog__title { font-family: var(--font-display); font-size: 1.7rem; color: var(--heading) }
.th-prog__title a { text-decoration: none }
.th-prog__when { color: var(--muted); margin: 0 }
.th-prog .btns { margin-top: auto; padding-top: 12px }
.th-season__more { margin-top: 36px }
@media (max-width: 900px) { .th-season__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto } }

.th-quote { position: relative; overflow: hidden; color: #fff; isolation: isolate; padding-block: clamp(80px, 12vw, 150px) }
.th-quote__media { position: absolute; inset: 0; z-index: -2; overflow: hidden }
.th-quote__media > div { position: absolute; inset: -12% 0 }
.th-quote__media img { width: 100%; height: 100%; object-fit: cover }
.th-quote::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .62) }
.th-quote__in { margin: 0 auto; text-align: center; position: relative; z-index: 2 }
.th-quote__mark { width: 60px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2; margin: 0 auto 20px }
.th-quote blockquote { margin: 0 }
.th-quote blockquote p { font-size: calc(clamp(1.05rem, 1.8vw, 1.3rem) * var(--fce-k, 1)); font-style: italic; line-height: 1.7 }
.th-quote figcaption { margin-top: 18px; font-weight: 600; letter-spacing: .06em }
.th-quote__slide { margin: 0 }
/* More than one: they lie in one cell, so the band is as tall as the longest
   and nothing below it moves as they turn. */
.th-quote--many .th-quote__slides { display: grid }
.th-quote--many .th-quote__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s }
.th-quote--many .th-quote__slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.2s ease }
.th-quote__dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px }
.th-quote__dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); background: transparent; cursor: pointer; transition: background .3s, transform .3s }
.th-quote__dot:hover { transform: scale(1.2) }
.th-quote__dot.is-on { background: #fff }
.th-quote__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px }
/* In the editor every testimonial is shown, one under another. */
.th-quote--edit .th-quote__slide + .th-quote__slide { margin-top: 44px; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, .3) }
.th-quote__edit { margin-top: 20px; font: 600 .82rem/1 system-ui, sans-serif; letter-spacing: .02em; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .7); background: rgba(20, 30, 14, .62); color: #fff; cursor: pointer }
.th-quote__edit:hover { background: rgba(20, 30, 14, .85) }
.th-quote__add { margin-top: 40px }
.th-quote__add::before { content: '+ ' }

.th-mail__sprig { width: 34px; height: 40px; margin: 0 auto 8px }
.th-mail__title { margin: 0 auto 12px }
.th-mail__form { display: flex; justify-content: center }
.th-mail__form .mailing { justify-content: center }
.th-mail__fb a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--title); transition: background .3s }
.th-mail__fb a:hover { background: rgba(0, 0, 0, .07) }
.th-mail__fb svg { width: 20px; height: 20px; fill: currentColor }
