:root {
  color-scheme: light;
  --ink: #101417;
  --paper: #f7f7f4;
  --white: #ffffff;
  --muted: #5f686d;
  --line: #d8ddda;
  --teal: #087f8c;
  --teal-light: #82d3d5;
  --coral: #ef6a5b;
  --yellow: #f2c14e;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 6.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 50% 50% 50% 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-style: italic;
  transform: rotate(-8deg);
}

.brand-name {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.academy-link {
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.3rem;
}

.academy-link:hover,
.academy-link:focus-visible,
footer a:hover,
footer a:focus-visible { text-decoration: underline; }

.hero {
  min-height: calc(100svh - 13rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

h1 {
  max-width: 9ch;
  margin: 1.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

h1 em {
  color: var(--teal);
  font-weight: 500;
}

.lead {
  max-width: 41rem;
  margin: 2rem 0 0;
  color: #40494e;
  font-size: clamp(1.06rem, 2vw, 1.26rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.35rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.status span {
  width: 0.52rem;
  height: 0.52rem;
  background: var(--coral);
  border-radius: 50%;
}

.language-card {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--ink);
  color: var(--white);
  border-radius: 12rem 12rem 1.5rem 1.5rem;
  isolation: isolate;
}

.language-card::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -4rem;
  z-index: -1;
  width: 13rem;
  aspect-ratio: 1;
  background: var(--coral);
  border-radius: 50%;
}

.word {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.word-fr {
  font-size: clamp(3rem, 6vw, 5rem);
  font-style: italic;
}

.word-si {
  color: var(--teal-light);
  font-family: "Noto Sans Sinhala", "Nirmala UI", system-ui, sans-serif;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  font-weight: 600;
}

.connector {
  height: 4rem;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.connector::before {
  content: "";
  width: 1px;
  height: 100%;
  background: #546066;
}

.connector span {
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.36rem;
  background: var(--yellow);
  border-radius: 50%;
}

.language-card p {
  position: absolute;
  right: 2rem;
  bottom: 1.8rem;
  margin: 0;
  color: #b7c0c4;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.benefits p {
  min-height: 6.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 750;
}

.benefits p:first-child { padding-left: 0; }
.benefits p:last-child { border-right: 0; }

.benefits span {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

footer {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

footer a { color: var(--ink); font-weight: 700; text-underline-offset: 0.25rem; }

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-block: 4.5rem;
  }

  .language-card {
    width: min(100%, 32rem);
    min-height: 28rem;
  }

  .benefits { grid-template-columns: 1fr; }
  .benefits p,
  .benefits p:first-child {
    min-height: 4.75rem;
    padding: 0.85rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .benefits p:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 2rem), var(--max)); }

  .site-header { min-height: 5.5rem; }
  .brand-name { font-size: 0.78rem; letter-spacing: 0.12em; }
  .brand-mark { width: 2.3rem; height: 2.3rem; font-size: 1.2rem; }
  .academy-link { max-width: 7.5rem; font-size: 0.75rem; line-height: 1.3; text-align: right; }
  h1 { font-size: clamp(3.5rem, 19vw, 5rem); }
  .actions { align-items: flex-start; flex-direction: column; }
  .language-card { min-height: 24rem; border-radius: 8rem 8rem 1.25rem 1.25rem; }
  .language-card::before { width: 10rem; }
  .word-fr { font-size: clamp(2.8rem, 15vw, 4rem); }
  .word-si { font-size: clamp(2rem, 10vw, 3rem); }
  footer { min-height: 8.5rem; align-items: flex-start; flex-direction: column; justify-content: center; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
