@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  font-family: "DM Sans", sans-serif;
  color: #23332d;
  background: #fbfaf6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --forest: #153a32;
  --forest-dark: #102d27;
  --sage: #dce5d8;
  --cream: #fbfaf6;
  --gold: #e9c58b;
  --ink: #23332d;
  --muted: #788079;
  --serif: "DM Serif Display", Georgia, serif;
  --page-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #c38a41;
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(6.5vw, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid #e8e7df;
  background: rgba(251, 250, 246, .96);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.06em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--cream); background: var(--forest); font-family: var(--serif); font-size: 22px; font-weight: 400; }
.brand-dot { color: #a37338; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 42px); color: #4a544d; font-size: 13px; }
.main-nav > a:not(.nav-donate):hover, .text-link:hover, .nav-admin-trigger:hover { color: #a37338; }
.nav-donate { padding: 11px 18px; border-radius: 999px; color: white; background: var(--forest); }
.nav-donate span { padding-left: 7px; color: var(--gold); }
.nav-admin-trigger { padding: 8px 0; border: 0; color: #4a544d; background: transparent; font-size: 12px; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 500px; grid-template-columns: 1.24fr .76fr; align-items: center; overflow: hidden; padding: 70px max(9vw, calc((100vw - 1060px) / 2)) 66px; color: #fff; background: var(--forest); }
.hero-copy { position: relative; z-index: 1; max-width: 670px; }
.eyebrow { margin: 0 0 14px; color: #987542; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; color: #e2c99f; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5.3vw, 67px); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
.hero h1 em, .quote-heading h2 em, .donation-section h2 em, .contact-copy h2 em { color: var(--gold); font-weight: 400; }
.hero-description { max-width: 425px; margin: 20px 0 26px; color: #d2dcd4; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 17px; padding: 0 19px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--forest); background: #fff; }
.button-light span { color: #956d3e; }
.button-dark { color: white; background: var(--forest); }
.button-dark:hover, .nav-donate:hover { background: #285447; }
.text-link { font-size: 12px; }
.hero-link { color: #e3e8e2; }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 32px; color: #b7c8bd; font-size: 11px; }
.avatar-stack { display: flex; padding-left: 4px; }
.avatar-stack i { display: grid; width: 23px; height: 23px; place-items: center; margin-left: -4px; border: 2px solid var(--forest); border-radius: 50%; color: var(--forest); background: var(--gold); font-size: 10px; font-style: normal; }
.avatar-stack i:nth-child(2) { background: #ded8b9; }
.avatar-stack i:nth-child(3) { background: #c4d2bc; }
.verse-feature { position: relative; z-index: 1; width: min(100%, 300px); justify-self: end; padding: 29px 27px 28px; border: 1px solid #668076; border-radius: 3px; background: rgba(255,255,255,.035); }
.verse-ornament { height: 38px; color: var(--gold); font-family: var(--serif); font-size: 73px; line-height: 1; }
.verse-label, .verse-reference { color: #c2cfc5; font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.verse-feature blockquote { margin: 19px 0; font-family: var(--serif); font-size: 24px; line-height: 1.42; }
.verse-reference { margin-bottom: 0; color: var(--gold); font-size: 9px; }
.verse-flower { position: absolute; right: 20px; bottom: 17px; color: #879d83; font-size: 26px; }
.hero-sun { position: absolute; top: -240px; right: 16%; width: 490px; height: 490px; border: 1px solid rgba(218,202,163,.10); border-radius: 50%; pointer-events: none; }
.hero-sun::after { position: absolute; inset: 30px; border: 1px solid rgba(218,202,163,.08); border-radius: 50%; content: ""; }

.daily-strip { display: flex; min-height: 70px; align-items: center; justify-content: center; gap: clamp(28px, 9vw, 125px); border-bottom: 1px solid #e9e7de; color: #646d65; font-size: 11px; }
.daily-strip i { margin-right: 9px; color: #a57944; font-size: 9px; font-style: normal; font-weight: 700; }
.section { max-width: var(--page-width); margin: 0 auto; padding: 92px 28px; }
.admin-section { max-width: var(--page-width); margin: 0 auto; padding: 46px 28px; border-bottom: 1px solid #e8e7df; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-heading .eyebrow { margin-bottom: 7px; }
.admin-heading h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 400; }
.admin-close { padding: 9px 13px; border: 1px solid #dfe2d9; color: #59645b; background: transparent; font-size: 11px; }
.admin-warning { max-width: 860px; margin: 15px 0 20px; padding: 12px 14px; border-left: 3px solid #bd8c50; color: #6e6c5e; background: #f2efe4; font-size: 10px; line-height: 1.7; }
.admin-warning strong { color: #6d4d2d; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-tab { min-height: 38px; padding: 0 14px; border: 1px solid #dfe2d9; color: #58645a; background: white; font-size: 10px; font-weight: 600; }
.admin-tab[aria-pressed="true"] { border-color: var(--forest); color: white; background: var(--forest); }
.admin-form { max-width: 860px; padding: 22px; border: 1px solid #e7e7df; background: #fff; }
.admin-form h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.admin-fields label { display: grid; gap: 6px; color: #667068; font-size: 10px; font-weight: 700; }
.admin-fields .field-wide { grid-column: 1 / -1; }
.admin-fields input, .admin-fields textarea { width: 100%; padding: 11px 12px; border: 1px solid #e6e5dc; border-radius: 2px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; font-weight: 400; resize: vertical; }
.admin-feedback { max-width: 860px; margin: 13px 0 0; color: #536e55; font-size: 11px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 35px; }
.section-heading h2, .quote-heading h2, .contact-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 44px); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }
.section-intro { max-width: 355px; margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.study-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.study-card { overflow: hidden; border: 1px solid #e8e9e0; border-radius: 4px; background: #f0f3ed; }
.study-sand { background: #f3efe6; }
.study-rose { background: #f2ece6; }
.study-card summary { position: relative; display: flex; min-height: 252px; flex-direction: column; padding: 24px; cursor: pointer; list-style: none; }
.study-card summary::-webkit-details-marker { display: none; }
.study-number { color: #7b897c; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.study-symbol { position: absolute; top: 50px; right: 24px; color: #748970; font-size: 24px; }
.study-card h3 { margin: 43px 0 9px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.study-summary { max-width: 260px; color: #687169; font-size: 11px; line-height: 1.7; }
.card-open { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; color: var(--forest); font-size: 10px; font-weight: 700; }
.card-open b { color: #9c7445; font-size: 15px; font-weight: 400; transition: transform .2s ease; }
.study-card[open] .card-open b { transform: rotate(45deg); }
.study-content { padding: 0 24px 23px; color: #59645b; font-size: 11px; line-height: 1.8; }
.study-content p { margin: 0 0 10px; }
.study-content p:last-child { margin-bottom: 0; }
.study-content strong { color: var(--forest); }
.custom-study-delete { margin-top: 11px; padding: 7px 10px; border: 1px solid #e5d7cf; color: #915e4a; background: #fff; font-size: 9px; }

.quote-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 9%; padding: 79px max(9vw, calc((100vw - 1000px) / 2)); color: var(--ink); background: #f0f1e9; }
.quote-heading h2 { font-size: clamp(37px, 4.2vw, 49px); }
.quote-heading h2 em { color: #8d744c; }
.quote-heading > p:last-child { max-width: 300px; margin: 18px 0 0; color: #70776e; font-size: 12px; line-height: 1.8; }
.quote-panel { padding: 25px 28px; background: var(--cream); box-shadow: 0 8px 26px #26362a0d; }
.quote-topline, .library-heading { display: flex; align-items: center; justify-content: space-between; }
.quote-topline { padding-bottom: 14px; border-bottom: 1px solid #e9e7de; color: #7f897c; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.quote-count, .library-count { color: #9b7545; font-size: 9px; letter-spacing: .1em; }
.daily-phrase { margin: 0 0 16px; padding: 16px; border-left: 2px solid #ba925d; background: #f4f1e8; }
.daily-phrase-label { color: #8d744c; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.daily-phrase blockquote { margin: 9px 0 6px; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.daily-phrase cite { color: #858579; font-size: 9px; font-style: normal; }
.quote-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px 0; border-bottom: 1px solid #eeece4; }
.quote-item blockquote { grid-column: 1; margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.quote-item cite { grid-column: 1; color: #8a8b7e; font-size: 9px; font-style: normal; }
.quote-item button { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 8px; border: 0; color: #668075; background: transparent; font-size: 10px; }
.quote-item button:hover { color: #9b6436; }
.add-quote-form { display: grid; gap: 9px; margin-top: 17px; }
.add-quote-form label, .upload-card label:not(.file-picker), .contact-form label { color: #667068; font-size: 10px; font-weight: 700; }
.add-quote-form textarea, .add-quote-form input, .upload-card input:not([type=file]), .contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #e6e5dc; border-radius: 2px; color: var(--ink); background: #fff; font-size: 11px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.form-row .button { min-height: 38px; padding: 0 14px; font-size: 10px; }
.local-note { margin: 12px 0 0; color: #96978d; font-size: 9px; line-height: 1.6; }

.video-section { padding-top: 88px; padding-bottom: 97px; }
.video-layout { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: start; }
.upload-card { padding: 25px 23px; border: 1px solid #e8e7df; background: #f3f2eb; }
.upload-icon { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 17px; border: 1px solid #c7d0c4; border-radius: 50%; color: var(--forest); font-size: 20px; }
.upload-card h3, .library-heading h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.upload-card > p:not(.local-note) { margin: 0 0 20px; color: #737a71; font-size: 10px; line-height: 1.7; }
.upload-card form { display: grid; gap: 9px; }
.file-picker { display: flex; min-height: 41px; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #9eab9c; color: var(--forest); background: #fbfaf6; font-size: 10px; font-weight: 700; cursor: pointer; }
.file-picker:hover { background: #eef1e8; }
.file-picker span { color: #987542; font-size: 17px; }
.file-name { overflow: hidden; color: #85877e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.upload-button { min-height: 40px; margin-top: 3px; border-radius: 2px; font-size: 10px; }
.upload-card .local-note { margin-top: 14px; }
.video-library { min-width: 0; }
.library-heading { margin: 5px 0 19px; }
.library-heading .eyebrow { margin-bottom: 6px; }
.library-heading h3 { margin: 0; font-size: 23px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.video-card { overflow: hidden; border: 1px solid #e7e7df; background: #fff; }
.video-card video { display: block; width: 100%; max-height: 210px; aspect-ratio: 16 / 9; background: #18251f; object-fit: contain; }
.video-card-info { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 12px; }
.video-card-info h4 { margin: 0; font-family: var(--serif); font-size: 15px; font-weight: 400; }
.video-card-info small { display: block; margin-top: 4px; color: #888b82; font-size: 9px; }
.delete-video { padding: 4px 5px; border: 0; color: #97755a; background: transparent; font-size: 10px; }
.empty-videos { display: grid; min-height: 190px; place-items: center; margin: 0; border: 1px dashed #d9dacf; color: #92958b; font-size: 11px; text-align: center; }
.storage-message { margin: 12px 0 0; color: #966032; font-size: 11px; }

.donation-section { position: relative; overflow: hidden; padding: 72px 22px 65px; color: white; background: var(--forest); text-align: center; }
.donation-sun { position: absolute; top: -42px; right: calc(50% - 260px); color: rgba(231,203,156,.16); font-size: 200px; pointer-events: none; }
.donation-section > *:not(.donation-sun) { position: relative; z-index: 1; }
.donation-section .eyebrow { color: var(--gold); }
.donation-section h2 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4.5vw, 52px); font-weight: 400; line-height: 1.13; }
.donation-section > p:not(.eyebrow) { max-width: 395px; margin: 15px auto 23px; color: #c4d0c7; font-size: 11px; line-height: 1.8; }
.donation-section .button { min-width: 165px; }
.donation-caption { display: block; margin-top: 14px; color: #9eafa3; font-size: 9px; }
.donation-note { display: block; margin-top: 12px; color: var(--gold); font-size: 11px; }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; padding-top: 85px; padding-bottom: 86px; }
.contact-copy { position: relative; overflow: hidden; }
.contact-copy h2 { font-size: 46px; }
.contact-copy h2 em { color: #8d744c; }
.contact-copy > p:not(.eyebrow) { max-width: 315px; margin: 17px 0; color: #788079; font-size: 12px; line-height: 1.8; }
.contact-decoration { margin-top: 26px; color: #b6c1ae; font-size: 50px; }
.contact-form { display: grid; align-content: start; gap: 9px; }
.contact-form label:not(:first-child) { margin-top: 8px; }
.contact-form input, .contact-form textarea { padding: 12px; }
.contact-form .button { justify-self: start; min-height: 41px; margin-top: 7px; border-radius: 2px; font-size: 10px; }
.form-feedback { margin: 0; color: #9a5d33; font-size: 10px; line-height: 1.6; }

.site-footer { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: center; gap: 15px; padding: 24px max(6.5vw, calc((100vw - var(--page-width)) / 2)); border-top: 1px solid #e8e7df; }
.footer-brand { font-size: 17px; }
.footer-brand .brand-mark { width: 29px; height: 29px; font-size: 19px; }
.site-footer > p, .back-top { margin: 0; color: #81857c; font-size: 10px; }
.back-top { justify-self: end; color: var(--forest); }
.site-footer > small { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #e9e8e1; color: #a0a096; font-size: 9px; }
.toast { position: fixed; z-index: 50; right: 20px; bottom: 20px; max-width: min(400px, calc(100vw - 40px)); padding: 13px 17px; border-radius: 3px; color: white; background: var(--forest-dark); box-shadow: 0 7px 25px #0002; font-size: 11px; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (min-width: 1450px) {
  .hero { padding-right: calc((100vw - 1060px) / 2); padding-left: calc((100vw - 1060px) / 2); }
}
@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 22px; }
  .menu-toggle { display: grid; width: 40px; height: 40px; align-content: center; justify-items: center; gap: 6px; border: 0; border-radius: 50%; background: #eef0e9; }
  .menu-toggle span { width: 17px; height: 1px; background: var(--forest); transition: transform .18s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: absolute; top: 65px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 22px 18px; border-bottom: 1px solid #e8e7df; background: var(--cream); }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav > a { padding: 13px 5px; }
  .main-nav .nav-donate { align-self: start; margin-top: 4px; padding: 11px 17px; }
  .main-nav .nav-admin-trigger { align-self: start; margin-top: 5px; padding: 10px 5px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding: 62px 26px 52px; }
  .hero h1 { font-size: clamp(42px, 10vw, 59px); }
  .verse-feature { width: min(100%, 390px); justify-self: start; }
  .hero-sun { top: -215px; right: -210px; }
  .daily-strip { min-height: 66px; flex-wrap: wrap; gap: 12px 24px; padding: 17px 15px; font-size: 10px; }
  .daily-strip i { margin-right: 4px; }
  .section { padding: 67px 23px; }
  .admin-section { padding: 38px 23px; }
  .admin-heading h2 { font-size: 28px; }
  .admin-form { padding: 17px; }
  .admin-fields { grid-template-columns: 1fr; }
  .admin-fields .field-wide { grid-column: auto; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-intro { margin-top: 12px; }
  .study-grid { grid-template-columns: 1fr; gap: 12px; }
  .study-card summary { min-height: 220px; }
  .quote-section { grid-template-columns: 1fr; gap: 30px; padding: 65px 23px; }
  .video-layout { grid-template-columns: 1fr; gap: 30px; }
  .upload-card { max-width: 480px; }
  .video-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { grid-template-columns: 1fr auto; padding: 23px; }
  .site-footer > p { grid-column: 1 / -1; grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1; }
  .site-footer > small { grid-row: 3; }
}
@media (max-width: 400px) {
  .hero-actions { align-items: start; flex-direction: column; gap: 16px; }
  .daily-strip { justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
