/* On The Door Dunedin — base styles (Box Office, Dark) */

:root {
  --bg: #0a0a0a;
  --bg-alt: #101010;
  --surface: #131313;
  --border: #262626;
  --line: #f2f1ec;
  --text: #f2f1ec;
  --text-muted: #8f8f8f;
  --accent: #ff4d00;
  --accent-strong: #ff6a2b;
  --focus: #7fb8e0;
  --radius: 0;
  --wrap: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.05rem; margin-bottom: 0.25em; }

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.75em 1em;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wrap--narrow { max-width: 760px; }

.eyebrow {
  font-family: "Roboto Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 0.9em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.9em 1.5em;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  color: var(--text);
  text-decoration: none;
  margin: 0 0.6em 0.6em 0;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.link { color: var(--accent); font-weight: 600; }

/* Header */
.site-header {
  border-bottom: 2px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__logo {
  height: 48px;
  width: auto;
  /* source art is black-on-transparent; flip it white for the dark header */
  filter: invert(1);
}
.brand__place {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.3em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--text);
  padding: 0.65em 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.site-nav a:last-child { border-bottom: none; }
.site-nav__cta { color: var(--accent) !important; }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    gap: 1.75rem;
  }
  .site-nav a { border-bottom: none; padding: 0; }
  .site-nav__cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.55em 1em;
    border-radius: var(--radius);
    font-weight: 700;
  }
}

/* Hero */
.hero { border-bottom: 2px solid var(--line); }
.hero__row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem;
}
.hero__badge {
  display: inline-block;
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  padding: 0.4em 0.8em;
  margin: 0 0 1.3em;
}
.hero__tour {
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 0.9em;
}
.hero__summary { max-width: 56ch; }
.hero__quote {
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  color: var(--text);
  margin: 0.4em 0 0;
  line-height: 1.6;
}
.hero__quote span { color: var(--text-muted); }
.hero__actions { margin-top: 1.6rem; }
.event-hero__summary + .hero__quote { margin-top: -0.2em; margin-bottom: 1.4em; }
.hero__media {
  aspect-ratio: 3 / 4;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
}

@media (min-width: 900px) {
  .hero__row { flex-direction: row-reverse; align-items: flex-start; padding: 3.5rem 3rem; }
  .hero__media { flex: 0 0 260px; }
  .hero__inner { flex: 1; }
}

.event-card__placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  max-width: 260px;
}

/* Sections */
.section { padding: 3rem 0; border-top: 1px solid var(--border); }
.section--tint { background: var(--bg-alt); }
.section--tint__inner { max-width: 760px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.section__head h2 { margin: 0; }

.page-head {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 2px solid var(--line);
}

/* Ticket manifest table */
.ticket-manifest-wrap { overflow-x: auto; }
.ticket-manifest { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ticket-manifest th {
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 0.7em 0.9em;
  border-bottom: 2px solid var(--line);
  color: var(--text-muted);
  white-space: nowrap;
}
.ticket-manifest td {
  padding: 1.1em 0.9em;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ticket-manifest .tm-city { font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.ticket-manifest .tm-date {
  font-family: "Roboto Mono", monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.ticket-manifest .tm-venue__sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35em;
}
.ticket-manifest .tm-venue__sub a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.ticket-manifest .tm-venue__sub a:hover { color: var(--accent); }
.ticket-manifest .tm-action { text-align: right; }
.ticket-manifest .tm-action a {
  display: inline-block;
  font-family: "Roboto Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: #fff;
  padding: 0.6em 0.9em;
  text-decoration: none;
  white-space: nowrap;
}
.ticket-manifest .tm-action a:hover { background: var(--accent-strong); }

@media (max-width: 700px) {
  .ticket-manifest, .ticket-manifest thead, .ticket-manifest tbody, .ticket-manifest th, .ticket-manifest td, .ticket-manifest tr { display: block; }
  .ticket-manifest thead { display: none; }
  .ticket-manifest tr { border-bottom: 2px solid var(--border); padding: 0.9em 0; }
  .ticket-manifest td { border-bottom: none; padding: 0.25em 0; }
  .ticket-manifest .tm-action { text-align: left; margin-top: 0.5em; }
}

/* Event cards (grid) */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .event-grid { grid-template-columns: repeat(3, 1fr); }
}
.event-card {
  display: block;
  background: var(--surface);
  border: 2px solid var(--line);
  overflow: hidden;
  color: var(--text);
}
.event-card:hover { border-color: var(--accent); text-decoration: none; }
.event-card__media {
  aspect-ratio: 3 / 4;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--line);
}
.event-card__body { padding: 1rem 1.1rem 1.25rem; }
.event-card__eyebrow {
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.5em;
}
.event-card__cities { font-family: "Roboto Mono", monospace; font-size: 0.78rem; margin: 0; }

/* Event hero (single event page) */
.event-hero { border-bottom: 2px solid var(--line); }
.event-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem;
}
.event-hero__poster {
  aspect-ratio: 3 / 4;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
}
.event-hero__summary { max-width: 56ch; }
@media (min-width: 900px) {
  .event-hero__inner { flex-direction: row-reverse; align-items: flex-start; padding: 3.5rem 3rem; }
  .event-hero__poster { flex: 0 0 260px; }
  .event-hero__info { flex: 1; }
}

/* Event detail rows (events listing page) */
.event-detail { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.event-detail:first-child { padding-top: 0; }
.event-detail__head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.event-detail__poster {
  aspect-ratio: 3 / 4;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
}
@media (min-width: 800px) {
  .event-detail__head { flex-direction: row; align-items: center; }
  .event-detail__poster { flex: 0 0 220px; aspect-ratio: 3/4; }
}

/* Forms */
.contact-form { max-width: 520px; margin-top: 1.5rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.35em; }
.field label {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7em 0.8em;
  border-radius: var(--radius);
  font: inherit;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; }
.form-success {
  margin-top: 1.5rem;
  padding: 1em 1.2em;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--line);
  background: var(--bg-alt);
  margin-top: 2rem;
  padding: 2.5rem 0 1.25rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer__brand {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.25em;
}
.site-footer__links { display: flex; align-items: center; gap: 0.8em; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  line-height: 0;
  border: 2px solid var(--line);
  padding: 0.55em;
}
.social-icon:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.social-icon svg { width: 20px; height: 20px; }
.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.site-footer__legal p { margin: 0; }

@media (min-width: 700px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; }
}
