@font-face { font-family: "Nunito"; font-weight: 200 900; font-style: normal; font-display: swap; src: url("../fonts/nunito-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-condensed-500-normal.woff2") format("woff2"); }

:root {
  --ink: #111;
  --dark: #0f0d0d;
  --blue: #008ebe;
  --blue-light: #5baee7;
  --gold: #eabb00;
  --orange: #eb4600;
  --pale: #e7eaed;
  --error: #990000;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; font: 400 1.0625rem/1.6 "Nunito", system-ui, sans-serif; color: var(--ink); background: #fff; overflow-x: hidden; }
h1, h2, h3, .brand, .button { font-family: "Nunito", system-ui, sans-serif; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: var(--blue); margin: 1.5rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
a { color: var(--blue); }
a:hover { color: #8a4700; }
a:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav-toggle:focus-visible + .nav-burger {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
img { max-width: 100%; height: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 20; }
.skip-link:focus { left: 0; }

/* Header */
.site-header { position: relative; background: var(--dark) url("../img/concertina-hand.jpg") center / cover; border-bottom: 5px solid var(--blue); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .85); pointer-events: none; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; padding-bottom: .75rem; }
.brand { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; color: var(--blue); text-decoration: none; }
.brand:hover { color: var(--gold); }
.site-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.site-nav a { font: 500 1rem "Roboto Condensed", sans-serif; text-transform: uppercase; color: var(--pale); text-decoration: none; padding: .5rem 0; display: inline-block; }
.site-nav a:hover { color: var(--blue-light); }
.nav-toggle { position: absolute; right: 1rem; top: .9rem; width: 2.5rem; height: 2.5rem; opacity: 0; margin: 0; z-index: 3; cursor: pointer; display: none; }
.nav-burger { display: none; width: 2.5rem; height: 2.5rem; flex-direction: column; justify-content: center; gap: 6px; padding: .5rem; }
.nav-burger span { display: block; height: 3px; background: var(--orange); border-radius: 2px; }

/* Home hero */
.hero { min-height: 420px; height: 60vh; max-height: 600px; background: var(--dark) center / cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--pale); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(at center, rgba(0,0,0,.63), rgba(0,0,0,.37)); }
.hero-text { position: relative; padding: 1rem; text-shadow: 1px 1px 3px #000; }
.hero h1 { color: #fff; font-weight: 600; font-size: clamp(2rem, 6vw, 3.5rem); margin: 0; }
.hero h2 { color: var(--blue-light); margin: .5rem 0; }
.hero-dates { font: 600 clamp(1.4rem, 4vw, 2rem) "Nunito", sans-serif; color: #fff; margin: 0; }
.intro { text-align: center; padding-bottom: 2rem; }
.edition { font: 700 1.5rem "Nunito", sans-serif; color: var(--blue); margin-bottom: 0; }

/* Cards, buttons */
.card { border: 2px solid var(--blue); border-radius: 24px; padding: 1.5rem; margin: 1.5rem 0; }
.card h2:first-child { margin-top: 0; }
.button { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; padding: .7rem 1.4rem; border-radius: 8px; border: 0; font-size: 1.05rem; cursor: pointer; }
.button:hover { background: var(--gold); color: var(--ink); }
.plain { list-style: none; padding: 0; }
.note { font-weight: 400; font-size: .9em; }
.event { padding: .75rem 0; border-top: 1px solid var(--pale); }
.event:first-of-type { border-top: 0; }
.event p { margin: .25rem 0; }
.notice { text-align: center; }
.notice p { margin: .25rem 0; }
.prose { max-width: 760px; }
.banner { display: block; margin: 1rem auto; }

/* About / contact layout */
.about-grid { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 2rem; align-items: start; padding-bottom: 2rem; }
.about-grid .logo { width: 100%; height: auto; border-radius: 12px; }

/* Tutors */
.tutor-grid { list-style: none; margin: 0; padding: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tutor { text-align: center; }
.tutor img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--pale); display: block; }
.tutor h2 { font-size: 1.1rem; font-weight: 600; margin: .5rem 0 0; }
.tutor .role { margin: 0; color: var(--blue); font-weight: 700; }
.tutor .bio { margin: .25rem 0 0; font-size: .95rem; }

/* Forms (used by registration) */
form p { margin: 0 0 1rem; }
label { display: block; font-weight: 700; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; max-width: 32rem; padding: .6rem; font: inherit; border: 2px solid #777; border-radius: 6px; }
.errorlist { color: var(--error); list-style: none; padding: 0; margin: .25rem 0; font-weight: 700; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--dark); color: #f7f7f7; text-align: center; padding: 1.5rem 0; margin-top: 2rem; }
.site-footer a { color: var(--blue); }
.site-footer .social a { margin: 0 .6rem; }
.site-footer .org { font: 400 1.1rem "Nunito", sans-serif; margin: 0 0 .5rem; }
.site-footer .small { font: 400 .85rem "Nunito", sans-serif; text-transform: uppercase; margin: .5rem 0 0; }

@media (max-width: 760px) {
  .nav-toggle, .nav-burger { display: flex; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; right: 0; top: 100%; z-index: 5; background: var(--dark); min-width: 180px; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .75rem 1.25rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .logo { max-width: 260px; }
  .tutor-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}
