/* ==========================================================
   Konzerthaus Halden
   International Typographic Style. Inter, tracked tight.
   One page-wide container, a named 12 column grid with a
   fixed gutter, every block on an explicit span. No borders:
   separation is whitespace, alignment, weight and flat
   colour fields. Two hairlines only, both as typographic
   devices, drawn as 1px flat fields (not border rules).
   ========================================================== */

.page {
  --paper: #f2f1ee;
  --ink: #111111;
  --red: #e1261c;
  --grey: #8c8c88;
  --pale: #d8d7d2;
  --warm: #b9b4a8;

  /* one spacing unit, everything below is a multiple of it */
  --u: 0.5rem;
  --gutter: calc(var(--u) * 3);
  --margin: clamp(calc(var(--u) * 3), 5vw, calc(var(--u) * 9));
  --measure: 92rem;

  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.011em;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.page h1,
.page h2,
.page h3,
.page p,
.page ul,
.page ol,
.page dl,
.page dd,
.page dt,
.page figure {
  margin: 0;
  padding: 0;
}

.page ul,
.page ol {
  list-style: none;
}

.page :where(a) {
  color: var(--red);
  text-decoration: none;
}

.page :where(a):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.page a:focus-visible,
.page :focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

/* ---------- container and grid ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: calc(var(--u) * 6);
  align-items: start;
}

/* ---------- type scale ---------- */

.page h1 {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.sectionTitle {
  grid-column: 3 / 10;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.page h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.kicker,
.footLabel {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 44ch;
}

.caption {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--grey);
  max-width: 40ch;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* the two permitted hairlines, drawn as flat 1px fields */
.rule {
  display: block;
  height: 1px;
  background: var(--ink);
  margin-top: calc(var(--u) * 1.5);
}

.ruleLight {
  display: block;
  height: 1px;
  background: var(--grey);
  margin-bottom: calc(var(--u) * 7);
}

/* ---------- masthead ---------- */

.masthead {
  padding-block: calc(var(--u) * 4) calc(var(--u) * 6);
}

.masthead .grid {
  row-gap: calc(var(--u) * 3);
  align-items: baseline;
}

.wordmark {
  grid-column: 1 / 6;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.mastheadMeta {
  grid-column: 6 / 9;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--grey);
}

.nav {
  grid-column: 9 / 13;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: calc(var(--u) * 2.5);
  row-gap: var(--u);
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.navNo {
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* ---------- hero ---------- */

.hero {
  padding-bottom: calc(var(--u) * 10);
}

.heroType {
  grid-column: 1 / 8;
  display: grid;
  gap: calc(var(--u) * 3);
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--u) * 3);
  margin-top: calc(var(--u) * 1);
}

.button {
  display: inline-block;
  background: var(--red);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: calc(var(--u) * 1.5) calc(var(--u) * 3);
}

.button:hover {
  background: var(--ink);
  text-decoration: none;
}

.textLink {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.heroArt {
  grid-column: 8 / 13;
  display: grid;
  gap: calc(var(--u) * 2);
  margin: 0;
}

/* The hero figure holds the season-poster photograph; the pattern that used
   to stand in for it now only appears as decoration elsewhere. */
.heroArt .photo {
  aspect-ratio: 4 / 5;
}

.artField {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.fieldPaper {
  background-color: var(--paper);
}

.fieldPale {
  background-color: var(--pale);
}

.fieldInk {
  background-color: var(--ink);
}

.heroImage {
  margin-top: calc(var(--u) * 10);
}

.bleedPhoto {
  width: 100%;
  height: clamp(18rem, 46vw, 34rem);
  object-fit: cover;
  object-position: 50% 50%;
}

/* full-width ruled strip between sections */
.strip {
  position: relative;
  height: clamp(4rem, 7vw, 6.5rem);
  background-color: var(--paper);
}

.stripField {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ---------- generic section ---------- */

.section {
  padding-block: calc(var(--u) * 14);
}

.sectionNo {
  grid-column: 1 / 3;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.sectionNote {
  grid-column: 3 / 8;
  font-size: 0.9375rem;
  color: var(--grey);
  max-width: 46ch;
}

.photo {
  width: 100%;
  object-fit: cover;
}

/* ---------- 01 season ---------- */

.seasonBodyA {
  grid-column: 3 / 7;
  display: grid;
  gap: calc(var(--u) * 2);
  max-width: 40ch;
}

.seasonBodyB {
  grid-column: 7 / 10;
  display: grid;
  gap: calc(var(--u) * 2);
  font-size: 0.9375rem;
  color: var(--grey);
}

.seasonArt {
  grid-column: 10 / 13;
}

.seasonArt .artField {
  aspect-ratio: 3 / 4;
}

.figures {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: calc(var(--u) * 4);
  margin-top: calc(var(--u) * 4);
}

.figures li {
  grid-column: span 3;
  display: grid;
  gap: var(--u);
  align-content: start;
}

.figureValue {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.figureLabel {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--grey);
  max-width: 20ch;
}

/* ---------- pattern band with cut-out ---------- */

.band {
  position: relative;
  background-color: var(--paper);
  padding-block: calc(var(--u) * 10);
  overflow: hidden;
}

.bandField {
  position: absolute;
  inset: 0;
  background-color: var(--paper);
}

.band .wrap {
  position: relative;
}

.bandNote {
  grid-column: 1 / 6;
  align-self: end;
  font-size: 0.9375rem;
  line-height: 1.45;
  max-width: 34ch;
  background: var(--paper);
  padding: calc(var(--u) * 2);
}

.bandCutout {
  position: relative;
  grid-column: 8 / 12;
  display: grid;
  place-items: center;
  min-height: clamp(16rem, 30vw, 26rem);
}

.veil {
  position: absolute;
  inset: -12%;
  background: radial-gradient(
    ellipse at 50% 50%,
    var(--paper) 0%,
    var(--paper) 46%,
    rgba(242, 241, 238, 0) 78%
  );
}

.cutoutPhoto {
  position: relative;
  width: 100%;
  max-width: 15rem;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(17, 17, 17, 0.28));
}

/* ---------- 02 programme ---------- */

.programmeHead,
.concert {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.programmeHead {
  margin-top: calc(var(--u) * 8);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.programme {
  margin-top: calc(var(--u) * 1);
}

.concert {
  padding-block: calc(var(--u) * 3);
  align-items: start;
}

.concert:hover {
  background: var(--pale);
}

.colDate {
  grid-column: 1 / 3;
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
}

.colTime {
  grid-column: 3 / 4;
  font-size: 0.875rem;
  color: var(--grey);
}

.colWork {
  grid-column: 4 / 8;
  display: grid;
  gap: calc(var(--u) * 0.5);
}

.colArtist {
  grid-column: 8 / 11;
  display: grid;
  gap: calc(var(--u) * 0.5);
  font-size: 0.875rem;
  color: var(--grey);
}

.colPrice {
  grid-column: 11 / 13;
  font-size: 0.875rem;
}

.concertNo {
  position: absolute;
  left: -2.5rem;
  top: 0.05rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm);
  font-variant-numeric: tabular-nums;
}

.concertDay {
  color: var(--grey);
}

.concertTitle {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.concertDetail {
  font-size: 0.8125rem;
  color: var(--grey);
  line-height: 1.35;
}

.concertHall {
  color: var(--warm);
  font-size: 0.8125rem;
}

.programmeFoot {
  grid-column: 4 / 9;
  margin-top: calc(var(--u) * 5);
  font-size: 0.875rem;
  color: var(--grey);
}

/* ---------- 03 hall ---------- */

.hallText {
  grid-column: 3 / 8;
  display: grid;
  gap: calc(var(--u) * 2);
  max-width: 48ch;
}

.hallPhoto {
  grid-column: 8 / 13;
  display: grid;
  gap: calc(var(--u) * 1.5);
}

.hallPhoto .photo {
  aspect-ratio: 3 / 2;
}

.specList {
  display: grid;
  gap: calc(var(--u) * 1.5);
  font-size: 0.875rem;
}

.specRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gutter);
  align-items: baseline;
}

.specRow dt {
  color: var(--grey);
}

.specRow dd {
  font-weight: 500;
}

.hallSpecs {
  grid-column: 1 / 6;
}

.organPhoto {
  grid-column: 6 / 9;
}

.organPhoto .photo {
  aspect-ratio: 2 / 3;
}

.organText {
  grid-column: 9 / 13;
  display: grid;
  gap: calc(var(--u) * 2);
  font-size: 0.9375rem;
}

.organSpecs {
  font-size: 0.8125rem;
}

/* ---------- 04 artists ---------- */

.residentsRow {
  margin-top: calc(var(--u) * 7);
}

.residentA {
  grid-column: 1 / 6;
}

.residentB {
  grid-column: 7 / 12;
}

.residentA,
.residentB {
  display: grid;
  gap: calc(var(--u) * 1.5);
}

.portraitFrame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--pale);
  margin-bottom: calc(var(--u) * 2);
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.residentRole {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.residentSince {
  font-size: 0.8125rem;
  color: var(--grey);
}

/* ---------- 05 education ---------- */

.eduPhoto {
  grid-column: 1 / 8;
  margin-top: calc(var(--u) * 4);
}

.eduPhoto .photo {
  aspect-ratio: 16 / 9;
}

.eduArt {
  grid-column: 8 / 11;
  margin-top: calc(var(--u) * 4);
}

.eduArt .artField {
  aspect-ratio: 1 / 1;
}

.eduList {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: calc(var(--u) * 5);
}

.eduList li {
  grid-column: span 3;
  display: grid;
  gap: var(--u);
  align-content: start;
  font-size: 0.875rem;
}

.eduNo {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.eduList p {
  color: var(--grey);
  line-height: 1.45;
}

.eduFigure {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 06 tickets ---------- */

.ticketIntro {
  grid-column: 3 / 7;
  display: grid;
  gap: calc(var(--u) * 3);
  max-width: 38ch;
}

.ticketSpecs {
  grid-column: 7 / 13;
}

.ticketSpecs .specRow {
  grid-template-columns: 2fr 3fr;
}

/* ---------- 07 visit ---------- */

.travelSpecs {
  grid-column: 1 / 7;
}

.travelSpecs .specRow {
  grid-template-columns: 2fr 3fr;
}

.visitPhoto {
  grid-column: 7 / 13;
  display: grid;
  gap: calc(var(--u) * 1.5);
}

.visitPhoto .photo {
  aspect-ratio: 3 / 2;
}

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

.footer {
  background: var(--ink);
  color: var(--pale);
  padding-block: calc(var(--u) * 10) calc(var(--u) * 8);
}

.footer a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

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

.footer a:focus-visible {
  outline-color: var(--paper);
}

.footBrand {
  grid-column: 1 / 4;
  display: grid;
  gap: calc(var(--u) * 2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footWordmark {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.footContact {
  grid-column: 4 / 7;
  display: grid;
  gap: calc(var(--u) * 1.5);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footColophon {
  grid-column: 7 / 10;
  display: grid;
  gap: calc(var(--u) * 1.5);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--warm);
  max-width: 32ch;
}

.footLabel {
  color: var(--red);
}

.footArt {
  grid-column: 10 / 13;
}

.footArt .artField {
  aspect-ratio: 1 / 1;
}

.footFine {
  grid-column: 1 / 9;
  margin-top: calc(var(--u) * 4);
  font-size: 0.75rem;
  color: var(--grey);
}

/* ==========================================================
   Responsive. Spans collapse in two steps: 12 columns hold
   to 1000px, a wider pairing to 720px, single column below.
   ========================================================== */

@media (max-width: 1080px) {
  .heroType {
    grid-column: 1 / 9;
  }

  .heroArt {
    grid-column: 9 / 13;
  }

  .sectionTitle {
    grid-column: 3 / 13;
  }

  .seasonBodyA {
    grid-column: 3 / 8;
  }

  .seasonBodyB {
    grid-column: 8 / 13;
  }

  .seasonArt {
    grid-column: 3 / 8;
  }

  .seasonArt .artField {
    aspect-ratio: 16 / 9;
  }

  .hallSpecs {
    grid-column: 3 / 8;
  }

  .organPhoto {
    grid-column: 8 / 11;
  }

  .organText {
    grid-column: 3 / 9;
  }

  .figures li,
  .eduList li {
    grid-column: span 6;
  }

  .eduPhoto {
    grid-column: 1 / 9;
  }

  .eduArt {
    grid-column: 9 / 13;
  }

  .ticketIntro {
    grid-column: 3 / 8;
  }

  .ticketSpecs {
    grid-column: 3 / 11;
  }

  .travelSpecs {
    grid-column: 1 / 8;
  }

  .visitPhoto {
    grid-column: 1 / 13;
  }

  .footBrand {
    grid-column: 1 / 5;
  }

  .footContact {
    grid-column: 5 / 9;
  }

  .footColophon {
    grid-column: 9 / 13;
  }

  .footArt {
    grid-column: 1 / 5;
  }
}

@media (max-width: 860px) {
  .concertNo {
    position: static;
    display: block;
    left: auto;
  }

  .programmeHead {
    display: none;
  }

  .concert {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: var(--u);
    padding-block: calc(var(--u) * 3.5);
  }

  .colDate {
    grid-column: 1 / 4;
  }

  .colTime {
    grid-column: 4 / 7;
  }

  .colWork {
    grid-column: 1 / 7;
  }

  .colArtist {
    grid-column: 1 / 5;
  }

  .colPrice {
    grid-column: 5 / 7;
  }

  .programmeFoot {
    grid-column: 1 / 13;
  }
}

@media (max-width: 720px) {
  .page {
    --gutter: calc(var(--u) * 2);
  }

  .wordmark,
  .mastheadMeta,
  .nav,
  .heroType,
  .heroArt,
  .sectionNo,
  .sectionTitle,
  .sectionNote,
  .seasonBodyA,
  .seasonBodyB,
  .seasonArt,
  .bandNote,
  .bandCutout,
  .hallText,
  .hallPhoto,
  .hallSpecs,
  .organPhoto,
  .organText,
  .residentA,
  .residentB,
  .eduPhoto,
  .eduArt,
  .ticketIntro,
  .ticketSpecs,
  .travelSpecs,
  .visitPhoto,
  .footBrand,
  .footContact,
  .footColophon,
  .footArt,
  .footFine {
    grid-column: 1 / 13;
  }

  .grid {
    row-gap: calc(var(--u) * 4);
  }

  .section {
    padding-block: calc(var(--u) * 9);
  }

  .sectionTitle {
    max-width: none;
  }

  .heroArt .photo,
  .seasonArt .artField {
    aspect-ratio: 3 / 2;
  }

  .organPhoto .photo {
    aspect-ratio: 3 / 4;
  }

  .footArt .artField {
    aspect-ratio: 2 / 1;
  }

  .eduArt .artField {
    aspect-ratio: 2 / 1;
  }

  .bandCutout {
    min-height: 0;
    justify-items: start;
  }

  .veil {
    inset: 0;
  }

  .strip {
    height: 3.5rem;
  }

  .bandNote {
    padding: 0;
    background: none;
  }

  .band {
    padding-block: calc(var(--u) * 7);
  }

  .specRow,
  .ticketSpecs .specRow,
  .travelSpecs .specRow {
    grid-template-columns: 1fr;
    row-gap: calc(var(--u) * 0.25);
  }

  .figures li,
  .eduList li {
    grid-column: span 12;
  }

  .heroImage {
    margin-top: calc(var(--u) * 7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
