/* Lexi — public site. Alternating photographic bands, warm neutrals, one clay accent. */

:root {
  --paper: #f6f0e4;
  --paper-deep: #efe7d7;
  --ink: #17150f;
  --body: #4a453c;
  --muted: #6d6557;
  --line: #d9cfba;
  --accent: #c14a22;
  --accent-ink: #8f3317;
  --cream: #f8f2e6;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --measure: 62ch;
  --radius: 2px;
  --band: min(64svh, 720px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 17px;
  letter-spacing: 0.44em;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav a { text-decoration: none; color: var(--body); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
}
.btn:hover { background: #000; }
.btn.on-dark { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.on-dark:hover { background: #fff; }

.ghost {
  display: inline-block;
  margin-left: 16px;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  opacity: 0.9;
}
.ghost:hover { opacity: 1; }

/* ---------- bands ---------- */

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: var(--band);
  align-items: stretch;
}

.band > .media { overflow: hidden; margin: 0; }
.band > .media img { width: 100%; height: 100%; object-fit: cover; }

.band > .copy {
  padding: clamp(40px, 6vw, 84px) clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.band.alt > .media { order: 2; }

.band.dark { background: var(--ink); color: var(--cream); }
.band.dark .lede,
.band.dark .body-copy { color: #d9cfbd; }
.band.dark .kicker { color: #e8a07f; }

.band.accent { background: var(--accent); color: var(--cream); }
.band.accent .lede,
.band.accent .body-copy { color: #f7e6da; }
.band.accent .kicker { color: #ffd9c8; }

.band.deep { background: var(--paper-deep); }

.kicker {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 700;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 0.98; margin-bottom: 22px; font-weight: 750; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.02; margin-bottom: 18px; font-weight: 720; }
h3 { font-size: 18px; line-height: 1.25; margin-bottom: 6px; letter-spacing: -0.01em; }

h1 em, h2 em { font-style: normal; color: var(--accent); }
.band.dark h1 em, .band.dark h2 em,
.band.accent h1 em, .band.accent h2 em { color: #ffd9a0; }

.lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.62;
  color: var(--body);
  max-width: var(--measure);
  margin: 0 0 26px;
}

.body-copy { max-width: var(--measure); color: var(--body); }
.body-copy p { margin: 0 0 14px; }
.body-copy p:last-child { margin-bottom: 0; }

/* ---------- lists ---------- */

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

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.band.dark .steps li, .band.accent .steps li { border-color: rgba(248, 242, 230, 0.28); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.band.dark .steps li:last-child, .band.accent .steps li:last-child { border-color: rgba(248, 242, 230, 0.28); }
.steps b { font-size: 13px; color: var(--accent); padding-top: 4px; letter-spacing: 0.08em; }
.band.dark .steps b, .band.accent .steps b { color: #ffd9a0; }
.steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.band.dark .steps p, .band.accent .steps p { color: #e4dac9; }

/* language rows */
.rows { list-style: none; margin: 0; padding: 0; max-width: 1100px; }
.rows a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.band.dark .rows a, .band.accent .rows a { border-color: rgba(248, 242, 230, 0.28); }
.rows .idx { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.rows .name { font-size: clamp(30px, 4vw, 54px); letter-spacing: -0.03em; line-height: 1; }
.rows .name small { font-size: 15px; color: var(--muted); margin-left: 12px; letter-spacing: 0.02em; }
.band.dark .rows .name small, .band.accent .rows .name small { color: #c9bfae; }
.rows .lv { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.band.dark .rows .lv, .band.accent .rows .lv { color: #c9bfae; }
.rows a:hover .name { color: var(--accent); }
.band.dark .rows a:hover .name, .band.accent .rows a:hover .name { color: #ffd9a0; }

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.card {
  border-top: 2px solid currentColor;
  padding-top: 14px;
}
.card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: inherit; opacity: 0.9; }
.card h3 { margin-bottom: 6px; }

/* section wrapper */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 92px) clamp(22px, 5vw, 44px); }
.section-tight { padding-top: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan { border: 1px solid var(--line); background: #fffdf8; padding: 26px; display: flex; flex-direction: column; }
.plan.primary { border: 2px solid var(--ink); }
.plan .price { font-size: 40px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .note { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; line-height: 1.45; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan li.muted { color: var(--muted); }
.plan li.muted::before { content: "—"; color: var(--muted); }
.plan .btn { margin-top: auto; text-align: center; }

.matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.matrix td:not(:first-child) { text-align: center; color: var(--body); }

.callout {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: #fffdf8;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: var(--measure);
}

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 18px; max-width: var(--measure); color: var(--body); font-size: 15.5px; }
.faq .answer p { margin: 0 0 10px; }

/* footer */
.site-footer { background: var(--ink); color: #cfc6b2; padding: 46px 40px 26px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #f3ead9; margin-bottom: 12px; }
.site-footer a { color: #cfc6b2; text-decoration: none; font-size: 14px; line-height: 1.9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-note { max-width: 1180px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid #322c22; font-size: 12.5px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */

/* The header turns into the menu earlier than the page layout: the nav is six labelled
   items and the longest translations (Greek, Dutch) need the room. */
@media (max-width: 1024px) {
  .site-header { padding: 12px 20px; }
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .header-actions .btn { display: none; }

  .band { grid-template-columns: 1fr; min-height: 0; }
  .band.alt > .media { order: 0; }
  .band > .media { height: 46svh; }
  .band > .copy { padding: 36px 22px 44px; }
  .section { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .rows a { grid-template-columns: 32px 1fr; }
  .rows .lv { display: none; }
  .ghost { display: block; margin: 14px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .matrix { font-size: 13.5px; }
  .matrix th, .matrix td { padding: 9px 8px; }
}

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

.header-actions .signin {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body);
}
.header-actions .signin:hover { color: var(--ink); }

/* ---------- language switcher ---------- */

.lang-menu { position: relative; }

.lang-menu > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--body);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: "▾"; margin-left: 6px; font-size: 10px; color: var(--muted); }
.lang-menu[open] > summary { background: var(--paper-deep); color: var(--ink); }

.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(23, 21, 15, 0.14);
}
.lang-menu li { margin: 0; }
.lang-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 9px 10px;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.lang-menu a:hover { background: var(--paper-deep); }
.lang-menu a[aria-current="true"] { font-weight: 700; }
.lang-menu a[aria-current="true"]::after { content: "✓"; color: var(--accent); }

.footer-langs a { font-size: 12.5px; }

/* ---------- status badges ---------- */

.badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: 2px;
  font-weight: 700;
}
.badge.ok { color: #256b45; }
.badge.soon { color: var(--accent-ink); }
.band.dark .badge.ok, .band.accent .badge.ok { color: #a8e3bf; }
.band.dark .badge.soon, .band.accent .badge.soon { color: #ffd9a0; }

/* ---------- ladders and unit lists ---------- */

.ladder { display: grid; gap: 12px; max-width: 820px; margin: 0; font-size: 16px; line-height: 1.55; }
.ladder li strong { display: inline-block; min-width: 34px; }
.ladder li .badge { margin-right: 6px; }

.start-unit { font-size: 15px; line-height: 1.55; color: var(--body); }

.level { border-top: 1px solid var(--line); }
.level:last-child { border-bottom: 1px solid var(--line); }
.level > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 52px auto 1fr 22px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
}
.level > summary::after {
  content: "+";
  justify-self: end;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.level[open] > summary::after { content: "−"; }
.level > summary::-webkit-details-marker { display: none; }
.level > summary .lv-name { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.level > summary .lv-meta { justify-self: end; text-align: right; font-size: 13.5px; color: var(--muted); }
.level > summary .badge { justify-self: start; }
.level > summary::marker { content: ""; }
.level[open] > summary { padding-bottom: 12px; }

.unit-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0 0 0 66px;
  display: grid;
  gap: 9px;
}
.unit-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--line);
}
.unit-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.unit-list .unit-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }

.course-shade { background: var(--paper-deep); max-width: none; }
.course-shade .shell { max-width: 1180px; margin: 0 auto; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 20px;
  margin: 24px 0 0;
}
.stat { border-top: 2px solid var(--accent); padding-top: 10px; }
.stat b { display: block; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 13px; color: var(--muted); }
.band.dark .stat span, .band.accent .stat span { color: #c9bfae; }

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

@media (max-width: 560px) {
  .unit-list { padding-left: 0; }
  .level > summary { grid-template-columns: 42px auto 1fr 20px; row-gap: 6px; }
  .level > summary .lv-meta { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .lang-menu ul { min-width: 180px; }
}
