/* Khruu Shine's Classroom — khruushine.com
 *
 * Palette and artwork are lifted from the original Wix site so the brand
 * carries over unchanged: ink navy ground, cream-gold hand-drawn Thai letters,
 * coral for anything that asks the reader to act. The site commits to this one
 * dark look rather than offering a light theme — the hand-drawn letter art is
 * cream on dark and has no light-mode counterpart.
 */

/* --- webfonts ----------------------------------------------------------- */

/* Both families are served from this repo rather than fonts.googleapis.com.
 * Google's stylesheet is a second origin to resolve before a single glyph can
 * be requested, and it ships font-display: swap, so a hard reload painted the
 * page in Trebuchet/system fallbacks and then reflowed it into Amatic and
 * Mali — the flash of the wrong font. Same-origin files arrive with the rest
 * of the page, and font-display: block tells the browser to hold the text
 * invisible for that moment instead of painting it in the fallback first.
 * The critical faces are also <link rel="preload">ed from every page's head.
 *
 * Subsets: latin, latin-ext and (for Mali) thai. Cyrillic, Hebrew and
 * Vietnamese are dropped — nothing on the site uses them. Mali 300 is dropped
 * too; no rule asks for it.
 *
 * To refresh: re-fetch the css2 URL for
 *   family=Amatic+SC:wght@700&family=Mali:wght@400;600
 * and re-download the woff2 files it names into assets/fonts/.
 */

/* Amatic SC 700 — latin-ext */
@font-face {
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(/assets/fonts/amatic-sc-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Amatic SC 700 — latin */
@font-face {
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(/assets/fonts/amatic-sc-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Mali 400 — thai */
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/mali-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* Mali 400 — latin-ext */
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/mali-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Mali 400 — latin */
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/mali-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Mali 600 — thai */
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(/assets/fonts/mali-600-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* Mali 600 — latin-ext */
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(/assets/fonts/mali-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Mali 600 — latin */
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(/assets/fonts/mali-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #28283c;
  --ink-2: #2f2f45;
  --ink-3: #383850;
  --gold: #fdda8d;
  --gold-dim: #d9b877;
  --coral: #db634c;
  --coral-hi: #e87a64;
  --teal: #082f41;
  --royal: #152851;
  --chalk: #3f3d38;
  --paper: #f4efe4;
  --text: #ece7de;
  --text-dim: #a8a4b5;
  --line: rgba(253, 218, 141, 0.22);
  --line-soft: rgba(253, 218, 141, 0.12);

  --shell: 1140px;
  --radius: 14px;
  --gap: clamp(1rem, 3vw, 2rem);

  --font-body: 'Mali', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Amatic SC', 'Mali', 'Trebuchet MS', sans-serif;
}

/* --- reset ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--coral-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1.2rem;
  z-index: 100;
  font-weight: 600;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- typography --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--gold);
}

h2.display {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

h3.display {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.35em;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--text);
  max-width: 62ch;
}

.muted {
  color: var(--text-dim);
}

.thai {
  font-family: var(--font-body);
}

/* --- header / nav ------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(40, 40, 60, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.94rem;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--ink-3);
  color: var(--gold);
}

.site-nav a[aria-current='page'] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--coral);
}

.nav-cta a {
  background: var(--coral);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta a:hover {
  background: var(--coral-hi);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    width: 100%;
    margin: 0;
  }
  .head-inner {
    flex-wrap: wrap;
  }
  .site-nav.open {
    display: block;
    padding-bottom: 0.6rem;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }
  .site-nav a {
    padding: 0.6rem 0.75rem;
  }
}

/* --- decorative Thai letters ------------------------------------------- */

.doodles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.doodles img {
  position: absolute;
  opacity: 0.16;
  filter: saturate(0.8);
}

/* --- sections ----------------------------------------------------------- */

section {
  position: relative;
}

.band {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  position: relative;
}

.band-alt {
  background: var(--ink-2);
}

.band-teal {
  background: linear-gradient(160deg, var(--royal), var(--teal));
}

.band > .shell {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 64ch;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

/* --- hero --------------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 7vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 6rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.15em;
}

.hero h1 .small {
  display: block;
  font-size: 0.36em;
  letter-spacing: 0.4em;
  color: var(--text);
  margin-top: 0.4em;
}

/* --- talking cats ------------------------------------------------------- */

/* The cats hold the hero's right-hand column, where Khruu Shine's portrait used
   to be — Mom Muay on top, the one with the dried fish below. Each keeps the
   hand-drawn bubble the old banner gave it, and the two groups mirror each
   other (cat-then-bubble, bubble-then-cat) so both tails point inward and the
   stack zigzags instead of sitting in one rigid column. */
.cat-chorus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  position: relative;
  z-index: 1;
}

.cat-say {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.cat-say .cat {
  flex: 0 0 auto;
  height: auto;
  position: relative;
  z-index: 1; /* the cat covers the tail tip, so the tail reads as coming from behind it */
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.4));
}

/* Both cutouts stop at the cat's chest, which reads as a hard rectangular edge
   once scaled up, so the cut strip is faded into the page. cat-fish is cut on
   two sides and the fish hangs below the cut, so its bottom fade starts late —
   far enough down to leave the fish alone. */
.cat-fish {
  width: clamp(96px, 12.5vw, 140px);
  margin-left: clamp(-34px, -3vw, -16px);
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 99%),
    linear-gradient(to bottom, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 80%, transparent 99%),
    linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.cat-muay {
  width: clamp(88px, 11.5vw, 128px);
  margin-right: clamp(-44px, -3.8vw, -20px);
  /* Her chest is white, so this fade has to start well above the cut or it
     leaves a pale wedge on the ink ground. */
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}

/* Lifted off the baseline so the bubble's tail lands on the cat's head rather
   than beside its feet. */
.say {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 19vw, 215px);
  margin-bottom: clamp(38px, 7vw, 78px);
}

.say-bubble {
  display: block;
  width: 100%;
  height: auto;
}

/* The clear space inside the hand-drawn outline, measured off the source art
   (the stroke runs x 76-423, y 52-369 of a 500x423 canvas, with the tail in one
   bottom corner). The two bubbles are near-mirrors, hence the two left offsets. */
.say-in {
  position: absolute;
  top: 19%;
  height: 57%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2%;
}

.say-a .say-in {
  left: 22%;
  width: 58%;
}

.say-b .say-in {
  left: 20%;
  width: 58%;
}

.say-notes {
  width: 100%;
  height: auto;
}

/* Consonants laid out 3 / 4 / 3, the way the banner had them. */
.say-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.say-row img {
  width: 24%;
  height: auto;
}

/* Under 800px .hero-grid collapses to one column and the cats get the full
   width, so there is more room here, not less — nothing to override. */

/* --- buttons ------------------------------------------------------------ */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coral);
  color: #fff;
}

.btn-primary:hover {
  background: var(--coral-hi);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--gold);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(253, 218, 141, 0.08);
  color: var(--gold);
}

/* --- cards -------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.band-alt .card {
  background: var(--ink);
}

.card h3 {
  color: var(--gold);
  font-size: 1.22rem;
  margin-bottom: 0.2em;
}

.card p {
  margin: 0;
  color: var(--text-dim);
}

.card-art {
  border-radius: 10px;
  overflow: hidden;
  margin: -0.4rem 0 0.8rem;
  background: var(--ink-3);
}

.card-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --- about -------------------------------------------------------------- */

/* The portrait column is sized so that shine.webp, at its own 1059:1638 aspect,
   comes out about as tall as the bio column beside it — 44% of the shell is
   ~477px wide, which wants ~738px of height, and the name/tags/fun-facts stack
   runs a little over 700px. stretch then makes the two columns exactly equal;
   see .about-figure img for who absorbs the few px of difference. */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: stretch;
}

/* Spelled out rather than left to stretch alone, so the img's height:100% has a
   definite box to resolve against. */
.about-figure {
  height: 100%;
}

/* Runs the full height of the bio beside it. cover has burned this image before
   — it guessed a bad crop and clipped her head — but it is safe here because the
   column is already cut to the image's own aspect: the leftover is a few px, and
   object-position spends it on her feet, which the mask fades out anyway. */
.about-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* One column: there is no bio height to match, so go back to showing her
     whole at a sane size. */
  .about-figure img {
    width: min(100%, 320px);
    height: auto;
    object-fit: contain;
    margin-inline: auto;
  }
}

/* Snapshots of a class in progress, sitting one under each area card — so this
   row uses the same auto-fit track sizing as the .grid-3 above it. The sources
   are small (about 290px on the long edge), so contain (not cover) keeps each
   one whole inside a shared row height instead of upscaling a crop — and they
   are deliberately not .zoomable, because the lightbox could not show any more
   detail than this. */
.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
  align-items: start;
}

.photo-row img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}

.fact-list {
  list-style: none;
  counter-reset: fact;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.fact-list li {
  counter-increment: fact;
  position: relative;
  padding-left: 3rem;
}

.fact-list li::before {
  content: counter(fact);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
}

/* --- pricing ------------------------------------------------------------ */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.price-card {
  background: var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(253, 218, 141, 0.2);
  display: flex;
  flex-direction: column;
}

.price-card header {
  background: var(--coral);
  padding: 1rem 1.3rem;
}

.price-card header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 3.6rem);
  color: var(--gold);
  line-height: 1;
  display: block;
  padding: 1.3rem 1.3rem 0.2rem;
}

.price-card .amount small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.price-card p {
  margin: 0;
  padding: 0 1.3rem 1.3rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.price-card .promo {
  margin-top: auto;
  background: rgba(219, 99, 76, 0.18);
  border-top: 1px solid rgba(253, 218, 141, 0.18);
  padding: 0.9rem 1.3rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.price-card .promo span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* --- tables (schedules) ------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--chalk);
}

table.schedule {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.96rem;
}

table.schedule caption {
  text-align: left;
  padding: 1rem 1.1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

table.schedule th,
table.schedule td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(253, 218, 141, 0.14);
  text-align: left;
  vertical-align: middle;
}

table.schedule thead th {
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}

table.schedule tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

table.schedule tbody tr:hover {
  background: rgba(253, 218, 141, 0.07);
}

table.schedule .col-no {
  width: 3.2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

table.schedule .col-date {
  width: 6.5rem;
  color: var(--coral-hi);
  white-space: nowrap;
  font-weight: 600;
}

table.schedule .topic {
  color: var(--text);
}

table.schedule tr.is-revision .topic,
table.schedule tr.is-trivia .topic {
  color: var(--gold);
  font-style: italic;
}

.level {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid;
}

.level-easy {
  color: #9fd6a6;
  border-color: rgba(159, 214, 166, 0.45);
}

.level-medium {
  color: var(--gold);
  border-color: rgba(253, 218, 141, 0.45);
}

.level-hard {
  color: var(--coral-hi);
  border-color: rgba(232, 122, 100, 0.5);
}

.topic-no {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-right: 0.35rem;
}

/* --- tabs --------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.tabs button {
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.25rem 1.5rem;
  cursor: pointer;
}

.tabs button[aria-selected='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

[role='tabpanel'][hidden] {
  display: none;
}

/* --- galleries ---------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--ink-3);
}

.gallery.wide img {
  aspect-ratio: 4 / 3;
}

.lesson {
  border-left: 3px solid var(--coral);
  padding-left: clamp(1rem, 3vw, 1.6rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.lesson h3 {
  color: var(--gold);
  margin-bottom: 0.15em;
}

.lesson p {
  color: var(--text-dim);
  margin-top: 0;
}

/* --- module (reading & writing) ----------------------------------------- */

.module {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: clamp(1rem, 4vw, 2.2rem);
  align-items: start;
  margin-bottom: clamp(2.2rem, 6vw, 3.4rem);
}

@media (max-width: 680px) {
  .module {
    grid-template-columns: 1fr;
  }
  .module > img {
    max-width: 200px;
  }
}

.module > img {
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

.module-no {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--coral);
  line-height: 0.8;
  display: block;
}

.checks {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.checks li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-dim);
}

.checks li::before {
  content: '✎';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* --- video -------------------------------------------------------------- */

.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--royal);
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-card h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin: 0.8rem 0 0.2rem;
}

.video-meta {
  color: var(--text-dim);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.chapters {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* --- location ----------------------------------------------------------- */

.place {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
}

.place h3 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 0.1em;
}

.place .days {
  color: var(--coral-hi);
  font-weight: 600;
}

/* The café each area actually meets at, named above its map. */
.place .spot {
  margin-top: 0.6rem;
  color: var(--gold);
  font-weight: 600;
}

/* Keyless Google Maps embed (?q=…&output=embed). Squarer than the 16/9 video
   frame because a map cares about the block around the pin, not the horizon. */
.map-frame {
  position: relative;
  margin-top: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--royal);
  aspect-ratio: 4 / 3;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The embed is the nice-to-have; this is the part that still works when a
   browser blocks third-party frames, or the reader just wants directions. */
.map-link {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.map-link a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 218, 141, 0.35);
}

.map-link a:hover {
  border-bottom-color: var(--gold);
}

/* --- booking ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
}

.contact-card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
}

.contact-card img {
  width: 190px;
  margin: 0 auto 1.1rem;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.contact-card h3 {
  color: var(--gold);
  margin-bottom: 0.2em;
}

/* --- footer ------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: clamp(2.2rem, 6vw, 3.4rem) 0 2rem;
  background: var(--ink-2);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-grid h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3em;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.foot-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.foot-links a:hover {
  color: var(--gold);
}

.social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  text-decoration: none;
}

.social a:hover {
  background: var(--gold);
  color: var(--ink);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* --- lightbox ----------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.94);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  border-radius: 8px;
}

.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
}

.zoomable {
  cursor: zoom-in;
}

/* --- misc --------------------------------------------------------------- */

.note {
  border-left: 3px solid var(--gold);
  background: rgba(253, 218, 141, 0.07);
  padding: 0.9rem 1.2rem;
  border-radius: 0 8px 8px 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

/* A nowrap heading cannot reflow, so on a narrow phone let it shrink instead of
   pushing the band into a horizontal scroll — especially if Amatic SC has not
   loaded and the wider fallback face is measuring the line. */
@media (max-width: 480px) {
  h2.display.nowrap {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
}

.stack > * + * {
  margin-top: 1rem;
}

/* A brand glyph standing in for link text (LinkedIn, so far). Sized in em so it
   rides the line it sits on; the accessible name lives on the anchor's
   aria-label, since the svg itself is decorative. */
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  vertical-align: -0.45em;
  border-radius: 6px;
  color: var(--gold);
}

.icon-link:hover {
  background: var(--gold);
  color: var(--ink);
}

.icon-link svg {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}
