@font-face {
  font-family: "Source Sans 3";
  src: url("SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("SourceSans3-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f5ef;
  --surface: rgba(255, 255, 252, 0.82);
  --ink: #13231e;
  --muted: #64726d;
  --forest: #17664f;
  --teal: #0f7773;
  --line: rgba(23, 102, 79, 0.16);
  --shadow: 0 24px 70px rgba(19, 35, 30, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 5%, rgba(15,119,115,.12), transparent 28rem),
    radial-gradient(circle at 4% 68%, rgba(23,102,79,.09), transparent 30rem),
    var(--paper);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .25;
  background-image: url("topography.svg");
  background-size: 720px auto;
  pointer-events: none;
}

a { color: var(--forest); text-underline-offset: .18em; }
a:hover { color: var(--teal); }

.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }

nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a[aria-current="page"] { color: var(--forest); font-weight: 600; }
.language { border-left: 1px solid var(--line); padding-left: 1rem; }

main { padding: 4rem 0 5rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: 66vh;
}

.eyebrow { color: var(--forest); font-size: .88rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(3.2rem, 8vw, 6.8rem); letter-spacing: -.055em; line-height: .95; margin: .6rem 0 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 .55rem; }
.lead { max-width: 40rem; color: var(--muted); font-size: clamp(1.18rem, 2vw, 1.45rem); }

.actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid var(--forest); background: var(--forest); color: white; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--teal); color: white; }
.button.secondary { color: var(--forest); background: rgba(255,255,255,.55); }

.instrument {
  position: relative;
  min-height: 410px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(145deg, rgba(18,70,57,.96), rgba(8,42,39,.98)),
    var(--forest);
  color: white;
  padding: 2rem;
}
.instrument::before { content: ""; position: absolute; inset: 0; background: url("topography-light.svg") center/740px auto; opacity: .28; }
.instrument > * { position: relative; }
.instrument .mark { width: 78px; height: 78px; border-radius: 22px; background: rgba(255,255,255,.95); padding: 13px; }
.instrument .readout { margin-top: 7rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: .04em; }
.instrument .caption { color: rgba(255,255,255,.72); }
.route { height: 5px; border-radius: 99px; background: linear-gradient(90deg, #dbe98c, #64d2c6); margin: 1.6rem 0 .8rem; transform: rotate(-4deg); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; backdrop-filter: blur(14px); }
.card p { color: var(--muted); margin: 0; }
.number { color: var(--forest); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: .9rem; }

.content { max-width: 780px; }
.content h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.content h2 { font-size: 1.55rem; letter-spacing: -.015em; margin-top: 2.7rem; }
.content li + li { margin-top: .45rem; }
.meta { color: var(--muted); font-size: .94rem; }
.notice { border-left: 3px solid var(--teal); padding: .25rem 0 .25rem 1rem; color: var(--muted); }

.language-home { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.language-card { width: min(680px, 100%); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 34px; padding: clamp(2rem, 7vw, 4.5rem); box-shadow: var(--shadow); }
.language-card img { width: 82px; height: 82px; border-radius: 22px; }
.language-card h1 { font-size: clamp(3rem, 10vw, 5rem); }
.language-card .actions { justify-content: center; }

footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 1.6rem 0 2.5rem; color: var(--muted); font-size: .92rem; }

@media (max-width: 760px) {
  header { align-items: flex-start; }
  nav { gap: .65rem; }
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .instrument { min-height: 330px; }
  .instrument .readout { margin-top: 4.5rem; }
  .grid { grid-template-columns: 1fr; }
  main { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .instrument { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

@media (prefers-color-scheme: dark) {
  :root { --paper:#0d1714; --surface:rgba(20,32,28,.86); --ink:#eef5f0; --muted:#aebbb5; --line:rgba(153,210,188,.18); --shadow:0 30px 80px rgba(0,0,0,.34); }
  body { background: radial-gradient(circle at 80% 5%,rgba(15,119,115,.22),transparent 28rem),var(--paper); }
  .button.secondary { background: rgba(255,255,255,.05); }
}


/* Long-form privacy information */
.privacy-policy { max-width: 850px; overflow-wrap: anywhere; scroll-margin-top: 2rem; }
.privacy-policy h3 { margin-top: 2.5rem; }
.privacy-policy h4 { margin-top: 1.8rem; font-size: 1.1rem; }
.privacy-policy p { line-height: 1.65; }

@media (prefers-color-scheme: dark) { .privacy-policy a { color: #a3d7bd; } .privacy-policy a:hover { color: #c0ead9; } }
