/*
   Job Ascend — public site.

   Direction: warm premium-minimal. A restrained editorial layout (serif display headings, generous
   whitespace, soft shadows) over a warm palette — deep ocean teal against sand/paper neutrals —
   so the site reads as trustworthy and human rather than as business software. The audience is a
   household deciding whether to let a stranger through the gate.

   Still deliberately dependency-free: no framework, no web fonts, no icon set. Visitors are on
   cheap Android phones over mobile data; the entire look is carried by ~12 KB of CSS. The serif
   is Georgia with platform fallbacks, which costs nothing and sets the editorial tone.
*/

:root {
    /* Ink + paper */
    --ink: #1c2a2e;
    --ink-soft: #5c6b70;
    --ink-faint: #8a9a9e;
    --paper: #faf7f1;          /* warm page ground */
    --card: #ffffff;
    --line: #e8e1d4;
    --line-soft: #f0ebe0;

    /* Brand */
    --teal: #0d5c63;           /* primary — deep ocean teal */
    --teal-deep: #0a3f45;      /* hero / footer ground */
    --teal-ink: #062e33;
    --teal-soft: #e3efee;      /* tinted panels */
    --sand: #c99a52;           /* warm accent */
    --sand-soft: #f6ead3;

    /* Tiers */
    --silver: #77848b;
    --silver-soft: #eef1f2;
    --gold: #a2791f;
    --gold-soft: #f7edd6;
    --platinum: #2f5d7c;
    --platinum-soft: #e4edf3;

    --danger: #a83a2e;

    --font-display: Georgia, 'Times New Roman', 'Noto Serif', serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-card: 0 1px 2px rgba(28, 42, 46, .05), 0 10px 30px -18px rgba(28, 42, 46, .25);
    --shadow-lift: 0 2px 4px rgba(28, 42, 46, .06), 0 18px 40px -18px rgba(13, 92, 99, .35);
    --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

h1, h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 .7rem; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.25; margin: 0 0 .7rem; }
h3 { font-size: 1.05rem; margin: 0 0 .3rem; font-weight: 650; }

.muted { color: var(--ink-soft); }
.error { color: var(--danger); font-weight: 500; }
.fine-print { font-size: .85rem; color: var(--ink-soft); }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(6px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-block: .95rem; flex-wrap: wrap;
}
.brand { text-decoration: none; }
.brand-mark {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em;
    color: var(--ink);
}
.brand-accent { color: var(--teal); }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a {
    text-decoration: none; color: var(--ink-soft);
    font-size: .95rem; font-weight: 500;
    padding-block: .25rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal); border-bottom-color: var(--sand); }

main { padding-block: 1.75rem 2rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(150deg, var(--teal-deep) 0%, var(--teal) 78%, #14707a 100%);
    color: #f4efe4;
    border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 2.25rem;
    box-shadow: var(--shadow-lift);
    position: relative;
    overflow: hidden;
}
.hero::after {
    /* a quiet sun-disc; decoration only */
    content: "";
    position: absolute; right: -80px; top: -110px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,154,82,.35), rgba(201,154,82,0) 65%);
    pointer-events: none;
}
.hero h1 { color: #fdfaf2; max-width: 18ch; }
.hero-lead {
    font-size: 1.06rem; line-height: 1.65;
    color: rgba(244, 239, 228, .88);
    max-width: 58ch; margin: 0 0 1.6rem;
}

/* ── Search ─────────────────────────────────────────────────────────────── */
.search {
    display: flex; gap: .6rem; flex-wrap: wrap;
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: .6rem;
    box-shadow: var(--shadow-card);
}
.search input, .search select, .stack input, .stack textarea, .stack select {
    padding: .7rem .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit; color: var(--ink); background: var(--card);
    min-width: 0;
}
.search input:focus, .search select:focus,
.stack input:focus, .stack textarea:focus, .stack select:focus {
    outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal);
}
.search input[type=search] { flex: 1 1 15rem; border-color: transparent; }
.search select { border-color: transparent; color: var(--ink-soft); }
.search-inline { box-shadow: none; border: 1px solid var(--line); padding: .55rem; }

.btn {
    display: inline-block;
    padding: .68rem 1.35rem;
    border: 0; border-radius: 999px;
    background: var(--teal); color: #fdfaf2;
    font: inherit; font-weight: 600; font-size: .95rem;
    text-decoration: none; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    box-shadow: 0 6px 16px -8px rgba(13, 92, 99, .55);
}
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary {
    background: var(--card); color: var(--teal);
    border: 1px solid var(--line); box-shadow: none;
}
.btn-secondary:hover { background: var(--teal-soft); border-color: var(--teal); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { margin-bottom: 2.4rem; }

.panel {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: clamp(1.15rem, 3vw, 1.75rem);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}
.panel-accent {
    background: linear-gradient(140deg, var(--teal-soft), #f2f7f0);
    border-color: #d3e4e0;
}

/* ── Tier badges + cards ────────────────────────────────────────────────── */
.tier-badge {
    display: inline-flex; align-items: center; gap: .38rem;
    padding: .22rem .7rem .22rem .55rem;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
}
.tier-badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; }
.tier-silver   { background: var(--silver-soft);   color: #45535a; }
.tier-silver::before   { background: var(--silver); }
.tier-gold     { background: var(--gold-soft);     color: #6e5210; }
.tier-gold::before     { background: var(--gold); }
.tier-platinum { background: var(--platinum-soft); color: #23485f; }
.tier-platinum::before { background: var(--platinum); }

.tier-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tier-card {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.35rem 1.25rem 1.15rem;
    box-shadow: var(--shadow-card);
    position: relative;
}
.tier-card::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
    border-radius: var(--radius) 0 0 var(--radius);
}
.tier-card.tier-silver::before   { background: var(--silver); }
.tier-card.tier-gold::before     { background: var(--gold); }
.tier-card.tier-platinum::before { background: var(--platinum); }
.tier-card h3 { font-family: var(--font-display); font-size: 1.15rem; }
.tier-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ── Listings ───────────────────────────────────────────────────────────── */
.listing-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
}
.listing-card {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform .14s ease, box-shadow .14s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.listing-card a { display: block; padding: 1.2rem 1.2rem 1.05rem; text-decoration: none; color: inherit; height: 100%; }
.listing-card h3 { font-family: var(--font-display); font-size: 1.22rem; margin: .65rem 0 .15rem; }
.listing-where { margin: 0 0 .55rem; color: var(--ink-soft); font-size: .88rem; }
.listing-headline { margin: 0 0 .5rem; line-height: 1.45; }
.listing-skills { margin: 0; font-size: .84rem; color: var(--ink-faint); }

.result-count { color: var(--ink-soft); margin: 0 0 1rem; font-size: .95rem; }
.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.pager-position { color: var(--ink-soft); font-size: .9rem; }

/* Listing detail */
.listing-detail { max-width: 760px; }
.listing-head { margin-bottom: 1.5rem; }
.listing-head h1 { margin: .55rem 0 .2rem; }
.listing-head .listing-headline { font-size: 1.05rem; color: var(--ink-soft); }

.skill-table { width: 100%; border-collapse: collapse; }
.skill-table th, .skill-table td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line-soft); }
.skill-table th {
    font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
    color: var(--ink-faint); font-weight: 600;
}
.skill-table tr:last-child td { border-bottom: 0; }

/* ── Areas + chips ──────────────────────────────────────────────────────── */
.area-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: .7rem;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
}
.area-list a {
    display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
    padding: .9rem 1.05rem;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    text-decoration: none; color: inherit;
    box-shadow: var(--shadow-card);
    transition: transform .12s ease, border-color .12s ease;
}
.area-list a:hover { transform: translateY(-2px); border-color: var(--teal); }
.area-name { font-weight: 600; }
.area-count { color: var(--ink-faint); font-size: .82rem; white-space: nowrap; }

.chip-list { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-block; padding: .38rem .95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500;
    background: var(--card);
    transition: all .12s ease;
}
.chip:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .93rem; }
.stack input, .stack textarea, .stack select { font-weight: 400; }
.check { flex-direction: row !important; align-items: center; gap: .55rem !important; font-weight: 400 !important; }

.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .7rem; }
.steps li::marker { color: var(--sand); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 3.5rem;
    background: var(--teal-ink);
    color: rgba(244, 239, 228, .8);
    padding-block: 2.2rem;
}
.site-footer a { color: #e9dfc8; }
.footer-lead { margin: 0 0 .5rem; max-width: 62ch; }
.footer-meta { margin: 0; font-size: .85rem; color: rgba(244, 239, 228, .55); }

@media (max-width: 640px) {
    .search { flex-direction: column; }
    .search input[type=search] { flex: 1 1 auto; }
    .site-nav { gap: .9rem; }
}

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

/* ── Sponsors (P2) ──────────────────────────────────────────────────────── */
.panel-sponsors { background: linear-gradient(140deg, var(--sand-soft), #fdf8ee); border-color: #ead9b8; }
.sponsor-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sponsor-card {
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    padding: .8rem .95rem; display: flex; flex-direction: column; gap: .15rem;
    box-shadow: var(--shadow-card);
}
.sponsor-name { font-weight: 650; }
.sponsor-area { color: var(--ink-faint); font-size: .82rem; }
.sponsor-contact { color: var(--ink-soft); font-size: .88rem; margin-top: .25rem; }
