/* ============================================
   CUSTODIANS OF THE STONE CIRCLE — design tokens
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* --- color: drawn directly from the cover art panels --- */
  --ink:        #080B14;   /* base background, near-black indigo */
  --panel:      #121A2C;   /* card / section panel */
  --panel-2:    #1B2A45;   /* deep teal-indigo, secondary panel */
  --line:       #2A3A57;   /* hairline borders on dark */

  --gold:       #C9A24B;   /* the key, titles */
  --gold-soft:  #E8CD86;   /* hover/lighter gold + small-text safe */
  --teal:       #5FD0C6;   /* labels on dark — lightened for AA contrast */
  --teal-deep:  #3FA9A0;   /* decorative teal (glows, glyphs) */
  --teal-dim:   #2C7A74;
  --dusk:       #A879BE;   /* dusk purple, used sparingly */
  --amber-path: #D89A4E;   /* the path of light on the cover */

  --parchment:  #F0EBDD;   /* warm off-white, primary text on dark */
  --parchment-dim: #C7C0AE;/* secondary text on dark — lightened for AA */

  --paper:      #F7F3E9;   /* light sections (teacher guidance etc) */
  --paper-ink:  #21201B;   /* text on light paper */
  --paper-line: #DCD3B8;

  /* --- type: two families doing all the work --- */
  --font-display: 'Cormorant Garamond', Georgia, serif;  /* characterful display */
  --font-serif:   'Cormorant Garamond', Georgia, serif;  /* headings */
  --font-body:    'Inter', system-ui, sans-serif;        /* body, long-form, workhorse */
  --font-ui:      'Inter', system-ui, sans-serif;         /* nav, labels, buttons */

  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--parchment);
  letter-spacing: .01em;
}

.wordmark{
  font-family: var(--font-display);
  letter-spacing: .04em;
}

p{ margin: 0 0 1.1em; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* reduced motion respect */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============ NAV ============ */
.site-nav{
  position: sticky; top:0; z-index: 50;
  background: rgba(8,11,20,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.nav-brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-soft);
}
.nav-brand .glyph{ width:22px; height:22px; flex:none; }
.nav-links{
  display:flex; gap: 30px;
  font-family: var(--font-ui);
  font-size: .92rem;
  letter-spacing: .03em;
}
.nav-links a{
  color: var(--parchment-dim);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--gold-soft); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:1px; background: var(--teal);
}
.nav-links a.nav-cta{
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  padding: 7px 16px;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a.nav-cta:hover{ background: var(--gold); color: var(--ink); }
.nav-links a.nav-cta::after{ display:none; }
.nav-toggle{ display:none; }

@media (max-width: 820px){
  .nav-links{
    position: fixed;
    top: 65px; left: 0; right: 0; bottom: 0;
    height: calc(100vh - 65px);
    height: calc(100dvh - 65px);
    z-index: 100;
    background: #060810;
    flex-direction: column;
    padding: 32px 28px;
    gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    overflow-y: auto;
    margin: 0;
  }
  .nav-links.open{ opacity:1; transform: translateY(0); pointer-events: auto; }
  .nav-links a{
    width: 100%;
    padding: 16px 4px;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.active::after{ display:none; }
  .nav-links a.nav-cta{
    margin-top: 18px;
    text-align: center;
    border-bottom: 1px solid var(--gold);
    padding: 14px 4px;
  }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px;
    background:none; border:none; cursor:pointer; padding:8px;
    position: relative; z-index: 101;
  }
  .nav-toggle span{ width:22px; height:1.5px; background: var(--gold-soft); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-ui);
  font-size: .88rem;
  letter-spacing: .03em;
  padding: 13px 26px;
  border-radius: 2px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ background: var(--gold); color: var(--ink); }
.btn-solid{
  background: var(--gold);
  color: var(--ink);
}
.btn-solid:hover{ background: var(--gold-soft); border-color: var(--gold-soft); }

/* ============ DIVIDER GLYPH (compass / stone circle motif) ============ */
.threshold{
  display:flex; align-items:center; justify-content:center;
  gap: 18px;
  margin: 64px 0;
  color: var(--teal);
}
.threshold::before, .threshold::after{
  content:"";
  height:1px; flex:1;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
  max-width: 220px;
}
.threshold svg{ width:26px; height:26px; opacity:.85; }

/* ============ SECTION BASE ============ */
section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }

.eyebrow{
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display:block;
}

.lede{
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--parchment-dim);
  max-width: 60ch;
}

/* paper (light) section variant — used on Teacher Guidance / forms */
.on-paper{
  background: var(--paper);
  color: var(--paper-ink);
}
.on-paper h1, .on-paper h2, .on-paper h3, .on-paper h4{ color: var(--paper-ink); }
.on-paper .eyebrow{ color: #1E5650; }
.on-paper a.inline-link{ color: #1E5650; border-bottom: 1px solid #1E5650; }

/* ============ CARDS ============ */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 32px;
}
.on-paper .card{
  background: #fff;
  border-color: var(--paper-line);
}

/* ============ FOOTER ============ */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--ink);
}
.footer-grid{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap: wrap; gap: 32px;
}
.footer-brand{ font-family: var(--font-display); color: var(--gold-soft); font-size: 1rem; margin-bottom: 8px; }
.footer-meta{ font-family: var(--font-ui); font-size: .82rem; color: var(--parchment-dim); line-height:1.8; }
.footer-links{ display:flex; gap:24px; font-family: var(--font-ui); font-size: .85rem; }
.footer-links a{ color: var(--parchment-dim); }
.footer-links a:hover{ color: var(--gold-soft); }
.footer-bottom{
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-ui); font-size: .78rem; color: var(--parchment-dim); opacity:.7;
}

/* ============ UTILITIES ============ */
.text-center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 820px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

.tag{
  display:inline-block;
  font-family: var(--font-ui);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  border-radius: 2px;
}
.on-paper .tag{ border-color: var(--teal-dim); color: var(--teal-dim); }

.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--gold); color:var(--ink);
  padding: 10px 16px; z-index: 200; font-family: var(--font-ui);
}
.skip-link:focus{ left: 12px; top: 12px; }

:focus-visible{
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
