/* LINGACON — lingacon.com
   Light editorial. Neutral warm ramp; brand green + indigo used sparingly for accent. */

:root {
    --bg: #fdfcfa;
    --bg-subtle: #f4f2ed;
    --bg-mission: #f2f5f3;
    --border: #e4e0d7;
    --fg: #201f1c;
    --fg-muted: #5f5b53;
    --indigo: #535191;
    --indigo-dark: #434178;
    --green: #00A878;
    --green-dark: #008a63;
    --measure: 80ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

body {
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
    font-size: 17.5px;
    line-height: 1.68;
    color: var(--fg);
    background: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
header { background: var(--bg); border-bottom: 1px solid var(--border); }
header::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--green) 0%, var(--green) 42%, var(--indigo) 42%, var(--indigo) 100%);
    opacity: .85;
}
.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }

nav { display: flex; gap: 21px; flex-wrap: wrap; }
nav a {
    font-size: 15px;
    color: var(--fg);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: border-color .18s ease-out, color .18s ease-out;
}
nav a:hover { color: var(--indigo); }
nav a[aria-current="page"] { border-bottom-color: var(--indigo); color: var(--indigo); }

/* ---------- layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(2.4rem, 4.5vw, 3.6rem) 0; }
.section-lead { padding-top: clamp(2.8rem, 5vw, 4rem); }

/* Alternating tinted bands. The band must run edge to edge while the text stays
   inside main's measure, so the colour is painted by a spread shadow and clipped
   to the section's own height — this avoids the 100vw scrollbar overflow. */
main .section:nth-of-type(even) {
    background: var(--bg-mission);
    box-shadow: 0 0 0 100vmax var(--bg-mission);
    clip-path: inset(0 -100vmax);
    padding-top: clamp(2.9rem, 5vw, 4.2rem);
    padding-bottom: clamp(2.9rem, 5vw, 4.2rem);
}
main .section:nth-of-type(even) input,
main .section:nth-of-type(even) textarea,
main .section:nth-of-type(even) select { background: #fff; }

h1, h2, h3 { font-weight: 600; line-height: 1.22; text-wrap: pretty; }
h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 20px; max-width: 26ch; }
h2 { font-size: clamp(23px, 2.9vw, 30px); margin-bottom: 16px; }
h3 { font-size: 19.5px; margin-bottom: 8px; }

/* text-wrap: pretty lets the browser choose line breaks across the whole
   paragraph — evening out line lengths and preventing a last line of one
   word. The right edge stays ragged, which reads better than justification
   without hyphenation. Ignored by browsers that don't support it. */
p, ul, ol { max-width: var(--measure); margin-bottom: 16px; text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 9px; max-width: var(--measure); text-wrap: pretty; }

.lede { font-size: 20.5px; line-height: 1.58; max-width: 72ch; text-wrap: pretty; }
.muted { color: var(--fg-muted); }
.small { font-size: 15px; color: var(--fg-muted); }
.tag {
    font-size: 12.5px; letter-spacing: .15em; text-transform: uppercase;
    color: var(--indigo); font-weight: 500; display: block; margin-bottom: 10px;
}
.tag-green { color: var(--green-dark); }

main a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; transition: color .18s ease-out; }
main a:hover { color: var(--indigo-dark); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--fg); outline-offset: 2px;
}

/* ---------- key figures ---------- */
.figures { display: flex; gap: clamp(30px, 5vw, 60px); flex-wrap: wrap; margin: 32px 0 10px; }
.figure { max-width: 25ch; }
.figure .num { font-size: clamp(38px, 4.8vw, 50px); font-weight: 600; line-height: 1.05; }
.figure:nth-child(1) .num { color: var(--green-dark); }
.figure:nth-child(2) .num { color: var(--indigo); }
.figure:nth-child(3) .num { color: var(--fg); }
.figure .cap { font-size: 16px; color: var(--fg-muted); margin-top: 8px; line-height: 1.45; text-wrap: pretty; }
.figure .cap strong { color: var(--fg); font-weight: 600; }

/* ---------- mission block ---------- */
.mission { background: var(--bg-mission); }
.mission-inner { max-width: 1080px; margin: 0 auto; padding: clamp(2.6rem, 5vw, 4rem) 28px; }
.mission h2 { margin-bottom: 18px; }
.mission p { max-width: 76ch; }
.mission .premise {
    border-left: 3px solid var(--green);
    padding-left: 20px;
    margin-top: 26px;
    max-width: 74ch;
}
.mission .premise p { font-size: 16.5px; color: var(--fg-muted); margin-bottom: 0; }

/* ---------- columns ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(26px, 3.5vw, 44px); margin-top: 30px; }
.cols p, .cols li { max-width: none; }
.col h3 { margin-bottom: 10px; }
.col p { font-size: 16px; }

/* ---------- entries (publications, projects, offers) ---------- */
.entry { padding: 26px 0; border-top: 1px solid var(--border); max-width: 88ch; }
.entry:last-of-type { border-bottom: 1px solid var(--border); }
.entry h3 { font-size: 20px; margin-bottom: 6px; }
.entry .ref { font-size: 15.5px; color: var(--fg-muted); margin-bottom: 10px; }
.entry p { font-size: 16.5px; max-width: 84ch; }
.entry p:last-child { margin-bottom: 0; }
.status { font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-muted); display: block; margin-bottom: 8px; }
.status.live { color: var(--green-dark); }
.status.planned { color: var(--indigo); }

/* ---------- metric blocks ---------- */
.metric { margin-bottom: 40px; max-width: 88ch; }
.metric h3 { font-size: 21px; }
.metric .expansion { font-size: 16px; color: var(--fg-muted); margin: 0 0 12px; }
.metric p { max-width: 84ch; }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--border); max-width: 88ch; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary {
    cursor: pointer; font-weight: 500; font-size: 17.5px; padding: 15px 0;
    list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--indigo); font-size: 20px; line-height: 1; flex-shrink: 0; }
details[open] summary::after { content: "\2212"; }
details .answer { padding: 0 0 18px; }
details .answer p { font-size: 16.5px; max-width: 84ch; }
details .answer p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 17px; max-width: 620px; }
label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
input, textarea, select {
    width: 100%; padding: 11px 13px; font-family: inherit; font-size: 16px;
    color: var(--fg); background: #fff; border: 1px solid var(--border);
    border-radius: 4px; transition: border-color .18s ease-out;
}
input:focus, textarea:focus, select:focus { border-color: var(--indigo); outline: none; }
textarea { resize: vertical; min-height: 130px; }
button, .btn {
    display: inline-block; padding: 12px 26px; font-family: inherit; font-size: 15.5px;
    font-weight: 500; color: #fff; background: var(--indigo); border: none;
    border-radius: 4px; cursor: pointer; text-decoration: none; transition: background .18s ease-out;
}
button:hover, .btn:hover { background: var(--indigo-dark); }
.btn-green { background: var(--green-dark); }
.btn-green:hover { background: #007453; }
main a.btn { color: #fff; text-decoration: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--bg-subtle); }
.footer-inner {
    max-width: 1080px; margin: 0 auto; padding: 38px 28px;
    display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap;
    font-size: 15px; color: var(--fg-muted);
}
.footer-inner a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--fg); }
.footer-brand img { height: 20px; width: auto; display: block; margin-bottom: 10px; opacity: .9; }
.footer-legal {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px 34px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--fg-muted);
    opacity: .85;
}
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }

@media (max-width: 720px) {
    .header-inner { justify-content: center; }
    nav { gap: 15px; justify-content: center; }
    .figures { gap: 26px; }
}
