:root {
    --valle-chile: #B3172B;
    --valle-chile-deep: #7D0D1D;
    --valle-marigold: #F2A516;
    --valle-green: #1E6B47;
    --valle-cream: #FFF3D6;
    --valle-ink: #161616;
    --valle-line: 4px;
    --valle-radius: 2px;
    --valle-offset: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

.valle-body {
    margin: 0;
    font-family: "Work Sans", system-ui, sans-serif;
    font-size: clamp(1.125rem, 1.6vw, 1.4rem);
    line-height: 1.6;
    color: var(--valle-ink);
    background: var(--valle-cream);
    overflow-x: hidden;
}

.valle-body img {
    display: block;
    max-width: 100%;
    height: auto;
}

.valle-body h1,
.valle-body h2,
.valle-body h3 {
    font-family: "Unbounded", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 0.6em;
}

.valle-body h1 {
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    letter-spacing: -0.02em;
}

.valle-body h2 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.valle-body h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.valle-body p {
    margin: 0 0 1em;
    max-width: 38rem;
}

.valle-body a {
    color: inherit;
}

.valle-body a:focus-visible,
.valle-footer a:focus-visible {
    outline: 3px solid var(--valle-marigold);
    outline-offset: 3px;
}

.valle-main {
    display: block;
}

/* ---------- Screens (full-height colour blocks) ---------- */

.valle-hero,
.valle-problems,
.valle-chapters,
.valle-order {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 5rem);
    overflow: hidden;
    isolation: isolate;
}

.valle-hero {
    background: var(--valle-marigold);
}

.valle-problems {
    background: var(--valle-chile);
    color: var(--valle-cream);
}

.valle-chapters {
    background: var(--valle-green);
    color: var(--valle-cream);
}

.valle-order {
    background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(179, 23, 43, 0.08) 38px 40px), var(--valle-cream);
}

.valle-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
    filter: saturate(0.8);
}

/* ---------- Hero ---------- */

.valle-hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .valle-hero-inner {
        grid-template-columns: 1.2fr 1fr;
    }
}

.valle-kicker {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--valle-ink);
    color: var(--valle-marigold);
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.5rem;
    border-radius: var(--valle-radius);
}

.valle-subtitle {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

.valle-lead {
    font-size: clamp(1.125rem, 1.6vw, 1.4rem);
}

.valle-cta,
.valle-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    padding: 1rem 2rem;
    font-family: "Unbounded", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.04em;
    background: var(--valle-ink);
    color: var(--valle-marigold);
    border: var(--valle-line) solid var(--valle-ink);
    border-radius: var(--valle-radius);
    box-shadow: 8px 8px 0 var(--valle-chile);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.valle-cta:hover,
.valle-form button:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0 var(--valle-chile);
}

.valle-cta:focus-visible,
.valle-form button:focus-visible {
    outline: 4px solid var(--valle-cream);
    outline-offset: 4px;
}

/* ---------- Book cover (pure CSS) ---------- */

.valle-cover {
    position: relative;
    width: min(78vw, 300px);
    aspect-ratio: 2 / 3;
    margin: 0 auto;
    background: linear-gradient(165deg, var(--valle-chile) 0%, var(--valle-chile-deep) 100%);
    color: var(--valle-cream);
    border: var(--valle-line) solid var(--valle-ink);
    box-shadow: 14px 14px 0 var(--valle-ink);
    padding: 2rem 1.5rem 1.5rem 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--valle-radius);
}

.valle-cover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: var(--valle-marigold);
    border-right: var(--valle-line) solid var(--valle-ink);
}

.valle-cover-seal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--valle-marigold);
    border: 3px solid var(--valle-ink);
}

.valle-cover-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 4rem 0 0;
    max-width: none;
}

.valle-cover-title {
    font-family: "Unbounded", sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 2.6rem);
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
    max-width: none;
}

.valle-cover-sub {
    font-size: 0.95rem;
    margin: 0;
    max-width: none;
}

.valle-cover-author {
    font-family: "Unbounded", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 3px solid var(--valle-marigold);
    padding-top: 0.8rem;
    margin: 0;
    max-width: none;
}

.valle-cover-small {
    width: min(60vw, 220px);
    padding: 1.4rem 1rem 1rem 1.9rem;
}

.valle-cover-small .valle-cover-title {
    font-size: 1.5rem;
}

.valle-cover-small .valle-cover-author {
    font-size: 0.7rem;
}

/* ---------- Panels (semi-transparent overlay plates) ---------- */

.valle-panel {
    position: relative;
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
    background: rgba(255, 243, 214, 0.94);
    color: var(--valle-ink);
    border: var(--valle-line) solid var(--valle-ink);
    border-radius: var(--valle-radius);
    box-shadow: var(--valle-offset) var(--valle-offset) 0 var(--valle-ink);
    padding: clamp(1.75rem, 4vw, 3.5rem);
}

.valle-panel-wide {
    max-width: 64rem;
}

/* ---------- Problems screen ---------- */

.valle-questions {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    counter-reset: valle-q;
}

.valle-questions li {
    counter-increment: valle-q;
    position: relative;
    padding: 1rem 1rem 1rem 4.2rem;
    border-top: 2px solid var(--valle-ink);
    font-weight: 600;
    max-width: 38rem;
}

.valle-questions li::before {
    content: counter(valle-q, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1rem;
    font-family: "Unbounded", sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--valle-chile);
}

.valle-quote {
    margin: 0;
    padding: 1.2rem 1.5rem;
    background: var(--valle-marigold);
    border: var(--valle-line) solid var(--valle-ink);
    max-width: 38rem;
}

.valle-quote p {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.4;
    margin: 0 0 0.8rem;
    max-width: none;
}

.valle-quote cite {
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ---------- Chapters screen ---------- */

.valle-chapter-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 700px) {
    .valle-chapter-list {
        grid-template-columns: 1fr 1fr;
    }
}

.valle-chapter-list li {
    background: var(--valle-cream);
    color: var(--valle-ink);
    border: var(--valle-line) solid var(--valle-ink);
    padding: 1.4rem;
    box-shadow: 6px 6px 0 var(--valle-ink);
    border-radius: var(--valle-radius);
}

.valle-chapter-list h3 {
    color: var(--valle-chile);
    font-size: 1.1rem;
}

.valle-chapter-list p {
    margin: 0;
    font-size: 1.1rem;
}

.valle-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.valle-features li {
    padding: 0.75rem 1rem;
    border-left: var(--valle-line) solid var(--valle-green);
    background: rgba(22, 22, 22, 0.06);
    max-width: 38rem;
}

/* ---------- Order screen ---------- */

.valle-order-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .valle-order-inner {
        grid-template-columns: auto 1fr;
    }
}

.valle-order-note {
    font-weight: 600;
}

.valle-form {
    display: grid;
    gap: 1rem;
}

.valle-form label {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.valle-form input {
    width: 100%;
    min-height: 3.5rem;
    font: inherit;
    font-size: 1.125rem;
    padding: 0.8rem 1rem;
    background: #ffffff;
    color: var(--valle-ink);
    border: var(--valle-line) solid var(--valle-ink);
    border-radius: var(--valle-radius);
    box-shadow: 5px 5px 0 var(--valle-ink);
}

.valle-form input::placeholder {
    color: #6b5f4f;
    opacity: 1;
}

.valle-form input:focus-visible {
    outline: 4px solid var(--valle-marigold);
    outline-offset: 3px;
}

.valle-form button {
    width: 100%;
}

.valle-consent {
    font-size: 0.9rem;
    margin: 0;
    max-width: none;
}

.valle-consent a {
    font-weight: 700;
    color: var(--valle-chile);
}

/* ---------- Footer ---------- */

.valle-footer {
    background: var(--valle-ink);
    color: var(--valle-cream);
    padding: 2.5rem clamp(1.25rem, 5vw, 5rem);
    border-top: var(--valle-line) solid var(--valle-marigold);
}

.valle-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 0.8rem;
}

.valle-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.valle-footer-links a {
    color: var(--valle-marigold);
    font-weight: 700;
    font-size: 1rem;
}

.valle-footer p {
    margin: 0;
    font-size: 1rem;
    max-width: none;
}

.valle-footer-small {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ---------- Legal pages ---------- */

.legal-body {
    margin: 0;
    font-family: "Work Sans", system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--valle-ink);
    background: var(--valle-cream);
    overflow-x: hidden;
}

.legal-body a:focus-visible {
    outline: 3px solid var(--valle-marigold);
    outline-offset: 3px;
}

.legal-main {
    max-width: 50rem;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
}

.legal-back {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--valle-chile);
}

.legal-title {
    font-family: "Unbounded", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    border-bottom: var(--valle-line) solid var(--valle-chile);
    padding-bottom: 1rem;
    margin: 0 0 2rem;
}

.legal-block {
    margin-bottom: 1.5rem;
}

.legal-block h2 {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--valle-chile);
    margin: 2rem 0 0.6rem;
    line-height: 1.3;
}

.legal-block p {
    margin: 0 0 0.9rem;
    max-width: none;
}