:root {
  --ink: #0d1728;
  --muted: #4f6077;
  --line: #d7e2e7;
  --paper: #f7fbfd;
  --white: #fff;
  --teal: #008a84;
  --teal-dark: #00635f;
  --gold: #ffbe3d;
  --coral: #ff6647;
  --blue: #2563eb;
  --night: #101827;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 138, 132, 0.09), transparent 28%, transparent 72%, rgba(255, 190, 61, 0.12)),
    linear-gradient(135deg, #f8fbff 0%, #eef5f7 52%, #fff9ee 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  border: 2px solid var(--teal);
  background: var(--white);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(215, 226, 231, 0.8);
  background: rgba(248, 251, 253, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  overflow: hidden;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

nav a:hover {
  color: var(--teal-dark);
}

main {
  overflow: hidden;
}

.atrium {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(250px, 0.52fr) minmax(380px, 0.85fr);
  gap: clamp(18px, 2.4vw, 34px);
  min-height: calc(100vh - 79px);
  padding: clamp(42px, 6vw, 88px) clamp(18px, 5vw, 72px) 36px;
  align-items: center;
}

.atrium::before {
  content: "";
  position: absolute;
  inset: 34px clamp(18px, 5vw, 72px) 26px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 34px;
  pointer-events: none;
}

.atrium-copy,
.door-panel,
.atrium-center {
  position: relative;
}

.atrium-copy,
.door-panel {
  z-index: 4;
}

.atrium-center {
  z-index: 1;
}

.kicker,
.door-label {
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.2rem, 5vw, 5.45rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  line-height: 1.48;
}

.atrium-center {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.atrium-center::before {
  content: "";
  position: absolute;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 138, 132, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.atrium-center img {
  position: relative;
  z-index: 2;
  width: min(25vw, 310px);
  min-width: 220px;
  filter: drop-shadow(0 28px 32px rgba(15, 23, 42, 0.2));
}

.article-ring {
  position: absolute;
  z-index: 3;
  width: min(36vw, 450px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.article-ring span {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 950;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.article-ring span:nth-child(1) {
  left: 8%;
  top: 24%;
  background: var(--coral);
}

.article-ring span:nth-child(2) {
  right: 10%;
  top: 18%;
  background: var(--night);
}

.article-ring span:nth-child(3) {
  left: 44%;
  top: 0;
  background: var(--teal);
}

.article-ring span:nth-child(4) {
  right: 0;
  top: 48%;
  background: var(--gold);
  color: var(--night);
}

.article-ring span:nth-child(5) {
  left: 6%;
  bottom: 18%;
  background: var(--blue);
}

.article-ring span:nth-child(6) {
  right: 18%;
  bottom: 4%;
  background: var(--coral);
}

.door-panel {
  display: grid;
  gap: 14px;
}

.door {
  min-height: 0;
  padding: 19px 22px;
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.door h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.25vw, 2.45rem);
  line-height: 1;
  letter-spacing: 0;
}

.door p:not(.door-label) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.48;
}

.voice-door {
  border-left: 7px solid var(--teal);
}

.course-door {
  border-left: 7px solid var(--gold);
}

.local-door {
  border-left: 7px solid var(--coral);
}

.door-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 17px;
  border-radius: 999px;
  color: var(--white);
  background: var(--night);
  font-weight: 900;
  text-decoration: none;
}

.door-link:hover {
  background: var(--teal-dark);
}

.anniversary {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(420px, 1fr);
  gap: 34px;
  padding: 68px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(0, 138, 132, 0.08), transparent 45%, rgba(255, 190, 61, 0.13)),
    #f8fbfd;
  border-top: 1px solid var(--line);
}

.anniversary-heading h2 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 5.2vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.anniversary-heading p:not(.kicker) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.55;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: center;
}

.timeline article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.timeline h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.anniversary-link {
  grid-column: 1 / -1;
}

.anniversary-link a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(0, 138, 132, 0.3);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  text-decoration: none;
}

.anniversary-link a:hover {
  background: var(--white);
}

.san-marino {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1fr);
  gap: 34px;
  padding: 72px clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 190, 61, 0.28), transparent 30%),
    linear-gradient(135deg, #0b1726 0%, #10243a 52%, #083f3d 100%);
}

.san-marino .kicker {
  color: #8df1e7;
}

.san-marino h2 {
  margin: 0 0 24px;
  font-size: clamp(3.1rem, 6vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.san-marino-copy p:not(.kicker) {
  max-width: 690px;
  margin: 0 0 18px;
  color: #d9e7ef;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.55;
}

.san-marino-copy strong {
  color: var(--white);
}

.sm-cards {
  display: grid;
  gap: 14px;
}

.sm-cards article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sm-number {
  margin: 0 0 18px;
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.12em;
}

.sm-cards h3 {
  margin: 0 0 10px;
  font-size: 1.42rem;
}

.sm-cards p:not(.sm-number) {
  margin: 0;
  color: #d9e7ef;
  line-height: 1.5;
}

.source-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.source-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.source-strip a:hover {
  background: rgba(255, 255, 255, 0.16);
}

footer {
  padding: 22px clamp(18px, 5vw, 72px) 36px;
  color: #7a8798;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
}

footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .atrium {
    grid-template-columns: 1fr 1fr;
  }

  .atrium-copy {
    grid-column: 1 / -1;
  }

  .atrium-center {
    min-height: 480px;
  }

  .atrium-center img {
    width: min(44vw, 360px);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .atrium {
    display: block;
    min-height: auto;
    padding-top: 42px;
  }

  .atrium::before {
    display: none;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 3.55rem);
  }

  .atrium-center {
    min-height: 390px;
    margin: 24px 0;
  }

  .atrium-center::before {
    width: 340px;
  }

  .atrium-center img {
    width: 265px;
    min-width: 0;
  }

  .article-ring {
    width: 360px;
  }

  .article-ring span {
    width: 40px;
    height: 40px;
    font-size: 0.92rem;
  }

  .door {
    min-height: auto;
    padding: 24px;
  }

  .door-link {
    width: 100%;
    text-align: center;
  }

  .anniversary {
    display: block;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .anniversary-heading h2 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .timeline {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .timeline article {
    min-height: 0;
  }

  .anniversary-link a {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
    text-align: center;
  }

  .san-marino {
    display: block;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .san-marino h2 {
    font-size: clamp(3.1rem, 18vw, 4.8rem);
  }

  .sm-cards {
    margin-top: 28px;
  }

  .source-strip a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
