/* =========================
   Base / Design System
   ========================= */

:root {
  --bg: #0b0b0d;
  --bg-soft: #141316;
  --card: #1a181b;
  --text: #f1eadc;
  --muted: #b7aa98;
  --gold: #c79a4b;
  --red: #7b1f25;
  --red-soft: #9d2d36;
  --line: rgba(199, 154, 75, 0.22);
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(123, 31, 37, 0.20), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(199, 154, 75, 0.10), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

/* =========================
   Navigation
   ========================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 11, 13, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* =========================
   Hero
   ========================= */

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 46px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, 0.94), rgba(11, 11, 13, 0.72) 48%, rgba(11, 11, 13, 0.36)),
    url("/images/gallery/photo-1.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  z-index: -1;
}

.hero-content {
  max-width: 680px;
}

.hero-note,
.card,
.order-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.hero-note {
  background: rgba(20, 19, 22, 0.78);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.hero-note p,
.card p {
  color: var(--muted);
  margin: 0;
}

.hero-note strong {
  color: var(--text);
}

/* =========================
   Typography
   ========================= */

.eyebrow {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
}

.lead {
  max-width: 660px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  margin: 24px 0 0;
}

.section-subtitle {
  max-width: 660px;
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 18px;
}

/* =========================
   Buttons
   ========================= */

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  color: white;
  box-shadow: 0 12px 34px rgba(123, 31, 37, 0.38);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* =========================
   Sections
   ========================= */

section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.grid-3 {
  display: grid;
  gap: 18px;
}

.card h3 {
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 12px;
}

.card-excerpt {
  margin-top: 14px !important;
}

.card-action,
.order-box-action {
  margin-top: 22px;
}

/* =========================
   Schedule
   ========================= */

.schedule-layout,
.order-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.event-list,
.open-games,
.closed-games-list {
  display: grid;
  gap: 12px;
}

.event {
  display: grid;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
}

.date {
  color: var(--gold);
  font-weight: 700;
  line-height: 1.25;
}

.date .day {
  display: block;
  font-size: 18px;
}

.date .time {
  display: block;
  margin-top: 4px;
}

.event-title {
  font-weight: 700;
}

.event-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}

.badge-open {
  color: #f6e2b5;
  border-color: rgba(199, 154, 75, 0.45);
  background: rgba(199, 154, 75, 0.10);
}

.closed-games {
  margin-top: 16px;
}

.closed-games summary {
  width: fit-content;
  cursor: pointer;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  list-style: none;
}

.closed-games summary::-webkit-details-marker {
  display: none;
}

.closed-games summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s ease;
}

.closed-games[open] summary::before {
  transform: rotate(90deg);
}

.closed-games-list {
  margin-top: 14px;
}

.slots {
  display: grid;
  gap: 10px;
}

.slot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

/* =========================
   Form
   ========================= */

.price {
  font-size: 34px;
  color: var(--gold);
  margin: 14px 0 18px;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 0;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

select option {
  background: #141316;
  color: #f1eadc;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.two,
.datetime-fields {
  display: grid;
  gap: 12px;
}

.datetime-fields {
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
}

.datetime-fields input[type="date"],
.datetime-fields input[type="time"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.form-status {
  color: var(--muted);
  margin: 0;
}

/* =========================
   Rails
   ========================= */

.rail-wrap {
  position: relative;
}

.chronicles-rail,
.gallery-rail {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chronicles-rail::-webkit-scrollbar,
.gallery-rail::-webkit-scrollbar {
  display: none;
}

.rail-card,
.gallery-rail .photo {
  scroll-snap-align: start;
}

.rail-card {
  display: flex;
  flex-direction: column;
}

.rail-card .card-action {
  margin-top: auto;
  padding-top: 22px;
}

.rail-card .card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-arrow {
  display: none;
}

/* =========================
   Gallery
   ========================= */

.photo {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  min-height: 180px;
}

.photo-1 { background-image: url("/images/gallery/photo-1.jpg"); }
.photo-2 { background-image: url("/images/gallery/photo-2.jpg"); }
.photo-3 { background-image: url("/images/gallery/photo-3.jpg"); }
.photo-4 { background-image: url("/images/gallery/photo-4.jpg"); }
.photo-5 { background-image: url("/images/gallery/photo-5.jpg"); }

/* =========================
   Offline / About / Footer
   ========================= */

.offline,
.about {
  display: grid;
  gap: 18px;
  align-items: center;
}

.club-logo {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-logo img {
  max-width: 100%;
  border-radius: 14px;
}

.portrait {
  min-height: 360px;
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(11, 11, 13, 0.30), rgba(11, 11, 13, 0.05)),
    url("/images/master.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

footer {
  padding: 42px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================
   Chronicle pages
   ========================= */

.chronicle-page {
  padding: 54px 0 96px;
}

.article {
  max-width: 880px;
}

.article h1 {
  margin: 22px 0;
}

.back {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 20px;
  text-decoration: none;
}

.article-body {
  margin-top: 40px;
}

.article-body h2 {
  font-size: 32px;
  margin: 48px 0 16px;
  color: var(--gold);
}

.article-body h3 {
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--gold);
}

.article-body p {
  color: var(--text);
  margin: 0 0 18px;
}

.article-body .bullet {
  color: var(--muted);
  padding-left: 10px;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  color: #f6e2b5;
}


/* =========================
   Modern Chronicle safety overrides
   ========================= */

.chronicle-modern-page .article-body {
  margin-top: 0;
}

.chronicle-modern-page .back {
  margin-bottom: 18px;
}
