/* Chair — one stylesheet for the whole site.
   Mobile first. From 900px up: menu in a left column, content in the middle. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #000;
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------------------------------------------------------------- header -- */

header {
  text-align: center;
  padding: 90px 24px 40px;
}

.brand {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-block;
}

.tagline {
  max-width: 30ch;
  margin: 18px auto 0;
}

.tagline b {
  font-weight: 700;
}

/* ---------------------------------------------------------------- burger -- */

#burger {
  position: fixed;
  top: 26px;
  left: 24px;
  z-index: 30;

  width: 34px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

#burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
  transition: 0.3s;
}

#burger span:nth-child(1) { top: 0; }
#burger span:nth-child(2) { top: 10px; }
#burger span:nth-child(3) { top: 20px; }

/* three lines collapse into an X */
#burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ menu -- */

/* mobile: full screen overlay */
#menu {
  position: fixed;
  inset: 0;
  z-index: 20;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: #fff;
  padding: 80px 24px 40px;
  text-align: center;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

#menu.open {
  opacity: 1;
  visibility: visible;
}

#menu li {
  margin: 14px 0;
}

#menu a {
  font-size: 22px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#menu a:hover {
  opacity: 0.55;
}

/* the page you are on is bolder */
#menu a[aria-current="page"] {
  font-weight: 800;
}

/* "Book us" + "Electronic Press Kit" sit apart from the rest */
.menu-secondary {
  margin-top: 60px;
}

#menu .socials {
  margin-top: 60px;
}

/* ------------------------------------------------------------------ main -- */

main {
  padding: 0 24px 40px;
}

.home-photo {
  max-width: 280px;
  margin: 0 auto;
}

/* section heading inside content ("Bio", "Technical Rider", ...) */
h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 60px 0 20px;
}

p {
  margin-bottom: 18px;
}

.center {
  text-align: center;
}

/* the ★ that separates blocks */
.star {
  text-align: center;
  margin: 60px 0;
}

/* underlined standalone links */
.link {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  opacity: 0.55;
}

/* stack of links, one per line */
.links li {
  margin-bottom: 12px;
}

/* --------------------------------------------------------------- reviews -- */

.review {
  text-align: center;
  margin-bottom: 34px;
}

/* the quote itself, not the outlet name or the stars below it */
.review .link {
  font-style: italic;
}

.review .outlet {
  display: block;
  font-weight: 700;
  margin-top: 4px;
}

.review .stars {
  display: block;
  margin-top: 14px;
  letter-spacing: 2px;
}

/* ----------------------------------------------------------- photo grid -- */

.cover {
  max-width: 280px;
  margin: 0 auto 20px;
}

figure {
  margin-bottom: 24px;
}

figcaption {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* press photos — full width of the content column, stacked, not cropped */
.gallery img {
  width: 100%;
  margin-bottom: 10px;
}

/* responsive 16:9 video */
.video {
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------------------------------------------------------------- events -- */

.events li {
  padding: 6px 0;
}

.events .date {
  font-weight: 700;
  margin-right: 10px;
}

/* booking sits well below the dates, not glued to the last one */
.booking {
  margin-top: 90px;
}

.tbd {
  color: #f00;
  font-size: 13px;
}

/* -------------------------------------------------------- room of chairs -- */

/* chairs arranged on a circle; each one carries its index in --i */
.circle {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 40px auto;
  font-size: 26px;
}

.circle .tv {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circle .chair {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -18px 0 0 -14px;
  transform: rotate(calc(var(--i) * 20deg)) translateY(-120px)
    rotate(calc(var(--i) * -20deg));

  cursor: pointer;
  user-select: none;
  transition: 0.15s;
}

.circle .chair:active {
  scale: 0.85;
}

.hint {
  color: #999;
  font-size: 14px;
  margin-bottom: 6px;
}

/* the line that appears under the hint after a chair is clicked.
   min-height keeps the space reserved so nothing jumps around. */
#seat-msg {
  min-height: 1.5em;
  opacity: 0;
  transition: opacity 0.3s;
}

#seat-msg.show {
  opacity: 1;
}

/* rows of chairs facing a tv — rows never wrap, they scale to fit instead */
.audience {
  text-align: center;
  margin: 40px 0;
}

.audience .row {
  white-space: nowrap;
  font-size: clamp(13px, 5.4vw, 26px);
  line-height: 1.5;
  word-spacing: 2px;
}

.audience .tv {
  font-size: clamp(18px, 6vw, 32px);
  margin-top: 10px;
}

/* ---------------------------------------------------------------- footer -- */

footer {
  padding: 60px 24px 50px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.socials img {
  height: 22px;
  width: auto;
  transition: 0.2s;
}

.socials a:hover img {
  transform: translateY(-3px);
}

/* ========================================================== 900px and up == */

@media (min-width: 900px) {
  #burger {
    display: none;
  }

  /* header full width on top, then menu left / content middle */
  body {
    display: grid;
    grid-template-columns: 1fr 240px 520px 1fr;
  }

  header  { grid-column: 1 / -1; grid-row: 1; padding-top: 70px; }
  #menu   { grid-column: 2;      grid-row: 2; }
  main    { grid-column: 3;      grid-row: 2; }
  footer  { grid-column: 1 / -1; grid-row: 3; }

  .brand {
    font-size: 60px;
  }

  .tagline {
    max-width: none;
  }

  /* menu stays put on the left while the content scrolls past it */
  #menu {
    position: sticky;
    top: 40px;
    align-self: start;

    display: block;
    padding: 0;
    text-align: left;

    opacity: 1;
    visibility: visible;
    transition: none;
  }

  #menu li {
    margin-bottom: 18px;
  }

  #menu a {
    font-size: 17px;
  }

  .menu-secondary {
    margin-top: 40px;
  }

  /* home link and socials are only needed in the mobile overlay */
  #menu .socials,
  .only-mobile {
    display: none;
  }

  main {
    padding: 0 0 60px;
  }

  h3:first-child {
    margin-top: 0;
  }
}
