@font-face {
  font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}

:root {
  /* Colours follow nickygabris.com: deep green on warm cream. */
  --paper: #fefaf6;
  --ink: #25302b;
  --soft: #7c857f;
  --line: #e6e1d6;
  --accent: #284f3f;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --edge: clamp(1.25rem, 6vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1.1em; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; color: var(--accent); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 2.75rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.quiet { color: var(--soft); }

.top { padding: 1.75rem var(--edge); font: 400 .95rem var(--serif); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); }
.top a { text-decoration: none; }

.logo { padding: clamp(3rem, 9vw, 6.5rem) var(--edge) 0; }
.logo img { width: min(72%, 17rem); margin: 0 auto; }

main > section { padding: clamp(4rem, 10vw, 8rem) var(--edge); max-width: 74rem; margin: 0 auto; }

.opening { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 56rem) { .opening { grid-template-columns: 1.1fr 1fr; } }
figure { margin: 0; }
figcaption { margin-top: .9rem; font-size: .85rem; color: var(--soft); }
.intro { font: 300 clamp(1.45rem, 2.5vw, 1.85rem)/1.45 var(--serif); margin: 0 0 1.5rem; max-width: 22em; }
.sign { font: italic 300 1.5rem var(--serif); color: var(--accent); margin: 0; }

/* A fine rule and dot, as on the stamp, used between sections. */
.rule { display: flex; align-items: center; gap: .6rem; width: min(22rem, 60%); margin: 0 auto; color: var(--accent); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.rule span { width: .3rem; height: .3rem; background: currentColor; border-radius: 50%; }

/* Sessions */
.classes { max-width: 46rem !important; }
.classes h2, .nicky h2 { text-align: left; }
.month { font: italic 300 1.5rem var(--serif); margin: 3rem 0 .5rem; color: var(--ink); }
.month:first-child { margin-top: 0; }
.day { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.day:last-child { border-bottom: 1px solid var(--line); }
.day .date { flex: 0 0 8.5rem; }
.day .times { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.slot {
  font: inherit; color: inherit; background: none; border: 0; padding: .1rem 0; cursor: pointer;
  border-bottom: 1px solid var(--ink);
}
.slot:hover { color: var(--accent); border-color: var(--accent); }
.slot[aria-pressed="true"] { color: var(--accent); border-bottom: 2px solid var(--accent); font-weight: 400; }
.slot[disabled] { color: var(--soft); border-color: transparent; text-decoration: line-through; cursor: default; }
.slot small { font-size: .8rem; color: var(--accent); margin-left: .4rem; }
.notice { border-left: 2px solid var(--accent); padding-left: 1rem; margin-bottom: 2.5rem; }

/* Nicky */
.nicky { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 56rem) { .nicky { grid-template-columns: 1fr 1.1fr; } }
.nicky div { max-width: 30rem; }

.foot { padding: 4rem var(--edge) 9rem; max-width: 74rem; margin: 0 auto; font-size: .95rem; border-top: 1px solid var(--line); }
.foot p { max-width: 34rem; }
.foot p:last-child { margin-top: 2rem; color: var(--soft); }

/* Booking bar */
.bar {
  position: fixed; inset: auto 0 0 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  padding: 1rem var(--edge) calc(1rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--accent);
}
.bar p { margin: 0; flex: 1 1 10rem; font: 300 1.35rem var(--serif); }
.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper button { width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; background: none; color: inherit; font-size: 1.2rem; cursor: pointer; }
.stepper button:hover:not([disabled]) { border-color: var(--ink); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.btn {
  font: 400 1rem var(--sans); color: #fff; background: var(--accent);
  border: 0; padding: .85rem 1.75rem; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover { background: #1b3a2d; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Thanks and privacy */
.page { max-width: 38rem; margin: 0 auto; padding: clamp(3rem, 10vw, 7rem) var(--edge); }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 300; margin-bottom: 2rem; }
.page h2 { font-size: 1.05rem; margin: 2.75rem 0 .75rem; }
.ticket { margin: 2.5rem 0; display: grid; grid-template-columns: auto 1fr; gap: .9rem 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.ticket dt { color: var(--soft); }
.ticket dd { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
