/* ==========================================================================
   Sticky nav + hero
   ========================================================================== */

/* --- Top bar ----------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 4rem;
}

.topbar__brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #f4e9cd;
  text-decoration: none;
  line-height: 1.1;
}

.topbar__brand b {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar__brand span {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.topbar__nav {
  display: none;
  gap: var(--sp-6);
  align-items: center;
}

.topbar__nav a {
  color: #d6cdb8;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.topbar__nav a:hover,
.topbar__nav a[aria-current="true"] {
  color: #fff;
  border-bottom-color: var(--gold);
}

.topbar .btn {
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-4);
  white-space: nowrap;
}

.topbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: var(--radius);
  background: transparent;
  color: #f4e9cd;
  cursor: pointer;
}

.topbar__toggle svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
}

.topbar__toggle .icon-close,
.topbar__toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.topbar__toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Drawer for narrow screens. Hidden entirely once the inline nav appears. */
.topbar__drawer {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  background: var(--navy-deep);
}

.topbar__drawer[hidden] {
  display: none;
}

.topbar__drawer a {
  color: #e6ddc8;
  text-decoration: none;
  font-weight: 600;
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 14%, transparent);
}

.topbar__drawer a:last-child {
  border-bottom: 0;
}

@media (min-width: 64rem) {
  .topbar__nav {
    display: flex;
  }

  .topbar__toggle,
  .topbar__drawer {
    display: none !important;
  }
}

/* --- Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: #eee6d3;
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

/* A soft warm pool of light behind the portrait — candlelight in a dark hall. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background: radial-gradient(
    ellipse 55% 45% at 50% 26%,
    color-mix(in srgb, var(--gold) 22%, transparent),
    transparent 68%
  );
  pointer-events: none;
  z-index: -1;
}

/* The flyer's tartan corners, top-left and bottom-right, cut on the diagonal. */
.hero__corner {
  position: absolute;
  width: clamp(6rem, 16vw, 13rem);
  aspect-ratio: 1;
  z-index: -1;
  opacity: 0.85;
  pointer-events: none;
}

.hero__corner--tl {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.hero__corner--br {
  bottom: 0;
  right: 0;
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

/* A gold rule along the hypotenuse. It has to be drawn *inside* the triangle:
   the parent's clip-path also clips a border, so a real border would vanish. */
.hero__corner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
}

.hero__corner--tl::after {
  clip-path: polygon(100% 0, 0 100%, 0 calc(100% - 7px), calc(100% - 7px) 0);
}

.hero__corner--br::after {
  clip-path: polygon(100% 0, 0 100%, 7px 100%, 100% 7px);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--sp-8);
  align-items: center;
  justify-items: center;
}

@media (min-width: 60rem) {
  .hero__inner {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    text-align: left;
    justify-items: start;
  }
}

.hero__portrait {
  width: min(100%, 20rem);
  filter: drop-shadow(0 10px 28px rgb(0 0 0 / 0.45));
}

@media (min-width: 60rem) {
  .hero__portrait {
    width: 100%;
  }
}

.hero__body {
  display: grid;
  justify-items: center;
  gap: 0;
  max-width: 34rem;
}

/* Below the two-column breakpoint the whole hero is centred, so the flex
   rows inside it have to centre their own contents too — grid's
   justify-items only centres the boxes, not what wraps inside them. */
.hero__body .btn-row,
.hero__body .countdown,
.hero__price {
  justify-content: center;
}

@media (min-width: 60rem) {
  .hero__body {
    justify-items: start;
    max-width: none;
  }

  .hero__body .btn-row,
  .hero__body .countdown,
  .hero__price {
    justify-content: flex-start;
  }
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 var(--sp-4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fdf6e4;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}

.hero__title span {
  display: block;
  color: var(--gold-bright);
}

.hero__presented {
  font-family: var(--font-head);
  font-style: italic;
  font-size: var(--fs-xl);
  color: #d6cdb8;
  margin: 0 0 var(--sp-6);
}

.hero__presented strong {
  font-style: normal;
  font-weight: 600;
  color: #f0e7d2;
}

/* The two facts everything else hangs off. */
.hero__when {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2) var(--sp-6);
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-6);
  border-block: 2px solid color-mix(in srgb, var(--gold) 65%, transparent);
  width: 100%;
}

@media (min-width: 60rem) {
  .hero__when {
    justify-content: flex-start;
  }
}

.hero__date {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.05;
  color: #fdf6e4;
}

.hero__time {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero__venue {
  font-size: var(--fs-base);
  color: #d6cdb8;
  margin: 0 0 var(--sp-6);
}

.hero__venue strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0e7d2;
}

.hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: #d6cdb8;
  margin: var(--sp-6) 0 0;
}

.hero__price b {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  color: var(--gold-bright);
}

/* --- Countdown ------------------------------------------------------------------ */

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
}

.countdown[hidden] {
  display: none;
}

.countdown li {
  min-width: 3.75rem;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, #000 22%, transparent);
  text-align: center;
}

.countdown b {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.1;
  color: #fdf6e4;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* --- Feature strip (the flyer's five icons) ------------------------------------- */

.features {
  background: var(--navy-deep);
  color: #e6ddc8;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  padding-block: var(--sp-8);
}

.features__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .features__list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
  position: relative;
}

@media (min-width: 48rem) {
  .feature + .feature::before {
    content: "";
    position: absolute;
    left: calc(var(--sp-2) * -1);
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: color-mix(in srgb, var(--gold) 28%, transparent);
  }
}

.feature svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: var(--gold-bright);
}

.feature span {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #e6ddc8;
}
