/* The Long Winters */

:root {
  --red: #EE1C25;
  --white: #FFFFFF;
  --head: 'Titan One', system-ui, sans-serif;
  --body: 'Archivo', system-ui, sans-serif;

  /* desktop section padding: top/bottom, right, left (left clears the logo overlap) */
  --sec-y: clamp(56px, 6vw, 96px);
  --sec-r: clamp(36px, 4vw, 60px);
  --sec-l: clamp(64px, 7vw, 110px);
  --body-size: clamp(24px, 2vw, 30px);
}

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

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  .side {
    transition: none !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  overscroll-behavior: none;
  background: var(--red);
  color: var(--white);
  font-family: var(--body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ---------- Desktop layout ---------- */

/* The page scrolls; the left side and logo stay put */
.site {
  position: relative;
  min-height: 100vh;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

/* Fixed red site border (sits over scrolling content, under the logo) */
.frame-border {
  position: fixed;
  inset: 0;
  z-index: 1;
  border: 20px solid var(--red);
  pointer-events: none;
}

/* Fixed white outline around the right side, so it stays visible while scrolling */
.frame-border::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  border: 8px solid var(--white);
}

/* Left (white, sticky) */
.side {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  min-height: 600px;
  background: var(--white);
  padding: clamp(24px, 2.8vw, 44px);
  min-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--head);
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
}

/* Flower slides in before the hovered/focused item, pushing the text right; fades + spins in and out */
.nav a::before {
  content: "";
  flex: none;
  width: 0;
  height: 0.8em;
  margin-right: 0;
  background: url("assets/flower.svg") center / contain no-repeat;
  opacity: 0;
  transform: rotate(-180deg);
  transition: width 0.35s ease, margin-right 0.35s ease, opacity 0.3s ease, transform 0.5s ease;
}

.nav a:hover::before,
.nav a:focus-visible::before {
  width: 0.8em;
  margin-right: 0.2em;
  opacity: 1;
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav a::before {
    transform: none;
    transition: opacity 0.2s ease;
  }
}


.side-bottom {
  display: contents;
}

.side-logo,
.menu-close,
.menu-open {
  display: none;
}

/* 2 rows: music services on top, social below. Right-aligned on desktop */
.social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.social-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.social-listen {
  order: -1;
}

.social a {
  display: flex;
  color: #000000;
  transition: opacity 0.5s ease;
}

.social svg,
.social img {
  width: 34px;
  height: 34px;
}

.social a:hover {
  opacity: 0.7;
}

/* Logo: pinned bottom-left, bleeds over the red border and into the right side */
.logo {
  pointer-events: none;
  position: fixed;
  left: -24px;
  bottom: -18px;
  z-index: 2;
  width: calc(min(62vw, (100vh - 290px) * 1.318) + 10px);
  line-height: 0;
}

.logo img {
  width: 100%;
}

/* Right (red) */
.content {
  background: var(--red);
  border: 8px solid var(--white);
  min-height: calc(100vh - 40px);
}

.photo img {
  width: 100%;
}

.section {
  padding: var(--sec-y) var(--sec-r) var(--sec-y) var(--sec-l);
  border-bottom: 6px dashed var(--white);
  scroll-margin-top: 20px;
}

.section h2 {
  margin: 0 0 16px;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
}

.section p {
  margin: 0 0 14px;
  font-size: var(--body-size);
  line-height: 1.3;
}

.section p:last-child {
  margin-bottom: 0;
}

.section h2 + p {
  margin-bottom: 32px;
}

#songs h2,
#shows h2,
#merch h2 {
  margin-bottom: 28px;
}

.section p.after {
  margin: 24px 0 0;
}

.section p.gap {
  margin-top: 32px;
}

/* Buttons: 2 content-sized columns; script.js adds .is-stacked (1 column) when they don't fit */
.buttons {
  --btn-gap: 14px;
  display: grid;
  grid-template-columns: max-content max-content;
  justify-items: start;
  gap: var(--btn-gap);
}

.buttons.is-stacked {
  grid-template-columns: max-content;
}

.btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 16px 30px;
  border: 4px solid var(--white);
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(16px, 0.6vw + 13px, 22px);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: background-color 0.15s, color 0.15s;
}

.btn span {
  white-space: nowrap;
}

.btn svg {
  flex: none;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover,
.btn:focus,
.btn:focus-visible {
  background: var(--white);
  color: var(--red);
}

.widget {
  border: 4px dashed var(--white);
  border-radius: 4px;
  padding: 24px;
}

.text-link {
  text-decoration-skip-ink: auto;
  font-weight: 800;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.footer {
  padding: var(--sec-y) var(--sec-r) 28px var(--sec-l);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.footer a {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.side :focus-visible {
  outline-color: var(--red);
}

/* ---------- Mobile ---------- */

@media (max-width: 899px) {
  :root {
    --body-size: 17px;
    --logo-overlap: 13vw; /* how far the logo overlaps the red panel */
  }

  body {
    background: var(--white);
  }

  .site {
    display: block;
    height: auto;
    min-height: 0;
    padding: 5px;
    /* Clip the logo bleed here so the page can't scroll sideways */
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* Fixed white site border */
  .frame-border {
    z-index: 2;
    border: 5px solid var(--white);
  }

  .frame-border::after {
    display: none;
  }

  /* Logo at top, bleeding off both edges */
  .logo {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 3;
    display: block;
    width: auto;
    margin: 5vw -48px calc(-1 * var(--logo-overlap)) -33px;
  }

  .content {
    min-height: 0;
    border-width: 4px;
    padding-top: var(--logo-overlap);
  }

  .section {
    padding: 48px 20px;
    border-bottom-width: 2px;
    scroll-margin-top: 8px;
  }

  .section h2 {
    margin-bottom: 12px;
    font-size: 46px;
  }

  #songs h2,
  #shows h2,
  #merch h2 {
    margin-bottom: 20px;
  }

  .section h2 + p {
    margin-bottom: 22px;
  }

  .section p {
    font-weight: 700;
    margin-bottom: 10px;
  }

  .section p.after {
    margin-top: 18px;
  }

  .section p.gap {
    margin-top: 28px;
  }

  .buttons {
    --btn-gap: 12px;
  }

  .btn {
    gap: 12px;
    padding: 14px 18px 14px 22px;
    border-width: 2px;
  }

  .btn svg {
    width: 22px;
    height: 22px;
  }

  .widget {
    border-width: 2px;
    padding: 16px;
  }


  .footer {
    padding: 48px 20px 22px;
    font-size: 18px;
  }

  /* Menu button */
  .menu-open,
  .menu-close {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 18px;
    border-radius: 999px;
    font-family: var(--head);
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-open {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5;
    background: var(--white);
    border: 3px solid var(--red);
    color: var(--red);
  }

  /* Same spot as the Menu button */
  .menu-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 11;
    background: var(--red);
    border: 3px solid var(--red);
    color: var(--white);
  }

  /* Side becomes the full-screen menu */
  .side {
    position: fixed;
    inset: 0;
    height: auto;
    min-height: 0;
    z-index: 10;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 48px;
    padding: 96px 36px;
    overflow: hidden;
    /* Circular wipe from the Menu button (--wipe-x/y set in script.js) */
    visibility: hidden;
    clip-path: circle(0 at var(--wipe-x, calc(100% - 70px)) var(--wipe-y, 44px));
    transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.55s;
  }

  .side.is-open {
    visibility: visible;
    clip-path: circle(150vmax at var(--wipe-x, calc(100% - 70px)) var(--wipe-y, 44px));
    transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .nav ul {
    gap: 10px;
    align-items: center;
  }

  .nav a {
    font-size: 54px;
    line-height: 0.95;
  }

  /* Menu: everything centered, no logo */
  .side-bottom {
    display: flex;
    justify-content: center;
  }

  .side .social {
    align-items: center;
  }

  .side-logo {
    display: none;
  }

  .social svg,
  .social img {
    width: 32px;
    height: 32px;
  }

  body.menu-is-open {
    overflow: hidden;
  }
}
