/* LevelPlayCompass — editorial print theme */
:root {
    --lpc-page: #f6f2e9;
    --lpc-sheet: #fffdf8;
    --lpc-rule: #ddd4c2;
    --lpc-forest: #1f4d3d;
    --lpc-clay: #c2571f;
    --lpc-navy: #23324f;
    --lpc-ink: #1c1a17;
    --lpc-quiet: #5c574f;
}

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

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--lpc-page);
    background-image: url('../charts/site-bg.webp');
    background-size: 560px;
    background-repeat: repeat;
    color: var(--lpc-quiet);
    line-height: 1.78;
    font-size: 17px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.lpc-frame { max-width: 1120px; margin: 0 auto; padding: 0 26px; width: 100%; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--lpc-ink); line-height: 1.24; font-weight: 700; }

.lpc-over {
    font-size: .74rem;
    letter-spacing: 3.2px;
    text-transform: uppercase;
    color: var(--lpc-clay);
    font-weight: 600;
    margin-bottom: 12px;
}
.lpc-title { font-size: 2.15rem; margin-bottom: 14px; }
.lpc-title span { font-style: italic; color: var(--lpc-forest); }
.lpc-stand { max-width: 660px; font-size: 1.03rem; }

.lpc-act {
    display: inline-block;
    font-size: .84rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 13px 28px;
    background: var(--lpc-forest);
    color: #fdfbf6;
    border: 1px solid var(--lpc-forest);
    cursor: pointer;
    transition: background .18s, color .18s;
}
.lpc-act:hover { background: transparent; color: var(--lpc-forest); }
.lpc-act-clay { background: var(--lpc-clay); border-color: var(--lpc-clay); }
.lpc-act-clay:hover { background: transparent; color: var(--lpc-clay); }
.lpc-act-bare { background: transparent; color: var(--lpc-ink); border-color: var(--lpc-rule); }
.lpc-act-bare:hover { background: var(--lpc-ink); color: #fff; border-color: var(--lpc-ink); }

/* ---------- Header (centred masthead) ---------- */
.lpc-crest { background: var(--lpc-sheet); border-bottom: 1px solid var(--lpc-rule); position: sticky; top: 0; z-index: 50; }
.lpc-crest-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 14px; }
.lpc-crest-side { font-size: .72rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lpc-quiet); flex: 1; }
.lpc-crest-date { text-align: right; }
.lpc-crest-name { display: flex; align-items: center; gap: 11px; font-family: 'Playfair Display', serif; font-size: 1.32rem; color: var(--lpc-ink); white-space: nowrap; }
.lpc-crest-name svg { width: 34px; height: 34px; flex: 0 0 34px; }
.lpc-course { display: flex; justify-content: center; gap: 40px; border-top: 1px solid var(--lpc-rule); padding: 12px 0; }
.lpc-course a { font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--lpc-ink); }
.lpc-course a:hover { color: var(--lpc-clay); }
.lpc-knob { display: none; font-family: 'Source Sans 3', sans-serif; font-size: .76rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; background: var(--lpc-forest); color: #fff; border: 0; padding: 9px 16px; cursor: pointer; }

/* ---------- Hero (compact, with figures bar) ---------- */
.lpc-open {
    background-image: linear-gradient(rgba(20, 26, 22, .74), rgba(20, 26, 22, .74)), url('../charts/hero-bg.webp');
    background-size: cover;
    background-position: center;
    padding: 72px 0 0;
}
.lpc-open-note {
    max-width: 720px;
    background: rgba(18, 24, 20, .66);
    backdrop-filter: blur(6px);
    border-left: 4px solid var(--lpc-clay);
    padding: 34px 36px;
}
.lpc-open-note .lpc-over { color: #e8b48b; }
.lpc-open-note h1 { color: #fdfbf6; font-size: 2.6rem; margin-bottom: 16px; }
.lpc-open-note h1 span { font-style: italic; color: #8fd3b8; }
.lpc-open-note p { color: #dcd7cd; margin-bottom: 26px; }
.lpc-open-acts { display: flex; gap: 14px; flex-wrap: wrap; }
.lpc-open-acts .lpc-act-bare { color: #fdfbf6; border-color: rgba(255, 255, 255, .5); }

.lpc-figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; background: rgba(255, 253, 248, .96); border-top: 1px solid var(--lpc-rule); }
.lpc-figures div { padding: 24px 22px; border-right: 1px solid var(--lpc-rule); }
.lpc-figures div:last-child { border-right: 0; }
.lpc-figures b { display: block; font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--lpc-forest); line-height: 1.1; }
.lpc-figures span { font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; }

/* ---------- Sections ---------- */
.lpc-part { padding: 68px 0; }
.lpc-part-sheet { background: var(--lpc-sheet); border-top: 1px solid var(--lpc-rule); border-bottom: 1px solid var(--lpc-rule); }
.lpc-part-head { margin-bottom: 40px; }
.lpc-mid { text-align: center; }
.lpc-mid .lpc-stand { margin-left: auto; margin-right: auto; }

/* ---------- Categories ---------- */
.lpc-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--lpc-rule); border: 1px solid var(--lpc-rule); }
.lpc-kinds div { background: var(--lpc-sheet); padding: 28px 26px; }
.lpc-kinds b { display: block; font-family: 'Playfair Display', serif; font-size: 1.14rem; color: var(--lpc-ink); margin-bottom: 7px; }
.lpc-kinds p { font-size: .93rem; }

/* ---------- Ranked entries (alternating) ---------- */
.lpc-entries { display: flex; flex-direction: column; gap: 30px; }
.lpc-entry { display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: center; background: var(--lpc-sheet); border: 1px solid var(--lpc-rule); padding: 26px; }
.lpc-entry:nth-child(even) .lpc-entry-plate { order: 2; }
.lpc-entry-plate { position: relative; height: 260px; overflow: hidden; }
.lpc-entry-plate img { width: 100%; height: 100%; object-fit: cover; }
.lpc-rank { position: absolute; left: 0; top: 0; background: var(--lpc-clay); color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; padding: 5px 15px; }
.lpc-entry-body h3 { font-size: 1.55rem; margin-bottom: 6px; }
.lpc-entry-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lpc-forest); font-weight: 600; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--lpc-rule); }
.lpc-entry-body p { font-size: .98rem; margin-bottom: 18px; }
.lpc-verdict { font-size: 1.5rem; font-family: 'Playfair Display', serif; color: var(--lpc-navy); }

/* ---------- Method ---------- */
.lpc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.lpc-step b { display: block; font-family: 'Playfair Display', serif; font-size: 2.3rem; color: var(--lpc-rule); line-height: 1; margin-bottom: 8px; }
.lpc-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.lpc-step p { font-size: .95rem; }

/* ---------- CTA ---------- */
.lpc-invite { border: 1px solid var(--lpc-forest); background: var(--lpc-sheet); padding: 48px; text-align: center; }
.lpc-invite p { max-width: 600px; margin: 0 auto 26px; }

/* ---------- Inner pages ---------- */
.lpc-head-plate { padding: 52px 0 34px; background: var(--lpc-sheet); border-bottom: 1px solid var(--lpc-rule); text-align: center; }
.lpc-head-plate h1 { font-size: 2.3rem; }
.lpc-back { font-size: .78rem; letter-spacing: 1.8px; text-transform: uppercase; margin-top: 10px; }
.lpc-back a:hover { color: var(--lpc-clay); }

.lpc-column { background: var(--lpc-sheet); border: 1px solid var(--lpc-rule); padding: 42px; max-width: 860px; margin: 0 auto; }
.lpc-column h2 { font-size: 1.28rem; margin: 30px 0 10px; }
.lpc-column h2:first-of-type { margin-top: 4px; }
.lpc-column p { margin-bottom: 13px; }
.lpc-column ul { margin-bottom: 15px; }
.lpc-column li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.lpc-column li::before { content: '—'; position: absolute; left: 0; color: var(--lpc-clay); }
.lpc-cite { color: var(--lpc-forest); font-weight: 600; border-bottom: 1px solid var(--lpc-forest); }
.lpc-issued { display: block; font-size: .76rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lpc-clay); margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.lpc-ask { border-bottom: 1px solid var(--lpc-rule); }
.lpc-ask-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 0; font-family: 'Playfair Display', serif; font-size: 1.08rem; color: var(--lpc-ink); display: flex; justify-content: space-between; gap: 18px; }
.lpc-ask-q span { color: var(--lpc-clay); font-family: 'Source Sans 3', sans-serif; font-size: 1.3rem; line-height: 1; }
.lpc-ask-a { display: none; padding: 0 0 20px; font-size: .97rem; max-width: 760px; }

/* ---------- Form ---------- */
.lpc-form { background: var(--lpc-sheet); border: 1px solid var(--lpc-rule); padding: 40px; max-width: 720px; margin: 0 auto; }
.lpc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lpc-slot { margin-bottom: 20px; display: flex; flex-direction: column; gap: 7px; }
.lpc-slot label { font-size: .76rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--lpc-forest); }
.lpc-slot input, .lpc-slot textarea {
    background: #fff;
    border: 1px solid var(--lpc-rule);
    padding: 13px 15px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .97rem;
    color: var(--lpc-ink);
}
.lpc-slot textarea { min-height: 156px; resize: vertical; }
.lpc-slot input:focus, .lpc-slot textarea:focus { outline: none; border-color: var(--lpc-forest); }
.lpc-accept { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.lpc-accept input { margin-top: 6px; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--lpc-forest); }
.lpc-accept label { font-size: .93rem; }
.lpc-word { min-height: 24px; margin-top: 14px; font-size: .95rem; font-weight: 600; color: var(--lpc-forest); }
.lpc-word.lpc-stop { color: var(--lpc-clay); }

/* ---------- Footer ---------- */
.lpc-end { background: var(--lpc-ink); color: #cfc9bd; padding: 50px 0 24px; }
.lpc-end-top { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid #3a3630; }
.lpc-end-mark { display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; font-size: 1.14rem; color: #fdfbf6; }
.lpc-end-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lpc-end-nav a { font-size: .85rem; }
.lpc-end-nav a:hover { color: #e8b48b; }
.lpc-terms { padding: 22px 0; display: grid; gap: 6px; }
.lpc-terms li { position: relative; padding-left: 20px; font-size: .86rem; }
.lpc-terms li::before { content: '·'; position: absolute; left: 4px; color: var(--lpc-clay); font-size: 1.4rem; line-height: 1; }
.lpc-sign { border-top: 1px solid #3a3630; padding-top: 18px; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .lpc-entry { grid-template-columns: 1fr; gap: 22px; }
    .lpc-entry:nth-child(even) .lpc-entry-plate { order: 0; }
    .lpc-kinds { grid-template-columns: 1fr; }
    .lpc-steps { grid-template-columns: 1fr; gap: 26px; }
    .lpc-figures { grid-template-columns: repeat(2, 1fr); }
    .lpc-figures div:nth-child(2) { border-right: 0; }
    .lpc-figures div:nth-child(1), .lpc-figures div:nth-child(2) { border-bottom: 1px solid var(--lpc-rule); }
}

@media (max-width: 900px) {
    .lpc-crest-side { display: none; }
    .lpc-knob { display: block; }
    .lpc-crest-row { justify-content: space-between; }
    .lpc-course { display: none; flex-direction: column; gap: 0; padding: 6px 0 12px; }
    .lpc-course.lpc-shown { display: flex; }
    .lpc-course a { padding: 11px 0; border-bottom: 1px solid var(--lpc-rule); text-align: center; }
}

@media (max-width: 620px) {
    .lpc-pair { grid-template-columns: 1fr; }
    .lpc-open-note h1 { font-size: 1.9rem; }
    .lpc-title { font-size: 1.65rem; }
    .lpc-open-note, .lpc-column, .lpc-form, .lpc-invite, .lpc-entry { padding: 24px; }
    .lpc-entry-plate { height: 220px; }
    .lpc-crest-name { font-size: 1.06rem; }
}
