
:root {
  --header-height: 80px;
  --bg: #f8f5ee;
  --bg-subtle: #eee8dd;
  --bg-surface: #fffdf8;
  --bg-surface-elevated: #fffdf8;
  --text-primary: #282420;
  --text-secondary: #6a6259;
  --text-tertiary: #807467;
  --border: rgba(73, 48, 30, .12);
  --border-strong: rgba(73, 48, 30, .22);
  --brand: #8d343d;
  --brand-dark: #6c2530;
  --font-editorial: var(--font-sans);
  --font-serif: var(--font-sans);
}
[data-theme="dark"] {
  --bg: #171514;
  --bg-subtle: #25201d;
  --bg-surface: #211d1b;
  --bg-surface-elevated: #28221f;
  --text-primary: #f5eee3;
  --text-secondary: #c0b2a4;
  --text-tertiary: #a79787;
  --border: rgba(244, 228, 210, .13);
  --border-strong: rgba(244, 228, 210, .24);
  --brand: #e09091;
  --brand-dark: #ecaaaa;
}
[hidden], .bento-card[hidden] { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 2000; padding: .75rem 1rem; background: var(--bg); border: 2px solid var(--brand); border-radius: 6px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; }
section[id], main[id] { scroll-margin-top: 90px; }
.header, .header.scrolled, [data-theme="dark"] .header, [data-theme="dark"] .header.scrolled {
  background: #ffffff;
  border-bottom: 1px solid #e9e5df;
  --text-primary: #282420;
  --text-secondary: #6a6259;
  --text-tertiary: #807467;
  --bg-surface: #ffffff;
  --brand: #8d343d;
  --border: rgba(73, 48, 30, .12);
}
.header-container { min-height: 80px; }
.logo-name { font-size: 1.55rem; letter-spacing: -.06em; }
.header .logo { gap: .6rem; }
.header .logo-name { font-size: 1.4rem; }
.header .logo-icon-wrapper, .header .logo:hover .logo-icon-wrapper { width: 32px; height: 32px; background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.header .logo-img { width: 30px; height: 30px; }
.nav { gap: 1.7rem; }
.nav a { font-size: .79rem; }
.btn { min-height: 52px; border-radius: 6px; gap: 1.3rem; }
.btn-primary { background: #8d343d; color: #fff8ef; box-shadow: none; }
.btn-primary:hover { background: #6c2530; box-shadow: 0 6px 18px rgba(108, 37, 48, .15); }
.btn-header { background: #8d343d; color: #fff8ef; min-height: 40px; padding-inline: 1.15rem; font-size: .75rem; }
.btn-header:hover { background: #6c2530; color: #fff; }
.btn-secondary { background: transparent; border-color: var(--border-strong); }
.hero { min-height: auto; padding: 106px 0 0; }
.hero-grid { grid-template-columns: 1.13fr .87fr; gap: 2.5rem; margin-bottom: 3rem; min-height: 510px; }
.hero-copy { max-width: 650px; padding-bottom: 1rem; }
.editorial-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; color: var(--brand); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.editorial-eyebrow::before { content: ''; width: 23px; height: 2px; background: currentColor; }
.coming-soon-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px var(--brand-soft); }
.hero-title { font-size: clamp(4rem, 7vw, 6.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.075em; margin-bottom: 2.2rem; }
.hero-title-accent { margin-top: .16em; gap: .17em; }
.hero-title-ending { position: relative; display: inline-block; font-family: var(--font-sans); font-style: normal; font-weight: 600; font-size: .95em; letter-spacing: -.075em; color: var(--brand); padding-bottom: .07em; }
.hero-title-ending::after { content: ''; position: absolute; left: .03em; right: .05em; bottom: 0; height: .045em; background: var(--brand); transform: scaleX(0) rotate(-3deg); transform-origin: left; transition: transform .7s .6s cubic-bezier(.16,1,.3,1); }
.hero-title.visible .hero-title-ending::after { transform: scaleX(1) rotate(-3deg); }
.hero-title-period { color: var(--text-primary); }
.highlight-yellow { padding: .07em .23em .12em; border-radius: 5px; background: #f5c518; min-width: 3.5em; font-size: .81em; box-shadow: 5px 6px 0 var(--brand); }
.highlight-yellow,
.translation-container:hover .highlight-yellow,
.translation-container:focus .highlight-yellow,
[data-theme="dark"] .highlight-yellow,
[data-theme="dark"] .translation-container:hover .highlight-yellow,
[data-theme="dark"] .translation-container:focus .highlight-yellow { background: #f5c518; color: #111111; }
.hero .lead { max-width: 465px; font-size: 1rem; line-height: 1.85; margin-bottom: 1.9rem; }
.hero-cta-group { gap: 1.5rem; margin-bottom: 2rem; align-items: center; }
.hero .btn-primary { border-radius: 999px; padding: .8rem 1rem .8rem 1.5rem; gap: 1.5rem; }
.hero .btn-primary .btn-arrow { width: 29px; height: 29px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hero .btn-secondary { min-height: 44px; padding: .5rem 0; border: 0; border-radius: 0; gap: .6rem; font-size: .8rem; box-shadow: none; color: var(--brand); }
.hero .btn-secondary:hover { background: transparent; color: var(--text-primary); }
.hero-meta { padding-top: 1.4rem; padding-bottom: 0; margin-bottom: 0; border-top: 1px solid var(--border-strong); border-bottom: 0; max-width: 445px; gap: .85rem; }
.reader-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--brand); flex-shrink: 0; }
.meta-text { font-size: .76rem; }
.star-label { font-size: .68rem; margin-top: .2rem; }
.book-gallery { flex-direction: column; padding-top: 2rem; gap: 1rem; }
.gallery-frame { position: absolute; inset: .5rem .6rem 5.8rem; border: 1px solid var(--border-strong); border-radius: 12px; pointer-events: none; }
.gallery-frame::before, .gallery-frame::after { content: ''; position: absolute; width: 32px; height: 32px; border-color: var(--brand); border-style: solid; }
.gallery-frame::before { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 12px; }
.gallery-frame::after { right: -1px; top: -1px; border-width: 2px 2px 0 0; border-radius: 0 12px 0 0; }
.gallery-frame-label { position: absolute; left: 18px; top: -.6em; background: var(--bg); padding: 0 .65rem; font-size: .58rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.gallery-frame-star { position: absolute; right: 28px; top: -18px; background: var(--bg); padding: 0 .35rem; color: var(--brand); font-size: 1.8rem; line-height: 1; }
.book-gallery .hero-books-showcase { z-index: 1; }
.book-gallery-footer { position: relative; z-index: 4; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .65rem 0; }
.gallery-caption { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.gallery-kicker { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
.gallery-book-title { font-size: .88rem; font-weight: 500; color: var(--text-primary); }
.gallery-book-title[lang="am"] { font-family: var(--font-amharic); font-size: .8rem; }
.gallery-controls { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.gallery-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--brand); background: var(--bg-surface); transition: background-color .2s, color .2s, border-color .2s; }
.gallery-arrow:hover { color: #fff8ef; background: #8d343d; border-color: #8d343d; }
.gallery-counter { font-size: .64rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.hero-ribbon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 0; border-top: 1px solid var(--border-strong); background: transparent; border-radius: 0; box-shadow: none; padding: 1.45rem 0; margin: 0; overflow: visible; }
.ribbon-sep { display: none; }
.hero-ribbon-item { border-radius: 0; min-height: 40px; justify-content: center; white-space: normal; text-align: left; font-size: .69rem; padding: .3rem 1rem; gap: .7rem; line-height: 1.5; border-right: 1px solid var(--border-strong); }
.hero-ribbon-item:first-child { padding-left: 0; justify-content: flex-start; }
.hero-ribbon-item:last-child { border-right: 0; padding-right: 0; }
.hero-ribbon-item:hover { background: transparent; color: var(--brand); }
.ribbon-svg { width: 18px; height: 18px; }
.section { padding-block: clamp(5rem, 8vw, 7rem); }
.section-tag { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1.2rem; }
.section-title, .split-label h2, .notify-title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(2.8rem, 4.8vw, 4.3rem); letter-spacing: -.045em; line-height: 1.1; }
.section-desc { font-size: .96rem; line-height: 1.8; }
.section-about { background: #582830; --text-primary: #fff1dd; --text-secondary: #e0c8bf; --text-tertiary: #d5b7ae; --brand: #e9bf67; --brand-dark: #ffe0a0; --brand-light: #ffe0a0; --border: rgba(255, 235, 212, .17); }
.split { grid-template-columns: 1fr 1fr; gap: 5rem; }
.split-label h2 { max-width: 450px; }
.split-body { gap: 1rem; }
.split-body .lead-split { font-size: 1.1rem; color: var(--text-primary); font-weight: 400; line-height: 1.75; }
.split-body p { font-size: .9rem; }
.metrics-grid { gap: 1.6rem; padding-top: 1.6rem; margin-top: .7rem; }
.metric-num { font-family: var(--font-sans); font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 500; font-style: normal; }
.metric-desc { font-size: .72rem; line-height: 1.6; }
.platform-section .section-head-flex { align-items: flex-start; margin-bottom: 2.8rem; }
.platform-section .section-title { max-width: 560px; }
.category-filters { align-self: flex-end; border: 1px solid var(--border-strong); border-radius: 6px; padding: .3rem; gap: .15rem; background: transparent; }
.filter-btn { padding: .65rem .8rem; font-size: .7rem; border-radius: 3px; }
.filter-btn.active { background: #8d343d; color: #fff8ef; box-shadow: none; }
.bento-grid { gap: 1.4rem; }
.bento-card, .research-card { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: none; }
.bento-card:hover, .research-card:hover { border-color: var(--brand); box-shadow: 0 14px 28px rgba(66, 43, 24, .07); transform: translateY(-5px); }
.bento-badge { top: .8rem; left: .9rem; border: 0; background: var(--bg-surface); border-radius: 3px; font-size: .59rem; padding: .35rem .5rem; }
.bento-content { padding: 1.6rem; }
.bento-index { font-size: .61rem; letter-spacing: .1em; font-weight: 500; }
.bento-content h3 { font-family: var(--font-sans); font-size: 1.5rem; line-height: 1.25; font-weight: 500; margin: .35rem 0 .9rem; }
.bento-content p { font-size: .8rem; line-height: 1.8; }
.bento-tag-list { gap: .4rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.bento-tag-list span { background: transparent; padding: .1rem 0; color: var(--text-secondary); border: 0; border-radius: 0; font-size: .59rem; }
.bento-tag-list span + span::before { content: '·'; padding-right: .4rem; color: var(--brand); }
.research-section { background: var(--bg-subtle); }
.research-section .section-head { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; margin-bottom: 2.8rem; }
.research-section .section-title { font-size: clamp(2.3rem, 3.9vw, 3.5rem); margin-bottom: 0; line-height: 1.13; }
.research-intro-copy { padding-bottom: .15rem; }
.research-intro-copy .section-desc { font-size: .9rem; line-height: 1.85; }
.research-section .research-grid { margin-top: 0; gap: 1.6rem; }
.research-section .research-card { border-radius: 12px; border-color: var(--border-strong); }
.research-content { padding: 1.9rem 1.7rem 1.5rem; }
.research-content h3 { font-family: var(--font-sans); font-size: clamp(1.45rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; margin: .35rem 0 1rem; }
.research-content p { font-size: .87rem; line-height: 1.85; margin-bottom: 1.7rem; }
.research-meta-tags { flex-wrap: wrap; gap: .45rem; padding-top: .5rem; }
.research-meta-tags span { font-size: .62rem; padding: .4rem .6rem; border: 1px solid var(--border); color: var(--text-secondary); background: transparent; border-radius: 4px; }
.card-pill { font-size: .6rem; letter-spacing: .08em; }
.notify-section { padding-block: 6rem; }
.notify-card { background: #582830; padding: 3.5rem; border: 0; border-radius: 12px; box-shadow: none; gap: 3rem; align-items: center; }
.notify-card::after { display: none; }
.notify-copy { --text-primary: #fff1dd; --text-secondary: #e0c8bf; --brand: #e9bf67; --border: rgba(255,235,212,.16); }
.notify-title { font-size: clamp(3rem, 4.5vw, 4.2rem); max-width: 400px; }
.notify-desc { font-size: .94rem; margin-bottom: 1.8rem; }
.notify-copy .status-badge { background: transparent; border: 1px solid rgba(255,235,212,.25); color: #f1d9c3; box-shadow: none; padding: .4rem .7rem; font-size: .63rem; }
.notify-copy .status-pulse { background: #e9bf67; box-shadow: none; animation: none; width: 5px; height: 5px; }
.notify-perks-grid { gap: 1.4rem 1rem; }
.perk-item { padding: 0; border: 0; border-radius: 0; background: transparent; }
.perk-header { align-items: flex-start; gap: .6rem; }
.perk-bullet { width: auto; height: auto; color: #e9bf67; background: transparent; font-family: var(--font-editorial); font-size: 1.1rem; line-height: 1; }
.perk-label { font-size: .75rem; font-weight: 500; }
.perk-item p { font-size: .73rem; line-height: 1.7; padding-left: 1.7rem; }
.form-card-inner { border: 0; border-radius: 8px; background: var(--bg-surface); padding: 2rem; box-shadow: 0 8px 32px rgba(25, 7, 11, .1); }
.form-card-header { display: block; margin-bottom: 1.5rem; padding-bottom: 1.2rem; }
.form-card-kicker { font-size: .6rem; letter-spacing: .12em; }
.form-card-title { font-family: var(--font-sans); font-size: 1.6rem; font-weight: 500; margin-top: .45rem; }
.cohort-status-pill { display: inline-flex; margin-top: .75rem; padding: 0; border: 0; background: transparent; font-size: .6rem; }
.interest-heading { font-size: .73rem; margin-bottom: .85rem; }
.interest-chip { background: transparent; border-color: var(--border-strong); border-radius: 4px; font-size: .68rem; padding: .5rem .7rem; }
.interest-chip.active { background: #8d343d; border-color: #8d343d; color: #fff8ef; }
.email-label { font-size: .7rem; font-weight: 500; }
.form input[type="email"] { background: var(--bg); border-radius: 5px; font-size: .8rem; }
.btn-submit { min-height: 50px; font-size: .8rem; }
.signup-note { font-size: .65rem; color: var(--text-secondary); line-height: 1.7; }
.form-msg { font-size: .78rem; }
.footer { background: var(--bg); padding: 4rem 0 1.5rem; }
.footer-top { border-bottom: 0; margin-bottom: 0; padding-bottom: 2.5rem; }
.footer-tagline { font-size: .84rem; line-height: 1.8; }
.footer-col a { font-size: .78rem; }
.footer-locale, .hotkey-tip { font-size: .68rem; }
.footer-bottom { font-size: .68rem; padding-top: 1.5rem; border-top: 1px solid var(--border-strong); }
.translation-container.show-english .word-amharic { opacity: 0; transform: translateY(-12px); }
.translation-container.show-english .word-english { opacity: 1; transform: translateY(0); }
.translation-container:not(.show-english):focus:not(:hover) .word-amharic { opacity: 1; transform: translateY(0); }
.translation-container:not(.show-english):focus:not(:hover) .word-english { opacity: 0; transform: translateY(12px); }
@media (max-width: 1100px) {
  .nav { gap: 1rem; }
  .nav a { font-size: .7rem; }
  .hero-title { font-size: clamp(3.6rem, 6.9vw, 4.6rem); }
  .hero-grid { gap: 2rem; }
  .split { gap: 3rem; }
  .notify-card { padding: 2.5rem; gap: 2rem; }
}
@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; align-items: center; min-height: 0; }
  .hero-visual-wrapper { order: 1; width: 100%; max-width: 480px; margin: 0 auto; }
  .book-gallery .hero-books-showcase { margin-bottom: 0; }
  .hero-title { font-size: clamp(3.5rem, 9vw, 5.5rem); }
  .hero-copy { min-width: 0; }
  .hero .lead { font-size: .87rem; }
  .hero-cta-group { flex-direction: row; align-items: center; gap: 1.5rem; }
  .hero-ribbon-item { font-size: .6rem; padding-inline: .6rem; gap: .4rem; }
  .ribbon-svg { width: 15px; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-label h2 { max-width: 600px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
  .research-section .section-head { grid-template-columns: 1fr; gap: 1.4rem; }
  .research-intro-copy { max-width: 600px; }
  .notify-card { grid-template-columns: 1fr; padding: 3rem; gap: 2.5rem; }
  .notify-title { max-width: 600px; }
}
@media (max-width: 768px) {
  :root { --header-height: 66px; }
  .header-container { min-height: 66px; }
  .header .logo-name { font-size: 1.35rem; }
  .hero { padding-top: 94px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2rem; }
  .hero-copy { max-width: 550px; }
  .hero-title { font-size: clamp(3.1rem, 10.5vw, 4.6rem); }
  .hero-title-accent { align-items: center; gap: .17em; flex-wrap: nowrap; }
  .hero .lead { font-size: .98rem; }
  .hero-cta-group { display: flex; flex-direction: row; }
  .hero-cta-group .btn { width: auto; flex: none; font-size: .78rem; }
  .hero-meta { margin-bottom: 0; }
  .hero-ribbon { display: flex; overflow-x: auto; gap: 0; padding: 1rem 0; }
  .hero-ribbon-item { min-width: 155px; font-size: .65rem; white-space: normal; padding: .3rem 1rem; }
  .hero-ribbon-item:last-child { padding-right: .5rem; }
  .section { padding-block: 4rem; }
  .section-title, .split-label h2 { font-size: 3rem; }
  .section-head-flex { gap: 1.5rem; }
  .category-filters { flex-wrap: wrap; }
  .notify-card { padding: 2.2rem; }
  .notify-title { font-size: 3.3rem; }
  .form input[type="email"] { font-size: 16px; }
}
@media (max-width: 540px) {
  .editorial-eyebrow { font-size: .59rem; margin-bottom: 1.5rem; }
  .hero-title { font-size: clamp(2.9rem, 11.4vw, 3.8rem); }
  .hero .lead { font-size: .9rem; }
  .hero-cta-group { flex-direction: column; align-items: stretch; gap: .8rem; }
  .hero-cta-group .btn { width: 100%; flex: auto; }
  .hero .btn-secondary { min-height: 40px; }
  .highlight-yellow { box-shadow: 3px 4px 0 var(--brand); }
  .book-gallery { gap: .6rem; }
  .gallery-frame { inset-inline: 0; bottom: 5rem; }
  .book-gallery-footer { padding-inline: 0; gap: .5rem; }
  .gallery-book-title { font-size: .8rem; }
  .gallery-kicker { font-size: .5rem; }
  .gallery-controls { gap: .3rem; }
  .gallery-arrow { width: 38px; height: 38px; }
  .gallery-counter { font-size: .58rem; }
  .metrics-grid { gap: 1rem; }
  .metric-num { font-size: clamp(1.1rem, 4.9vw, 1.5rem); }
  .metric-desc { font-size: .65rem; }
  .bento-grid, .research-grid { grid-template-columns: 1fr; }
  .bento-content { padding: 1.5rem; }
  .bento-content h3 { font-size: 1.5rem; }
  .bento-content p { font-size: .85rem; }
  .filter-btn { font-size: .63rem; padding: .6rem .65rem; }
  .research-section .section-head { margin-bottom: 2rem; }
  .research-section .section-title { font-size: 2.25rem; }
  .research-content { padding: 1.5rem 1.3rem; }
  .research-content h3 { font-size: 1.5rem; }
  .research-content p { font-size: .85rem; }
  .notify-card { padding: 1.8rem 1.15rem; border-radius: 8px; }
  .notify-title { font-size: 3rem; }
  .notify-perks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .75rem; }
  .perk-label { font-size: .7rem; }
  .perk-item p { padding-left: 0; font-size: .69rem; }
  .form-card-inner { padding: 1.4rem 1.1rem; }
  .form-card-title { font-size: 1.5rem; }
  .footer-top { gap: 2rem; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-card:hover, .research-card:hover { transform: none; }
  .hero-title-ending::after { transform: scaleX(1) rotate(-3deg); transition: none; }
}
