/* Robin Croft Magic — static site stylesheet */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/ebgaramond-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/ebgaramond-italic-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #000;
  --gold: #c9a24f;
  --gold-deep: #9c7630;
  --gold-light: #ecd49a;
  --champagne: #f3e8d0;
  --muted: #c6b89c;
  --card: #f4ede8;
  --card-ink: #1b1719;
  --line: rgba(201, 162, 79, 0.45);
  --gold-grad: linear-gradient(180deg, #f3dca2 0%, #d9b264 45%, #b98a3c 70%, #e6c77f 100%);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text: "EB Garamond", Garamond, Georgia, serif;

  --header-h: 4.5rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --frame-inset: clamp(0.75rem, 2.2vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--champagne);
  font-family: var(--text);
  font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff3d4; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.2; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -10rem; z-index: 100;
  background: var(--gold-light); color: #000; padding: 0.5rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.6rem;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em;
  text-decoration: none; border-radius: 2px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, filter .2s;
}
.btn--gold { background: var(--gold-grad); color: #140f06; border: 0; }
.btn--gold:hover { color: #000; filter: brightness(1.08); }
.btn--line { border: 1px solid var(--gold); color: var(--gold-light); background: transparent; }
.btn--line:hover { background: rgba(201, 162, 79, 0.14); color: #fff3d4; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(201, 162, 79, 0.25);
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: calc(var(--frame-inset) + 1rem);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--gold-light); }
.brand__spade { width: 1.35rem; height: 1.35rem; fill: var(--gold); }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.12em; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.site-nav a {
  font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.1em;
  color: var(--champagne); text-decoration: none; padding-block: 0.4rem;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav .site-nav__cta {
  border: 1px solid var(--gold); padding: 0.55rem 1.1rem; color: var(--gold-light);
}
.site-nav .site-nav__cta:hover { background: rgba(201, 162, 79, 0.14); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(40rem, 100svh);
  display: grid;
  grid-template-columns: 54fr 46fr;
  align-items: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 38% 55% at 30% 48%, rgba(201, 162, 79, 0.26), transparent 72%),
    radial-gradient(ellipse 60% 70% at 70% 55%, rgba(120, 88, 36, 0.14), transparent 75%),
    var(--black);
}
/* soft bokeh, like the business card background */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(236, 212, 154, 0.10) 0 2.2rem, transparent 2.3rem),
    radial-gradient(circle at 46% 16%, rgba(236, 212, 154, 0.08) 0 1.6rem, transparent 1.7rem),
    radial-gradient(circle at 58% 70%, rgba(236, 212, 154, 0.06) 0 2.6rem, transparent 2.7rem),
    radial-gradient(circle at 84% 18%, rgba(236, 212, 154, 0.07) 0 1.4rem, transparent 1.5rem),
    radial-gradient(circle at 92% 62%, rgba(236, 212, 154, 0.06) 0 2rem, transparent 2.1rem),
    radial-gradient(circle at 8% 70%, rgba(236, 212, 154, 0.06) 0 1.8rem, transparent 1.9rem),
    radial-gradient(circle at 72% 88%, rgba(236, 212, 154, 0.05) 0 1.3rem, transparent 1.4rem);
  filter: blur(10px);
}
/* business-card frame: an outer rule with a finer inner rule */
.hero__frame {
  position: absolute; z-index: 1; pointer-events: none;
  inset: calc(var(--header-h) + 0.25rem) var(--frame-inset) var(--frame-inset);
  border: 1.5px solid var(--gold);
  box-shadow:
    inset 0 0 0 7px var(--black),
    inset 0 0 0 8px rgba(201, 162, 79, 0.55),
    0 0 24px rgba(201, 162, 79, 0.12);
}
.hero__figure {
  position: relative; z-index: 2;
  grid-column: 1; grid-row: 1;
  align-self: end; justify-self: end;
  height: min(calc(100svh - var(--header-h) - 1rem), 53vw, 60rem);
  aspect-ratio: 927 / 948;
  margin-right: -2vw;
}
.hero__figure img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 16%),
    linear-gradient(to top, transparent 0, #000 9%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 16%),
    linear-gradient(to top, transparent 0, #000 9%);
  mask-composite: intersect;
}
.hero__content {
  position: relative; z-index: 3;
  grid-column: 2; grid-row: 1;
  padding: 3rem calc(var(--frame-inset) + clamp(1.5rem, 5vw, 5rem)) 3rem 0;
  max-width: 40rem;
  text-align: center;
  justify-self: center;
}
.hero__logo { margin: 0 auto; width: min(100%, 30rem, 26vw + 8rem); }
.hero__logo img { width: 100%; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)); }
.hero__strap {
  margin: 1.1rem 0 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 0.8rem + 1.3vw, 2rem);
  letter-spacing: 0.32em; margin-right: -0.32em; /* optical centring of tracked text */
  color: #fff0c8;
}
.hero__lede {
  margin: 1.25rem auto 0; max-width: 30rem;
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem);
  color: var(--champagne);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2rem; }
.hero__where { margin: 1.4rem 0 0; font-style: italic; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero__frame { animation: frame-in 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__figure { animation: rise-in 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__content { animation: fade-in 1s .55s ease-out both; }
  @keyframes frame-in { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Shared section bits ---------- */
section { position: relative; }
.section-title {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
  color: var(--gold-light);
  text-align: center;
  letter-spacing: 0.04em;
}
.section-title::after {
  content: ""; display: block; width: 4.5rem; height: 1px; margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-title--left { text-align: left; }
.section-title--left::after { margin-left: 0; background: linear-gradient(90deg, var(--gold), transparent); }
.section-intro { max-width: 36rem; margin: 1.4rem auto 0; text-align: center; color: var(--muted); }
.prose p { max-width: 36em; }

/* ---------- About ---------- */
.about { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.about__grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.about__title {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem);
  line-height: 1.3;
  color: var(--gold-light);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.about__body { padding-top: 1.6rem; }
.about__body p:first-child { font-size: 1.15em; color: #fff4dc; }

/* ---------- Events ---------- */
.events {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201, 162, 79, 0.08), transparent 70%);
  border-top: 1px solid rgba(201, 162, 79, 0.18);
}
.events__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; }
.event { padding: 0.25rem clamp(1.25rem, 3vw, 2.5rem); text-align: center; }
.event + .event { border-left: 1px solid var(--line); }
.event h3 { font-size: 1.3rem; color: var(--champagne); letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.event p { color: var(--muted); margin: 0; }

/* ---------- Packages: a hand of playing cards ---------- */
.packages { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem); }
.hand {
  list-style: none; margin: 3.5rem auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 72rem;
}
.playing-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 27rem;
  padding: 2.6rem 3rem 2.6rem;
  background:
    linear-gradient(160deg, #fbf6f2 0%, var(--card) 55%, #e9e0da 100%);
  color: var(--card-ink);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 1.5rem 3rem rgba(0, 0, 0, 0.65),
    0 0 2.5rem rgba(201, 162, 79, 0.12);
}
.playing-card::before { /* thin inner border, like a card's printed frame */
  content: ""; position: absolute; inset: 0.9rem 2.4rem; border: 1px solid rgba(156, 118, 48, 0.35); border-radius: 8px;
  pointer-events: none;
}
.playing-card:nth-child(1) { transform: rotate(-3.5deg) translateY(1.1rem); }
.playing-card:nth-child(3) { transform: rotate(3.5deg) translateY(1.1rem); }
.playing-card__index {
  position: absolute; top: 1rem; left: 0.95rem;
  font-size: 1.3rem; line-height: 1; color: var(--card-ink);
}
.playing-card__index--foot { top: auto; left: auto; bottom: 1rem; right: 0.95rem; transform: rotate(180deg); }
.playing-card h3 { font-size: clamp(1.2rem, 0.9rem + 0.6vw, 1.45rem); font-weight: 600; text-align: center; color: var(--card-ink); }
.playing-card__time {
  margin: 0.5rem 0 1.4rem; text-align: center; font-style: italic; color: var(--gold-deep); font-size: 1.15rem;
}
.playing-card__list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.playing-card__list li {
  padding: 0.55rem 0; border-top: 1px solid rgba(27, 23, 25, 0.12); text-align: center; line-height: 1.35;
}
.playing-card__list li:last-child { border-bottom: 1px solid rgba(27, 23, 25, 0.12); }
.playing-card__link {
  margin-top: auto; align-self: center;
  font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em;
  color: #7a5a20; text-decoration: underline; text-decoration-color: rgba(156, 118, 48, 0.5);
}
.playing-card__link:hover { color: #000; }
.playing-card a:focus-visible { outline-color: var(--gold-deep); }
.packages__note { margin: 4rem auto 0; max-width: 34rem; text-align: center; font-style: italic; color: var(--muted); }

/* ---------- Enquire ---------- */
.enquire {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid rgba(201, 162, 79, 0.18);
  background: radial-gradient(ellipse 50% 70% at 85% 60%, rgba(201, 162, 79, 0.10), transparent 70%);
}
.enquire__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }

.steps { list-style: none; counter-reset: step; margin: 2.2rem 0 2.5rem; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.3rem 3.4rem; color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--gold-light);
  font-variant-numeric: lining-nums;
}
.steps strong { display: block; color: var(--champagne); font-weight: 600; }

.direct { list-style: none; margin: 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.direct li { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.direct svg { width: 1.5rem; height: 1.5rem; fill: var(--gold); flex: none; }
.direct a {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem); color: #fff; text-decoration: none;
  font-variant-numeric: lining-nums; overflow-wrap: anywhere;
}
.direct a:hover { color: var(--gold-light); text-decoration: underline; }
.direct__hint { color: var(--muted); font-style: italic; font-size: 1rem; }

.enquiry-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background: rgba(10, 8, 4, 0.7);
  box-shadow: inset 0 0 0 5px var(--black), inset 0 0 0 6px rgba(201, 162, 79, 0.25);
}
.field { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 1rem; color: var(--gold-light); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: #fff;
  background: #0c0a07; border: 1px solid rgba(201, 162, 79, 0.35); border-radius: 2px;
  padding: 0.6rem 0.75rem; min-height: 2.9rem;
  color-scheme: dark;
  font-variant-numeric: lining-nums;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 2px rgba(236, 212, 154, 0.35);
}
.field input[aria-invalid="true"] { border-color: #e48c7a; }
.form-error { color: #f0a797; margin: 0 0 1rem; }
.form-note { margin: 0.8rem 0 0; font-size: 0.95rem; color: var(--muted); text-align: center; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(201, 162, 79, 0.25); padding: 3rem 0 2.5rem; }
.site-footer__inner { display: grid; justify-items: center; text-align: center; gap: 0.6rem; }
.site-footer__tag { margin: 0.4rem 0 0; font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.22em; color: var(--gold); }
.site-footer__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.8rem; margin: 0.4rem 0 0; font-variant-numeric: lining-nums; }
.site-footer__contact a { color: var(--champagne); text-decoration: none; }
.site-footer__contact a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer__legal { margin: 0.8rem 0 0; font-size: 0.95rem; color: #857a66; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__content { padding-right: calc(var(--frame-inset) + 1.5rem); }
  .hand { gap: 1.25rem; }
  .playing-card { padding-inline: 3rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 4rem; }

  .nav-toggle {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
    background: transparent; border: 1px solid var(--line); color: var(--gold-light); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 1.2rem; height: 1.5px; background: currentColor; position: relative; content: "";
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0, 0, 0, 0.96); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav[hidden] { display: none; }
  .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid rgba(201, 162, 79, 0.15); font-size: 1rem; }
  .site-nav .site-nav__cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--gold); }
  .site-header.is-open { background: rgba(0, 0, 0, 0.96); }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.5rem);
    background:
      radial-gradient(ellipse 80% 40% at 50% 78%, rgba(201, 162, 79, 0.24), transparent 72%),
      var(--black);
  }
  .hero__content { grid-column: 1; grid-row: 1; padding: 1.5rem calc(var(--frame-inset) + 1.25rem) 0; }
  .hero__logo { width: min(100%, 22rem); }
  .hero__figure {
    grid-column: 1; grid-row: 2; justify-self: center;
    height: auto; width: min(100%, 34rem); margin: 1.5rem 0 0;
  }

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

  .events__grid { grid-template-columns: 1fr; gap: 2.2rem; margin-top: 2.2rem; }
  .event + .event { border-left: 0; border-top: 1px solid var(--line); padding-top: 2.2rem; }

  .hand { grid-template-columns: 1fr; max-width: 24rem; gap: 1.75rem; }
  .playing-card, .playing-card:nth-child(1), .playing-card:nth-child(3) { transform: none; min-height: 0; }

  .enquire__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 0.92rem; letter-spacing: 0.08em; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
