/* ============================================================
   mistakidis.co.uk — Liam & Andrea · Royal Sage & Gold
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/cinzel-400.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/cinzel-600.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/cormorant-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/cormorant-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/cormorant-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../assets/fonts/cormorant-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/cormorant-600.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../assets/fonts/jost-300.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/jost-400.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/jost-500.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --ink: #3E4A38;
  --moss: #55654B;
  --sage: #9CAF88;
  --sage-wash: #E9EDE2;
  --ivory: #F8F6EF;
  --white: #FFFFFF;
  --gold: #C9A86A;
  --gold-text: #8A6F3C;
  --gold-soft: rgba(201, 168, 106, 0.4);
  --text: #3A4435;
  --text-soft: #5C6B52;
  --serif-display: 'Cinzel', 'Times New Roman', serif;
  --serif-body: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
  --measure: 64ch;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
::selection { background: var(--sage); color: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--moss); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--gold); }
p { margin: 0 0 1em; }

h1, h2, h3, h4 { font-family: var(--serif-display); color: var(--ink); font-weight: 400; line-height: 1.2; margin: 0; }

.micro {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* visually centre tracked caps */
  text-transform: uppercase;
  color: var(--gold-text);
}
.hero .micro, .band--dark .micro, .gate .micro, .card--feature .micro { color: var(--gold); }

/* Tab visibility: JS toggles [hidden]; without JS everything stacks */
html.js .tab[hidden] { display: none; }
html:not(.js) .tab { display: block !important; }

/* ---------- Skip link & focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 1.3rem;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 246, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-soft);
}
.nav ul {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.75rem, 3.5vw, 2.75rem);
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav li { display: flex; }
.nav a {
  display: flex;
  align-items: center;
  padding: 0 0.15rem;
  min-height: 56px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  /* active underline sits flush against the nav divider below */
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom-color: var(--gold); }
.nav .monogram {
  font-family: var(--serif-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(45, 56, 41, 0.64) 0%, rgba(45, 56, 41, 0.52) 45%, rgba(34, 43, 31, 0.8) 100%),
    url('../assets/photos/hero.jpg') center 38% / cover no-repeat;
  color: var(--ivory);
  padding: 5.5rem 1.5rem;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.hero::before { inset: 22px; border: 1px solid rgba(201, 168, 106, 0.75); }
.hero::after { inset: 30px; border: 1px solid rgba(201, 168, 106, 0.3); }
.hero-inner { max-width: 50rem; }
.hero h1 {
  font-size: clamp(2.4rem, 9vw, 5.25rem);
  letter-spacing: 0.1em;
  color: var(--ivory);
  margin: 1.1rem 0 0.4rem;
  text-shadow: 0 2px 26px rgba(20, 28, 16, 0.55);
}
.hero .amp {
  display: block;
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 3.9rem);
  color: var(--gold);
  margin: 0.5rem 0;
  text-shadow: 0 2px 18px rgba(20, 28, 16, 0.6);
}
.hero .venue-line {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: #E5DEC9;
  margin-top: 1.4rem;
  text-shadow: 0 1px 14px rgba(20, 28, 16, 0.65);
}
.hero .date-line {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.1rem;
}
.hero .countdown {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--ivory);
  margin-top: 0.9rem;
}

/* ---------- Flourish divider (gold rules, white flowers, sage stems) ---------- */
.flourish {
  display: flex;
  justify-content: center;
  margin: 1.1rem auto;
}
.flourish svg { width: 190px; height: 24px; }

/* ---------- Sections ---------- */
.tab { scroll-margin-top: 4rem; }
.band { padding: clamp(3rem, 7vw, 5.5rem) 1.5rem; }
.band--wash { background: var(--sage-wash); }
.band--dark { background: linear-gradient(180deg, #44523E 0%, var(--ink) 100%); color: var(--ivory); }
.band--dark h2, .band--dark h3 { color: var(--ivory); }
.wrap { max-width: 72rem; margin: 0 auto; }
.wrap--narrow { max-width: var(--measure); margin: 0 auto; }

.section-head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 {
  font-size: clamp(1.55rem, 4.4vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}
.section-head .subtitle {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-soft);
  margin: 0.2rem 0 0;
}
.band--dark .section-head .subtitle { color: #CDD6C4; }

.lede { font-size: 1.3rem; font-weight: 500; }

/* ---------- Gallery wall ---------- */
.gallery-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
}
.gold-frame {
  background: rgba(201, 168, 106, 0.08);
  border: 1px solid var(--gold);
  padding: 7px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.gold-frame img {
  border: 1px solid var(--gold-soft);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-wall .gold-frame { width: min(255px, 42vw); aspect-ratio: 2 / 3; }
.gallery-wall .gold-frame.lead { width: min(330px, 62vw); }
.gallery-wall figure { margin: 0; }

/* ---------- Menu ---------- */
.menu { max-width: 46rem; margin: 0 auto; text-align: center; }
.menu .course { margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.menu .course-name {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu .course-name::before, .menu .course-name::after { content: '—'; color: var(--gold); margin: 0 0.55em; }
.menu ul { list-style: none; margin: 0.85rem 0 0; padding: 0; }
.menu li { margin-bottom: 0.7rem; font-size: 1.18rem; }
.menu .dish { font-weight: 500; color: var(--ink); }
.menu .desc { font-style: italic; color: var(--text-soft); font-size: 1.02rem; display: block; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.3rem;
  align-items: stretch;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gold);
  padding: 1.7rem 1.4rem 1.5rem;
}
.card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}
.card h3, .card h4 {
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.card p { font-size: 1.05rem; margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .micro { display: block; margin-bottom: 0.55rem; letter-spacing: 0.3em; }
.card--feature { background: var(--ink); border-color: var(--gold); color: var(--ivory); }
.card--feature::before { border-color: rgba(201, 168, 106, 0.45); }
.card--feature h3, .card--feature h4 { color: var(--ivory); }
.card--feature p { color: #DCE3D4; }

/* ---------- Lists in prose ---------- */
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { padding-left: 1.5rem; position: relative; margin-bottom: 0.65rem; }
.detail-list li::before { content: '·'; color: var(--gold); font-weight: 700; position: absolute; left: 0.4rem; }

/* ---------- Map ---------- */
.map-frame { border: 1px solid var(--gold); padding: 7px; background: rgba(201, 168, 106, 0.08); }
.map-frame iframe { display: block; width: 100%; height: 22rem; border: 1px solid var(--gold-soft); filter: saturate(0.85); }

/* ---------- Buttons & form ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.95rem 2.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  min-height: 44px;
}
.btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.songs-form { max-width: 32rem; margin: 0 auto; text-align: center; }
.songs-form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.8rem;
}
.songs-form input[type='text'] {
  width: 100%;
  font-family: var(--serif-body);
  font-size: 1.25rem;
  text-align: center;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gold-text);
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
}
.songs-form input[type='text']:focus { outline: 2px solid var(--moss); outline-offset: 2px; }
.form-note { font-style: italic; color: var(--text-soft); font-size: 1.05rem; }
.form-error { color: #8A4B3B; font-style: italic; margin: 0 0 0.9rem; }
.form-success { color: var(--moss); font-size: 1.25rem; font-style: italic; margin-top: 1.1rem; }

/* ---------- Entry gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: radial-gradient(ellipse at 50% 30%, #44523E 0%, var(--ink) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.gate::before, .gate::after { content: ''; position: absolute; pointer-events: none; }
.gate::before { inset: 18px; border: 1px solid rgba(201, 168, 106, 0.6); }
.gate::after { inset: 26px; border: 1px solid rgba(201, 168, 106, 0.25); }
.gate-inner { max-width: 26rem; width: 100%; }
.gate .monogram { font-family: var(--serif-display); font-size: 2.1rem; letter-spacing: 0.18em; color: var(--gold); margin: 0 0 0.9rem; }
.gate h2 { color: var(--ivory); font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.9rem 0 1.4rem; }
.gate input[type='text'] {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--gold);
  padding: 0.95rem 1rem;
  margin-bottom: 1.1rem;
}
.gate input[type='text']:focus { outline: 3px solid var(--sage); outline-offset: 3px; }
.gate .btn { color: var(--ivory); }
.gate .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gate .form-error { color: #E8B9A8; }
.gate .gate-hint { font-family: var(--serif-body); font-style: italic; font-size: 1.05rem; color: #CDD6C4; margin-top: 1.4rem; }
html.unlocked .gate, html:not(.js) .gate { display: none; }

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

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--gold);
  background: var(--ink);
  color: #CDD6C4;
  text-align: center;
  padding: 2.4rem 1.5rem 2.1rem;
}
.footer .monogram { font-family: var(--serif-display); font-size: 1.3rem; letter-spacing: 0.18em; color: var(--gold); }
.footer p { font-family: var(--sans); font-weight: 300; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; margin: 0.8rem 0 0; }

/* ---------- Responsive & a11y ---------- */
@media (max-width: 720px) {
  .nav ul { justify-content: flex-start; }
  .nav::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 2.2rem;
    background: linear-gradient(90deg, rgba(248, 246, 239, 0), rgba(248, 246, 239, 0.95));
    pointer-events: none;
  }
  .gallery-wall { gap: 0.8rem; }
  .gallery-wall .gold-frame { width: calc(50% - 0.4rem); }
  .gallery-wall .gold-frame.lead { width: 82%; }
}
@media (max-width: 480px) {
  .hero .date-line { letter-spacing: 0.24em; text-indent: 0.24em; }
  .micro { letter-spacing: 0.3em; text-indent: 0.3em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
