/* Tanzstudio Wolkenparkett: a made-up dance school's site around a Beseam shop. No scripts of its own. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-wdth.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Nachtblau: text and the dark sections. */
  --night: #141a33;
  --night-soft: #1f2748;
  /* Wolkenweiss: the page. */
  --paper: #f4f5f9;
  --white: #ffffff;
  --line: #dde2ee;
  --muted: #4f5670;
  /* Kobalt: everything you can press. */
  --cobalt: #3040d0;
  --cobalt-deep: #2432a8;
  /* Parkett: the floor, on dark ground and as a pattern. */
  --oak: #d0954f;
  --oak-ink: #8a5516;
  --on-night: #ffffff;
  --on-night-muted: #c9cfe0;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --wrap: min(100% - 2 * var(--gutter), 1240px);
  --header-h: 68px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
  color-scheme: light;
}

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 40px;
    --header-h: 76px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--night);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 750;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 0.95;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-stretch: 85%;
  font-weight: 700;
  line-height: 1.05;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cobalt-deep);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--night);
  font-weight: 600;
}

.skip:focus {
  top: 8px;
}

/* Icons: Lucide, drawn from the sprite at the top of each page, so no icon is fetched. --------------------------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons ---------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 2px solid var(--cobalt);
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--white);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button .icon {
  width: 1.15em;
  height: 1.15em;
}

.button:hover {
  border-color: var(--cobalt-deep);
  background: var(--cobalt-deep);
  color: var(--white);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--night);
}

.button--light:hover {
  border-color: var(--on-night-muted);
  background: var(--on-night-muted);
  color: var(--night);
}

.button--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.button--ghost:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: currentColor;
  color: inherit;
}

.button--outline {
  background: transparent;
  color: var(--cobalt);
}

.button--outline:hover {
  background: var(--cobalt);
  color: var(--white);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}

/* The blur sits on a layer behind the bar: on the header itself it would trap the fixed menu panel inside the bar. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(244 245 249 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--night);
  text-decoration: none;
}

.brand:hover {
  color: var(--night);
}

.brand img {
  width: 39px;
  height: 26px;
}

@media (min-width: 600px) {
  .brand img {
    width: 45px;
    height: 30px;
  }
}

/* The narrowest phones keep the name and the cart, and drop the mark. */
@media (max-width: 379px) {
  .site-header .brand img {
    display: none;
  }
}

@media (max-width: 359px) {
  .site-header .brand-name {
    font-size: 1.1rem;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.brand-name {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0;
  line-height: 0.95;
}

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .header-bar {
    gap: 1rem;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .header-actions {
    gap: 0.6rem;
  }
}

.header-cta {
  display: none;
}

/* The cart's slot: room for a round button of 44 px, the size of the cart's button on a phone. Until the shop has
   started, the slot shows a bag of that size, so the header keeps its shape while the page loads. The cart draws its
   own button inside; nothing here styles it. */
beseam-cart {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 0.8125rem;
  color: var(--night);
}

@media (min-width: 600px) {
  beseam-cart {
    font-size: 0.875rem;
  }
}

.cart-placeholder {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.nav-open {
  justify-content: center;
  width: 44px;
  padding: 0;
}

.nav-open .icon {
  width: 22px;
  height: 22px;
}

.nav-open,
.nav-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--night);
  border-radius: 999px;
  color: var(--night);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-open:hover,
.nav-close:hover {
  color: inherit;
  background: rgb(20 26 51 / 0.06);
}

/* Phone and tablet: the menu is a full-screen panel, opened by the #menu target. */
.site-nav {
  display: none;
}

.site-nav:target {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 14px var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--night);
  color: var(--on-night);
}

.site-nav .nav-close {
  align-self: flex-end;
  padding-left: 0.75rem;
  border-color: var(--on-night);
  color: var(--on-night);
}

.site-nav .nav-close:hover {
  background: rgb(255 255 255 / 0.1);
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav:target ul a {
  display: block;
  padding: 0.35rem 0;
  color: var(--on-night);
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 750;
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  line-height: 1.05;
  text-decoration: none;
}

.site-nav:target ul a:hover,
.site-nav:target ul a[aria-current="page"] {
  color: var(--oak);
}

.site-nav:target :focus-visible {
  outline-color: var(--oak);
}

.site-nav .nav-cta {
  align-self: flex-start;
  border-color: var(--white);
  background: var(--white);
  color: var(--night);
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
    min-height: 44px;
    padding: 0 1.1rem;
    font-size: 0.9375rem;
  }
}

/* From here the menu is in the bar. Its three parts sit in a grid, so the menu stays put when the cart appears. */
@media (min-width: 1180px) {
  .header-bar {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    gap: 1.75rem;
  }

  .header-actions {
    justify-self: end;
  }

  .site-nav,
  .site-nav:target {
    position: static;
    display: block;
    padding: 0;
    overflow: visible;
    background: none;
    color: inherit;
  }

  .site-nav ul {
    display: flex;
    gap: 1.6rem;
  }

  .site-nav ul a,
  .site-nav:target ul a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: var(--night);
    font-family: var(--text);
    font-stretch: 100%;
    font-size: 0.9875rem;
    font-weight: 550;
    text-decoration: none;
    background: linear-gradient(var(--oak), var(--oak)) left calc(100% - 8px) / 0 2px no-repeat;
  }

  .site-nav ul a:hover,
  .site-nav ul a[aria-current="page"],
  .site-nav:target ul a:hover,
  .site-nav:target ul a[aria-current="page"] {
    color: var(--night);
    background-size: 100% 2px;
  }

  .site-nav .nav-close,
  .site-nav .nav-cta,
  .nav-open {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1180px) {
  .site-nav ul a {
    transition: background-size 0.2s ease;
  }
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section--white {
  background: var(--white);
}

.section--night {
  background: var(--night);
  color: var(--on-night);
}

.section--night a:not(.button) {
  color: var(--white);
}

.section--night :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--oak);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.section-head p + p {
  margin-top: 0.75rem;
}

.section--night .section-head p {
  color: var(--on-night-muted);
}

/* A heading of a few words more, set smaller so it keeps to two lines beside its text. */
.section-head--long h2 {
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  line-height: 0.98;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    gap: 3rem;
  }
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 650;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  background: var(--night);
  color: var(--on-night);
}

.hero-photo {
  grid-area: 1 / 1;
  width: 100%;
  height: min(92svh, 860px);
  min-height: 560px;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero::before {
  content: "";
  grid-area: 1 / 1;
  z-index: 1;
  background:
    linear-gradient(to top, rgb(20 26 51 / 0.92) 0%, rgb(20 26 51 / 0.66) 45%, rgb(20 26 51 / 0.2) 78%, rgb(20 26 51 / 0) 100%),
    linear-gradient(to right, rgb(20 26 51 / 0.6) 0%, rgb(20 26 51 / 0.25) 50%, rgb(20 26 51 / 0) 75%);
}

.hero-inner {
  grid-area: 1 / 1;
  z-index: 2;
  align-self: end;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.5rem, 11.5vw, 9.5rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.hero-lede {
  max-width: 34rem;
  color: var(--on-night-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.hero-lede strong {
  color: var(--on-night);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-night-muted);
  font-size: 0.9375rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-facts .icon {
  color: var(--oak);
}

/* The week, as the programme of a dance hall. */
.week {
  background: var(--night);
  color: var(--on-night);
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.week-list {
  display: grid;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.week-list li + li {
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.week-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "day time" "dance dance";
  align-items: baseline;
  gap: 0.2rem 1rem;
  padding: 0.9rem 0 1rem;
  color: var(--on-night);
  text-decoration: none;
}

.week-day {
  grid-area: day;
  color: var(--oak);
  font-size: 0.9375rem;
  font-weight: 600;
}

.week-dance {
  grid-area: dance;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 750;
  font-size: 1.75rem;
  line-height: 1;
}

.week-time {
  grid-area: time;
  color: var(--on-night-muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.week-list a:hover .week-dance {
  color: var(--oak);
}

.week :focus-visible {
  outline-color: var(--oak);
  outline-offset: -3px;
}

@media (min-width: 900px) {
  .week-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .week-list li + li {
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.14);
  }

  .week-list a {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: 100%;
    padding: 1.5rem 1.25rem 1.6rem;
  }

  .week-list li:first-child a {
    padding-left: 0;
  }

  .week-dance {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  }
}

/* Courses ----------------------------------------------------------------- */

.course-featured {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.course-featured img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

.course-featured h3 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-stretch: 78%;
  line-height: 0.95;
}

.course-featured .course-text {
  font-size: 1.125rem;
  max-width: 34rem;
}

@media (min-width: 900px) {
  .course-featured {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

/* Day, time, level: one line each, behind its icon. */
.meta {
  display: grid;
  gap: 0.3rem;
  margin: 0.75rem 0 0.9rem;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.meta .icon {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.25em;
  color: var(--oak-ink);
}

.course-featured .meta {
  margin-block: 1.1rem 1.25rem;
}

.course-text {
  color: var(--muted);
}

.course-grid {
  display: grid;
  gap: 2.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1.1rem;
  border-radius: 6px;
}

.course .course-shop {
  font-size: 0.9rem;
  justify-self: start;
}

.course .course-text {
  margin: 0;
  font-size: 1rem;
}

/* On a phone each course is a row: the photo beside its name, so the four courses take about one screen and the
   shoes follow soon after. */
@media (max-width: 599px) {
  .course-grid {
    gap: 1.75rem;
  }

  .course {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    column-gap: 1rem;
    align-content: start;
  }

  .course > * {
    grid-column: 2;
  }

  .course img {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    margin: 0;
    object-position: 50% 30%;
  }

  .course .meta {
    margin-block: 0.5rem 0.6rem;
    font-size: 0.9375rem;
  }

  .course .course-text {
    font-size: 0.9375rem;
  }
}

@media (min-width: 600px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* Timetable --------------------------------------------------------------- */

.timetable-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1000px) {
  .timetable-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
    gap: clamp(3rem, 5vw, 5rem);
  }
}

.timetable {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.timetable thead th {
  padding: 0 0.75rem 0.6rem 0;
  border-bottom: 2px solid var(--night);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
}

.timetable .th {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timetable .th .icon {
  width: 1.1em;
  height: 1.1em;
}

.timetable .day th {
  padding: 1.6rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 750;
  font-size: 1.625rem;
  line-height: 1;
  text-align: left;
}

.timetable td {
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.timetable td:first-child {
  width: 7.5rem;
  white-space: nowrap;
  font-weight: 600;
}

.timetable td:last-child {
  padding-right: 0;
  color: var(--muted);
}

.timetable .what {
  display: block;
  font-weight: 650;
}

.timetable .level {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 420px) {
  .timetable {
    font-size: 0.96875rem;
  }

  .timetable td:first-child {
    width: 6.4rem;
  }
}

.night-card {
  overflow: hidden;
  border-radius: 6px;
  background: var(--night);
  color: var(--on-night);
}

@media (min-width: 1000px) {
  .night-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.night-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.night-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.night-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.875rem, 3vw, 2.375rem);
}

.night-card p {
  color: var(--on-night-muted);
}

.night-card p:last-child {
  margin-bottom: 0;
}

.night-card strong {
  color: var(--on-night);
  font-weight: 600;
}

.night-card .meta {
  margin-bottom: 0;
  color: var(--on-night);
  font-weight: 500;
}

.night-card .meta .icon {
  color: var(--oak);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.note .icon {
  margin-top: 0.15em;
  color: var(--oak-ink);
}

/* Prices ------------------------------------------------------------------ */

.prices {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.price {
  padding: 2rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.price h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.625rem, 2.6vw, 2rem);
}

.price .price-amount {
  margin: 0 0 1.1rem;
  color: var(--oak);
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.9;
  font-variant-numeric: lining-nums;
}

.price-amount small {
  display: block;
  margin-top: 0.5rem;
  color: var(--on-night-muted);
  font-family: var(--text);
  font-stretch: 100%;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.price > p {
  color: var(--on-night-muted);
}

.price ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--on-night-muted);
}

.price ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.price ul .icon {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.25em;
  color: var(--oak);
}

.price-action {
  margin: 1.5rem 0 0;
}

@media (min-width: 900px) {
  .prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }

  .price {
    padding: 0.25rem clamp(1.5rem, 3vw, 2.75rem) 0.5rem;
    border-bottom: 0;
    border-left: 1px solid rgb(255 255 255 / 0.2);
  }

  .price:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

.prices-note {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  color: var(--on-night-muted);
  font-size: 0.9375rem;
}

/* Team -------------------------------------------------------------------- */

.team {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* One duotone for all four portraits, in the site's night blue and paper white. */
.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1.1rem;
  border-radius: 6px;
  background: var(--night);
}

.person h3 {
  margin-bottom: 0.25rem;
}

/* On a phone the portrait sits beside the name, so four people fit on about one screen. */
@media (max-width: 599px) {
  .team {
    gap: 1.75rem;
  }

  .person {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 1.1rem;
    align-content: start;
  }

  .person > * {
    grid-column: 2;
  }

  .person img {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    margin: 0;
  }
}

.person-role {
  margin: 0 0 0.6rem;
  color: var(--oak-ink);
  font-weight: 650;
}

.person p:last-child {
  margin: 0;
  color: var(--muted);
}

/* The shop ---------------------------------------------------------------- */
.shop-intent {
  display: none;
}
.shop-intent:target {
  display: block;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid currentColor;
  border-radius: 6px;
}
.shop-intent h2 {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  margin: 0 0 0.35rem;
}
.shop-intent p {
  margin: 0;
}


/* The site's colours in the shop. The image tile takes the page's paper tone, so a product shot on white shows as a
   tile on the white section. */
beseam-shop {
  display: block;
  --beseam-accent: #3040d0;
  --beseam-radius: 10px;
  --beseam-surface: var(--paper);
  --beseam-muted: #4f5670;
  --beseam-gap: 20px;
}

/* A title keeps to two lines, as the shop's own does, and takes both even where it needs one: every card is then as
   tall as the next whichever products come first, so the height reserved below holds. The product sheet shows the
   full name. */
beseam-shop::part(title) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2lh;
}

.shop-fallback {
  margin: 0;
  padding: 1.5rem 0;
  color: var(--muted);
}

/* The shop keeps the height reserved here and shows the whole rows of cards that fit in it, then "Alle … anzeigen".
   Reserving exactly N rows means the page does not move when the shop appears and only a few pixels stay empty below
   it. The shop lays its cards out by its own width, not the window's, so its wrapper is a size container: 100cqi is
   the shop's width, and the @container rules below switch at shop widths, as the shop does.
   Measured on the shop's cards of December 2026 (packages/shop 47a93917c) with the demo catalog, in Chromium and
   Firefox, at 17 px and 21.25 px text, with a mouse and on a touch screen:
   - 2 columns, 3 from 600 px and 4 from 1100 px of shop width, --beseam-gap apart;
   - a card is its square image (the tile of a shop of shoes; the badge, the dots and the bag sit on it) and 20px +
     4.75em of brand, two title lines and the price; 4.88em from 600 px, where the title is 1em. The catalog has no
     colours, ratings or sale prices: swatches, a colour line, a rating, a second price line or "Nur noch wenige
     verfügbar" make a card taller;
   - the head is the commission note, then the filter pills with the count and the sort beside them: 18px, the note
     at 5.513em, 4.288em, 2.844em and 1.4em as it wraps less (5.04em up to 420 px, where the shop sets it smaller),
     and the pills at 6px + 1.925em (48 px on a touch screen). Below 57px + 31.53em of shop width (61px + 32.47em on a
     touch screen; 0.47em less where the count has one digit, "4 Produkte") the count and the sort wrap below the
     pills: 14px + 1.882em more (38px + 0.942em);
   - "Alle … anzeigen" takes 34px + 2.6em; 34px + 4em on two lines, up to 15.25em.
   Each switch to a smaller size comes 2 to 5 px after the measured one, and 4 px are spare. Re-measure when the shop's
   cards change: a card taller than this drops the last row and leaves its height empty, a shorter one leaves a gap. */
.wrap:has(> beseam-shop) {
  container-type: inline-size;
}

/* The shop is built under the loader's own 360 px placeholder, which goes once it is: where the shop's top is at or
   above the window's top then, Chromium and Firefox keep the new shop in place on screen and scroll the page by those
   360 px. Nothing in the shop anchors the scroll, so the page stays where it is. */
beseam-shop {
  overflow-anchor: none;
}

beseam-shop {
  --shop-cols: 2;
  --shop-col: calc((100cqi - (var(--shop-cols) - 1) * var(--beseam-gap)) / var(--shop-cols));
  --shop-text: calc(20px + 4.75em);
  --shop-card: calc(var(--shop-col) + var(--shop-text));
  --shop-note: 5.513em;
  --shop-pills: calc(6px + 1.925em);
  --shop-tools: calc(14px + 1.882em);
  --shop-count-less: 0em;
  --shop-tools-beside: calc(57px + 31.53em - var(--shop-count-less));
  --shop-head: calc(
    18px + var(--shop-note) + var(--shop-pills) +
      clamp(0px, (var(--shop-tools-beside) - 100cqi) * 100000, var(--shop-tools))
  );
  --shop-more: calc(34px + 2.6em);
  --shop-rows: 1;
  --shop-after: var(--shop-more);
  min-height: calc(
    var(--shop-head) + var(--shop-rows) * (var(--shop-card) + var(--beseam-gap)) - var(--beseam-gap) +
      var(--shop-after) + 4px
  );
}

@media (pointer: coarse) {
  beseam-shop {
    --shop-pills: max(48px, 6px + 1.925em);
    --shop-tools: calc(38px + 0.942em);
    --shop-tools-beside: calc(61px + 32.47em - var(--shop-count-less));
  }
}

@container (max-width: 15.25em) {
  beseam-shop {
    --shop-more: calc(34px + 4em);
  }
}

@container (max-width: 420px) {
  beseam-shop {
    --shop-note: 5.04em;
  }
}

@container (min-width: 28.75em) {
  beseam-shop {
    --shop-note: 4.288em;
  }
}

@container (min-width: 30.75em) {
  beseam-shop {
    --shop-note: 2.844em;
  }
}

@container (min-width: 33.25em) {
  beseam-shop {
    --shop-note: 1.4em;
  }
}

/* Teaser (four products): one row. The first two on a phone and three on a tablet, each with "show all"; all four from
   1100 px of shop width. */
.shop--teaser {
  --shop-rows: 1;
  --shop-after: var(--shop-more);
  --shop-count-less: 0.47em;
}

/* The shop page: eight or nine products, then "show all". */
.shop--full {
  --shop-rows: 4;
}

@container (min-width: 600px) {
  beseam-shop {
    --shop-cols: 3;
    --shop-text: calc(20px + 4.88em);
  }

  .shop--full {
    --shop-rows: 3;
  }
}

@container (min-width: 1100px) {
  beseam-shop {
    --shop-cols: 4;
  }

  .shop--teaser {
    --shop-after: 0px;
  }

  .shop--full {
    --shop-rows: 2;
  }
}

.shop-teaser-foot {
  margin: 1.75rem 0 0;
}

/* The three things a dance shoe needs, under the teaser's heading. */
.points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.points .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--oak-ink);
}

/* FAQ --------------------------------------------------------------------- */

.faq-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1000px) {
  .faq-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

.faq-layout > div:first-child p {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 24rem;
}

.faq {
  border-top: 2px solid var(--night);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.125rem;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--cobalt);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: no-preference) {
  .faq summary .icon {
    transition: transform 0.2s ease;
  }
}

.faq summary:hover {
  color: var(--cobalt);
}

.faq details > p,
.faq details > div {
  max-width: 44rem;
  margin: -0.25rem 0 0;
  padding-bottom: 1.4rem;
  color: var(--muted);
}

.faq details > div p {
  margin: 0;
}

/* Contact ----------------------------------------------------------------- */

.contact {
  display: grid;
  gap: 3rem;
}

.contact h2 {
  margin-bottom: 1.5rem;
}

.contact-mail {
  margin-top: 1.75rem;
}

.contact-mail .button {
  white-space: normal;
}

.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-style: normal;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact p {
  max-width: 34rem;
}

/* Mail, answer time and the way there, each behind its icon. */
.facts {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.contact-address + .facts {
  margin-top: 0;
}

.facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.facts .icon,
.contact-address .icon {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
  color: var(--oak-ink);
}

.contact figure {
  margin: 0;
}

.contact figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

.contact figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .contact figure {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .contact {
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 5fr);
    column-gap: 3.5rem;
  }

  .contact figure {
    grid-column: auto;
  }
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--night);
  color: var(--on-night-muted);
  font-size: 0.9375rem;
}

.floor {
  height: 20px;
  background: var(--oak) url("/img/parkett.svg") 0 0 / 80px 32px;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}

.site-footer a {
  color: var(--on-night);
}

.site-footer a:hover {
  color: var(--oak);
}

.site-footer :focus-visible {
  outline-color: var(--oak);
}

.site-footer .brand {
  margin-bottom: 1.25rem;
  color: var(--on-night);
}

.site-footer .brand-small {
  color: var(--on-night-muted);
}

.site-footer address {
  display: grid;
  gap: 0.35rem;
  font-style: normal;
}

.footer-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-line .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--oak);
}

.site-footer h2 {
  margin-bottom: 0.9rem;
  color: var(--on-night);
  font-family: var(--text);
  font-stretch: 100%;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}

.site-footer li a:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.demo-note {
  margin-block: 0;
  padding-block: 1.1rem 1.4rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  color: var(--on-night-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Shop page --------------------------------------------------------------- */

/* A short band, so the first row of shoes is on the first screen, ending on a strip of parquet. */
.page-hero {
  background: var(--night);
  color: var(--on-night);
}

.page-hero::after {
  content: "";
  display: block;
  height: 8px;
  background: var(--oak) url("/img/parkett.svg") 0 0 / 80px 32px;
}

.page-hero-inner {
  display: grid;
  gap: 1rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.92;
}

.page-hero p {
  max-width: 38rem;
  margin: 0;
  color: var(--on-night-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

@media (min-width: 1000px) {
  .page-hero-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.3rem 0.9rem 0.3rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--on-night);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.3;
}

.chips .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--oak);
}

.section--shop {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

/* The closing band: dancing feet behind the last call to a course. */
.cta-band {
  background:
    linear-gradient(to right, rgb(20 26 51 / 0.95) 0%, rgb(20 26 51 / 0.85) 45%, rgb(20 26 51 / 0.55) 100%),
    url("/img/shop-hero-1400.webp") 50% 70% / cover no-repeat,
    var(--night);
}

@media (min-width: 1400px) {
  .cta-band {
    background:
      linear-gradient(to right, rgb(20 26 51 / 0.95) 0%, rgb(20 26 51 / 0.85) 45%, rgb(20 26 51 / 0.55) 100%),
      url("/img/shop-hero-2200.webp") 50% 70% / cover no-repeat,
      var(--night);
  }
}

.cta-band h2 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.92;
}

.cta-band p {
  max-width: 34rem;
  color: var(--on-night-muted);
  font-size: 1.125rem;
}

.guide {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1000px) {
  .guide {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(3rem, 5vw, 5rem);
  }
}

.guide dl {
  margin: 0;
  border-top: 2px solid var(--night);
}

.guide dl > div {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .guide dl > div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  }
}

.guide dt {
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 750;
  font-size: 1.375rem;
  line-height: 1.1;
}

.guide dd {
  margin: 0;
  color: var(--muted);
}

.guide dd strong {
  color: var(--night);
  font-weight: 650;
}

.guide figure {
  margin: 0;
}

.guide figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.guide figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The team's advice, beside the list of courses. */
.tips {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 6px;
  background: var(--white);
}

.tips h3 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
}

.tips ul {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.tips li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.tips li .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  color: var(--oak-ink);
}

.tips p {
  margin: 0;
  color: var(--muted);
}

.tips strong {
  color: var(--night);
  font-weight: 650;
}

/* Legal pages ------------------------------------------------------------- */

.legal {
  padding-block: clamp(3.5rem, 8vw, 6rem) var(--section-y);
}

.legal-body > * {
  max-width: 42rem;
}

.legal h1 {
  margin-bottom: 2rem;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.92;
}

.legal h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-stretch: 82%;
  line-height: 1.05;
}

.legal .lead {
  font-size: 1.1875rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal .lead,
.legal strong {
  color: var(--night);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

/* Dance-first studio refresh: a warmer editorial palette, shorter hero, clearer choices. */
:root {
  --night: #221b28;
  --night-soft: #392d3c;
  --paper: #faf7f3;
  --line: #e6dfd9;
  --muted: #625866;
  --cobalt: #a83d55;
  --cobalt-deep: #852e43;
  --oak: #ffc489;
  --section-y: clamp(3.5rem, 6vw, 6rem);
}
.hero-photo { height: min(74svh, 700px); min-height: 490px; }
.hero::before { background: linear-gradient(90deg, rgb(34 27 40 / .88), rgb(34 27 40 / .38) 60%, rgb(34 27 40 / .12)), linear-gradient(0deg, rgb(34 27 40 / .65), transparent 70%); }
.hero-inner { align-self: center; padding-block: 2.5rem; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 7rem); line-height: .95; max-width: 12ch; }
.hero .eyebrow { color: #fff; text-transform: uppercase; font-size: .75rem; letter-spacing: .17em; font-weight: 700; }
.hero-lede { color: #fff; max-width: 33rem; }
.hero-facts { font-size: .85rem; }
.course { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.course img { border-radius: 10px; }
.course .course-shop { color: var(--cobalt-deep); }
.dance-shop-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 0 1.25rem; }
.dance-shop-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .94rem; font-weight: 600; color: var(--night); background: var(--white); }
.dance-shop-nav a:hover, .dance-shop-nav a[aria-current="page"] { background: var(--night); color: white; border-color: var(--night); }
.shop-intent:target { background: var(--paper); border-color: var(--line); border-radius: 12px; }
.page-hero { padding-block: 2.25rem; }
@media (max-width:599px) {
  .hero-photo { height: max(480px, 68svh); min-height: 480px; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.5rem); }
  .hero-facts { gap: .5rem 1rem; }
  .course { padding: 10px; }
  .dance-shop-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .dance-shop-nav a { flex: none; }
}

.preview-notice { padding: 6px var(--gutter); text-align: center; font-size: .8rem; font-weight: 600; background: #f3e9dc; color: #493a32; }
.demo-back{display:block;padding:16px;text-align:center;font-weight:600;color:var(--cobalt-deep)}
/* Keep the hero within the viewport even when its photo or fonts cannot load. */
.hero { grid-template-columns: minmax(0, 1fr); }
.hero-photo, .hero-inner { min-width: 0; }
.course-featured { grid-template-columns: minmax(0, 1fr); }
.course-featured > *, .course-grid > *, .course > * { min-width: 0; }
.course-featured h3, .course h3 { overflow-wrap: anywhere; }
@media (min-width:900px){.course-featured { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }}
@media(max-width:380px){.course-featured .button{white-space:normal;text-align:center;max-width:100%;overflow-wrap:anywhere}}

/* Academy polish: a refined studio editorial layout with an unobtrusive shop. */
:root{--night:#241c29;--night-soft:#392d3b;--paper:#fbf8f5;--line:#e5dbd4;--cobalt:#943b53;--cobalt-deep:#783045;--section-y:clamp(3.2rem,6vw,6rem)}
.site-header{box-shadow:0 1px 0 rgba(36,28,41,.09)}
.hero-photo{height:min(72svh,660px);min-height:460px}
.hero h1{letter-spacing:-.035em;max-width:11ch;font-size:clamp(3.5rem,8vw,7rem)}
.hero-inner{padding-block:3rem}
.hero-facts{border-top:1px solid #ffffff36;padding-top:18px}
.week-list a{transition:background .15s}.week-list a:hover{background:#ffffff0b}
.section-head h2{letter-spacing:-.035em}
.course{box-shadow:0 2px 10px rgba(36,28,41,.045);padding:14px;border-radius:14px}
.course img,.course-featured img{border-radius:10px}
.course h3{letter-spacing:-.02em}
#schuhe .section-head{margin-bottom:24px}
.shop--teaser{--beseam-radius:10px;--beseam-gap:24px 16px}
.price-card{border-radius:12px}
.demo-back{font-size:.9rem}
@media(max-width:599px){.hero-photo{height:max(470px,66svh);min-height:470px}.hero-inner{padding-block:2rem}.hero h1{font-size:clamp(3rem,11vw,4.5rem)}.course{padding:10px}}
