/*
Theme Name: Boston Typewriter Orchestra
Theme URI: https://bostontypewriterorchestra.com
Author: Boston Typewriter Orchestra
Description: Custom theme for the Boston Typewriter Orchestra — Olivetti poster aesthetic with Malört Mode.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bto
*/

/* ═══════════════════════════════════════════════════════
   BTO DESIGN TOKENS
   ═══════════════════════════════════════════════════════ */
:root {
  --paper:   #E8DCA8;
  --paper2:  #DDD098;
  --paper3:  #F4EDD0;
  --red:     #CC2200;
  --green:   #1C6B34;
  --blue:    #1A488A;
  --orange:  #D4761A;
  --yellow:  #E8B820;
  --ink:     #1A1A14;
}

/* ═══════════════════════════════════════════════════════
   GLOBAL RESET & BASE
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════
   COLOUR STRIPE
   ═══════════════════════════════════════════════════════ */
.bto-stripe {
  display: flex;
  height: 10px;
}
.bto-stripe span { flex: 1; }
.bto-stripe--bottom { height: 8px; }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.bto-nav {
  display: flex;
  align-items: center;
  padding: 12px 40px;
  background: var(--paper3);
  border-bottom: 2.5px solid var(--ink);
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}

.bto-nav__logo {
  height: 48px;
  width: auto;
  margin-right: 24px;
  flex-shrink: 0;
}

.bto-nav__divider {
  width: 2px;
  height: 28px;
  background: var(--ink);
  opacity: 0.15;
  margin-right: 28px;
  flex-shrink: 0;
}

.bto-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.bto-nav__links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.bto-nav__links a:hover { opacity: 0.6; }

.bto-nav__sep {
  color: var(--ink);
  opacity: 0.2;
  margin: 0 16px;
  font-size: 12px;
}

.bto-nav__malort-btn {
  margin-left: auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.1s, color 0.1s;
}
.bto-nav__malort-btn:hover {
  background: var(--ink);
  color: var(--paper3);
}

/* ═══════════════════════════════════════════════════════
   SECTION LABEL
   ═══════════════════════════════════════════════════════ */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-label::before { content: "◆ "; }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.bto-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 3px solid var(--ink);
  min-height: 360px;
}

.bto-hero__left {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 3px solid var(--ink);
}

.bto-hero__rule {
  display: flex;
  margin-bottom: 28px;
}
.bto-hero__rule span { height: 5px; }

.bto-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3.8vw, 52px);
  color: var(--ink);
  line-height: 1.0;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.bto-hero__title em {
  color: var(--red);
  font-style: normal;
}

.bto-hero__tagline {
  font-family: 'Special Elite', cursive;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 400px;
}

.bto-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.bto-hero__cta {
  color: white;
  padding: 11px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}
.bto-hero__cta:hover { opacity: 0.85; }
.bto-hero__cta--red    { background: var(--red); }
.bto-hero__cta--green  { background: var(--green); }
.bto-hero__cta--ink    { background: var(--ink); }

.bto-hero__right {
  background: var(--paper2);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bto-video-card {
  position: relative;
  background: #0d0d0d;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
}

.bto-video-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: 0.85;
}

.bto-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bto-video-card__play-btn {
  width: 56px;
  height: 56px;
  background: rgba(204,34,0,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}

.bto-video-card__play-icon {
  color: white;
  font-size: 22px;
  margin-left: 5px;
  line-height: 1;
}

.bto-video-card__duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.85);
  color: white;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
}

.bto-video-caption {
  margin-top: 14px;
}
.bto-video-caption__title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.bto-video-caption__sub {
  font-family: 'Special Elite', cursive;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.55;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */
.bto-about {
  padding: 52px;
  border-bottom: 3px solid var(--ink);
}

.bto-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.bto-about__grid p {
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.88;
}

/* ═══════════════════════════════════════════════════════
   UPCOMING SHOWS
   ═══════════════════════════════════════════════════════ */
.bto-shows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 3px solid var(--ink);
  align-items: stretch;
}

.bto-shows__content {
  padding: 48px 44px 48px 52px;
  border-right: 3px solid var(--ink);
}

.bto-shows__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.bto-shows__title {
  font-family: 'Special Elite', cursive;
  font-size: 36px;
  color: var(--ink);
  line-height: 1;
}

.bto-btn {
  color: white;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-block;
  transition: opacity 0.15s;
}
.bto-btn:hover { opacity: 0.85; }
.bto-btn--red    { background: var(--red); }
.bto-btn--green  { background: var(--green); }
.bto-btn--blue   { background: var(--blue); }
.bto-btn--orange { background: var(--orange); }
.bto-btn--ink    { background: var(--ink); }

.bto-shows__table {
  border-top: 2.5px solid var(--ink);
}

.bto-show-row {
  display: grid;
  grid-template-columns: 170px 1fr 90px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dotted rgba(26,26,20,0.27);
  gap: 20px;
}

.bto-show-row__date {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
}

.bto-show-row__venue {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.1;
}

.bto-show-row__city {
  font-family: 'Special Elite', cursive;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.55;
  margin-top: 3px;
}

.bto-show-row__btn {
  color: white;
  padding: 7px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
}

.bto-shows__photo {
  background: var(--paper2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bto-shows__photo img {
  width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════════════
   MEMO + NEWSLETTER
   ═══════════════════════════════════════════════════════ */
.bto-memo-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 3px solid var(--ink);
}

.bto-memo {
  padding: 44px 52px;
  border-right: 1.5px solid rgba(26,26,20,0.13);
  background: var(--paper2);
}

.bto-memo__header {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.bto-memo__urgent { color: var(--red); }

.bto-memo__fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 18px;
  font-family: 'Special Elite', cursive;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26,26,20,0.19);
}
.bto-memo__field-label { opacity: 0.45; font-weight: 700; }

.bto-memo__body {
  font-family: 'Special Elite', cursive;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.78;
}

.bto-newsletter {
  padding: 44px 52px;
  background: var(--paper);
}

.bto-newsletter__title {
  font-family: 'Special Elite', cursive;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1;
}

.bto-newsletter__rule {
  height: 3px;
  background: var(--blue);
  width: 64px;
  margin-bottom: 20px;
}

.bto-newsletter__text {
  font-family: 'Special Elite', cursive;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.78;
  margin-bottom: 22px;
}

.bto-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bto-newsletter__input {
  border: 1.5px solid rgba(26,26,20,0.27);
  background: var(--paper3);
  padding: 10px 14px;
  font-family: 'Special Elite', cursive;
  font-size: 12px;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.bto-newsletter__input:focus {
  border-color: var(--ink);
}
.bto-newsletter__input::placeholder {
  opacity: 0.45;
}

.bto-newsletter__submit {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  margin-top: 4px;
  width: 100%;
  transition: opacity 0.15s;
}
.bto-newsletter__submit:hover { opacity: 0.88; }

/* ═══════════════════════════════════════════════════════
   NEWS
   ═══════════════════════════════════════════════════════ */
.bto-news {
  padding: 48px 52px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper3);
}

.bto-news__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.bto-news__title {
  font-family: 'Special Elite', cursive;
  font-size: 36px;
  color: var(--ink);
  line-height: 1;
}

.bto-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.bto-news-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid;
}
.bto-news-card:nth-child(odd)  { background: var(--paper); }
.bto-news-card:nth-child(even) { background: var(--paper2); }

.bto-news-card__image {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.bto-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bto-news-card__body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bto-news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bto-news-card__tag {
  color: white;
  padding: 3px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bto-news-card__date {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.45;
}

.bto-news-card__headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.2;
}

.bto-news-card__excerpt {
  font-family: 'Special Elite', cursive;
  font-size: 12.5px;
  color: var(--ink);
  opacity: 0.65;
  line-height: 1.72;
  flex: 1;
}

.bto-news-card__readmore {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.bto-news-card__readmore:hover { opacity: 0.65; }

/* ═══════════════════════════════════════════════════════
   MERCHANDISE
   ═══════════════════════════════════════════════════════ */
.bto-merch {
  padding: 48px 52px;
  border-bottom: 3px solid var(--ink);
}

.bto-merch__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.bto-merch__title {
  font-family: 'Special Elite', cursive;
  font-size: 36px;
  color: var(--ink);
  line-height: 1;
}

.bto-merch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.bto-merch-card {
  background: var(--paper2);
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(26,26,20,0.13);
}

.bto-merch-card__image {
  background: #e0d8bc;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-bottom: 2px solid;
}
.bto-merch-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bto-merch-card__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.bto-merch-card__name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.bto-merch-card__desc {
  font-family: 'Special Elite', cursive;
  font-size: 12px;
  color: var(--ink);
  opacity: 0.6;
  line-height: 1.6;
  flex: 1;
}

.bto-merch-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.bto-merch-card__price {
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  font-size: 18px;
}

.bto-merch-card__btn {
  color: white;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.bto-merch-card__btn:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.bto-footer {
  background: var(--paper2);
}

.bto-footer__social {
  padding: 36px 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid rgba(26,26,20,0.13);
}

.bto-social-icon {
  border: 2.5px solid;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 88px;
  background: var(--paper3);
  transition: opacity 0.15s;
  text-decoration: none;
  color: var(--ink);
}
.bto-social-icon:hover { opacity: 0.75; }

.bto-social-icon__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bto-footer__bottom {
  padding: 18px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bto-footer__name {
  font-family: 'Special Elite', cursive;
  font-size: 16px;
  color: var(--red);
}

.bto-footer__copy {
  font-family: 'Special Elite', cursive;
  font-size: 10px;
  color: var(--ink);
  opacity: 0.4;
  letter-spacing: 0.08em;
  text-align: center;
}

.bto-footer__swatches {
  display: flex;
  gap: 0;
}
.bto-footer__swatches span {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .bto-hero,
  .bto-shows,
  .bto-memo-newsletter {
    grid-template-columns: 1fr;
  }
  .bto-hero__left   { border-right: none; border-bottom: 3px solid var(--ink); }
  .bto-shows__content { border-right: none; border-bottom: 3px solid var(--ink); }
  .bto-memo         { border-right: none; border-bottom: 3px solid var(--ink); }

  .bto-about__grid,
  .bto-news__grid,
  .bto-merch__grid  { grid-template-columns: 1fr; }

  .bto-show-row { grid-template-columns: 1fr 1fr; }
  .bto-show-row__date { grid-column: 1 / -1; }

  .bto-nav { padding: 12px 20px; }
  .bto-about, .bto-news, .bto-merch,
  .bto-memo, .bto-newsletter,
  .bto-shows__content, .bto-hero__left,
  .bto-hero__right { padding: 32px 20px; }

  .bto-footer__social,
  .bto-footer__bottom { padding: 24px 20px; }
}
