/* =============================================================================
   lindsayagraham.com

   Hand-written replacement for the Webflow/Relume stylesheet. Everything here is
   used; there is no framework payload. Structure:

     1. Fonts          self-hosted woff2, latin + latin-ext subsets
     2. Tokens         the colours, type and spacing the design actually uses
     3. Base           reset + element defaults
     4. Layout         page shell, section rhythm, containers
     5. Components     header/nav, hero, news cards, show cards, gallery,
                       buttons, social list, signup, footer
     6. Utilities      a small handful, deliberately

   Breakpoints match the original so the layout is identical at every width:
     991px  tablet   (nav collapses)
     767px  small tablet
     479px  phone
   ============================================================================= */

/* 1. Fonts ================================================================== */

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dmserifdisplay-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dmserifdisplay-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Lato;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Lato;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-400-italic-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lato-700-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ================================================================= */

:root {
  /* colour */
  --cream: #f7f3e9;          /* page background, reversed-out type */
  --ink: #333;               /* body copy, headings, footer */
  --accent: #3898ec;         /* buttons, link hover */
  --accent-icon: #228be6;    /* social glyph hover (icons8 blue) */
  --muted: #696969;
  --hairline: #e4ebf3;       /* section rules */
  --rule: var(--ink);        /* header + footer rules */

  /* type */
  --font-body: Lato, sans-serif;
  --font-display: "DM Serif Display", serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;

  /* measure */
  --container: 80rem;        /* 1280px — outer page container */
  --measure: 940px;          /* readable column inside a section */
  --gutter: 5%;

  /* effects */
  --shadow-text: 4px 2px 2px rgb(0 0 0 / 50%);
  --shadow-card: 0 4px 24px rgb(150 163 181 / 8%);
}

/* 3. Base =================================================================== */

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font: 400 14px/20px var(--font-body);
}

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

/* <picture> exists only to offer AVIF/WebP alternatives. Make it a plain block
   that inherits the layout slot, and hide its <source> children explicitly —
   left to the UA they can be laid out as flex/grid items and scatter a gallery. */
picture {
  display: block;
}

source {
  display: none;
}

svg {
  display: block;
}

p {
  margin: 0 0 10px;
}

strong,
b {
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  padding: 0.75rem 1rem;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  text-decoration: underline;
}

.skip-link:focus {
  left: 0;
}

/* 4. Layout ================================================================= */

/* Outer page container. Every top-level block is capped at --container and
   centred, then gutters are applied inside it. */
.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A content section: container-capped, centred, gutters inside. */
.section {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Editorial sections (News, Tour dates, About the show) carry a hairline rule
   and tighten to a fixed gutter on phones. */
.section--ruled {
  border-bottom: 1px solid var(--hairline);
}

.section__head {
  margin-block: 5% 3%;
}

.section__title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: normal;
  -webkit-text-stroke-width: 1px;
}

/* Readable column inside a section. Steps down with the viewport exactly as the
   original did, so line breaks in the body copy land in the same places. */
.section__body {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
}

.section__body--flush {
  margin-inline: 0;
}

/* 5. Components ============================================================= */

/* 5.1 Header + navigation --------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3.5rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--rule);
  background-color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

.site-header__brand {
  display: inline-block;
  padding-left: 0;
  text-decoration: none;
}

.site-header__logo {
  width: 208px;
  height: auto;
}

.site-nav {
  position: static;
  display: flex;
  align-items: center;
}

.site-nav__link {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.site-nav__link[aria-current="page"] {
  color: #000;
}

/* Hamburger. Hidden until the nav collapses at 991px. */
.nav-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: #000;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle__bar--middle {
  margin-block: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--top {
  transform: translateY(8px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--middle {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--bottom {
  transform: translateY(-8px) rotate(45deg);
}

/* 5.2 Page hero ------------------------------------------------------------- */

.page-hero {
  position: relative;
}

.page-hero > picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.page-hero--tour .page-hero__media {
  object-position: 50% 100%;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-inline: var(--gutter);
}

.page-hero__container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.page-hero__frame {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  max-height: 60rem;
}

.page-hero__content {
  width: 100%;
  max-width: 30rem;
}

.page-hero__title {
  margin: 0 0 1rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  -webkit-text-stroke-width: 1px;
  text-shadow: var(--shadow-text);
}

.page-hero__lede {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: var(--shadow-text);
}

.page-hero__actions {
  padding-top: 1rem;
}

/* The tour hero has no signup or social row, so its lede carries the same gap. */
.page-hero--tour .page-hero__lede {
  margin-bottom: 1rem;
}

/* 5.3 Buttons + links ------------------------------------------------------- */

.button {
  display: inline-block;
  height: 35px;
  padding: 8px 15px 0;
  border: 1px solid #fff;
  border-radius: 2px;
  background-color: var(--accent);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  background-color: #fff;
  color: var(--accent);
}

/* 5.4 Social list ----------------------------------------------------------- */

.social-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* One mask per network; colour comes from CSS, not from three copies of each
   PNG. The alpha channels of Webflow's cream/black/blue variants were identical,
   so this renders pixel-for-pixel the same. */
.social-link {
  display: block;
  width: 30px;
  height: 30px;
  background-color: var(--cream);
  transition: background-color 0.15s ease;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.social-link:hover,
.social-link:focus-visible {
  background-color: var(--accent-icon);
}

.social-list--dark .social-link {
  background-color: #000;
}

.social-list--dark .social-link:hover,
.social-list--dark .social-link:focus-visible {
  background-color: var(--accent-icon);
}

.social-link--threads {
  -webkit-mask-image: url("/img/icon-threads.png");
  mask-image: url("/img/icon-threads.png");
}
.social-link--x {
  -webkit-mask-image: url("/img/icon-x.png");
  mask-image: url("/img/icon-x.png");
}
.social-link--instagram {
  -webkit-mask-image: url("/img/icon-instagram.png");
  mask-image: url("/img/icon-instagram.png");
}
.social-link--facebook {
  -webkit-mask-image: url("/img/icon-facebook.png");
  mask-image: url("/img/icon-facebook.png");
}
.social-link--tiktok {
  -webkit-mask-image: url("/img/icon-tiktok.png");
  mask-image: url("/img/icon-tiktok.png");
}
.social-link--linkedin {
  -webkit-mask-image: url("/img/icon-linkedin.png");
  mask-image: url("/img/icon-linkedin.png");
}

/* Left-aligned column holding a signup block plus its intro copy. flow-root so
   the intro paragraph's margins stay inside it. */
.signup-block {
  display: flow-root;
  max-width: var(--measure);
  margin-inline: 0;
}

.signup-block__intro {
  margin-block: 24px;
}

/* 5.5 Signup (listener-intake widget mount) --------------------------------- */

/* The widget renders itself into [data-intake-embed]; these rules only own the
   space around it. */
.signup {
  margin-bottom: 24px;
}

.signup--hero {
  margin-bottom: 15px;
}

/* Matches the 15px the old Webflow newsletter form left behind, so the social
   row and the "Or, you can follow me" line sit exactly where they always did. */
.signup--footer {
  margin-bottom: 15px;
}

/* 5.6 News cards ------------------------------------------------------------ */

.news-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.news-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 46%;
}

.news-card > picture,
.thanks__cell > picture {
  align-self: stretch;
}

.news-card__image {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-card);
}

.news-card__title {
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 44px;
}

.news-card__subtitle {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 44px;
}

.news-card__text {
  margin-block: 24px;
}

.news-card__media {
  align-self: stretch;
  width: 100%;
}

.news-card__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #1a1612;
}

/* 5.7 Show cards ------------------------------------------------------------ */

.shows-grid {
  display: grid;
  /* minmax(0, 1fr) rather than 1fr: the auto minimum would let a fixed-width
     card push its track wider than the grid on narrow screens. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 4% 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.show-card {
  justify-self: center;
  width: 200px;
  max-width: 100%;
  /* Trailing space under the Listen Now button, kept from the original. */
  padding-bottom: 8px;
}

.show-card__body {
  max-width: 200px;
  margin: 0 auto 10px;
}

.show-card__art-link {
  display: block;
}

.show-card__art {
  width: 200px;
  max-width: 100%;
  height: auto;
}

.show-card__tagline {
  margin: 20px 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.show-card__blurb {
  margin: 0;
}

/* 5.8 Tour page ------------------------------------------------------------- */

/* Body copy block on /live-tour: tour dates and the show description. */
.prose {
  margin-top: 40px;
  font-size: 16px;
}

.prose p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.prose__heading {
  margin: 2em 0 0.5em;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.tour-date + .tour-date {
  margin-top: 20px;
}

.tour-date__when {
  font-weight: 700;
}

.tour-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #1a1612;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 4%;
}

.gallery-grid img {
  width: 100%;
  height: auto;
}

/* 5.9 Thank-you block ------------------------------------------------------- */

.thanks {
  display: flow-root;
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  font-size: 1rem;
}

.thanks__lede {
  margin-top: 10px;
}

.thanks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.thanks__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.thanks__portrait {
  width: 100%;
  height: auto;
}

.thanks__social-lede {
  margin-top: 10px;
}

/* 5.10 Footer --------------------------------------------------------------- */

.site-footer {
  background-color: var(--cream);
}

.site-footer__outer {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-footer__inner {
  padding: 0 var(--gutter) 5rem;
}

.site-footer__divider {
  width: 100%;
  height: 1px;
  margin: 0 0 2rem;
  background-color: var(--rule);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__credit {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
}

.site-footer__legal {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: center;
  column-gap: 1.5rem;
  white-space: normal;
}

.site-footer__legal-link {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
}

/* 6. Breakpoints ============================================================ */

@media screen and (max-width: 991px) {
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: block;
    height: 100vh;
    padding: 1rem var(--gutter) 15rem;
    overflow: auto;
    border-bottom: 1px solid #000;
    background-color: #fff;
    text-align: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    visibility: hidden;
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
  }

  /* Two links side by side read as one word at this size, so they stack. */
  .site-nav__link {
    display: block;
    width: auto;
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }

  .nav-toggle {
    display: block;
  }

  .page-hero {
    padding-right: 350px;
  }

  .page-hero__title,
  .section__title {
    font-size: 3.25rem;
  }

  .section__body,
  .signup-block,
  .thanks {
    max-width: 728px;
  }

  .news-grid {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: -40px;
  }

  .news-card {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .site-footer__inner {
    padding-block: 4.5rem;
  }

  .site-footer__divider {
    margin-top: 4.5rem;
  }
}

@media screen and (max-width: 767px) {
  .site-header {
    min-height: 4rem;
  }

  .section {
    width: auto;
    max-width: none;
  }

  .section--ruled {
    padding-inline: 15px;
  }

  .page-hero__lede {
    max-width: 18rem;
  }

  .page-hero__container {
    width: auto;
    max-width: none;
  }

  .page-hero__frame {
    min-height: auto;
    max-height: none;
  }

  .page-hero__content {
    width: auto;
    max-width: 166.632%;
    min-height: 30rem;
  }

  .page-hero__title,
  .section__title {
    font-size: 2.5rem;
  }

  .page-hero__actions {
    padding-top: 1.5rem;
  }

  .page-hero--tour .page-hero__lede {
    margin-bottom: 1.5rem;
  }

  .signup-block {
    max-width: none;
  }

  .site-footer__inner {
    padding-block: 3rem;
  }

  .site-footer__divider {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }

  .site-footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-bottom: 1rem;
  }

  .site-footer__credit {
    margin-top: 1.5rem;
  }

  .site-footer__legal {
    grid-auto-flow: row;
    column-gap: 0;
    row-gap: 1rem;
  }
}

@media screen and (max-width: 479px) {
  .page-hero {
    padding-block: 40px;
    padding-right: 0;
  }

  .page-hero__inner {
    padding-right: 35%;
  }

  .page-hero__content {
    max-width: 12rem;
    min-height: auto;
  }

  .page-hero__title {
    letter-spacing: -0.05rem;
  }

  .page-hero__lede {
    max-width: none;
    font-size: 0.9rem;
  }

  .social-list {
    flex-flow: row;
    margin-top: 0;
  }

  .section__body,
  .thanks {
    max-width: none;
  }

  .shows-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 0;
  }

  .thanks {
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .thanks__grid {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
    padding: 0;
  }

  .thanks__cell--form {
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 0;
  }

  .thanks__portrait {
    margin-inline: auto;
  }
}
