/* Take Two, song sessions in Oslo. Tokens are documented in DESIGN.md. */

:root {
  --night: #131a2a;
  --deep: #0d1320;
  --panel: #1b2437;
  --line: #2a3550;
  --paper: #eeeae2;
  --mist: #a3acbe;
  --valve: #f2b45a;
  --rec: #ff5d52;
  --sage: #6fc2a6;
  --sky: #8db6f2;

  --type: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--line) var(--deep);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--type);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.15rem);
  line-height: 1.6;
  caret-color: var(--valve);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p, ul { margin: 0; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; }

::selection { background: var(--valve); color: var(--deep); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--valve);
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}
.skip:focus { top: 1rem; }

/* Buttons and links. Square-ish, like the buttons on a desk, not pills. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.5rem;
  border: 1px solid var(--valve);
  border-radius: 4px;
  background: var(--valve);
  color: var(--deep);
  font: 600 1rem/1.2 var(--type);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--paper); border-color: var(--paper); }

.btn--small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }

.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--paper); }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  color: var(--paper);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--valve);
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  transition: color .2s var(--ease);
}
.link:hover { color: var(--valve); }

/* Header. Sits at the top of the page and scrolls away with it. */

.top__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.mark__glyph { width: 1.35rem; height: 1.35rem; color: var(--valve); }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--mist);
  font-weight: 500;
  padding-block: .5rem;
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--paper); }

.top__actions { display: flex; align-items: center; gap: 1.25rem; }

.lang { display: inline-flex; gap: .1rem; }
.lang__btn {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 .4rem;
  border: 0;
  background: transparent;
  color: var(--mist);
  font: 600 .9rem/1 var(--type);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .45em;
  cursor: pointer;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.lang__btn:hover { color: var(--paper); }
.lang__btn[aria-pressed="true"] { color: var(--paper); text-decoration-color: var(--valve); }

/* Hero */

.hero { padding-top: clamp(3rem, 8vw, 6.5rem); }

.hero__title {
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.028em;
}
.hero__line { display: block; }
.hero__line--indent { padding-left: .75em; color: var(--mist); }

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 37rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 2rem 4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero__lede { color: var(--mist); font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.55; }
.hero__cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.wave {
  position: relative;
  height: clamp(120px, 22vh, 210px);
  margin-top: clamp(3rem, 7vw, 5rem);
  cursor: ew-resize;
  touch-action: pan-y;
}
.wave__canvas { width: 100%; height: 100%; }

.hero__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: .95rem;
}
.hero__time { font-variant-numeric: tabular-nums; color: var(--paper); }

/* Sections. Each head is laid out for its own content, not one shared template. */

.section { padding-top: clamp(6rem, 12vw, 9.5rem); }

.section h2,
.book h2 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.section__intro { color: var(--mist); max-width: 36rem; }

.session h2 { margin-bottom: 1rem; }
.session .section__intro { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* Session arrangement */

.arrange {
  --head: 19rem;
  position: relative;
  border-top: 1px solid var(--line);
}

.arrange__ruler {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-left: var(--head);
  padding: .6rem 0;
  color: var(--mist);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
}
.arrange__ruler span { padding-left: .4rem; border-left: 1px solid var(--line); }

.lane {
  --track: var(--valve);
  display: grid;
  grid-template-columns: var(--head) 1fr;
  border-bottom: 1px solid var(--line);
}

.lane__head {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.5rem 0;
  border-right: 1px solid var(--line);
}
.lane__head h3 { font-size: 1.3rem; letter-spacing: -.015em; margin-bottom: .25rem; }
.lane__head p { color: var(--mist); font-size: .98rem; line-height: 1.5; }

.lane__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: .05rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-color: var(--track);
  color: var(--track);
}

.lane__track {
  position: relative;
  min-height: 6.5rem;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 12.5% 100%;
}

.region {
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: calc(var(--start) * 1%);
  width: calc(var(--len) * 1%);
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--track) 55%, transparent);
  background: color-mix(in srgb, var(--track) 13%, transparent);
  color: var(--track);
  overflow: hidden;
}
.lane--t1 { --track: var(--valve); }
.lane--t2 { --track: var(--sage); }
.lane--t3 { --track: var(--rec); }
.lane--t4 { --track: var(--sky); }
.region svg { position: absolute; inset: 18% .5rem; width: calc(100% - 1rem); height: 64%; }

/* Prices */

.prices__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sides { border-top: 1px solid var(--line); }

.side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.side__body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.025em; margin-bottom: .35rem; }
.side__body p { color: var(--mist); max-width: 32rem; }

.side__price {
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--valve);
}
.side__cur { font-size: .34em; letter-spacing: 0; color: var(--mist); font-weight: 500; }

.prices__note {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: var(--mist);
  font-size: .98rem;
}

/* About */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(3rem, 8vw, 7rem);
  align-items: start;
}
.about__text { max-width: 38rem; }
.about__text p + p { margin-top: 1.1rem; }
.about__text p:first-child { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); line-height: 1.45; }
.about__text p:not(:first-child) { color: var(--mist); }
.about__text .about__sign { color: var(--valve); font-style: italic; }

/* Booking */

.book {
  margin-top: clamp(6rem, 12vw, 9.5rem);
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--deep);
  border-top: 1px solid var(--line);
}
.book__inner { display: grid; gap: 1.5rem; justify-items: start; }
.book h2 { font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.04em; }
.book__text { color: var(--mist); max-width: 38rem; font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); }
.book__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.book__note { color: var(--mist); font-size: .95rem; }
.book__addr { color: var(--paper); }
.book__addr:empty { display: none; }

/* Footer */

.foot {
  background: var(--deep);
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: .95rem;
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
}
.foot__name { color: var(--paper); font-weight: 700; letter-spacing: -.02em; }

/* Responsive */

@media (max-width: 960px) {
  .nav { display: none; }
  .top__actions { margin-left: auto; }
  .hero__row { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .arrange { --head: 15rem; }
}

@media (max-width: 680px) {
  .hero__line--indent { padding-left: .5em; }
  .arrange__ruler { margin-left: 0; }
  .lane { grid-template-columns: 1fr; }
  .lane__head { border-right: 0; padding: 1.25rem 0 .5rem; }
  .lane__track { min-height: 4rem; margin-bottom: 1rem; }
  .region { top: .5rem; bottom: .5rem; }
  .side { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .top__actions .btn--small { display: none; }
  .hero__cta .btn { width: 100%; }
  .book__actions, .book__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Cookie consent (only shown once tracking IDs are set in js/tracking.js). Both choices look the same on purpose. */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 40rem; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: 1rem 1.25rem; background: var(--deep); border: 1px solid var(--line); border-radius: 4px; color: var(--paper); }
.consent__msg { flex: 1 1 18rem; margin: 0; font-size: .95rem; line-height: 1.45; color: var(--mist); }
.consent__actions { display: flex; gap: .5rem; }
