:root {
  --paper: #fff8e6;
  --paper-deep: #f3e4c6;
  --ink: #16140f;
  --muted: #675f52;
  --coral: #ff5b5f;
  --coral-dark: #c72c3e;
  --blue: #2464b9;
  --green: #329f45;
  --line: rgba(22, 20, 15, 0.18);
  --radius: 28px;
  --shadow: 0 24px 80px rgba(50, 39, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.error-document {
  min-height: 100vh;
}

.error-page {
  display: grid;
  gap: clamp(52px, 10vh, 110px);
  margin: 0 auto;
  max-width: 1160px;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 64px);
}

.error-page > .brand {
  align-self: start;
}

.error-card {
  align-self: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 760px;
  padding: clamp(36px, 7vw, 76px);
  position: relative;
}

.error-card::after {
  background: var(--coral);
  border-radius: 50%;
  content: "";
  height: 110px;
  opacity: 0.14;
  position: absolute;
  right: clamp(20px, 5vw, 58px);
  top: clamp(20px, 5vw, 58px);
  width: 110px;
}

.error-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 28px 0;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.error-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
  max-width: 590px;
}

.error-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.site-header {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  max-width: 1440px;
  padding: 22px clamp(22px, 4vw, 64px);
  position: relative;
  z-index: 5;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  gap: 10px;
  justify-self: start;
}

.brand img {
  border-radius: 11px;
  height: 44px;
  object-fit: contain;
  width: 44px;
}

nav {
  display: flex;
  font-size: 0.9rem;
  font-weight: 650;
  gap: clamp(18px, 3vw, 42px);
}

nav a,
.text-link {
  position: relative;
}

nav a::after,
.text-link::after {
  background: currentColor;
  bottom: -5px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  width: 100%;
}

nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 750;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  min-height: 52px;
  padding: 0 26px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  justify-self: end;
  min-height: 43px;
  padding-inline: 20px;
}

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

.button-primary:hover,
.button-ink:hover {
  background: var(--coral-dark);
  box-shadow: 0 12px 26px rgba(199, 44, 62, 0.22);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(44px, 6vw, 96px);
  grid-template-columns: minmax(0, 0.96fr) minmax(480px, 1.04fr);
  margin: 0 auto;
  max-width: 1440px;
  min-height: 760px;
  overflow: hidden;
  padding: 76px clamp(22px, 5.5vw, 80px) 104px;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  align-items: center;
  color: var(--coral-dark);
  display: flex;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0.14em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.eyebrow span {
  background: currentColor;
  display: block;
  height: 2px;
  width: 28px;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(3.9rem, 7.1vw, 7.2rem);
  line-height: 0.88;
  margin-bottom: 32px;
  max-width: 850px;
}

h1 em {
  color: var(--coral);
  display: block;
  font-weight: 500;
  margin-left: clamp(22px, 7vw, 112px);
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  max-width: 630px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 38px 0 48px;
}

.text-link {
  font-size: 0.96rem;
  font-weight: 750;
}

.text-link span {
  color: var(--coral-dark);
  margin-left: 5px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 0;
}

.hero-facts div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hero-facts dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  margin: 0;
}

.hero-art {
  aspect-ratio: 0.96;
  min-height: 540px;
  position: relative;
}

.sun-disc {
  background: var(--coral);
  border-radius: 50%;
  height: min(37vw, 550px);
  position: absolute;
  right: -8%;
  top: 2%;
  width: min(37vw, 550px);
}

.score-card {
  background: #fffdf7;
  border: 1px solid rgba(22, 20, 15, 0.1);
  box-shadow: var(--shadow);
  height: 48%;
  left: 4%;
  padding: 30px 34px;
  position: absolute;
  top: 24%;
  transform: rotate(-5deg);
  width: 82%;
}

.score-topline {
  border-bottom: 1px solid var(--line);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  justify-content: space-between;
  letter-spacing: 0.12em;
  padding-bottom: 12px;
}

.staff {
  background: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(36, 100, 185, 0.5) 26px 28px);
  height: 165px;
  margin-top: 22px;
  position: relative;
}

.clef {
  font-size: 6.2rem;
  left: 6px;
  line-height: 1;
  position: absolute;
  top: 28px;
}

.note {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 3.1rem;
  position: absolute;
}

.note-one { left: 34%; top: 38px; }
.note-two { left: 55%; top: 70px; }
.note-three { left: 76%; top: 20px; }

.progress {
  background: var(--paper-deep);
  height: 7px;
  margin-top: 24px;
  overflow: hidden;
  width: 100%;
}

.progress span {
  background: var(--blue);
  display: block;
  height: 100%;
  width: 62%;
}

.logo-medallion {
  background: #fff;
  border: 10px solid var(--paper);
  border-radius: 50%;
  bottom: 7%;
  box-shadow: 0 20px 60px rgba(22, 20, 15, 0.2);
  height: 170px;
  overflow: hidden;
  padding: 4px;
  position: absolute;
  right: 0;
  transform: rotate(5deg);
  width: 170px;
}

.logo-medallion img {
  border-radius: 50%;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.art-caption {
  bottom: 2%;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
  left: 7%;
  line-height: 1.45;
  position: absolute;
  transform: rotate(-4deg);
}

.marquee {
  background: var(--blue);
  color: white;
  overflow: hidden;
  padding: 15px 0;
  transform: rotate(-1.2deg) scale(1.02);
}

.marquee div {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.marquee span {
  color: #ffce43;
  margin: 0 18px;
}

.section {
  margin: 0 auto;
  max-width: 1440px;
  padding: 130px clamp(22px, 5.5vw, 80px);
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 58px;
}

.section-heading h2,
.download-intro h2,
.practice-copy h2,
.closing h2 {
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  line-height: 0.98;
  margin-bottom: 0;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.feature-grid {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 330px;
  padding: 30px;
  transition: background 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  background: #fffdf7;
  transform: translateY(-5px);
}

.feature-number {
  color: var(--coral-dark);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  margin-bottom: 90px;
}

.feature-card h3,
.stage-list h3,
.download-row h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.feature-card p,
.stage-list p,
.download-intro > p:last-child,
.download-note,
.checksum-note,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.practice-section {
  background: var(--ink);
  color: white;
  display: grid;
  gap: 90px;
  grid-template-columns: 0.85fr 1.15fr;
  padding: 130px max(22px, calc((100vw - 1280px) / 2));
}

.eyebrow-light {
  color: #ffce43;
}

.practice-copy > p:last-child {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 30px;
  max-width: 560px;
}

.stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 30px;
  grid-template-columns: 42px 1fr;
  padding: 29px 0;
}

.stage-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stage-list > li > span {
  color: #ffce43;
  font-family: Georgia, "Times New Roman", serif;
}

.stage-list h3 {
  margin-bottom: 7px;
}

.stage-list p {
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0;
}

.downloads {
  display: grid;
  gap: 70px;
  grid-template-columns: 0.72fr 1.28fr;
}

.download-intro {
  position: sticky;
  top: 30px;
  align-self: start;
}

.download-intro h2 {
  margin-bottom: 25px;
}

.download-intro > p:last-child {
  max-width: 430px;
}

.download-list {
  border-top: 1px solid var(--line);
}

.download-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 60px 0.65fr 1fr auto;
  padding: 26px 0;
}

.platform-mark {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.download-row h3 {
  margin: 0 0 5px;
}

.download-name p,
.download-note {
  font-size: 0.86rem;
  margin: 0;
}

.button-download {
  background: var(--coral);
  color: white;
  min-width: 132px;
}

.button-disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
  min-width: 132px;
}

.button-disabled:hover {
  transform: none;
}

.checksum-note {
  font-size: 0.82rem;
  grid-column: 2;
  margin: -36px 0 0;
}

.faq {
  padding-top: 40px;
}

.section-heading.compact {
  align-items: start;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
}

.faq-list {
  margin-left: calc(36% + 20px);
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 23px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  list-style: none;
  padding-right: 48px;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--coral-dark);
  content: "+";
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  position: absolute;
  right: 10px;
  top: -8px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 18px 48px 0 0;
  max-width: 760px;
}

.closing {
  align-items: center;
  background: var(--coral-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  margin: 70px auto 0;
  max-width: 1440px;
  padding: 85px clamp(22px, 5.5vw, 80px);
}

.closing h2 {
  max-width: 850px;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}

footer {
  align-items: center;
  display: grid;
  font-size: 0.82rem;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  max-width: 1440px;
  padding: 36px clamp(22px, 5.5vw, 80px);
}

footer p {
  color: var(--muted);
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

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

.footer-brand img {
  height: 38px;
  width: 38px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-art {
    margin: -40px auto 0;
    max-width: 740px;
    width: 100%;
  }

  .sun-disc {
    height: 500px;
    width: 500px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-section,
  .downloads {
    grid-template-columns: 1fr;
  }

  .download-intro {
    position: static;
  }

  .checksum-note {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-block: 16px;
  }

  .site-header .button-small {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  h1 em {
    margin-left: 0;
  }

  .hero-art {
    min-height: 430px;
  }

  .sun-disc {
    height: 380px;
    width: 380px;
  }

  .score-card {
    height: 52%;
    left: 1%;
    padding: 22px;
    width: 90%;
  }

  .logo-medallion {
    height: 126px;
    width: 126px;
  }

  .section {
    padding-block: 90px;
  }

  .section-heading {
    align-items: start;
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 24px;
  }

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

  .feature-card {
    min-height: 240px;
  }

  .feature-number {
    margin-bottom: 48px;
  }

  .practice-section {
    gap: 58px;
    padding-block: 90px;
  }

  .download-row {
    align-items: start;
    grid-template-columns: 52px 1fr;
  }

  .download-note,
  .download-row .button {
    grid-column: 2;
  }

  .download-row .button {
    justify-self: start;
    margin-top: 4px;
  }

  .section-heading.compact {
    display: block;
  }

  .faq-list {
    margin-left: 0;
  }

  .closing {
    align-items: start;
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 20px;
  }

  footer {
    align-items: start;
    grid-template-columns: 1fr;
  }

  footer p:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
