/* Far Acre website: home page.
   Fonts are self-hosted (SIL Open Font License, licences in assets/fonts) so the page loads its own files; the one outside request is
   Cloudflare Web Analytics' beacon, added by Pages at each deployment. */
@font-face{font-family:'Atkinson Hyperlegible';src:url('../assets/fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible';src:url('../assets/fonts/AtkinsonHyperlegible-Italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible';src:url('../assets/fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Bree Serif';src:url('../assets/fonts/BreeSerif-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Kalam';src:url('../assets/fonts/Kalam-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}

:root{
  --fa-page:#0F2A26;      /* page ground, deep forest */
  --fa-panel:#17403A;     /* raised band and cards */
  --fa-footer:#0A1F1C;    /* footer and treeline ground */
  --fa-cream:#F3EAD3;     /* headings, borders, logo ink */
  --fa-text:#D9D2BA;      /* body text on dark */
  --fa-honey:#E6BD78;     /* the one accent: buttons, labels, chalk words */
  --fa-honey-edge:#7A5A2A;/* button under-edge */
  --fa-ink:#1E2B22;       /* text on honey and cream */
  --fa-paper:#F5EFDA;     /* manual pages */
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
img{max-width:100%}

/* ---- page rules (hover, focus, menu, breakpoints) ---- */
body{margin:0;background:#0A1F1C}
a{color:#F3EAD3}a:hover{color:#E6BD78}
.cl-btn{transition:transform .12s ease, box-shadow .12s ease}
.cl-btn:hover{transform:translateY(-2px);box-shadow:0 6px 0 #7A5A2A, 0 18px 30px rgba(0,0,0,0.35)}
.cl-nav a{text-decoration:none;border-bottom:2px solid transparent}
.cl-nav a:hover{border-bottom-color:#E6BD78}
.cl-pic{transition:transform .2s ease}
.cl-pic:hover{transform:rotate(0deg) scale(1.03)}
a:focus-visible,summary:focus-visible{outline:3px solid #E6BD78;outline-offset:3px}
summary::-webkit-details-marker{display:none}
.cl-only-phone{display:none}
.cl-scrim{background:linear-gradient(0deg, #0F2A26 0%, rgba(15,42,38,0.6) 9%, rgba(15,42,38,0) 24%), linear-gradient(90deg, rgba(15,42,38,0.96) 0%, rgba(15,42,38,0.88) 26%, rgba(15,42,38,0.45) 46%, rgba(15,42,38,0) 64%), linear-gradient(180deg, rgba(15,42,38,0.7) 0%, rgba(15,42,38,0) 16%)}
@media (max-width: 1100px){.cl-roadline{display:none}}
@media (max-width: 760px){
.cl-only-wide{display:none!important}
.cl-only-phone{display:block!important}
.cl-hero-img{height:78vw!important}
.cl-scrim{background:linear-gradient(180deg, rgba(15,42,38,0.65) 0, rgba(15,42,38,0) 18vw, rgba(15,42,38,0) 40vw, #0F2A26 78vw)}
.cl-hero-copy{padding-top:44vw!important}
.cl-trail{display:none}
.cl-step{grid-template-columns:minmax(0,1fr)!important;min-height:0!important;gap:18px;padding-bottom:56px}
.cl-step-ring{order:-1;justify-self:start!important}
.cl-step-pic{order:0;justify-self:start!important;margin-bottom:26px}
.cl-step-txt{order:1;padding:0!important;text-align:left!important;align-items:flex-start!important}
}
@media (prefers-reduced-motion: reduce){.cl-btn,.cl-pic{transition:none}}

/* ---- the pictures' gallery (js/gallery.js; without the script it is a row that scrolls sideways) ---- */
.gal{max-width:max(320px,min(100%,calc((100vh - 300px) * 1.7778)));margin:0 auto}
.gal-stage{position:relative}
.gal-track{display:flex;margin:0;padding:0;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;border:4px solid #F3EAD3;border-radius:18px;background:#0A1F1C;box-shadow:0 26px 50px rgba(0,0,0,0.5)}
.gal-on .gal-track{scrollbar-width:none}
.gal-on .gal-track::-webkit-scrollbar{display:none}
.gal-track:focus-visible{outline:3px solid #E6BD78;outline-offset:4px}
.gal-slide{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
.gal-slide a{display:block}
.gal-slide img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.gal-arrow{position:absolute;top:50%;transform:translateY(-50%);width:56px;height:56px;padding:0;border:0;border-radius:50%;background:#F3EAD3;color:#1E2B22;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 0 #7A5A2A,0 10px 24px rgba(0,0,0,0.35);transition:background .12s ease}
.gal-prev{left:16px}
.gal-next{right:16px}
.gal-arrow:hover,.gal-close:hover{background:#E6BD78}
.gal-arrow:focus-visible,.gal-thumb:focus-visible,.gal-close:focus-visible{outline:3px solid #E6BD78;outline-offset:3px}
.gal-bar{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:18px 4px 0}
.gal-bar[hidden],.gal-thumbs[hidden]{display:none}
.gal-caption{margin:0;font-size:18px;color:#D9D2BA;text-wrap:pretty}
.gal-count{margin:0;font-family:'Kalam','Comic Sans MS',cursive;font-size:22px;color:#E6BD78;white-space:nowrap}
.gal-thumbs{position:relative;display:flex;gap:18px;overflow-x:auto;margin-top:6px;padding:18px 8px 22px;scrollbar-width:thin;scrollbar-color:#7A5A2A transparent}
.gal-thumb{flex:0 0 clamp(120px,15vw,170px);aspect-ratio:16/9;padding:0;border:3px solid #F3EAD3;border-radius:12px;overflow:hidden;background:#0A1F1C;cursor:pointer;opacity:.72;transform:rotate(var(--tilt,0deg));box-shadow:0 10px 20px rgba(0,0,0,0.35);transition:transform .15s ease,opacity .15s ease,border-color .15s ease}
.gal-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.gal-thumb:hover{opacity:1}
.gal-thumb[aria-current="true"]{border-color:#E6BD78;opacity:1;transform:rotate(0deg) translateY(-4px)}
.gal-full{padding:0;border:0;background:transparent;max-width:none;max-height:none;font-family:'Atkinson Hyperlegible',system-ui,sans-serif}
.gal-full[open]{position:fixed;inset:0;width:100%;height:100%;margin:0;padding:56px 92px 24px;display:grid;place-items:center;background:rgba(10,31,28,0.96);color:#F3EAD3}
.gal-full::backdrop{background:rgba(10,31,28,0.96)}
.gal-full-fig{margin:0;display:grid;justify-items:center;gap:14px;max-width:100%}
.gal-full-img{display:block;max-width:100%;max-height:calc(100vh - 150px);width:auto;height:auto;border:4px solid #F3EAD3;border-radius:14px;box-shadow:0 26px 50px rgba(0,0,0,0.5)}
.gal-full-cap{display:flex;align-items:baseline;justify-content:space-between;gap:20px;width:min(100%,calc((100vh - 150px) * 1.7778));font-size:18px;color:#D9D2BA}
.gal-full .gal-prev{left:20px}
.gal-full .gal-next{right:20px}
.gal-close{position:absolute;top:12px;right:20px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#F3EAD3;color:#1E2B22;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 0 #7A5A2A}
html:has(.gal-full[open]){overflow:hidden}
@media (max-width: 760px){
.gal-track{border-width:3px;border-radius:14px}
.gal-arrow{width:44px;height:44px}
.gal-prev{left:8px}
.gal-next{right:8px}
.gal-bar{flex-direction:column;gap:4px}
.gal-caption{font-size:16px}
.gal-full[open]{padding:64px 12px 84px}
.gal-full-img{max-height:calc(100vh - 220px)}
.gal-full-cap{width:100%;font-size:16px}
.gal-full .gal-prev,.gal-full .gal-next{top:auto;bottom:20px;transform:none}
.gal-full .gal-prev{left:calc(50% - 60px)}
.gal-full .gal-next{right:calc(50% - 60px)}
}
@media (prefers-reduced-motion: reduce){.gal-arrow,.gal-thumb{transition:none}}
