@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@700&display=swap");

:root {
    color-scheme: light;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-300: #fca5a5;
    --ink: #0f172a;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --paper: #ffffff;
    --page-width: 80rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: var(--red-600); }
.is-hidden { display: none !important; }

.site-page { min-height: 100vh; overflow-x: hidden; }
.home-page, .lessons-page { color: var(--ink); background: var(--paper); }


/* Shared red navigation */
.site-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    color: #fff;
    background: var(--red-700);
    border-bottom: 1px solid var(--red-800);
    box-shadow: 0 12px 24px rgb(69 10 10 / 10%);
    backdrop-filter: blur(14px);
}
.header-inner {
    display: flex;
    width: 100%;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
}
.header-brand-search { display: flex; min-width: 0; align-items: center; gap: 1rem; }
.brand-link { display: flex; flex: 0 0 auto; align-items: center; }
.site-brand {
    color: #fff;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.025em;
    white-space: nowrap;
}
.desktop-search-wrap { position: relative; display: none; width: 18rem; align-items: center; }
.search-icon { position: absolute; z-index: 1; top: 50%; left: .875rem; color: #64748b; transform: translateY(-50%); }
.search-input {
    width: 100%;
    height: 2.75rem;
    padding: .625rem 1rem .625rem 2.5rem;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: .875rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.search-input::placeholder { color: #64748b; }
.search-input:focus { border-color: #f87171; box-shadow: 0 0 0 3px rgb(239 68 68 / 15%); }
.desktop-nav {
    display: none;
    min-width: 0;
    height: 5rem;
    flex: 1;
    align-items: center;
    justify-content: space-evenly;
    gap: .5rem;
    padding-left: 1rem;
    white-space: nowrap;
}
.nav-link {
    padding: .5rem .1rem;
    color: rgb(255 255 255 / 92%);
    font-size: .875rem;
    font-weight: 500;
    transition: color .18s, background .18s;
}
.nav-link:hover, .nav-link:focus-visible { color: #fff; }
.nav-link.is-current { padding: .5rem .75rem; color: var(--red-800); background: #fff; border-radius: 999px; font-weight: 700; }
.nav-dropdown { position: relative; display: flex; height: 100%; align-items: center; }
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .75rem 0;
    color: rgb(255 255 255 / 92%);
    background: transparent;
    border: 0;
    border-radius: .375rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus-visible { color: #fff; }
.nav-dropdown-toggle:focus-visible, .nav-link:focus-visible, .mobile-nav-link:focus-visible,
.mobile-subject-link:focus-visible, .language-toggle:focus-visible, .mobile-menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.nav-dropdown-caret, .language-caret { font-size: .7rem; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown-caret, .nav-dropdown:focus-within .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-positioner {
    position: absolute;
    z-index: 60;
    top: 100%;
    left: 50%;
    width: 12rem;
    padding-top: .75rem;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .18s, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown-positioner, .nav-dropdown:focus-within .nav-dropdown-positioner { visibility: visible; opacity: 1; }
.nav-dropdown-panel {
    overflow: hidden;
    background: rgb(153 27 27 / 97%);
    border: 1px solid #dc2626;
    border-radius: .75rem;
    box-shadow: 0 22px 45px rgb(69 10 10 / 22%);
    backdrop-filter: blur(16px);
}
.nav-dropdown-link { display: block; padding: .625rem 1rem; color: #fff7f7; font-size: .875rem; transition: background .18s, color .18s; }
.nav-dropdown-link:hover, .nav-dropdown-link:focus-visible { color: #fff; background: var(--red-700); }












.mobile-menu-actions { display: flex; align-items: center; }
.mobile-menu-toggle {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: .5rem;
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu-toggle:hover { background: var(--red-600); }
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 55;
    width: 100%;
    color: #fff;
    background: rgb(153 27 27 / 97%);
    border-bottom: 1px solid var(--red-700);
    box-shadow: 0 14px 24px rgb(69 10 10 / 20%);
    backdrop-filter: blur(16px);
}
.mobile-nav { display: flex; max-height: calc(100vh - 5rem); flex-direction: column; gap: 1rem; overflow-y: auto; padding: 1.25rem 1.5rem; }
.mobile-search-wrap { position: relative; width: 100%; margin-bottom: .5rem; }
.search-input-mobile { height: 3rem; border-radius: .75rem; }

.inline-row, .inline-row-small { display: flex; align-items: center; gap: .75rem; }

.mobile-nav-link { display: block; padding: .5rem .75rem; color: #fff7f7; border-radius: .375rem; font-size: .875rem; font-weight: 500; }
.mobile-nav-link:hover { color: #fff; background: var(--red-700); }
.mobile-nav-link.is-current { color: var(--red-800); background: #fff; font-weight: 700; }
.mobile-nav-divider { width: 100%; height: 1px; margin: .5rem 0; background: rgb(255 255 255 / 25%); }
.mobile-section-label { color: #fecaca; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mobile-subject-link { padding: .375rem 0 .375rem .875rem; color: #fee2e2; border-left: 2px solid rgb(248 113 113 / 55%); font-size: .875rem; font-weight: 500; }
.mobile-subject-link:hover { color: #fff; background: var(--red-700); }

/* Home hero */
.home-hero { position: relative; isolation: isolate; display: flex; min-height: 100vh; align-items: center; overflow: hidden; }
.home-hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.home-hero-overlay { position: absolute; z-index: -1; inset: 0; background: rgb(2 6 23 / 55%); }
.home-hero-inner { position: relative; z-index: 1; display: flex; width: 100%; min-height: 100vh; max-width: var(--page-width); align-items: center; margin: 0 auto; padding: 7rem 1.5rem 4rem; }
.home-hero-copy { display: flex; max-width: 42rem; flex-direction: column; justify-content: center; margin: 0 auto; text-align: center; }
.home-hero-title { margin: 0 0 1.5rem; color: #fff; font-family: "Merriweather", Georgia, serif; font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1.12; letter-spacing: -.035em; }
.home-hero-description { margin: 0 0 2.5rem; color: #f1f5f9; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 300; line-height: 1.75; }
.home-hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: .75rem; font-weight: 600; text-align: center; transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s; cursor: pointer; }
.button-primary { color: #fff; background: var(--red-600); }
.button-primary:hover { background: var(--red-500); box-shadow: 0 12px 24px rgb(220 38 38 / 24%); }
.home-hero-button { width: 100%; padding: 1rem 2rem; font-weight: 500; }
.home-hero-button:hover { transform: translateY(-2px); }
.button-light { color: #1e293b; background: rgb(255 255 255 / 88%); border-color: #cbd5e1; backdrop-filter: blur(10px); }
.button-light:hover { background: #fff; }
.hero-button-icon { font-size: 1.25rem; transition: transform .18s; }
.button-primary:hover .hero-button-icon { transform: scale(1.08); }
.hero-button-icon-red { color: var(--red-600); }
.home-hero-helper { margin: 1.5rem 0 0; color: #e2e8f0; font-size: .875rem; }
.helper-icon { margin-right: .25rem; color: #fff; }
.helper-highlight { color: #fff; font-weight: 600; }

/* About section */
.about-section, .contact-section { position: relative; isolation: isolate; overflow: hidden; background: #fff; }
.about-section { padding: 6rem 0 3rem; }
.contact-section { padding: 2rem 0 5rem; }
.section-glow { position: absolute; z-index: 0; width: 24rem; height: 24rem; border-radius: 50%; background: rgb(220 38 38 / 8%); filter: blur(3rem); pointer-events: none; }
.about-glow { top: 3rem; right: -10rem; }
.contact-glow { top: 5rem; right: -10rem; }
.section-container { position: relative; z-index: 1; display: grid; width: min(calc(100% - 3rem), var(--page-width)); margin: 0 auto; }
.about-layout { align-items: center; gap: 3.5rem; }
.portrait-wrap { position: relative; width: 100%; max-width: 32rem; margin: 0 auto; }
.portrait-accent { position: absolute; inset: -.75rem; border: 1px solid rgb(248 113 113 / 24%); border-radius: 2rem; }
.portrait-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; border: 1px solid var(--slate-200); border-radius: 1.75rem; box-shadow: 0 25px 50px rgb(15 23 42 / 10%); }
.portrait-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.portrait-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgb(2 6 23 / 80%), rgb(2 6 23 / 20%) 35%, rgb(2 6 23 / 10%)); }
.portrait-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 1.5rem; }

.about-content { display: flex; flex-direction: column; gap: 1.75rem; }
.section-title { margin: 0; color: var(--ink); font-family: "Merriweather", Georgia, serif; font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.2; letter-spacing: -.025em; }
.about-copy { display: flex; flex-direction: column; gap: 1.25rem; color: var(--slate-700); font-size: 1rem; line-height: 2; }
.about-copy p { margin: 0; }
.about-closing { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-200); }
.about-closing-copy { max-width: 46rem; margin: 0; color: var(--slate-500); font-size: .875rem; line-height: 1.7; }
.text-link { display: inline-flex; flex-shrink: 0; align-items: center; gap: .5rem; color: var(--red-700); font-size: .875rem; font-weight: 700; transition: color .18s; }
.text-link:hover { color: var(--ink); }

/* Contact form and map */
.contact-layout { gap: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; padding: 1.25rem; background: #f8fafc; border: 1px solid var(--slate-200); border-radius: 1rem; }
.form-fields { display: grid; gap: 1rem; }
.form-label { display: block; color: var(--slate-700); font-size: .875rem; font-weight: 600; }
.form-control { display: block; width: 100%; margin-top: .5rem; padding: .75rem 1rem; color: var(--ink); background: #fff; border: 1px solid var(--slate-200); border-radius: .75rem; font-size: .875rem; outline: none; transition: border-color .18s, box-shadow .18s; }
.form-control::placeholder { color: #94a3b8; }
.form-control:focus { border-color: #f87171; box-shadow: 0 0 0 3px rgb(239 68 68 / 15%); }
.form-textarea { min-height: 7rem; resize: vertical; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.submit-button { padding: .875rem 1.5rem; font-size: .875rem; }
.contact-status { color: #047857; font-size: .875rem; line-height: 1.6; }
.map-column { display: flex; flex-direction: column; }
.map-heading { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.map-title { margin: 0; color: var(--ink); font-family: "Merriweather", Georgia, serif; font-size: 1.5rem; line-height: 1.35; }
.map-frame-wrap { position: relative; min-height: 22rem; flex: 1; overflow: hidden; background: #fff; border: 1px solid var(--slate-200); border-radius: 1.75rem; box-shadow: 0 25px 50px rgb(15 23 42 / 10%); }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 22rem; border: 0; }
.site-footer { padding: 2rem 1.5rem; color: var(--slate-600, #475569); background: #fff; border-top: 1px solid var(--slate-200); text-align: center; }
.footer-copy { margin: 0; color: #64748b; font-size: .875rem; }

/* Private lessons page */
.page-main { padding-top: 5rem; }
.lesson-hero { position: relative; isolation: isolate; overflow: hidden; padding: 40px 1.5rem 3rem; background: radial-gradient(ellipse at 12% 4%, rgb(220 38 38 / 8%), transparent 37%), linear-gradient(180deg, #fff 0%, #fffafa 100%); }
.lesson-grid-lines { position: absolute; z-index: 0; inset: 0; opacity: .4; background-image: linear-gradient(rgb(127 29 29 / 3.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(127 29 29 / 3.5%) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 88%); pointer-events: none; }
.lesson-layout { position: relative; z-index: 1; display: grid; width: min(100%, var(--page-width)); align-items: start; gap: 2.5rem; margin: 0 auto; }
.lesson-copy { display: flex; flex-direction: column; gap: 2rem; }
.lesson-title { max-width: 48rem; margin: 0; color: var(--ink); font-family: "Merriweather", Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; letter-spacing: -.03em; }
.lesson-description { display: flex; flex-direction: column; gap: 1.5rem; padding-left: 1.25rem; color: var(--slate-700); border-left: 1px solid rgb(248 113 113 / 45%); font-size: 1rem; line-height: 2; }
.lesson-description p { margin: 0; }
.lesson-contact-panel { position: relative; overflow: hidden; background: linear-gradient(115deg, #fff, #fff7f7); border: 1px solid var(--slate-200); border-radius: 1.75rem; box-shadow: 0 25px 55px rgb(69 10 10 / 10%); }
.lesson-panel-header { position: relative; padding: 1.5rem; border-bottom: 1px solid var(--slate-200); }
.inline-row { display: flex; align-items: center; gap: .75rem; }
.lesson-contact-icon { display: flex; width: 2.75rem; height: 2.75rem; flex-shrink: 0; align-items: center; justify-content: center; color: var(--red-600); background: rgb(239 68 68 / 10%); border-radius: .75rem; font-size: 1.25rem; }
.lesson-contact-title { margin: 0; color: var(--ink); font-family: "Merriweather", Georgia, serif; font-size: 1.875rem; }
.lesson-panel-content { position: relative; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
.lesson-label { margin: 0; color: #64748b; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lesson-phone-link, .lesson-email-link { display: inline-flex; max-width: 100%; align-items: center; gap: .75rem; margin-top: .5rem; border-radius: .375rem; transition: color .18s; }
.lesson-phone-link { color: var(--ink); font-size: 1.125rem; font-weight: 700; }
.lesson-phone-link:hover { color: var(--red-700); }
.lesson-email-link { color: var(--slate-700); font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.lesson-email-link:hover { color: var(--ink); }
.contact-icon { flex: 0 0 auto; color: var(--red-600); font-size: 1.25rem; }
.lesson-social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.lesson-social-link { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; color: var(--slate-700); background: #f8fafc; border: 1px solid var(--slate-200); border-radius: 999px; font-size: .875rem; transition: background .18s, border-color .18s; }
.lesson-social-link:hover { background: #f1f5f9; border-color: rgb(248 113 113 / 50%); }
.lesson-price-row { display: grid; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-200); }
.lesson-price { margin: .25rem 0 0; color: var(--ink); font-family: "Merriweather", Georgia, serif; font-size: 2.25rem; }
.lesson-price-unit { margin: .25rem 0 0; color: #64748b; font-size: .875rem; }
.button-secondary { color: var(--red-700); background: rgb(239 68 68 / 8%); border-color: rgb(248 113 113 / 30%); }
.button-secondary:hover { background: rgb(239 68 68 / 14%); border-color: rgb(248 113 113 / 55%); }
.superprof-link { padding: .75rem 1rem; font-size: .875rem; }

/* Author's books page */
.books-page { color: #27201e; background: #f5f1eb; }
.books-intro { position: relative; display: flex; isolation: isolate; align-items: center; overflow: hidden; min-height: 41.88vw; padding: 4rem 1.5rem 3.5rem; color: #fff8f0; background-color: #351316; background-image: linear-gradient(90deg, rgb(35 10 12 / 56%) 0%, rgb(53 19 22 / 40%) 48%, rgb(53 19 22 / 22%) 100%), url("../images/books-hero.jpeg"); background-position: center, center 70%; background-size: cover; background-repeat: no-repeat; }
.books-intro-inner { position: relative; z-index: 1; width: min(100%, var(--page-width)); margin: 0 auto; }


.books-title { max-width: 48rem; margin: 0; color: #fff8f0; font-family: "Merriweather", Georgia, serif; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.05em; }
.books-intro-copy { max-width: 40rem; margin: 1.25rem 0 0; color: #f4dfd4; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.8; }
.books-intro-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem; padding: .7rem 1rem; color: #4c1b1c; background: #f6d5b9; border: 1px solid rgb(255 240 223 / 42%); border-radius: .6rem; font-size: .875rem; font-weight: 600; transition: background .18s, transform .18s; }
.books-intro-link:hover { background: #fff0df; transform: translateY(-2px); }
.books-catalog { padding: 2.5rem 1.25rem 3rem; background: radial-gradient(ellipse at 20% 10%, rgb(165 91 62 / 7%), transparent 40%), #f5f1eb; }
.books-catalog-inner { display: grid; width: min(100%, var(--page-width)); gap: 1.5rem; margin: 0 auto; }
.book-card { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; overflow: hidden; padding: 1rem; background: #fffdf9; border: 1px solid #e5dbce; border-radius: 1.4rem; box-shadow: 0 20px 48px rgb(55 34 25 / 8%); }
.book-cover-slot { position: relative; display: flex; width: min(100%, 23rem); min-height: 22rem; aspect-ratio: 2 / 3; flex-direction: column; align-items: center; justify-content: center; justify-self: center; overflow: hidden; color: #f4dfd4; background: radial-gradient(ellipse at 50% 40%, rgb(185 117 85 / 20%), transparent 54%), repeating-linear-gradient(135deg, transparent 0 18px, rgb(247 219 195 / 5%) 19px, transparent 20px 38px), #401b1b; border: 1px solid rgb(244 223 212 / 28%); border-radius: .9rem; text-align: center; }
.book-cover-slot::before { position: absolute; z-index: 1; inset: .65rem; content: ""; border: 1px solid rgb(244 223 212 / 20%); border-radius: .5rem; pointer-events: none; }
.book-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }





.book-info { display: flex; min-width: 0; flex-direction: column; padding: .4rem .25rem .2rem; }

.book-title { margin: 0; color: #32191a; font-family: "Merriweather", Georgia, serif; font-size: clamp(1.65rem, 3.8vw, 2.25rem); line-height: 1.25; letter-spacing: -.03em; }
.book-synopsis { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.1rem; color: #5e514a; font-size: .94rem; line-height: 1.8; }
.book-synopsis p { margin: 0; }
.book-bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid #eadfd3; }
.book-pages { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: #72645b; font-size: .875rem; }
.book-pages i { color: #9a4e3e; font-size: 1.1rem; }
.book-pages strong { color: #32191a; }
.book-buy-link { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem .95rem; color: #fff8f0; background: #762126; border-radius: .65rem; font-size: .875rem; font-weight: 700; transition: background .18s, transform .18s; }
.book-buy-link:hover { background: #9b302d; transform: translateY(-1px); }
.books-footer { background: #eee7dd; border-color: #e3d8cb; }
.books-page :focus-visible { outline: 3px solid #e0a778; outline-offset: 3px; }

/* Dark subject and practice pages */


























.subject-cta-title { margin: 0; color: #fff; font-family: "Merriweather", Georgia, serif; font-size: 1.5rem; }










.quiz-option:hover:not(:disabled) { background: #1e293b; border-color: rgb(252 165 165 / 40%); }


.quiz-answer-correct { color: #d1fae5 !important; background: rgb(6 78 59 / 50%) !important; border-color: rgb(52 211 153 / 55%) !important; }
.quiz-answer-wrong { color: #fee2e2 !important; background: rgb(127 29 29 / 40%) !important; border-color: rgb(248 113 113 / 55%) !important; }

/* Reveal effect */
.scroll-reveal { opacity: 1; transform: none; transition: opacity .75s ease, transform .75s cubic-bezier(.22, .61, .36, 1); }
.scroll-reveal-ready .scroll-reveal { opacity: 0; transform: translateY(28px); }
.scroll-reveal-ready .scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }
.scroll-reveal-delay-1 { transition-delay: .14s; }
.scroll-reveal-delay-2 { transition-delay: .26s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-reveal, .scroll-reveal.is-visible { opacity: 1; transform: none; transition: none; }
    .scroll-reveal-ready .scroll-reveal { opacity: 1; transform: none; transition: none; }
}

@media (min-width: 640px) {
    .site-brand { font-size: 1.5rem; }
    .header-inner { padding: 0 1.5rem; }
    .header-brand-search { gap: 2rem; }
    .home-hero-actions { flex-direction: row; }
    .home-hero-button { width: auto; }
    .portrait-caption { padding: 2rem; }
    
    .about-copy { font-size: 1.125rem; }
    .about-closing { flex-direction: row; align-items: center; justify-content: space-between; }
    .contact-form { padding: 1.5rem; }
    .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-actions { flex-direction: row; align-items: center; }
    .map-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .lesson-hero { padding: 40px 2rem 4rem; }
    .lesson-panel-header, .lesson-panel-content { padding: 2rem; }
    .lesson-email-link { font-size: 1.125rem; }
    .lesson-price-row { grid-template-columns: 1fr auto; align-items: end; }
    .books-intro { min-height: 41.88vw; padding: 4.5rem 2rem; }
    .books-catalog { padding: 3rem 2rem 4rem; }
    .book-card { grid-template-columns: minmax(13rem, .62fr) minmax(0, 1.38fr); gap: 2rem; padding: 1.4rem; }
    .book-cover-slot { width: 100%; min-height: 26rem; }
    .book-info { padding: .65rem .25rem .35rem; }
    .book-bottom-row { margin-top: auto; padding-top: 1.25rem; }
    
    
    
}
@media (min-width: 768px) {
    
}
@media (min-width: 1024px) {
    .desktop-nav { display: flex; }
    .mobile-menu-actions { display: none; }
    .mobile-menu { display: none !important; }
    .home-hero-overlay { background: linear-gradient(90deg, rgb(2 6 23 / 80%) 0%, rgb(2 6 23 / 45%) 52%, rgb(2 6 23 / 10%) 100%); }
    .home-hero-inner { padding: 7rem 2rem 6rem; }
    .home-hero-copy { margin: 0; text-align: left; transform: translateY(3rem); }
    .home-hero-actions { justify-content: flex-start; }
    .about-layout { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
    .about-section { padding: 8rem 0 3rem; }
    .contact-layout { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
    .contact-section { padding: 3rem 0 5rem; }
    .lesson-hero { padding: 40px 2.5rem 5rem; }
    .lesson-layout { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
    .lesson-copy { padding: 0; }
    .lesson-title { white-space: nowrap; font-size: clamp(2rem, 3.3vw, 2.75rem); }
    .lesson-description { padding-left: 1.75rem; font-size: 1.125rem; }
    .books-intro { min-height: 40.88vw; padding: 5.5rem 2.5rem; }
    .books-catalog { padding: 4rem 2.5rem 5rem; }
    .books-catalog-inner { gap: 2rem; }
    .book-card { grid-template-columns: minmax(17rem, .65fr) minmax(0, 1.35fr); gap: 3rem; padding: 2rem; border-radius: 1.75rem; }
    .book-card:nth-child(even) { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr); }
    .book-card:nth-child(even) .book-cover-slot { order: 2; }
    .book-cover-slot { min-height: 30rem; }
    .book-info { padding: 1rem .25rem .5rem; }
    .book-synopsis { font-size: 1rem; }
    
    
    
}
@media (min-width: 1280px) {
    .desktop-search-wrap { display: flex; }
}
@media (min-width: 1536px) {
    .desktop-search-wrap { width: 24rem; }
}
@media (max-width: 1023px) {
    
}
@media (max-width: 639px) {
    
    
    
    
    
    .lesson-hero { padding: 40px 1.25rem 3rem; }
    .lesson-title { font-size: 2.15rem; }
    .lesson-panel-header, .lesson-panel-content { padding: 1.25rem; }
    .lesson-contact-title { font-size: 1.55rem; }
    .lesson-phone-link { font-size: 1rem; }
    .books-intro { min-height: 24rem; padding: 3.25rem 1.25rem 3rem; }
    .books-intro-copy { max-width: 32rem; }
    .books-catalog { padding: 1.25rem .85rem 2.5rem; }
    .book-card { gap: 1.2rem; padding: .8rem; border-radius: 1rem; }
    .book-cover-slot { width: min(100%, 19rem); min-height: 20rem; }
    .book-title { font-size: 1.6rem; }
    .book-synopsis { font-size: .9rem; line-height: 1.75; }
    .book-bottom-row { align-items: flex-start; }
    
    
}

/* My texts page */
.texts-main { min-height: calc(100vh - 5rem); padding-top: 5rem; color: #24211f; background: #f6f3ee; }
.texts-masthead { position: relative; display: flex; min-height: 18rem; align-items: center; overflow: hidden; padding: 3.5rem max(2rem, calc((100vw - 76rem) / 2)); background-color: #351d1c; background-image: linear-gradient(90deg, rgb(24 15 14 / 76%) 0%, rgb(24 15 14 / 58%) 47%, rgb(24 15 14 / 36%) 100%), url("../images/meus-textos-banner.jpeg"); background-position: center 28%; background-size: cover; border-bottom: 1px solid #6d3532; }
.texts-masthead::after { position: absolute; right: max(2rem, calc((100vw - 76rem) / 2)); bottom: 0; width: 5rem; height: 3px; content: ""; background: var(--red-700); }
.texts-masthead-inner { position: relative; z-index: 1; }
.texts-masthead h1 { margin: 0; color: #fffaf6; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1; text-shadow: 0 2px 20px rgb(0 0 0 / 18%); }
.texts-masthead h1 em { color: #f2c5ad; font-weight: 700; }
.texts-masthead-note { margin: 1.25rem 0 0; color: #f1e5df; font-family: Georgia, serif; font-size: 1.05rem; font-style: italic; }
.texts-masthead-mark { position: absolute; right: max(2rem, calc((100vw - 76rem) / 2)); bottom: -2.8rem; color: rgb(255 250 246 / 9%); font-family: "Merriweather", Georgia, serif; font-size: clamp(9rem, 18vw, 16rem); font-weight: 700; letter-spacing: -.12em; line-height: 1; user-select: none; }
.texts-layout { display: grid; width: min(100%, 80rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0; margin: 0 auto; padding: 3.75rem 2rem 5rem; }
.texts-column { min-width: 0; padding: 0 2.75rem; }
.texts-column + .texts-column { border-left: 1px solid #ded7d0; }
.texts-column-heading { display: flex; align-items: baseline; gap: .85rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid #d9d0c7; }
.texts-column h2 { margin: 0; color: #282220; font-family: "Merriweather", Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.3; }
.texts-list { margin: 0; padding: 0; list-style: none; }
.texts-list li { border-bottom: 1px solid #e8e2dc; }
.texts-list a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-height: 3.7rem; margin: 0 -.75rem; padding: .7rem .75rem; color: #4b423d; border-radius: .35rem; transition: color .18s, background .18s, padding .18s; }
.texts-row-number { color: #9a9088; font-size: .68rem; font-weight: 600; letter-spacing: .06em; }
.texts-row-title { color: inherit; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.45; }
.texts-row-title small { margin-left: .35rem; color: #8b7770; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: .62rem; font-style: italic; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.texts-list a > i { color: #a13232; font-size: .95rem; opacity: .65; transition: transform .18s, opacity .18s; }
.texts-list a:hover, .texts-list a:focus-visible { color: #851f24; background: #f1e9e2; }
.texts-list a:hover > i, .texts-list a:focus-visible > i { transform: translate(2px, -2px); opacity: 1; }
.texts-list a:focus-visible { outline: 2px solid #b91c1c; outline-offset: 2px; }
.texts-list a[hidden] { display: none; }
.texts-empty { grid-column: 1 / -1; margin: 0 2.75rem 1.5rem; color: #786e67; font-size: .9rem; }
@media (max-width: 760px) {
  .texts-masthead { min-height: 15rem; padding: 3rem 1.5rem; }
  .texts-masthead::after { right: 1.5rem; }
  .texts-masthead-mark { right: .8rem; bottom: -1.3rem; font-size: 10rem; }
  .texts-layout { grid-template-columns: minmax(0, 1fr); padding: 2.5rem 1.25rem 3.5rem; }
  .texts-column { padding: 0 .5rem 2.2rem; }
  .texts-column + .texts-column { padding-top: 2rem; border-top: 1px solid #ded7d0; border-left: 0; }
  .texts-empty { margin: 0 .5rem 1.25rem; }
}

/* Exercise directory */
.exercises-hero { padding: 3rem 1.5rem 2.5rem; background: linear-gradient(145deg, #fff 0%, #fff8f6 100%); border-bottom: 1px solid #f0e2df; }
.exercises-hero-inner { width: min(100%, var(--page-width)); margin: 0 auto; }
.exercises-title { margin: 0; color: var(--ink); font-family: "Merriweather", Georgia, serif; font-size: clamp(2.3rem, 5vw, 3.5rem); letter-spacing: -.04em; line-height: 1.15; }
.exercises-intro { max-width: 42rem; margin: .75rem 0 1.4rem; color: var(--slate-700); font-size: 1rem; line-height: 1.7; }
.exercise-filter-wrap { position: relative; display: flex; width: min(100%, 28rem); align-items: center; }
.exercise-filter-wrap > i { position: absolute; left: .9rem; color: var(--slate-500); }
.exercise-filter-wrap .discipline-filter { padding-left: 2.55rem; }
.exercise-groups { display: grid; width: min(100%, var(--page-width)); gap: 2.75rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.exercise-category { min-width: 0; }
.exercise-category-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.2rem; }
.exercise-category-heading .discipline-kicker { margin-bottom: .35rem; }
.exercise-category-description { margin: .4rem 0 0; color: var(--slate-500); font-size: .9rem; line-height: 1.6; }
.exercise-groups .discipline-empty { margin: 0; }
@media (max-width: 639px) {
    .exercises-hero { padding: 2.5rem 1.25rem 2rem; }
    .exercise-groups { gap: 2rem; padding: 2rem 1rem 3rem; }
}

/* ---------- Menu: contorno branco no item da página atual, deslizando de um item para o outro ----------
   O item atual vem marcado no HTML (classe is-current, posta por "npm run menu"). Ao trocar de página, o
   navegador anima o contorno saindo do item antigo e chegando ao novo (View Transitions entre páginas).
   Navegadores sem esse recurso só mostram o contorno já no lugar novo. */
@view-transition { navigation: auto; }
body .site-header .desktop-nav > a.nav-link,
body .site-header .desktop-nav .nav-dropdown-toggle {
    padding: .45rem .7rem;
    border-radius: 999px;
    transition: background-color .25s ease, color .25s ease;
}
body .site-header .desktop-nav > a.nav-link:hover:not(.is-current),
body .site-header .desktop-nav .nav-dropdown-toggle:hover:not(.is-current) { background: rgb(255 255 255 / 14%); }
body .site-header .desktop-nav > a.nav-link.is-current,
body .site-header .desktop-nav .nav-dropdown-toggle.is-current {
    color: var(--red-800, #991b1b);
    background: #fff;
    font-weight: 700;
    view-transition-name: menu-atual;
}
body .site-header .nav-dropdown-link.is-current { background: var(--red-700, #b91c1c); font-weight: 700; }
body .site-header .mobile-nav-link.is-current,
body .site-header .mobile-subject-link.is-current { color: var(--red-800, #991b1b); background: #fff; font-weight: 700; }
/* o contorno desliza em 0,35 s; o resto da página só troca com um esmaecer curto */
::view-transition-group(menu-atual) { animation-duration: .35s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
/* Cabeçalho fica parado: só o conteúdo muda. O conteúdo antigo some subindo um pouco; o novo entra descendo. */
body .site-header { view-transition-name: cabecalho-site; }
::view-transition-old(cabecalho-site), ::view-transition-new(cabecalho-site) { animation: none; }
::view-transition-old(root) { animation: conteudo-sai .22s ease-in both; }
::view-transition-new(root) { animation: conteudo-entra .38s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes conteudo-sai { to { opacity: 0; transform: translateY(-10px); } }
@keyframes conteudo-entra { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}
