:root {
  --p-black: #000;
  --p-black: oklch(0% 0 0);
  --p-ink: #f2f2f2;
  --p-ink: oklch(95% 0 0);
  --p-teal: #8fd0d0;
  --p-teal: oklch(83% .055 202);
  --p-cyan: #00ffef;
  --p-cyan: oklch(89% .19 181);
  --p-active: #bd6972;
  --p-active: oklch(59% .1 8);
  --p-panel: #1a1a1a;
  --p-panel: oklch(18% 0 0);
  --p-rule: #2a2a2a;
  --p-rule: oklch(25% 0 0);
  --colour-bg: var(--p-black);
  --colour-text: var(--p-ink);
  --colour-accent: var(--p-cyan);
  --colour-teal: var(--p-teal);
  --colour-active: var(--p-active);
  --font-serif: 'IM Fell DW Pica', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--colour-bg); scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  background: var(--colour-bg);
  color: var(--colour-text);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--colour-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, iframe:focus-visible {
  outline: 2px solid var(--colour-accent);
  outline-offset: 4px;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  color: var(--colour-accent);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 .65em;
}
h1 { font-size: 2.15rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
strong, b { color: var(--colour-accent); font-weight: 400; }
.faq-section .flow p > span > strong:first-child { display: block; }
address { font-style: normal; }
ul { margin: 0 0 1em 1.3em; }
::selection { background: var(--colour-teal); color: #111; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--colour-teal);
  color: #111;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { max-width: 1280px; margin: 0 auto; padding: 28px 32px 0; }
.header-inner { display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: 0 0 240px; max-width: 240px; }
.brand img { display: block; width: 100%; }
.site-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 18px;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: var(--colour-text);
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .18s ease-out;
}
.site-nav a::before, .site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
}
.site-nav a::before { top: 3px; }
.site-nav a::after { bottom: 3px; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--colour-active); text-decoration: none; }
.site-nav a:hover::before, .site-nav a:hover::after,
.site-nav a[aria-current='page']::before, .site-nav a[aria-current='page']::after { background: var(--colour-active); }
.menu-toggle { display: none; }
.header-rule { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.header-rule span { flex: 1; height: 2px; background: #a8a8a8; }
.header-rule b { width: 14px; height: 14px; border: 2px solid #a8a8a8; border-radius: 50%; }

/* Editorial sections */
.page-section { max-width: 1200px; margin: 0 auto; padding: 64px 32px; }
.page-section + .page-section { padding-top: 48px; }
.section-divider { height: 4px; background: var(--colour-teal); box-shadow: 0 9px 0 rgba(143, 208, 208, .07); }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.column { min-width: 0; }
.flow > span { display: block; margin-bottom: 1em; }
.flow img { display: block; max-width: 100%; }
.page-section:not(.hero-media) .flow > img,
.page-section:not(.hero-media) .flow > a > img { max-width: 88%; margin-left: auto; margin-right: auto; }
.section-heading, .section-heading > span, .subheading, .subheading > span {
  color: var(--colour-accent);
}
.section-heading, .flow > span.section-heading { display: block; font-size: 1.65rem; line-height: 1.25; margin-bottom: .7em; }
.subheading, .flow > span.subheading { display: block; font-size: 1.2rem; line-height: 1.3; margin-bottom: .55em; }
.split-heading > span:first-child { display: block; color: var(--colour-accent); font-size: 1.65rem; margin-bottom: .7em; }
.centred-title { text-align: center; margin-bottom: 56px; }
.centred-copy { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.centred-cta { display: flex; align-items: center; justify-content: center; height: 100%; }
.narrow-copy { max-width: 840px; margin: 0 auto; }
.narrow-heading { max-width: 900px; margin: 0 auto 40px; }
.hero-heading, .flow > span.hero-heading { display: block; color: var(--colour-accent); font-size: 2rem; line-height: 1.2; }
.hero-subheading, .flow > span.hero-subheading { display: block; font-size: 1.35rem; margin-bottom: 1.2em; }
.responsive-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.responsive-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.responsive-embed.map-embed { aspect-ratio: 4 / 3; }
.responsive-embed.form-embed { height: 950px; aspect-ratio: auto; }
.responsive-embed.shop-embed { height: 1100px; aspect-ratio: auto; }
video { display: block; width: 100%; background: #111; }

/* Brand panels and buttons */
.hero-media { max-width: 1300px; padding-top: 32px; }
.hero-media img, .brand-banner img, .special-graphic img { display: block; width: 100%; }
.brand-banner { padding-top: 48px; padding-bottom: 0; }
.programme-logo img { width: 100%; max-width: 430px; }
.programme-title { font-size: 1.45rem; line-height: 1.3; margin-bottom: 1em; }
.programme-title span { display: block; }
.button-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.button-grid a { display: block; min-width: 0; background: var(--p-panel); }
.button-grid img { display: block; width: 100%; }
.button-grid a:hover, .two-graphic-cta a:hover { outline: 1px solid var(--colour-teal); outline-offset: 3px; }
.join-columns { align-items: center; margin-top: 48px; }
.journey-columns, .community-columns, .ages-columns, .discover-columns { align-items: center; }
.two-graphic-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.two-graphic-cta img { display: block; margin: 0 auto; }
.contact-section .responsive-embed.form-embed { max-width: 960px; margin: 0 auto; }

/* Homepage media and Gendai identity */
.page-section:not(.hero-media) .intro-columns .flow > img { max-width: 100%; margin-left: 0; }
.page-section:not(.hero-media) .intro-columns .gendai-intro-logo { width: 88%; max-width: 420px; margin-top: 24px; }
.wide-image-section img { display: block; width: 100%; }

/* HTML class schedule */
.schedule-section { max-width: 1300px; }
.schedule-title-block { padding: 16px 20px; background: #b5dcf3; color: #172832; text-align: center; }
.schedule-title-block h2 {
  margin: 0;
  color: #f2f2f2;
  font-size: 3rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #526675;
}
.schedule-title-block h2 span {
  display: block;
  margin-top: 4px;
  color: #172832;
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-shadow: none;
  text-transform: none;
}
.schedule-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.schedule-day h3 { margin-bottom: 16px; font-size: 1.35rem; text-align: center; text-transform: uppercase; }
.schedule-day.monday h3 { color: #e65aa8; }
.schedule-day.wednesday h3 { color: #f6c360; }
.schedule-day.thursday h3 { color: var(--colour-accent); }
.schedule-day.friday h3 { color: #f6b24b; }
.schedule-day.saturday h3 { color: #a482e8; }
.class-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  margin-bottom: 16px;
  padding: 20px 12px;
  color: #111;
  text-align: center;
}
.class-card p { margin: 0; line-height: 1.5; text-transform: uppercase; }
.class-card.online { background: #00c8c8; }
.class-card.core { background: #7be36b; }
.class-card.kids { background: #ffc766; }
.schedule-locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 18px 24px; background: var(--colour-teal); color: #111; }
.schedule-locations strong { color: #111; }
.schedule-locations p { margin-bottom: .55em; }

/* Teachers and sign-up */
.teachers-section { padding-top: 48px; }
.teacher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; }
.teacher { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: start; }
.teacher-photo { position: relative; margin: 0; }
.teacher-photo img { display: block; width: 100%; }
.teacher-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 5px 4px;
  background: rgba(26, 26, 26, .92);
  color: var(--colour-text);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}
.teacher-copy h3 { margin-top: 0; }
.signup-section { padding-top: 32px; }
.signup-columns { align-items: center; }
.signup-links p { margin-bottom: .45em; }
.signup-links a { font-size: 1.3rem; }

/* Kids */
.image-triad ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; list-style: none; }
.image-triad li:last-child { grid-column: 1 / -1; }
.image-triad img { width: 100%; }
.kids-info .button-grid { margin-top: 28px; }
.venue-columns { align-items: center; }

/* Induction */
.induction-intro { margin-bottom: 24px; }
.class-offer { align-items: center; }
.class-offer + .page-section { padding-top: 24px; }
.special-graphic { display: block; margin-top: 48px; }
.form-panel { max-width: 960px; margin: 0 auto; }
.form-panel h2 { text-align: center; }

/* Adults */
.adults-intro { align-items: center; }
.topic-list > span { display: block; }
.text-cta { display: block; margin-top: 24px; font-size: 1.35rem; }
.experienced-columns, .curriculum-columns { align-items: center; }
.small-logo { max-width: 241px; }

/* Book and shop */
.book-columns { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.book-cover img { width: 100%; }
.book-copy { font-size: 1.25rem; }
.shop-link { margin-bottom: 24px; font-size: 1.3rem; }
.gear-section { max-width: 1200px; }

/* Membership contracts */
.membership-hero-columns { align-items: center; }
.membership-welcome { width: 100%; max-width: 520px; }
.membership-title h1 { margin-bottom: .35em; }
.membership-title p { font-size: 1.6rem; line-height: 1.25; }
.membership-hero .header-rule { margin-top: 32px; }
.contract-copy { max-width: 680px; margin: 0 auto; }
.contract-copy ol { margin: 0 0 1.2em 1.5em; }
.contract-copy li { margin-bottom: .55em; }
.contract-copy a { text-decoration: underline; }
.form-block { max-width: 840px; margin: 48px auto 0; }
.form-block h2 { text-align: center; }

/* Contact and footer */
.contact-page { align-items: start; }
.contact-details h1 { font-size: 1.7rem; }
.contact-details h2 { font-size: 1.25rem; margin-top: 1.4em; }
.contact-details .organisation { font-size: .9rem; }
.contact-details address { margin-bottom: 1.3em; }
.contact-social, .footer-social { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-social { margin: 32px 0; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #363636;
  color: #eee;
  transition: background .18s ease-out, color .18s ease-out;
}
.social-icon:hover { background: var(--colour-teal); color: #111; text-decoration: none; }
.social-icon svg { width: 23px; height: 23px; fill: currentColor; }
.data-protection {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--colour-teal);
  color: #111;
}
.site-footer { margin-top: 48px; border-top: 1px solid #181818; padding: 48px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.footer-brand img { display: block; width: 100%; max-width: 230px; }
.footer-address { text-align: right; font-size: 16px; line-height: 1.3; }
#myShop { min-height: 1100px; }
.footer-address p { margin: 16px 0 0; }
.footer-address a { color: var(--colour-teal); }

@media (max-width: 1200px) {
  .site-header { padding-top: 20px; }
  .header-inner { flex-wrap: wrap; gap: 20px; }
  .brand { flex-basis: 220px; max-width: 220px; }
  .menu-toggle {
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid var(--colour-teal);
    background: transparent;
    color: var(--colour-text);
    font-family: var(--font-serif);
    font-size: 18px;
    cursor: pointer;
  }
  .js .menu-toggle { display: inline-flex; }
  .menu-bars { display: flex; flex-direction: column; gap: 4px; }
  .menu-bars i { display: block; width: 22px; height: 2px; background: currentColor; }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-locations { grid-template-columns: minmax(0, 1fr); }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: center; border-top: 1px solid var(--p-rule); font-size: 19px; }
  .header-rule { margin-top: 16px; }
}

@media (max-width: 900px) {
  body { font-size: 18px; line-height: 1.35; }
  .page-section { padding: 44px 22px; }
  .page-section:not(.hero-media) .flow > img,
  .page-section:not(.hero-media) .flow > a > img { max-width: 100%; }
  .columns, .book-columns { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .teacher-grid { grid-template-columns: minmax(0, 1fr); }
  .two-graphic-cta { gap: 32px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .footer-address { text-align: center; }
  .footer-brand img { max-width: 210px; }
}

@media (max-width: 540px) {
  .schedule-grid { grid-template-columns: minmax(0, 1fr); }
  .schedule-title-block h2 { font-size: 2rem; }
  .site-header { padding: 16px 16px 0; }
  .brand { flex-basis: 190px; max-width: 190px; }
  .menu-label { font-size: 16px; }
  .page-section { padding: 36px 16px; }
  h1 { font-size: 1.85rem; }
  .section-heading, .flow > span.section-heading, .split-heading > span:first-child { font-size: 1.45rem; }
  .hero-heading, .flow > span.hero-heading { font-size: 1.7rem; }
  .teacher { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .teacher-photo figcaption { font-size: 12px; }
  .two-graphic-cta { grid-template-columns: minmax(0, 1fr); }
  .responsive-embed.form-embed { height: 1050px; }
  .site-footer { padding: 40px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
