/*
Theme Name: Choirmaster
Theme URI: https://thechoirmasters.co.uk
Author: Choirmaster South Tyneside
Description: A bespoke theme for Choirmaster South Tyneside.
Version: 1.0.0
Text Domain: choirmaster
*/

:root {
  --ink: #141b28;
  --ink-soft: #4b4754;
  --brand: #3f3145;
  --brand-dark: #2b1f2f;
  --accent: #702639;
  --lilac: #8b88a0;
  --mist: #f3eff2;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(43, 31, 47, 0.22);
}

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

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 8%, rgba(139, 136, 160, 0.18), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(112, 38, 57, 0.18), transparent 48%),
    linear-gradient(160deg, #f6f1f7 0%, #eee9f2 45%, #f7f4fa 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 5;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site {
  position: relative;
  overflow: hidden;
}

.site::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 136, 160, 0.25) 0%, rgba(139, 136, 160, 0) 70%);
  top: -220px;
  left: -180px;
  z-index: 0;
}

.site::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 38, 57, 0.2) 0%, rgba(112, 38, 57, 0) 70%);
  bottom: -220px;
  right: -180px;
  z-index: 0;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 8px 0 4px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(320px, 38vw, 560px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(43, 31, 47, 0.28);
}

.btn-secondary {
  background: var(--white);
  border: 1px solid rgba(63, 49, 69, 0.25);
  color: var(--brand);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(63, 49, 69, 0.25);
  color: var(--brand);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  padding: 24px 0 50px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  font-family: "Syne", "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: 1px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

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

.hero-panel {
  display: grid;
  gap: 20px;
}

.hero-card {
  background: var(--white);
  padding: 26px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(63, 49, 69, 0.08);
}

.hero-card h3 {
  font-family: "Syne", "Times New Roman", serif;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.detail-list strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.section h2 {
  font-family: "Syne", "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.card {
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(63, 49, 69, 0.08);
  box-shadow: 0 12px 30px rgba(63, 49, 69, 0.08);
}

.card h3 {
  margin-top: 0;
  font-family: "Syne", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cta {
  background: linear-gradient(120deg, #3f3145 0%, #702639 100%);
  color: var(--white);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cta p {
  color: #f0e6ec;
}

.page-content {
  background: var(--white);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.page-simple {
  padding: 8px 0 28px;
}

.member-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(63, 49, 69, 0.12);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.member-menu-name {
  font-family: "Syne", "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.member-menu-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-content h2,
.page-content h3 {
  font-family: "Syne", "Times New Roman", serif;
}

.cm-magic-login {
  margin-top: 10px;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(63, 49, 69, 0.12);
  box-shadow: var(--shadow);
}

.cm-magic-login h2 {
  margin: 0 0 10px;
  font-family: "Syne", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

.cm-magic-login p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.cm-magic-login label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-weight: 600;
}

.cm-magic-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(63, 49, 69, 0.2);
  padding: 12px 14px;
  font-size: 0.95rem;
  box-shadow: none;
}

.cm-magic-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(112, 38, 57, 0.15);
  outline: none;
}

.cm-magic-message {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--white);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.choirmaster-profile {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.choirmaster-role {
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 8px;
}

.choirmaster-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  box-shadow: 0 18px 30px rgba(20, 27, 40, 0.18);
}

.site-footer {
  padding: 50px 0 30px;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-bottom {
  margin-top: 24px;
  border-top: 1px solid rgba(63, 49, 69, 0.12);
  padding-top: 16px;
  font-size: 0.85rem;
}

.fade-up {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .brand-logo {
    width: clamp(260px, 65vw, 420px);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 16px;
  }

  .cta {
    padding: 32px;
  }

  .page-content {
    padding: 24px;
  }
}
