@font-face {
    font-family: 'ubunturegular';
    src: url('../fonts/Ubuntu-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --green-950: #073c30;
    --green-900: #0a4a39;
    --green-800: #0d5c45;
    --green-700: #147052;
    --green-100: #deeee6;
    --green-50: #eef7f2;
    --cream: #f7f2e7;
    --cream-deep: #ece2ce;
    --gold: #cfa85f;
    --gold-light: #f3ddb0;
    --ink: #17332b;
    --muted: #6d7c75;
    --white: #fff;
    --line: #dfe6df;
    --shadow: 0 20px 60px rgba(5, 52, 40, .10);
    --radius: 24px;
    --serif: 'ubunturegular', sans-serif;
    --sans: 'ubunturegular', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fffdfa; font-family: 'ubunturegular', sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: 'ubunturegular', sans-serif; font-size: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, 100%); }
.section-pad { padding: 86px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -80px; background: var(--white); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 20; background: var(--green-950); color: var(--white); }
.header-flourish { height: 4px; background: linear-gradient(90deg, var(--gold), #f4dfaf 50%, var(--gold)); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.12; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; color: var(--gold-light); }
.brand-mark svg { width: 43px; fill: currentColor; }
.brand strong { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: .01em; }
.brand small { display: block; margin-top: 4px; color: #b9d2c8; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { color: #dcece5; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-light); }
.menu-toggle { width: 44px; height: 44px; display: none; place-items: center; padding: 0; color: var(--white); background: transparent; border: 1px solid #ffffff4d; border-radius: 9px; }
.menu-icon { width: 20px; display: grid; gap: 4px; }
.menu-icon span { display: block; width: 100%; height: 2px; border-radius: 999px; background: currentColor; transition: opacity .2s, transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }

.hero { min-height: 660px; color: var(--white); overflow: hidden; background:
    radial-gradient(circle at 15% 30%, rgba(42, 132, 100, .35), transparent 30%),
    linear-gradient(126deg, var(--green-950) 0%, #0a4d3b 56%, #0e6148 100%); }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--green-700); font-size: 12px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.hero .eyebrow, .surah-hero .eyebrow { color: var(--gold-light); }
.eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.hero h1 { margin: 18px 0 20px; max-width: 720px; font-family: var(--serif); font-size: clamp(48px, 5vw, 76px); font-weight: 500; line-height: 1.07; letter-spacing: -.035em; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-copy > p { max-width: 650px; margin: 0 0 28px; color: #d2e5dd; font-size: 18px; }
.hero-search { width: min(630px, 100%); display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border: 1px solid #ffffff33; border-radius: 15px; background: #ffffff0f; backdrop-filter: blur(10px); }
.hero-search svg { width: 21px; fill: none; stroke: #bdd7ce; stroke-width: 1.7; }
.hero-search input { min-width: 0; color: var(--white); background: transparent; border: 0; outline: 0; }
.hero-search input::placeholder { color: #b9d1c8; }
.hero-search button, .page-search button { color: var(--green-950); background: var(--gold-light); border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 800; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 27px; color: #bdd5cc; font-size: 13px; }
.hero-stats span + span { position: relative; }
.hero-stats span + span::before { content: ''; position: absolute; left: -15px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.hero-stats strong { color: var(--white); }
.hero-art { justify-self: end; width: min(480px, 42vw); min-height: 480px; aspect-ratio: 1; display: grid; place-items: center; padding: 48px 44px; border: 1px solid #ffffff1f; border-radius: 30px; background: #04372c; box-shadow: 0 30px 65px rgba(0, 24, 18, .38), 0 10px 24px rgba(0, 0, 0, .18); }
.hero-daily-content { width: 100%; text-align: center; }
.hero-daily-heading h2 { margin: 0; color: var(--gold-light); font-size: clamp(27px, 2.6vw, 37px); font-weight: 500; line-height: 1.15; }
.hero-daily-heading time { display: block; margin-top: 7px; color: #b9d2c8; font-size: 12px; }
.hero-daily-arabic { margin: 28px 0 15px; color: var(--white); font-size: clamp(27px, 3vw, 39px); line-height: 1.7; }
.hero-daily-transliteration { margin: 0 0 14px; color: #bdd5cc; font-size: 13px; font-style: italic; line-height: 1.55; }
.hero-daily blockquote { margin: 0 auto 22px; color: #eef7f3; font-size: 17px; line-height: 1.55; }
.hero-daily .verse-reference { justify-content: center; font-size: 11px; }
.hero-daily-empty { margin-top: 55px; color: #dcece5; }
.hero-daily-empty strong { color: var(--gold-light); font-size: 18px; }
.hero-daily-empty p { margin: 9px 0 0; font-size: 13px; }

.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin: 8px 0 6px; font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.section-heading p { margin: 0; color: var(--muted); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading time { color: var(--muted); font-size: 14px; }
.text-link { color: var(--green-800); font-weight: 750; font-size: 14px; }
.text-link span { margin-left: 7px; transition: margin .2s; }
.text-link:hover span { margin-left: 12px; }

.arabic-text { margin: 0 0 24px; font-family: 'ubunturegular', sans-serif; font-size: clamp(30px, 3.3vw, 45px); line-height: 2; letter-spacing: .01em; }
.transliteration { color: #7a876f; font-family: var(--serif); font-size: 18px; font-style: italic; }
.verse-reference { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-light); font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.verse-reference span { font-size: 18px; }

.surah-section { background: #fffdfa; }
.surah-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.surah-card { min-height: 104px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: transform .2s, border-color .2s, box-shadow .2s; }
.surah-card:hover { transform: translateY(-2px); border-color: #9abfae; box-shadow: 0 13px 32px #123d2e12; }
.surah-number { position: relative; width: 39px; height: 39px; display: grid; place-items: center; color: var(--green-800); font-weight: 800; font-size: 12px; }
.surah-number::before { content: ''; position: absolute; inset: 2px; border: 1px solid #c5d8cf; transform: rotate(45deg); border-radius: 7px; }
.surah-name strong, .surah-name small { display: block; }
.surah-name strong { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.surah-name small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.surah-arabic { color: var(--green-800); font-family: 'ubunturegular', sans-serif; font-size: 24px; }

.page-hero { padding: 72px 0 64px; text-align: center; background: var(--cream); border-bottom: 1px solid var(--cream-deep); }
.page-hero h1 { margin: 10px 0; font-family: var(--serif); font-size: clamp(44px, 5.5vw, 65px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.page-hero p { max-width: 700px; margin: 14px auto 0; color: var(--muted); font-size: 18px; }
.breadcrumbs { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 28px; color: #7e8a84; font-size: 12px; }
.breadcrumbs a:hover { color: var(--green-800); }
.surah-filter { width: min(540px, 100%); margin: 0 auto 36px; }
.surah-filter label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.surah-filter input { width: 100%; padding: 14px 18px; color: var(--ink); border: 1px solid #ccd9d2; border-radius: 12px; background: var(--white); outline: 0; }
.surah-filter input:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px #14705218; }
.no-filter-results { text-align: center; color: var(--muted); }

.surah-hero { padding: 55px 0 52px; color: var(--white); background: linear-gradient(115deg, var(--green-950), var(--green-800)); }
.breadcrumbs.light { justify-content: flex-start; margin-bottom: 35px; color: #bad3ca; }
.breadcrumbs.light a:hover { color: var(--gold-light); }
.surah-title-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.surah-title-row h1 { margin: 8px 0 7px; font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); font-weight: 500; line-height: 1.1; }
.surah-title-row p { margin: 0; color: #c7dcd4; }
.surah-title-arabic { color: var(--gold-light); font-family: 'ubunturegular', sans-serif; font-size: clamp(60px, 8vw, 96px); line-height: 1; }
.reading-section { background: #f9f7f1; }
.reading-container { width: min(880px, calc(100% - 40px)); }
.reading-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.reading-tools button, .single-verse-top button { color: var(--green-800); border: 1px solid #bfd1c8; border-radius: 9px; background: white; padding: 7px 12px; font-weight: 700; font-size: 12px; }
.verse-list { overflow: hidden; border: 1px solid #e2e2da; border-radius: 18px; background: white; }
.verse-block { display: grid; grid-template-columns: 58px 1fr; gap: 26px; padding: 43px 40px 39px; }
.verse-block + .verse-block { border-top: 1px solid #e7e6df; }
.verse-index span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--green-700); border: 1px solid #c6d8d0; border-radius: 50%; font-family: var(--serif); font-size: 16px; }
.verse-body .arabic-text { color: #153e31; font-size: 35px; }
.translation { color: #344941; font-family: var(--serif); font-size: 18px; line-height: 1.75; }
.verse-detail-link { display: inline-flex; gap: 8px; color: var(--green-700); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.large-reading .verse-body .arabic-text { font-size: 43px; }
.large-reading .translation { font-size: 21px; }

.verse-page-hero { padding-bottom: 52px; }
.single-verse-card { overflow: hidden; padding: 0 52px 52px; border: 1px solid #dce3dd; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.single-verse-top { display: flex; justify-content: space-between; align-items: center; margin: 0 -52px 42px; padding: 15px 24px; color: var(--green-800); border-bottom: 1px solid #e4e9e5; background: #f4f8f5; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.single-verse-card > .arabic-text { padding-bottom: 38px; text-align: center; border-bottom: 1px solid #e6e8e4; font-size: clamp(36px, 5vw, 54px); }
.text-segment { padding-top: 28px; }
.text-segment h2 { margin: 0 0 11px; color: var(--green-800); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.text-segment p { margin: 0; }
.text-segment.tafsir { margin-top: 30px; padding: 30px; border-radius: 14px; background: var(--cream); }
.text-segment.tafsir p { color: #4e5d57; }
.verse-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 24px; }
.verse-pagination > a:not(.all-verses) { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 14px 18px; border: 1px solid #dfe5e0; border-radius: 12px; background: white; }
.verse-pagination > a.next { grid-template-columns: 1fr auto; text-align: right; }
.verse-pagination small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.verse-pagination strong { font-size: 14px; }
.verse-pagination > a > span { grid-row: 1 / 3; }
.verse-pagination .next span { grid-column: 2; }
.all-verses { color: var(--green-700); font-size: 12px; font-weight: 800; }

.search-page-hero { padding-bottom: 45px; }
.page-search { margin: 35px auto 0; text-align: left; }
.page-search label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.page-search > div { display: grid; grid-template-columns: 1fr auto; padding: 7px; border: 1px solid #d4d9d3; border-radius: 13px; background: white; }
.page-search input { min-width: 0; padding: 8px 13px; border: 0; outline: 0; }
.search-summary { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.search-summary h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 500; }
.search-summary span { color: var(--muted); font-size: 13px; }
.search-results { display: grid; gap: 12px; }
.search-results a { display: block; padding: 25px 28px; border: 1px solid #dde5df; border-radius: 15px; background: white; }
.search-results a:hover { border-color: #9bbdac; }
.search-results a > span { color: var(--green-700); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.search-results p { margin: 11px 0 0; color: #43564f; font-family: var(--serif); font-size: 17px; }
.search-results .arabic-snippet { color: var(--green-900); font-family: 'ubunturegular', sans-serif; font-size: 23px; }
.search-suggestions { text-align: center; }
.search-suggestions h2 { font-family: var(--serif); font-weight: 500; }
.search-suggestions div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.search-suggestions a { padding: 8px 15px; color: var(--green-800); border-radius: 999px; background: var(--green-50); font-size: 13px; font-weight: 700; }

.empty-state { padding: 55px 25px; text-align: center; border: 1px dashed #bdcfc6; border-radius: 18px; background: #ffffff80; }
.empty-state h2, .empty-state h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); }
.not-found { min-height: 540px; display: grid; place-items: center; text-align: center; background: var(--cream); }
.error-code { color: var(--gold); font-family: var(--serif); font-size: 90px; line-height: 1; }
.not-found h1 { margin: 15px 0 9px; font-family: var(--serif); font-size: 42px; font-weight: 500; }
.not-found p { color: var(--muted); }
.not-found > .container > div { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; padding: 11px 17px; color: white; border: 1px solid var(--green-800); border-radius: 10px; background: var(--green-800); font-weight: 750; font-size: 13px; }
.button-ghost { color: var(--green-800); background: transparent; }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.notice-success { color: #125136; background: #dff3e8; }
.notice-error { color: #7e2424; background: #fbe5e5; }

.site-footer { padding: 65px 0 22px; color: #c8dcd4; background: var(--green-950); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 70px; }
.brand-footer { color: var(--white); }
.brand-footer small { color: #a8c7bb; }
.footer-grid p { max-width: 430px; color: #9ebbb0; font-size: 13px; }
.footer-grid h2 { margin: 3px 0 17px; color: var(--gold-light); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) a { display: block; margin: 8px 0; font-size: 13px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 20px; color: #789a8e; border-top: 1px solid #ffffff14; font-size: 11px; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 38px; padding: 90px 0; }
    .hero-art { justify-self: center; width: min(520px, 100%); }
    .surah-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .container, .reading-container { width: min(100% - 26px, 1180px); }
    .section-pad { padding: 62px 0; }
    .header-inner { height: 76px; }
    .brand strong { font-size: 21px; }
    .menu-toggle { display: grid; }
    .main-nav { position: absolute; left: 13px; right: 13px; top: 76px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; color: var(--ink); border-radius: 13px; background: white; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { color: var(--ink); padding: 11px 13px; border-radius: 8px; }
    .main-nav a:hover { color: var(--green-800); background: var(--green-50); }
    .hero, .hero-grid { min-height: auto; }
    .hero-grid { gap: 30px; padding: 72px 0; }
    .hero h1 { font-size: 46px; }
    .hero-copy > p { font-size: 16px; }
    .hero-search { grid-template-columns: 20px 1fr; }
    .hero-search button { grid-column: 1 / -1; width: 100%; }
    .hero-stats { gap: 6px 18px; }
    .hero-stats span + span::before { display: none; }
    .split-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .hero-art { width: 100%; min-height: 360px; aspect-ratio: auto; padding: 36px 28px; border-radius: 24px; }
    .hero-daily-content { width: 100%; }
    .hero-daily-arabic { font-size: 29px; }
    .hero-daily blockquote { font-size: 16px; }
    .surah-grid { grid-template-columns: 1fr; }
    .surah-card { min-height: 90px; }
    .page-hero { padding: 55px 0 48px; }
    .page-hero h1 { font-size: 42px; }
    .breadcrumbs { flex-wrap: wrap; margin-bottom: 22px; }
    .surah-title-row { align-items: flex-start; flex-direction: column; }
    .surah-title-arabic { align-self: flex-end; }
    .verse-block { grid-template-columns: 1fr; padding: 32px 23px; gap: 16px; }
    .verse-body .arabic-text { font-size: 31px; }
    .single-verse-card { padding: 0 23px 35px; }
    .single-verse-top { margin: 0 -23px 30px; padding: 13px 16px; }
    .verse-pagination { grid-template-columns: 1fr 1fr; }
    .verse-pagination .all-verses { grid-row: 2; grid-column: 1 / -1; text-align: center; }
    .search-summary { align-items: flex-start; flex-direction: column; gap: 7px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-grid > div:first-child { grid-column: auto; }
}
