/*
 * Events page, sized to match the home page: orange Rubik headings, white
 * Playfair text and a 1140px column. One rich moment: the upcoming event, a band
 * that runs edge to edge under a marigold toran.
 *
 * Everything sits under .ne so the theme and Elementor kit can't leak in.
 */

.ne {
  --muted: rgba(255, 255, 255, 0.76);
  --rule: rgba(230, 182, 85, 0.24);
  --maroon: #730d14;

  background: var(--night);
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 24px;
  overflow-x: clip;
}

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

.ne a {
  color: var(--gold);
}

.ne a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Section titles carry the same swirl as the home page's "Our menu". */
.ne .ne-h2 {
  align-items: center;
  color: var(--heading);
  display: flex;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  gap: 18px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 18px;
  text-align: center;
  text-transform: uppercase;
}

/* Intro */

.ne .ne-intro {
  padding: 34px var(--edge) 0;
  text-align: center;
}

.ne .ne-intro h1 {
  color: var(--heading);
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.ne .ne-intro p {
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  margin: 12px auto 0;
  max-width: 760px;
}

/* The upcoming event */

.ne .ne-upcoming {
  margin-top: 32px;
}

.ne-feature {
  background: radial-gradient(60% 90% at 26% 60%, rgba(243, 154, 30, 0.18), transparent), linear-gradient(150deg, #1b1a4a 0%, #15123a 50%, #240f2e 100%);
  box-shadow: 0 1px 0 rgba(230, 182, 85, 0.45), 0 -1px 0 rgba(230, 182, 85, 0.45);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  padding: 64px var(--edge) 26px;
  position: relative;
}

.ne-toran {
  background: url("toran.svg") center top / 200px auto repeat-x;
  height: 100px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -6px;
  z-index: 2;
}

.ne-art {
  container-type: inline-size;
  justify-self: center;
  margin: 26px 0 0;
  max-width: 460px;
  position: relative;
  width: 100%;
}

.ne .ne-rangoli {
  animation: ne-spin 200s linear infinite;
  aspect-ratio: 1;
  display: block;
  height: auto;
  left: 48%;
  margin: -56% 0 0 -56%;
  max-width: none;
  opacity: 0.5;
  position: absolute;
  top: 58%; /* Centred on the plate, not the image. */
  width: 112%;
}

@keyframes ne-spin {
  to {
    transform: rotate(360deg);
  }
}

.ne .ne-plate {
  display: block;
  height: auto;
  max-width: 100%;
  position: relative;
  width: 100%;
}

.ne .ne-seal {
  /*
   * Sits exactly over the poster's own price badge, which is still in the photo
   * behind it. Sized in % of the plate so it covers the badge at every width.
   */
  align-items: center;
  aspect-ratio: 1;
  background: url("seal.svg") center / contain no-repeat;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: -0.5%;
  line-height: 1.05;
  margin: 0;
  position: absolute;
  text-align: center;
  top: -1.300%;
  width: 26%;
}

.ne .ne-seal span {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 4.200cqw;
  font-style: italic;
}

.ne .ne-seal strong {
  font-family: var(--sans);
  font-size: 4.800cqw;
  font-weight: 600;
}

.ne-copy {
  padding-top: 22px;
  position: relative;
}

.ne .ne-copy h3 {
  color: var(--subhead);
  font-family: var(--forum);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.ne .ne-script {
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  margin: 6px 0 0;
}

.ne .ne-facts {
  display: grid;
  gap: 5px 14px;
  grid-template-columns: 46px minmax(0, 1fr);
  margin: 14px 0 0;
}

.ne .ne-facts dt {
  color: var(--gold);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.ne .ne-facts dd {
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.ne .ne-cta {
  background: var(--gold);
  border-radius: 4px;
  color: #2b1712;
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 16px;
  padding: 13px 26px;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.ne .ne-cta:hover {
  background: #f0c56c;
  color: #2b1712;
}

.ne-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ne .ne-actions .ne-cta {
  margin-top: 0;
}

.ne .ne-alt {
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 12px 22px;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.ne .ne-alt:hover {
  background: rgba(230, 182, 85, 0.14);
  color: var(--gold);
}

.ne .ne-empty {
  margin: 0 var(--edge);
}

.ne .ne-empty p {
  margin: 0;
  text-align: center;
}

/* What to expect, and past events */

.ne .ne-expect {
  padding: 34px var(--edge) 0;
}

.ne .ne-expect .ne-h2,
.ne .ne-past-list .ne-h2 {
  font-size: 19px;
  justify-content: flex-start;
  margin-bottom: 10px;
  text-align: left;
}

.ne .ne-expect p {
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.ne .ne-past {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  padding: 30px var(--edge) 0;
}

.ne-poster {
  justify-self: center;
  max-width: 240px;
  order: 2;
  width: 100%;
}

.ne-poster img {
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--rule);
  display: block;
  height: auto;
  max-width: 100%;
}

.ne .ne-past-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ne .ne-past-list li {
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 9px 0;
}

.ne .ne-past-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.ne .ne-past-list h3 {
  color: var(--subhead);
  font-family: var(--forum);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.ne .ne-past-list p {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  margin: 1px 0 0;
}

.ne .ne-past-list .ne-updates {
  color: #fff;
  margin-top: 12px;
}

.ne .ne-past-list .ne-updates a {
  white-space: nowrap;
}

/* Private events */

.ne .ne-private {
  background: radial-gradient(130% 170% at 0 0, #96182a 0%, var(--maroon) 48%, #4f060b 100%);
  box-shadow: 0 -1px 0 rgba(230, 182, 85, 0.45);
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding: 24px var(--edge);
}

.ne .ne-private h2 {
  color: #fff;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.ne .ne-private p {
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  margin: 6px 0 0;
  max-width: 56ch;
}

.ne-private-links {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ne .ne-private-links .ne-cta {
  margin-top: 0;
}

.ne .ne-line,
.ne .ne-mail {
  color: #fff;
}

.ne .ne-line:hover,
.ne .ne-mail:hover {
  color: var(--gold);
}

@media (min-width: 700px) {
  .ne .ne-h2::before,
  .ne .ne-h2::after {
    aspect-ratio: 300 / 36;
    background: url("swirl.webp") center / contain no-repeat;
    content: "";
    flex: 0 1 300px;
    min-width: 0;
  }

  .ne .ne-expect .ne-h2::before,
  .ne .ne-expect .ne-h2::after,
  .ne .ne-past-list .ne-h2::before,
  .ne .ne-past-list .ne-h2::after {
    content: none;
  }

  .ne .ne-h2 {
    font-size: 30px;
  }
}

@media (min-width: 900px) {
  .ne .ne-intro {
    padding-top: 44px;
  }

  .ne .ne-intro h1 {
    font-size: 40px;
  }

  .ne-feature {
    align-items: center;
    column-gap: 48px;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    padding-bottom: 34px;
    padding-top: 78px;
  }

  .ne-toran {
    background-size: 240px auto;
    height: 120px;
    top: -8px;
  }

  .ne-art {
    margin: 14px 0 0;
  }

  .ne-copy {
    padding-top: 28px;
  }

  .ne .ne-copy h3 {
    font-size: 32px;
  }

  .ne .ne-script {
    font-size: 20px;
  }

  .ne .ne-private {
    align-items: center;
    column-gap: 40px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 28px;
  }

  .ne .ne-private h2 {
    font-size: 24px;
  }
}

/* Side by side in the 1140px column, like two halves of the same section. */
@media (min-width: 1060px) {
  .ne {
    column-gap: 48px;
    display: grid;
    grid-template-areas:
      "intro intro"
      "upcoming upcoming"
      "expect past"
      "private private";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }

  .ne .ne-intro {
    grid-area: intro;
  }

  .ne .ne-upcoming {
    grid-area: upcoming;
  }

  .ne .ne-expect {
    grid-area: expect;
    padding-right: 0;
  }

  .ne .ne-past {
    align-items: start;
    column-gap: 28px;
    grid-area: past;
    grid-template-columns: minmax(0, 1fr) 190px;
    padding-left: 0;
    padding-top: 34px;
  }

  .ne .ne-private {
    grid-area: private;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ne .ne-rangoli {
    animation: none;
  }

  .ne .ne-cta {
    transition: none;
  }
}

/*
 * Thanksgiving: the poster's dark, warm table, orange accents and autumn leaves
 * in the corners. Comes after the base rules, so these win at the same specificity.
 */

.ne-feature--tg {
  --orange: #fc8505;
  --cream: #fbedd3;

  background: radial-gradient(50% 75% at 24% 50%, #2b1c16 0%, #1d1411 45%, #110c0a 85%);
  box-shadow: 0 1px 0 rgba(252, 133, 5, 0.45), 0 -1px 0 rgba(252, 133, 5, 0.45);
  padding: 44px var(--edge) 30px;
}

.ne-leaves {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.ne-leaves::before,
.ne-leaves::after {
  background: url("tg2-leaf-l.webp") left top / contain no-repeat;
  content: "";
  height: 86px;
  left: 0;
  position: absolute;
  top: 0;
  width: 92px;
}

.ne-leaves::after {
  background-image: url("tg2-leaf-r.webp");
  background-position: right top;
  left: auto;
  right: 0;
}

.ne .ne-art--tg {
  margin-top: 10px;
  max-width: 560px;
}

.ne .ne-trays {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.ne-feature--tg .ne-copy h3 {
  color: var(--orange);
}

.ne-feature--tg .ne-script {
  color: var(--cream);
}

.ne-feature--tg .ne-facts dt {
  color: var(--orange);
}

.ne .ne-tg-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.ne .ne-tg-prices li {
  align-items: baseline;
  flex: 0 1 auto;
  min-width: 150px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(252, 133, 5, 0.6);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 8px 14px 9px;
}

.ne .ne-tg-prices span {
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  flex-basis: 100%;
}

.ne .ne-tg-prices strong {
  color: var(--orange);
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.ne .ne-tg-prices small {
  color: var(--cream);
  font-size: 15px;
  font-style: italic;
}

.ne .ne-sides-title {
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 22px 0 10px;
  text-transform: uppercase;
}

.ne .ne-sides {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.ne .ne-sides li {
  margin: 0;
}

.ne .ne-sides img {
  display: block;
  height: 74px;
  margin: 0 auto 6px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.ne .ne-sides strong {
  color: #fff;
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.ne .ne-sides span {
  color: var(--orange);
  display: block;
  font-size: 13px;
  font-style: italic;
  line-height: 1.35;
  margin-top: 2px;
}

.ne-feature--tg .ne-actions {
  margin-top: 22px;
}

.ne-feature--tg .ne-cta,
.ne-feature--tg .ne-alt {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.ne-feature--tg .ne-cta {
  background: var(--orange);
  color: #1a0e07;
}

.ne-feature--tg .ne-cta:hover {
  background: #ff9a2e;
  color: #1a0e07;
}

.ne-feature--tg .ne-alt {
  border-color: var(--orange);
  color: var(--orange);
}

.ne-feature--tg .ne-alt:hover {
  background: rgba(252, 133, 5, 0.14);
  color: var(--orange);
}

.ne .ne-btn-icon {
  fill: none;
  flex: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

@media (min-width: 900px) {
  .ne-feature--tg {
    column-gap: 44px;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    padding-bottom: 44px;
    padding-top: 58px;
  }

  .ne-leaves::before,
  .ne-leaves::after {
    height: 150px;
    width: 160px;
  }

  .ne .ne-art--tg {
    margin: 0;
  }

  .ne-feature--tg .ne-copy {
    padding-top: 0;
  }

  .ne .ne-sides {
    justify-items: start;
    text-align: left;
  }

  .ne .ne-sides img {
    height: 86px;
    margin-left: 0;
  }
}

