:root {
  --ink: #121216;
  --muted: #64606c;
  --line: #e8e2dc;
  --paper: #faf6f0;
  --white: #ffffff;
  --purple: #6f4a86;
  --purple-dark: #3f2754;
  --black: #050507;
  --shadow: 0 18px 50px rgba(18, 18, 22, 0.12);
  --logo-url: url("/assets/fratres-logo.png?v=2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.belt-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--black), var(--purple), var(--black));
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(250, 246, 240, 0.9);
  border-bottom: 1px solid rgba(18, 18, 22, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.linked-logo {
  display: block;
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  aspect-ratio: 1;
  background-image: url("/assets/fratres-logo.png?v=2");
  background-image: var(--logo-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.linked-logo-small {
  width: 58px;
  height: 58px;
}

.main-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--purple-dark);
}

.header-cta,
.button {
  border-radius: 6px;
  font-weight: 800;
}

.header-cta {
  padding: 11px 16px;
  color: var(--white);
  background: var(--ink);
}

.section-band {
  background:
    linear-gradient(135deg, rgba(111, 74, 134, 0.08), transparent 42%),
    linear-gradient(0deg, var(--white), var(--paper));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(32px, 6vw, 82px);
  min-height: calc(100vh - 73px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 6vw, 86px);
  overflow: hidden;
}

.hero-content {
  align-self: center;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 8vw, 8.6rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.hero-copy,
.section-heading p,
.contact-panel p,
.location-note p,
.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 560px;
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  background: transparent;
}

.button.full {
  width: 100%;
  margin-top: 18px;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.quick-info div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-info dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-info dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.mat-lines {
  position: absolute;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent 49%, rgba(18, 18, 22, 0.08) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(18, 18, 22, 0.08) 50%, transparent 51%);
  border: 2px solid rgba(18, 18, 22, 0.08);
  border-radius: 50%;
  transform: rotate(12deg);
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(60vw, 430px);
  height: min(60vw, 430px);
  filter: drop-shadow(0 20px 24px rgba(18, 18, 22, 0.16));
}

.belt-knot {
  position: absolute;
  right: 2%;
  bottom: 18%;
  width: 220px;
  height: 18px;
  background: var(--purple-dark);
  border: 5px solid var(--black);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.belt-knot::before,
.belt-knot::after {
  position: absolute;
  top: -20px;
  width: 54px;
  height: 54px;
  content: "";
  border: 10px solid var(--black);
  border-radius: 50%;
}

.belt-knot::before {
  left: 66px;
  background: var(--paper);
}

.belt-knot::after {
  left: 104px;
  background: var(--purple);
}

.about,
.schedule,
.contact {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 6vw, 86px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.feature-card,
.contact-panel,
.location-note {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 24px;
}

.feature-number {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--purple);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2.4rem;
}

.schedule-shell {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.schedule-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 26px 20px;
  border-bottom: 1px solid var(--line);
}

.schedule-title h3 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 0.9;
  text-transform: uppercase;
}

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

.schedule-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: var(--white);
}

.schedule-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.schedule-table th,
.schedule-table td {
  width: 14.28%;
  padding: 18px 12px;
  border: 1px solid #cfc8c2;
  text-align: center;
  vertical-align: middle;
}

.schedule-table thead th {
  padding: 18px 10px;
  color: var(--ink);
  background: #f8f3ed;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-table tbody th {
  background: #fbf8f4;
  font-size: 0.92rem;
  font-weight: 900;
}

.schedule-table tbody th span,
.schedule-table td span,
.schedule-table td small {
  display: block;
}

.schedule-table tbody th span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.schedule-table td {
  color: #8a8580;
  font-size: 0.86rem;
  font-weight: 800;
}

.schedule-table td strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.schedule-table td span {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
}

.contact-actions {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: grid;
  gap: 5px;
  padding: 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}

.contact-link span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-link.muted {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-link.muted span {
  color: var(--muted);
}

.location-note {
  padding: 28px;
}

.map-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.site-footer {
  padding: 42px clamp(18px, 6vw, 86px) 24px;
  color: var(--muted);
  background: #111114;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(160px, 0.7fr));
  gap: 28px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand strong,
.footer-group h3,
.footer-bottom strong,
.developer-link {
  color: var(--white);
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-group h3 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-group a:hover {
  color: var(--white);
}

.developer-link {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero,
  .contact,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-mark {
    min-height: 360px;
  }

  .quick-info,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .schedule-title {
    justify-content: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .schedule-shell {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .schedule-title {
    margin-bottom: 14px;
    padding: 0;
    border: 0;
  }

  .schedule-title h3 {
    font-size: 2.8rem;
    letter-spacing: 0.08em;
  }

  .table-scroll {
    overflow: visible;
  }

  .schedule-table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table th,
  .schedule-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .schedule-table {
    background: transparent;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tr {
    margin-bottom: 18px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .schedule-table tbody th {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .schedule-table td {
    position: relative;
    min-height: 54px;
    padding: 14px 14px 14px 112px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

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

  .schedule-table td::before {
    position: absolute;
    left: 14px;
    top: 16px;
    color: var(--purple);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .main-nav {
    gap: 14px;
    font-size: 0.86rem;
  }

  .header-cta {
    padding: 10px 12px;
  }

  h1 {
    font-size: 3.5rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    padding-inline: 18px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}
