/* Fantasy branch: the literary academy, parchment and quiet magic. */
.fantasy-theme {
    --background: #f5f0e6;
    --surface: #fffdf7;
    --surface-soft: #eee5d7;
    --surface-warm: #f8f3e9;
    --text: #302538;
    --text-soft: #574c59;
    --muted: #716474;
    --primary: #704678;
    --primary-dark: #452a54;
    --border: #ded1b9;
    --accent: #30203d;
    --shadow: 0 15px 40px rgb(52 34 49 / 7%);
    background: var(--background);
}
.fantasy-theme .shared-header { background: #fcf8ef; border-bottom: 1px solid #c8ae78; backdrop-filter: none; }
.fantasy-theme .shared-header .brand-mark { mix-blend-mode: multiply; border-radius: 0; }
.fantasy-theme .brand-copy small { color: #846d44; letter-spacing: .15em; }
.fantasy-theme .shared-header .main-nav a { font-size: .9rem; }
.fantasy-theme .hero-premium, .fantasy-theme .written-hero {
    position: relative;
    background: radial-gradient(ellipse at 82% 20%, #58345c 0, transparent 52%), linear-gradient(125deg, #241d31, #34223e);
    color: #fbf1da;
    border-bottom: 1px solid #b2935e;
}
.fantasy-theme .hero-grid { gap: 28px; padding-top: 58px; padding-bottom: 58px; }
.fantasy-theme .hero h1 { font-size: clamp(2.8rem, 4.6vw, 4.6rem); line-height: 1.08; font-weight: 400; }
.fantasy-theme .hero h1 span, .fantasy-theme .written-hero h1 em { color: #dec18b; }
.fantasy-theme .hero-description, .fantasy-theme .written-intro { color: #e0d4e1; }
.fantasy-theme .eyebrow { color: #775a32; font-size: .72rem; letter-spacing: .18em; }
.fantasy-theme .hero .eyebrow, .fantasy-theme .written-hero .eyebrow, .fantasy-theme .home-cta .eyebrow { color: #e2c68f; }
.fantasy-theme .hero-proof span { background: #ffffff08; color: #e8dbc9; border-color: #b89c6759; font-weight: 500; }
.fantasy-theme .button { border-radius: 4px; }
.fantasy-theme .button-primary { background: #dfc28d; color: #2e2237; border: 1px solid #eed6a9; box-shadow: 0 5px 22px #10091720; }
.fantasy-theme .button-primary:hover { background: #efd9ad; }
.fantasy-theme .hero .button-secondary, .fantasy-theme .written-hero .button-secondary { color: #f4e4c8; background: transparent; border-color: #ac9369; }
.fantasy-theme .fantasy-hero-art { min-height: 0; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; }
.fantasy-hero-art .hero-watermark, .fantasy-hero-art .hero-note, .fantasy-hero-art .hero-book-stack { display: none; }
.fantasy-grimoire { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 22px #10091955); }
.fantasy-exlibris { margin: -18px 0 0; text-align: center; color: #d3ba8c; text-transform: uppercase; letter-spacing: .23em; font-size: .64rem; }
.fantasy-theme .study-paths { background: #fbf7ee; }
.fantasy-theme .study-paths, .fantasy-theme .latest-resources, .fantasy-theme .editorial-section { padding: 76px 0; }
.fantasy-theme .study-card, .fantasy-theme .resource-card, .fantasy-theme .written-card {
    background: #fffcf5;
    border: 1px solid #d6c6a8;
    border-radius: 5px 18px 5px 5px;
    box-shadow: 4px 4px 0 #e9dfce, var(--shadow);
}
.fantasy-theme .study-card { position: relative; border-top: 3px solid #b79b61; }
.fantasy-theme .study-card::after { content: '\2727'; position: absolute; top: 18px; right: 20px; color: #a1834e; font-size: 23px; }
.fantasy-theme .study-icon { border: 1px solid #d0b881; background: #f0e5ce; color: #654571; border-radius: 50%; }
.fantasy-theme .study-card .fantasy-card-caption { color: #795983; font-family: Georgia, serif; font-style: italic; font-size: 1rem; min-height: 0; margin-top: -5px; }
.fantasy-theme .resource-type { color: #66456d; background: #f0e8f0; }
.fantasy-theme .resource-card { border-left: 5px solid #77537d; }
.fantasy-theme .resource-empty { border-color: #c8b994; background: #fffcf4; }
.fantasy-theme .editorial-section { background: #eee4d5; border-block: 1px solid #d7c6a7; }
.fantasy-theme .editorial-values span { color: #56415f; border-color: #cbb992; background: #fff9ed; }
.fantasy-theme .home-cta { background: radial-gradient(ellipse at right, #694571, transparent), #2a2035; color: #f7ead3; border-bottom: 1px solid #c3a66c; }
.fantasy-theme .button-light { background: #eed7a9; color: #382640; }
.fantasy-theme .site-footer { background: #241c2c; color: #eee1ca; border-color: #8d744d; }
.fantasy-theme .site-footer p, .fantasy-theme .site-footer small { color: #c7b9c8; }
.fantasy-theme .site-footer .brand-mark { border: 1px solid #aa9163; background: #fff9ee; }
.fantasy-theme .written-page { background: #f8f3e9; }
.fantasy-theme .written-hero { padding: 58px 0; }
.fantasy-theme .written-hero::after { content: '\2727'; position: absolute; right: 6%; top: 30px; font-size: 5rem; color: #d7b67535; pointer-events: none; }
.fantasy-theme .written-content > section { position: relative; }
.fantasy-theme .written-content > section + section { padding-top: 32px; border-top: 1px solid #d7c8ab; }
.fantasy-theme .written-table table { background: #fffdf7; }
.fantasy-theme .written-table thead { background: #e9dfce; }
.fantasy-theme .written-note { background: #eee3cf; border-left-color: #9c7947; border-radius: 0 5px 5px 0; }
.fantasy-theme .written-source { color: #615166; }
.fantasy-theme .content-article { background: #fffcf4; border-color: #d4c2a1; box-shadow: var(--shadow); }
.fantasy-theme .content-article h1 { color: #52365e; }
.fantasy-theme .content-article h2 { border-bottom: 1px solid #ddcdae; padding-bottom: 12px; }
.fantasy-theme .login-page { background: radial-gradient(ellipse at top right, #624067, transparent), #282032; min-height: calc(100vh - 90px); }
.fantasy-theme .login-card { background: #fffbf1; border: 1px solid #c6a875; border-radius: 8px; box-shadow: 0 20px 70px #100b1980; }
.fantasy-theme .admin-table, .fantasy-theme .admin-form-main, .fantasy-theme .admin-form-sidebar { border-color: #d8c8aa; }
.fantasy-theme a:focus-visible, .fantasy-theme button:focus-visible { outline: 3px solid #ab7b32; outline-offset: 4px; }
@media (max-width: 900px) {
    .fantasy-theme .hero-grid { grid-template-columns: 1fr; }
    .fantasy-theme .fantasy-hero-art { width: min(460px, 100%); margin: 0 auto; display: block; }
    .fantasy-theme .hero h1 { max-width: 700px; }
}
@media (max-width: 600px) {
    .fantasy-theme .hero-grid { padding-top: 38px; padding-bottom: 34px; }
    .fantasy-theme .hero h1 { font-size: 2.75rem; }
    .fantasy-theme .fantasy-hero-art { width: 86%; }
    .fantasy-theme .hero-actions { flex-direction: column; }
    .fantasy-theme .study-paths, .fantasy-theme .latest-resources, .fantasy-theme .editorial-section { padding: 48px 0; }
    .fantasy-theme .shared-header .main-nav { column-gap: 14px; row-gap: 9px; }
    .fantasy-theme .shared-header .main-nav a { font-size: .78rem; }
    .fantasy-theme .written-hero { padding: 40px 0; }
    .fantasy-theme .written-hero h1 { font-size: 2.25rem; }
}

/* A personal, literary welcome. */
.fantasy-portrait { position: relative; width: min(100%, 420px); margin: 0 auto; border: 1px solid #bca171; padding: 9px; border-radius: 100px 100px 8px 8px; background: #ffffff08; box-shadow: 0 20px 50px #120c2540; }
.fantasy-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 92px 92px 3px 3px; }
.fantasy-portrait figcaption { position: absolute; bottom: 9px; left: 9px; right: 9px; padding: 42px 20px 20px; background: linear-gradient(transparent, #201529ed); color: #f9edd5; text-align: center; font-family: Georgia, serif; font-size: 1.65rem; border-radius: 0 0 3px 3px; }
.fantasy-portrait figcaption span { display: block; margin-top: 7px; font: .8rem/1.5 system-ui, sans-serif; color: #eedec3; }
@media (max-width: 600px) { .fantasy-portrait { width: min(90%, 340px); margin-top: 15px; } }

.academy-collection { padding-block: 48px; }
.fantasy-theme .study-card { display: flex; flex-direction: column; }
.fantasy-theme .study-card > .eyebrow { min-height: 0; margin: 18px 0 6px; color: #775a32; font-size: .66rem; line-height: 1.5; }
.fantasy-theme .study-card > a { margin-top: auto; padding-top: 16px; }

/* Clear actions first; the literary names remain secondary. */
.fantasy-theme .study-card::after { content: none; }
.fantasy-theme .study-card h3 { margin: 0 0 16px; font-size: 1.6rem; }
.fantasy-theme .study-card h3 a { font: inherit; color: var(--primary-dark); }
.fantasy-theme .study-card h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.fantasy-theme .study-card h3 a span { white-space: nowrap; font-size: 1.1rem; }
.fantasy-theme .study-card .fantasy-card-caption { margin: 0 0 16px; font-size: .95rem; }
@media (min-width: 901px) {
    .fantasy-theme .hero-grid { align-items: stretch; }
    .fantasy-portrait { contain: size; align-self: stretch; width: min(100%, 290px); border-radius: 70px 70px 8px 8px; }
    .fantasy-portrait img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-position: center 30%; border-radius: 62px 62px 3px 3px; }
    .fantasy-portrait figcaption { font-size: 1.25rem; padding: 34px 10px 12px; }
    .fantasy-portrait figcaption span { font-size: .7rem; }
}

.fantasy-theme .hero-grid { min-height: 0; }

/* Johanna's homepage: a clear goal and illustrated pathways. */
.hero-objective { margin: 20px 0 0; color: #dec18b; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; }
.fantasy-theme .study-card { padding: 0 0 24px; overflow: hidden; text-align: center; }
.fantasy-theme .study-card h3 { margin: 24px 18px 12px; }
.fantasy-theme .study-card p { margin-inline: 20px; }
.fantasy-theme .study-card .fantasy-card-caption { color: #896322; font-size: 1.05rem; }
/* The four decorative scenes supplied in the document, cropped with CSS.
   The crop excludes the mockup's embedded labels and arrow buttons. */
.study-card-image { width: 100%; aspect-ratio: 260 / 146; flex-shrink: 0; background-image: url("../images/objectifs-johanna-P08QEZL.webp"); background-size: 437.6923% auto; background-repeat: no-repeat; background-position-y: 3.8462%; }
.study-card-image-texts { background-position-x: 0; }
.study-card-image-writing { background-position-x: 32.1185%; }
.study-card-image-speaking { background-position-x: 65.0342%; }
.study-card-image-training { background-position-x: 97.7221%; }

/* About page: reuse the academy's palette and portrait framing. */
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.about-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-page .section-heading { display: block; max-width: 760px; }
.about-page .section-heading .eyebrow { margin-bottom: 14px; }
.about-page .section-heading h2 { margin-bottom: 18px; }
.about-page .section-heading > p:last-child { max-width: 680px; color: var(--text-soft); line-height: 1.8; }
.about-page .resource-type { align-self: flex-start; }
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* Homepage feedback: title grouping and readable credentials. */
.fantasy-theme .home-page .hero h1 .hero-exam {
    display: inline-block;
    margin: 0;
    color: inherit;
    font: inherit;
    white-space: nowrap;
}
.fantasy-theme .home-page .hero-grid { min-height: 400px; padding-block: 38px; }
.home-page .fantasy-portrait figcaption {
    padding: 24px 12px 10px;
    background: linear-gradient(transparent, #241d31ed 55%);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff8e8;
    text-shadow: 0 1px 3px #000;
}
.home-page .hero-teacher {
    margin: 34px 0 0;
    padding-left: 18px;
    border-left: 2px solid #bca171;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #fbf1da;
}
.home-page .hero-teacher strong { color: #eed7a9; font-weight: 700; }
.home-page .knowledge-status { margin-top: auto; color: var(--text-soft); font-size: .9rem; }
.home-page .section-heading p { max-width: 700px; color: var(--text-soft); line-height: 1.7; }
.home-page .home-cta h2 + p { max-width: 650px; line-height: 1.7; }
@media (max-width: 600px) {
    .fantasy-theme .home-page .hero h1 { font-size: clamp(2rem, 8.5vw, 2.75rem); }
    .home-page .fantasy-portrait { display: none; }
    .fantasy-theme .home-page .hero-grid { min-height: 0; }
}
