:root {
  --maroon: #5e1a2b;
  --maroon-deep: #40111d;
  --gold: #c9a24c;
  --gold-soft: #e7d7a9;
  --ink: #1e1a1b;
  --ink-soft: #5f5657;
  --paper: #fbf9f5;
  --paper-tint: #f3eee5;
  --line: #e2dbd0;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure: 44rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--maroon);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--maroon-deep);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h3 {
  font-size: 1.5rem;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.35rem;
}

strong {
  font-weight: 600;
}

/* Header */

.site-header {
  text-align: center;
  padding: 2.5rem var(--gutter) 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.masthead {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}

.masthead-emblem {
  color: var(--maroon);
  margin-bottom: 0.4rem;
}

.masthead-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.masthead-tagline {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  margin-top: 1.75rem;
  padding-bottom: 1rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--maroon);
}

.site-nav a[aria-current='page'] {
  color: var(--maroon);
  border-bottom-color: var(--gold);
}

/* Hero */

.hero {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: var(--white);
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
  text-align: center;
}

.hero-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 500;
  margin-bottom: 0.5em;
}

.hero-lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 38rem;
  margin: 0 auto;
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--gold-soft);
  margin-bottom: 1.75rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-facts div {
  min-width: 6rem;
}

.hero-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}

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

/* Sections */

.site-main {
  min-height: 40vh;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Sections carry top spacing only, so stacked sections do not double up. */
.section {
  padding: clamp(2.25rem, 5vw, 3.5rem) var(--gutter) 0;
  max-width: 72rem;
  margin: 0 auto;
}

.section > :last-child {
  margin-bottom: 0;
}

.section-narrow {
  max-width: var(--measure);
}


.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
  margin-top: 0.6rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
}

.note {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--maroon);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.9rem;
  margin-bottom: 0.25rem;
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--maroon);
}

.card-date {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.card-facts {
  margin: 0 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.card-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card-facts dd {
  margin: 0.1rem 0 0;
  font-weight: 500;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--maroon);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.button:hover {
  background: var(--maroon-deep);
  border-color: var(--maroon-deep);
  color: var(--white);
}

.button-ghost {
  background: transparent;
  color: var(--maroon);
}

.button-ghost:hover {
  background: var(--maroon);
  color: var(--white);
}

/* Sub navigation */

.subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  padding: 0.85rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1;
}

.subnav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

.subnav a:hover {
  color: var(--maroon);
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.table th,
.table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

.table th {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-tint);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table-compact {
  max-width: 20rem;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem var(--gutter) 2rem;
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--gold-soft);
}

.site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gold);
}

.site-footer-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.site-footer-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.site-footer-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.site-footer-copy {
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 40rem) {
  .hero-facts {
    gap: 1rem 1.5rem;
  }

  .card-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Account bar */

.account-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  max-width: 72rem;
  margin: -1.5rem auto 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.account-bar a,
.link-button {
  color: var(--ink-soft);
  text-decoration: none;
}

.account-bar a:hover,
.link-button:hover {
  color: var(--maroon);
}

.account-name {
  color: var(--ink);
  font-weight: 500;
}

.link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

/* Notices */

.flash {
  max-width: var(--measure);
  margin: 1.5rem auto 0;
  padding: 0.85rem 1.25rem;
  background: #eef6ea;
  border: 1px solid #cfe3c4;
  color: #2f5426;
  border-radius: 2px;
}

.notice {
  background: var(--paper-tint);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1.25rem;
  margin: 0 0 1.5rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

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

.nowrap {
  white-space: nowrap;
}

/* Forms */

.form {
  margin-top: 1.5rem;
}

.fieldset {
  border: 1px solid var(--line);
  padding: 1rem 1.25rem 0.25rem;
  margin: 0 0 1.5rem;
}

.fieldset legend {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0 0.4rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.inline-form select {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c9c0b4;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.inline-form select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field input[aria-invalid='true'] {
  border-color: #a63a3a;
}

.field-error {
  color: #a63a3a;
  font-size: 0.875rem;
  margin: 0.35rem 0 0;
}

.inline-form select {
  width: auto;
  padding: 0.4rem 0.5rem;
  font-size: 0.875rem;
}

.button-small {
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
}

/* Badges */

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  white-space: nowrap;
}

.badge-pending {
  background: #fbf1d6;
  color: #7a5a0f;
}

.badge-waitlisted {
  background: #ece9e4;
  color: #5f5657;
}

.badge-confirmed {
  background: #e4f1de;
  color: #2f5426;
}

.badge-withdrawn {
  background: #f3e1e1;
  color: #7a2a2a;
}

/* Admin tables */

.table-scroll {
  overflow-x: auto;
}

.cell-notes {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  max-width: 24rem;
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.link-list a {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 40rem) {
  .account-bar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: -1rem;
  }
}

/* Payment */

.payment-options li {
  margin-bottom: 0.75rem;
}

.details {
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.75rem 1.25rem;
}

.details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--maroon);
}

.details[open] summary {
  margin-bottom: 0.75rem;
}

.badge-payment_submitted {
  background: #e3ecf6;
  color: #24466b;
}

.status-action {
  display: block;
  margin-top: 0.5rem;
}

/* Tournament section */

.hero-compact {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.hero-compact .hero-title {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  margin-bottom: 0.3em;
}

.hero-compact .hero-date {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.subnav a[aria-current='page'] {
  color: var(--maroon);
  border-bottom: 2px solid var(--gold);
}
