/* Festive Manchester · content.css · the pages drawn in full on the server
   The trees by kind (christmas-trees.ui.php), one tree
   (christmas-tree.ui.php) and What's on (whats-on.ui.php): pages that are
   read as much as used, so everything on them is in the page as it is
   sent. Loaded after base.css and header.css; each ctrl adds it. The same
   evergreen stage as the tree chooser, the gold of the eyebrows and price
   tags, and ivory cards for the events. Desktop first in rem; tablet and
   phone at the end, at the site's breakpoints. */

/* ---------- The stage ---------- */

.shelf {
  position: relative;
  min-height: 100vh;
  padding: calc(4.875rem + 4rem) 0 12rem;
  background:
    radial-gradient(ellipse 48% 40% at 26% 18%, #1f4432 0%, rgba(31, 68, 50, 0) 70%),
    radial-gradient(ellipse 40% 34% at 82% 46%, rgba(226, 180, 96, 0.08) 0%, rgba(226, 180, 96, 0) 70%),
    linear-gradient(180deg, var(--night) 0%, var(--evergreen) 34%, var(--evergreen) 100%);
  overflow-x: clip;
}

.shelf a:not(.button) {
  text-underline-offset: 0.2em;
}

.shelf__garland {
  bottom: 0;
  transform: translateY(50%);
}

.shelf ~ .site-footer .site-footer__inner {
  padding-top: 8.5rem;
}

/* ---------- Eyebrow (as on the homepage and the chooser) ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.375rem;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow--gold {
  color: var(--gold);
}

.eyebrow__rule {
  position: relative;
  flex: none;
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.eyebrow__rule::after {
  content: "";
  position: absolute;
  top: -0.125rem;
  right: -0.1875rem;
  width: 0.3125rem;
  height: 0.3125rem;
  background: currentColor;
  transform: rotate(45deg);
}

/* ---------- Breadcrumb ---------- */

.crumbs {
  margin-bottom: 2.5rem;
  font-size: 0.8125rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  display: flex;
  align-items: center;
  color: var(--cream-muted);
}

.crumbs li + li::before {
  content: "";
  width: 0.3125rem;
  height: 0.3125rem;
  margin: 0 0.75rem;
  background: var(--gold);
  opacity: 0.7;
  transform: rotate(45deg);
}

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--gold-2);
  text-decoration: underline;
}

.crumbs a[aria-current] {
  color: var(--cream-text);
}

/* ---------- The opening words ---------- */

.shelf__head {
  margin-bottom: 3.5rem;
}

.shelf__title {
  max-width: 50rem;
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  line-height: 1.04;
}

.shelf__title em,
.shelf h2 em {
  color: var(--gold-2);
}

.shelf__lede {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: var(--cream-muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

.shelf__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2rem;
}

.shelf__facts li {
  padding: 0.4375rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: 62.4375rem;
  background: rgba(247, 240, 228, 0.04);
  color: var(--cream-text);
  font-size: 0.875rem;
}

.shelf__facts li:first-child {
  border-color: rgba(217, 178, 106, 0.55);
  color: var(--gold-2);
  font-weight: 600;
}

/* ---------- Tree tiles ---------- */

.tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 3.5rem 2.5rem;
}

/* The other trees under one tree: however few, centred in rows of four. */
.tree-grid--small {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
}

.tree-grid--small > li {
  flex: 0 0 calc((100% - 6rem) / 4);
}

.tree-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: var(--cream-text);
  text-align: center;
  text-decoration: none;
}

.tree-tile__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 1.25rem;
}

/* A warm glow behind each tree, brighter on hover. */
.tree-tile__media::before {
  content: "";
  position: absolute;
  inset: 6% -4% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 213, 155, 0.2), rgba(241, 213, 155, 0));
  opacity: 0.75;
  transition: opacity 0.5s, transform 0.7s var(--ease);
}

.tree-tile__media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1.25rem 1.5rem rgba(0, 0, 0, 0.35));
  transition: transform 0.6s var(--ease);
}

.tree-tile:hover .tree-tile__media::before {
  opacity: 1;
  transform: scale(1.06);
}

.tree-tile:hover .tree-tile__media img {
  transform: translateY(-0.375rem);
}

.tree-tile__flag {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  padding: 0.3125rem 0.75rem;
  border-radius: 62.4375rem;
  background: var(--berry);
  color: var(--cream-text);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.tree-tile__name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.tree-tile__note {
  margin-top: 0.375rem;
  color: var(--cream-muted);
  font-size: 0.9375rem;
}

.tree-tile__sizes {
  margin-top: 0.25rem;
  color: var(--cream-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.tree-tile__price {
  margin-top: auto;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(217, 178, 106, 0.5);
  border-radius: 62.4375rem;
  color: var(--gold-2);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.25s, color 0.25s;
}

.tree-tile__note + .tree-tile__sizes + .tree-tile__price,
.tree-tile__note + .tree-tile__price {
  margin-top: 1rem;
}

.tree-tile:hover .tree-tile__price {
  background: var(--gold);
  color: #2a1a09;
}

/* ---------- How ordering works ---------- */

.steps {
  margin-top: 7rem;
  text-align: center;
}

.steps__title,
.events-list__title,
.shelf__more h2,
.product__part h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.steps__step {
  padding: 2.25rem 2rem 2.5rem;
  border: 1px solid var(--line-light);
  border-radius: 1rem;
  background: rgba(247, 240, 228, 0.035);
}

.steps__number {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(217, 178, 106, 0.6);
  border-radius: 50%;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.steps__step h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
}

.steps__step p {
  margin-top: 0.625rem;
  color: var(--cream-muted);
  font-size: 0.9375rem;
}

.steps__extras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  color: var(--cream-muted);
  font-size: 0.9375rem;
}

.steps__extras span::before {
  content: "+ ";
  color: var(--gold);
}

.steps .button {
  margin-top: 2.5rem;
}

/* ---------- The other kind ---------- */

.shelf__other {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line-light);
  text-align: center;
}

.shelf__other p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
}

/* ---------- One tree ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 5rem;
  align-items: start;
}

.product__media {
  position: sticky;
  top: 7rem;
}

.product__media::before {
  content: "";
  position: absolute;
  inset: 4% 0 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 213, 155, 0.24), rgba(241, 213, 155, 0));
}

.product__media img {
  position: relative;
  width: 100%;
  max-height: 44rem;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.4));
}

.product__title {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1.02;
}

.product__title em {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold-2);
  font-size: 0.5em;
}

.product__note {
  margin-top: 1.25rem;
  color: var(--gold-2);
  font-size: 1rem;
  font-weight: 600;
}

.product__lede {
  margin-top: 0.75rem;
  color: var(--cream-muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.sizes {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem 1.5rem;
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.6);
}

.sizes__title {
  margin-bottom: 0.75rem;
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sizes__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.sizes__table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sizes__table th,
.sizes__table td {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}

.sizes__table tbody tr:first-child th,
.sizes__table tbody tr:first-child td {
  border-top: 0;
}

.sizes__table td {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sizes__table .is-sold-out th {
  color: var(--ink-muted);
}

.sizes__out {
  color: var(--ink-muted);
  font-weight: 500;
}

.was {
  margin-right: 0.375rem;
  color: var(--ink-muted);
  font-weight: 400;
  text-decoration-color: var(--berry);
}

.sizes__offer {
  margin-top: 0.75rem;
  color: var(--berry);
  font-size: 0.875rem;
  font-weight: 600;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.product__delivery {
  color: var(--cream-muted);
  font-size: 0.9375rem;
}

.product__more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  margin-top: 6rem;
}

.product__more:empty {
  display: none;
}

.facts {
  margin-top: 1.75rem;
}

.facts li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.75rem;
  border-top: 1px solid var(--line-light);
  font-size: 1.0625rem;
}

.facts li::before {
  content: "";
  position: absolute;
  top: 1.375rem;
  left: 0.25rem;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.extras {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.extras li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-light);
  border-radius: 0.75rem;
  background: rgba(247, 240, 228, 0.04);
}

.extras__name {
  font-weight: 600;
}

.extras__price {
  color: var(--gold-2);
  font-weight: 600;
  white-space: nowrap;
}

.extras__text {
  grid-column: 1 / -1;
  color: var(--cream-muted);
  font-size: 0.9375rem;
}

.shelf__more {
  margin-top: 7rem;
  text-align: center;
}

.shelf__more .tree-grid {
  margin-top: 3rem;
  text-align: center;
}

.shelf__more .button {
  margin-top: 3.5rem;
}

/* ---------- What's on: the boroughs ---------- */

.areas__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.areas__link {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  height: 100%;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--line-light);
  border-radius: 0.75rem;
  background: rgba(247, 240, 228, 0.04);
  text-decoration: none;
  transition: border-color 0.25s, background-color 0.25s;
}

.areas__link:hover {
  border-color: rgba(217, 178, 106, 0.6);
  background: rgba(247, 240, 228, 0.08);
}

.areas__link[aria-current] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 222, 168, 0.16), rgba(217, 174, 95, 0.08));
}

.areas__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.areas__count {
  color: var(--cream-muted);
  font-size: 0.8125rem;
}

/* ---------- What's on: the events ---------- */

.events-list {
  margin-top: 5rem;
}

.events-list__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.event__card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 3rem -1.75rem rgba(0, 0, 0, 0.7);
}

.event__art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 0.5rem;
  border-right: 2px dashed rgba(138, 101, 38, 0.3);
  background: linear-gradient(180deg, #f6ead2, #efdcb7);
  color: var(--berry);
  text-align: center;
}

.event__icon {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event__kind {
  color: var(--gold-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.event__body {
  padding: 1.5rem 1.75rem 1.625rem;
}

.event__date {
  color: var(--berry);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.event__date .ticket__dash {
  margin: 0 0.125rem;
}

.event__state {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.0625rem 0.5rem;
  border-radius: 62.4375rem;
  background: var(--evergreen-2);
  color: var(--cream-text);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.125rem;
}

.event__name {
  margin-top: 0.375rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.event__full {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.event__place {
  margin-top: 0.375rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.event__facts {
  display: grid;
  gap: 0.375rem;
  margin: 1rem 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
}

.event__facts div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.75rem;
}

.event__facts dt {
  color: var(--gold-deep);
  font-weight: 600;
}

.event__facts dd {
  margin: 0;
}

.event__link {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.event__link a {
  color: var(--berry);
}

.event--over .event__card {
  opacity: 0.6;
}

.events-foot {
  margin-top: 4rem;
}

.events-foot__note {
  color: var(--cream-muted);
  font-size: 0.875rem;
  text-align: center;
}

.own {
  margin-top: 5rem;
  padding: 3.5rem 2rem;
  border: 1px solid rgba(217, 178, 106, 0.35);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(226, 180, 96, 0.14), rgba(226, 180, 96, 0) 70%),
    rgba(247, 240, 228, 0.03);
  text-align: center;
}

.own .eyebrow {
  justify-content: center;
}

.own__title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}

.own__text {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--cream-muted);
}

.own__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- Tablet ---------- */

@media (max-width: 1023.98px) {
  .shelf-page .site-header {
    position: relative;
  }

  .shelf {
    min-height: 0;
    padding: 40px 0 150px;
  }

  .crumbs {
    margin-bottom: 28px;
  }

  .shelf__head {
    margin-bottom: 40px;
  }

  .shelf__lede,
  .product__lede {
    font-size: 17px;
  }

  .tree-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 24px;
  }

  .tree-grid--small > li {
    flex-basis: calc((100% - 24px) / 2);
  }

  .steps {
    margin-top: 80px;
  }

  .steps__list {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 560px;
    margin: 32px auto 0;
  }

  .steps__step {
    padding: 24px 24px 26px;
  }

  .product {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 40px;
  }

  .product__media {
    top: 24px;
  }

  .product__more {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-top: 72px;
  }

  .areas__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .events-list {
    margin-top: 56px;
  }

  .events-list__items {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 599.98px) {
  .shelf {
    padding: 44px 0 120px;
  }

  .shelf__title,
  .product__title {
    font-size: 40px;
  }

  .shelf__facts li {
    font-size: 13px;
  }

  .tree-grid,
  .tree-grid--small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 16px;
  }

  .tree-grid--small > li {
    flex-basis: calc((100% - 16px) / 2);
  }

  .tree-tile__name {
    font-size: 21px;
  }

  .tree-tile__note {
    font-size: 14px;
  }

  .tree-tile__flag {
    font-size: 10px;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product__media {
    position: relative;
    top: 0;
    max-width: 240px;
    margin: 0 auto;
  }

  .product__media img {
    max-height: 320px;
  }

  .sizes {
    padding: 20px 20px 16px;
  }

  .product__actions .button {
    width: 100%;
  }

  .shelf__other p {
    font-size: 21px;
  }

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

  .event__card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .event__art {
    padding: 20px 4px;
  }

  .event__icon {
    width: 36px;
    height: 36px;
  }

  .event__kind {
    font-size: 9.5px;
  }

  .event__body {
    padding: 18px 18px 20px;
  }

  .event__name {
    font-size: 21px;
  }

  .event__facts div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .own {
    padding: 40px 20px;
  }

  .own__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tree-tile__media::before,
  .tree-tile__media img {
    transition: none;
  }
}
