:root {
  --ink: #10141b;
  --muted: #5e6672;
  --surface: #ffffff;
  --paper: #f4f1ea;
  --field: #074a98;
  --field-dark: #062448;
  --field-light: #0e63bd;
  --rose: #d80f24;
  --leaf: #166c2f;
  --gold: #f2c331;
  --field-dark-rgb: 6, 36, 72;
  --field-rgb: 7, 74, 152;
  --rose-rgb: 216, 15, 36;
  --gold-rgb: 242, 195, 49;
  --paper-rgb: 244, 241, 234;
  --line: #d8d4cc;
  --shadow: 0 18px 55px rgba(6, 36, 72, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Merriweather", Georgia, serif;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(180deg, rgba(3, 18, 38, 0.98), rgba(6, 36, 72, 0.96)),
    var(--field-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Cormorant SC", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

.brand-crest {
  width: 44px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.26));
}

.site-nav {
  gap: 4px;
}

.site-nav .navbar-nav {
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  padding: 11px 15px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-family: "Cormorant SC", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(216, 15, 36, 0.42);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 8px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(90deg, rgba(6, 36, 72, 0.9), rgba(6, 36, 72, 0.62) 52%, rgba(6, 36, 72, 0.34)),
    url("../img/wallpaper/main.jpg") center / cover no-repeat;
}

.hero-content,
.page-hero,
.page-section,
.content-grid,
.cards,
.event-list,
.photo-grid,
.photo-gallery-section,
.link-list,
.contact-layout,
.cta-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-content {
  max-width: 760px;
  margin-left: 0;
}

.hero-emblem {
  width: min(100%, 670px);
  height: auto;
  max-height: 230px;
  margin-bottom: 26px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.90;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-family: "Cormorant SC", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.15rem, 5.4vw, 4.65rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  line-height: 1.03;
}

h2 {
  font-family: "Cormorant SC", Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
}

.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font-family: "Cormorant SC", Georgia, serif;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #10141b;
  background: var(--gold);
}

.button.secondary {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.16);
}

.page-section,
.content-grid,
.cards,
.event-list,
.photo-grid,
.photo-gallery-section,
.link-list,
.contact-layout,
.cta-band {
  padding: clamp(44px, 7vw, 88px) 0;
}

.intro-grid,
.content-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
}

.highlight-panel,
.info-panel,
.card,
.event-item,
.contact-form,
.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--rose);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.highlight-panel,
.info-panel,
.card,
.event-item,
.contact-form {
  padding: clamp(22px, 4vw, 34px);
}

.map-card {
  overflow: hidden;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--field);
  background: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.subpage {
  min-height: calc(100vh - 136px);
}

.page-hero {
  padding: clamp(56px, 9vw, 108px) 0 clamp(28px, 5vw, 56px);
}

.page-hero h1 {
  color: var(--field-dark);
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card p,
.event-item p,
.info-panel p,
.content-grid p,
.page-section p {
  color: var(--muted);
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
}

.manifest-event-list {
  padding-top: 0;
}

.manifest-event {
  border-top-color: var(--field);
}

.event-item time {
  color: var(--rose);
  font-weight: 900;
  text-transform: uppercase;
}

.event-item h2,
.event-item p {
  grid-column: 2;
}

.photo-gallery-section {
  display: grid;
  gap: 22px;
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 24px;
  align-items: end;
  padding: clamp(20px, 4vw, 30px);
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(135deg, rgba(var(--field-dark-rgb), 0.94), rgba(var(--field-rgb), 0.78)),
    rgba(var(--field-dark-rgb), 0.92);
  border-top: 5px solid var(--rose);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-intro h2,
.gallery-intro p {
  margin: 0;
}

.gallery-intro h2 {
  color: rgba(255, 255, 255, 0.94);
}

.gallery-intro-crest {
  justify-self: end;
  width: clamp(72px, 9vw, 118px);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 18px);
  align-items: flex-start;
  padding-top: 0;
}

.photo-thumb {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  background: rgba(5, 8, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-thumb {
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.photo-thumb:hover,
.photo-thumb:focus-visible {
  border-color: rgba(var(--gold-rgb), 0.78);
  outline: 3px solid rgba(var(--gold-rgb), 0.28);
  outline-offset: 2px;
}

.photo-thumb-frame {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(var(--field-dark-rgb), 0.44);
}

.photo-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb-frame img {
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.photo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 18, 38, 0) 36%, rgba(3, 18, 38, 0.74) 100%),
    linear-gradient(135deg, rgba(var(--field-rgb), 0.1), rgba(var(--rose-rgb), 0.08));
  pointer-events: none;
}

.photo-thumb:hover img,
.photo-thumb:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.04);
}

.photo-thumb-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 44px 16px 14px;
  font-weight: 800;
}

.photo-thumb-caption > span {
  font-family: "Cormorant SC", Georgia, serif;
  font-size: clamp(0.88rem, 1.28vw, 1.16rem);
  line-height: 1.05;
}

.photo-thumb-caption small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-modal .modal-content {
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--field-rgb), 0.26), rgba(var(--field-rgb), 0) 34%),
    linear-gradient(145deg, rgba(var(--field-dark-rgb), 0.97), rgba(5, 8, 13, 0.98) 58%, #020306);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.gallery-modal .modal-dialog {
  width: min(96vw, 1680px);
  max-width: min(96vw, 1680px);
}

.gallery-modal .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.gallery-modal .modal-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-modal .modal-title img {
  width: 38px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gallery-modal .modal-body {
  padding: 0;
}

.gallery-modal .carousel-item figure {
  display: grid;
  min-height: min(84vh, 940px);
  margin: 0;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
}

.gallery-modal .carousel-item img {
  max-width: 100%;
  max-height: min(78vh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.36);
}

.gallery-modal .carousel-item figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-align: center;
}

.beta-notice-modal .modal-content {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--field-rgb), 0.24), rgba(var(--field-rgb), 0) 34%),
    linear-gradient(145deg, rgba(var(--field-dark-rgb), 0.98), rgba(5, 8, 13, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 5px solid var(--rose);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.beta-notice-modal .modal-header,
.beta-notice-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.14);
}

.beta-notice-modal .modal-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.beta-notice-modal .modal-title img {
  width: 34px;
  height: 39px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.beta-notice-modal .modal-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 124px;
  padding: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--rose);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--field);
  outline: 3px solid rgba(7, 74, 152, 0.24);
  outline-offset: 2px;
}

.link-card-media {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  background: rgba(var(--field-rgb), 0.08);
  border-radius: 8px;
}

.link-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.link-card-placeholder {
  color: var(--field);
  font-family: "Cormorant SC", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.link-card-body {
  display: grid;
  gap: 6px;
}

.link-card-body strong {
  font-family: "Cormorant SC", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.link-card-body span {
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.map-frame {
  min-height: 320px;
  background: var(--field);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.map-details {
  padding: clamp(22px, 4vw, 34px);
}

.map-details p {
  color: var(--muted);
}

.map-link {
  color: var(--field);
  background: rgba(242, 195, 49, 0.24);
}

.wallpaper-page {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.wallpaper-page::before {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  z-index: -2;
  background: url("../img/wallpaper/groupshot.jpeg") center top / cover no-repeat;
}

.wallpaper-page::after {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(var(--field-dark-rgb), 0.42), rgba(var(--field-dark-rgb), 0) 30%),
    radial-gradient(circle at 92% 8%, rgba(var(--field-rgb), 0.3), rgba(var(--field-rgb), 0) 28%),
    radial-gradient(circle at 22% 70%, rgba(var(--gold-rgb), 0.16), rgba(var(--gold-rgb), 0) 34%),
    radial-gradient(circle at 86% 74%, rgba(var(--rose-rgb), 0.08), rgba(var(--rose-rgb), 0) 32%),
    linear-gradient(135deg, rgba(var(--field-dark-rgb), 0.26), rgba(var(--paper-rgb), 0.68) 36%, rgba(var(--paper-rgb), 0.78) 70%, rgba(var(--field-dark-rgb), 0.22));
  pointer-events: none;
}

.wallpaper-hero {
  width: 100%;
  min-height: 230px;
  display: grid;
  align-items: end;
  margin: 0;
  padding: clamp(44px, 6vw, 76px) clamp(20px, 6vw, 72px) clamp(30px, 4vw, 44px);
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0) 34%),
    linear-gradient(90deg, rgba(3, 18, 38, 0.9), rgba(6, 36, 72, 0.7));
}

.coaching-page::before {
  background-image: url("../img/wallpaper/coaches.jpg");
}

.about-page::before {
  background-image: url("../img/wallpaper/groupshot.jpeg");
}

.photos-page::before {
  background-image: url("../img/wallpaper/Moors.jpeg");
}

.events-page::before {
  background-image: url("../img/wallpaper/main.jpg");
}

.longbow-page::before {
  background-image: url("../img/wallpaper/map2.jpg");
}

.wallpaper-hero > * {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.wallpaper-hero h1 {
  color: rgba(255, 255, 255, 0.94);
}

.wallpaper-hero + .page-section,
.wallpaper-hero + .content-grid,
.wallpaper-hero + .cards,
.wallpaper-hero + .event-list,
.wallpaper-hero + .photo-gallery-section,
.wallpaper-hero + .link-list,
.wallpaper-hero + .contact-layout {
  padding-top: clamp(28px, 4vw, 54px);
}

.longbow-story {
  padding-top: clamp(22px, 4vw, 42px);
}

.quote-panel {
  align-self: start;
  padding: clamp(22px, 4vw, 34px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 36, 72, 0.97), rgba(7, 74, 152, 0.94)),
    var(--field-dark);
  border-top: 5px solid var(--rose);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.quote-panel blockquote {
  margin: 0;
}

.quote-panel p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}

.quote-panel cite {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.error-page .content-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.error-card {
  display: grid;
  gap: 14px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--rose);
  font-family: "Cormorant SC", Georgia, serif;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
}

.error-card .quick-links {
  justify-content: center;
  margin-top: 8px;
}

label {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 0.94rem/1.35 "Merriweather", Georgia, serif;
  background: #fbfaf8;
}

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

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.94);
  background: var(--field-dark);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 42px);
  margin-bottom: clamp(44px, 7vw, 88px);
}

.cta-band h2 {
  margin-bottom: 0;
}

.site-footer {
  padding: 26px clamp(20px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #05080d;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1199.98px) {
  .site-nav {
    padding-top: 14px;
    background: var(--field);
  }

  .site-nav .navbar-nav {
    gap: 6px;
  }

  .site-nav a {
    width: 100%;
  }

  .intro-grid,
  .content-grid,
  .cards,
  .link-list,
  .gallery-intro,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .gallery-intro-crest {
    justify-self: start;
  }

  .hero {
    min-height: 74vh;
  }

  .wallpaper-hero {
    min-height: 220px;
  }

  .event-item {
    grid-template-columns: 1fr;
  }

  .event-item h2,
  .event-item p {
    grid-column: auto;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    max-width: 260px;
    white-space: normal;
  }

  .brand-crest {
    width: 40px;
    height: 46px;
  }

  .hero-emblem {
    max-height: 170px;
  }

  .hero-content,
  .page-hero,
  .page-section,
  .content-grid,
  .cards,
  .event-list,
  .photo-grid,
  .photo-gallery-section,
  .link-list,
  .contact-layout,
  .cta-band {
    width: min(100% - 28px, 1120px);
  }

  .link-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 104px;
    padding: 14px;
  }

  .link-card-media {
    width: 54px;
    height: 54px;
  }

  h1 {
    font-size: 2.25rem;
  }
}
