/* friendlyed.com — colours, fonts and sizes come from site.json ("theme"), set by index.php as variables. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--base); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6rem; color: var(--text); }
h1 { font-size: 2.3rem; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.small { font-size: .88rem; }
.muted, .note { color: var(--muted); }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink) !important; text-decoration: none; font-weight: 600;
       border: 1px solid var(--accent); border-radius: var(--radius); padding: .6rem 1.05rem; font-size: .98rem; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: var(--surface); color: var(--accent) !important; border-color: var(--border); }
.btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-small { padding: .4rem .8rem; font-size: .9rem; }
.buttons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.1rem 0 .7rem; }
.plain { color: var(--muted); }

/* parts */
.hero { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.hero-row { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: center; }
.hero-row:has(> .hero-text:only-child) { grid-template-columns: 1fr; max-width: 46rem; }  /* no picture: the words across the top */
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 36rem; }
.hero-pic { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface);
            box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .06); max-height: 420px; }
.part { padding: 2.6rem 0; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.intro { color: var(--muted); max-width: 40rem; margin-bottom: 1.4rem; }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.card p, .fit p { color: var(--muted); margin: 0; font-size: .96rem; }
.fit { border-top: 3px solid var(--accent); padding-top: .8rem; }
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
blockquote { margin: .4rem 0 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--accent); font-size: 1.15rem; color: var(--text); }
.ticks { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; width: 100%; background: var(--surface); }
.shots figcaption { color: var(--muted); font-size: .92rem; margin-top: .45rem; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.contact .buttons { margin: 0; }

/* footer */
.foot { padding: 1.4rem 0; color: var(--muted); font-size: .88rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot a { color: var(--muted); }

@media (max-width: 860px) {
  .hero-row, .approach { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
}
@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 1.8rem; }
  .part { padding: 2rem 0; }
  h1 { font-size: 1.65rem; }
}
/* the top's pictures, taking turns (site.json hero.slides) */
.hero-slides { position: relative; max-height: none; background: var(--surface); }
.hero-slides .slide { display: none; width: 100%; height: auto; }
.hero-slides .slide.on { display: block; }
.slide-dots { display: flex; flex-wrap: wrap; gap: .35rem; padding: .6rem .7rem; border-top: 1px solid var(--border); }
.slide-dot { font: inherit; font-size: .8rem; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
             border-radius: 999px; padding: .2rem .65rem; cursor: pointer; }
.slide-dot.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* for everyone in your school (site.json roles) */
.grid.roles { grid-template-columns: 1fr; gap: 1.25rem; }
.roles .role { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.roles .role img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); grid-row: span 2; }
.roles .role h3 { align-self: end; margin: 0; }
.roles .role p { align-self: start; margin: 0; }
@media (max-width: 860px) { .roles .role { grid-template-columns: 1fr; } .roles .role img { grid-row: auto; } }
.tm { font-size: .5em; font-weight: 600; vertical-align: super; margin-left: .1em; line-height: 0; }
