*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --bg:#efe8db;
  --bg-soft:#f7f1e6;
  --card:#fffaf1;
  --card-strong:#f2e8d8;
  --text:#352a20;
  --muted:#685848;
  --line:#d9c9ae;
  --olive:#73856b;
  --olive-dark:#55634f;
  --gold:#b7935f;
  --shadow:0 18px 50px rgba(45,33,22,.12);
}

html { scroll-behavior:smooth; text-rendering:auto; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:"Segoe UI", Tahoma, Geneva, Verdana, Arial, sans-serif;
  font-smooth:auto;
  -webkit-font-smoothing:auto;
  -moz-osx-font-smoothing:auto;
  text-rendering:auto;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.45), transparent 28%),
    linear-gradient(180deg,#d8ccb7 0%, #efe8db 8%, #f6f0e7 100%);
  color:var(--text);
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
button,input,textarea{ font:inherit; }

.container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.page-shell{ min-height:100vh; }

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(12px);
  background:rgba(245,237,223,.72);
  border-bottom:1px solid rgba(124,103,76,.12);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:78px;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}
.brand strong{
  display:block;
  font-family:Cambria, Georgia, "Times New Roman", serif;
  font-size:2rem;
  line-height:1;
}
.brand small{
  display:block;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.66rem;
  margin-top:2px;
}
.brand-mark{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(180deg, var(--gold), #8d724c);
  color:#fff;
  box-shadow:var(--shadow);
}
.nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}
.nav-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
}
.nav-links a:hover{ color:var(--text); }

.hero{
  position:relative;
  overflow:hidden;
  padding:48px 0 0;
  background:
    linear-gradient(180deg, rgba(103,84,58,.70), rgba(72,59,44,.35) 28%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, #b89a73 0%, #e0d4bf 32%, #f3ede3 72%, #efe8db 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:34px;
  align-items:center;
  min-height:clamp(620px, 80vh, 860px);
}
.eyebrow{
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.72rem;
  color:#7d6548;
  font-weight:700;
  margin:0 0 10px;
}
h1,h2,h3,h4{
  font-family:Cambria, Georgia, "Times New Roman", serif;
  line-height:.95;
  margin:0;
}
h1{
  font-size:clamp(3.1rem, 7vw, 5.8rem);
  max-width:11ch;
}
h2{ font-size:clamp(2.4rem, 4.4vw, 4rem); }
h3{ font-size:clamp(2rem, 3.4vw, 2.7rem); }
h4{ font-size:1.8rem; margin-bottom:14px; }
.hero-text, .section-heading p, .feature-card p, .result-block p, .result-block li, .journal-copy p, .journal-points li{
  font-size:1.02rem;
  line-height:1.72;

  color:var(--muted);
  line-height:1.7;
  font-size:1.03rem;
}
.hero-text{ max-width:50ch; font-size:1.1rem; }
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:28px 0 22px;
}

.search-instructions{
  margin-bottom:18px;
  padding:18px 20px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,252,246,.88), rgba(247,240,228,.94));
  border:1px solid rgba(124,103,76,.14);
}
.search-instructions h3{
  font-size:1.7rem;
  margin-bottom:8px;
}
.search-instructions p{
  margin:8px 0;
  color:var(--muted);
  line-height:1.65;
}
.topic-form{
  display:grid;
  gap:12px;
}
.topic-form label{
  font-weight:700;
  color:var(--text);
}
.topic-form-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.topic-form select{
  flex:1 1 380px;
  min-height:58px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fffdf9;
  padding:0 18px;
  color:var(--text);
  box-shadow:0 6px 18px rgba(45,33,22,.05);
}
.topic-form select:focus{
  outline:2px solid rgba(115,133,107,.28);
  border-color:var(--olive);
}
.button{
  border:0;
  border-radius:999px;
  padding:14px 22px;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease, background .18s ease;
}
.button:hover{ transform:translateY(-1px); }
.button.primary{
  background:linear-gradient(180deg, var(--olive), var(--olive-dark));
  color:#fff;
  box-shadow:0 12px 28px rgba(84,98,79,.24);
}
.button.secondary,
.button.subtle{
  background:rgba(255,250,241,.78);
  color:var(--text);
  border:1px solid rgba(108,89,66,.16);
}
.button.subtle{ padding:12px 18px; }

.topic-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.pill{
  border:1px solid rgba(115,133,107,.25);
  color:#4b4034;
  background:rgba(255,249,239,.76);
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
}
.pill:hover{ background:#fff; }

.hero-visual{
  position:relative;
  padding:18px;
}
.card-glow{
  border-radius:34px;
  background:linear-gradient(180deg, rgba(255,250,241,.82), rgba(246,239,226,.82));
  box-shadow:var(--shadow);
  border:1px solid rgba(151,123,85,.17);
}
.hero-image-stack{
  position:relative;
  min-height:500px;
}
.hero-main-image{
  width:100%;
  height:530px;
  object-fit:cover;
  border-radius:28px;
  filter:saturate(.95) contrast(1.02);
}
.hero-float-image{
  position:absolute;
  width:40%;
  border-radius:24px;
  border:5px solid rgba(255,248,238,.88);
  box-shadow:0 18px 40px rgba(40,30,20,.18);
}
.float-a{
  right:-12px;
  top:26px;
  animation:float 8s ease-in-out infinite;
}
.float-b{
  left:-6px;
  bottom:18px;
  animation:float 7s ease-in-out infinite reverse;
}

.cloud{
  position:absolute;
  background:rgba(255,255,255,.38);
  filter:blur(18px);
  border-radius:999px;
  animation:drift linear infinite;
}
.cloud-1{ width:220px; height:76px; top:86px; left:4%; animation-duration:28s; }
.cloud-2{ width:320px; height:92px; top:138px; right:8%; animation-duration:34s; }
.cloud-3{ width:240px; height:74px; top:238px; left:32%; animation-duration:38s; }

.creek-band{
  position:relative;
  margin-top:18px;
  border-top:1px solid rgba(108,89,66,.08);
}
.creek-flow{
  height:84px;
  background:
    radial-gradient(circle at 15% 45%, rgba(255,255,255,.26), transparent 12%),
    radial-gradient(circle at 55% 50%, rgba(255,255,255,.2), transparent 16%),
    linear-gradient(180deg, rgba(156,182,170,.66), rgba(123,151,138,.78));
  position:relative;
  overflow:hidden;
}
.creek-flow::before,
.creek-flow::after{
  content:"";
  position:absolute;
  inset:10px -10% 8px;
  border-radius:100%;
  background:rgba(255,255,255,.13);
  animation:ripple 11s linear infinite;
}
.creek-flow::after{
  inset:22px -15% -4px;
  animation-duration:15s;
}
.creek-copy{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:14px 0 0;
  color:var(--muted);
  font-weight:600;
}
.sound-toggle{
  background:transparent;
  border:1px solid rgba(108,89,66,.24);
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  color:var(--text);
}

.search-section,
.feature-section,
.gallery-section,
.topics-section,
.journal-section{
  padding:88px 0;
}
.search-section{ background:linear-gradient(180deg, rgba(255,255,255,.34), transparent 20%), var(--bg-soft); }
.feature-section{ background:var(--bg); }
.gallery-section{ background:linear-gradient(180deg, #e7dcc7, #f7f1e6); }
.topics-section{ background:var(--bg-soft); }
.journal-section{ background:linear-gradient(180deg, #ede3d3, #f7f1e6); }

.section-heading{
  max-width:760px;
  margin-bottom:30px;
}
.section-heading.center{
  margin-inline:auto;
  text-align:center;
}

.search-card, .results, .feature-card, .journal-panel{
  background:rgba(255,250,241,.86);
  border:1px solid rgba(133,109,81,.14);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.search-card{
  padding:20px;
}
.topic-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
}
.topic-form input{
  min-width:0;
  width:100%;
  padding:18px 20px;
  border-radius:22px;
  border:1px solid rgba(133,109,81,.18);
  background:#fffdfa;
  color:var(--text);
}
.helper-text,.status-message{
  color:var(--muted);
  margin-top:12px;
}
.status-message{ min-height:26px; }

.results{
  margin-top:26px;
  padding:28px;
}
.hidden{ display:none; }
.results-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(133,109,81,.12);
}
.results-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.result-block{
  padding:28px 0 8px;
}
.verse-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
.verse-card{
  border:1px solid rgba(133,109,81,.14);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,254,249,.9), rgba(247,240,227,.92));
  padding:22px;
}
.verse-card h5{
  margin:0 0 12px;
  font-size:1.55rem;
  font-family:Cambria, Georgia, "Times New Roman", serif;
}
.verse-label{
  display:inline-block;
  margin-bottom:10px;
  color:#7d6548;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.72rem;
  font-weight:700;
}
.verse-text{
  font-style:italic;
  line-height:1.7;
  color:#43372a;
}
.application-list{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.application-item{
  background:rgba(115,133,107,.07);
  border-radius:16px;
  padding:12px 14px;
  border:1px solid rgba(115,133,107,.08);
}
.application-item strong{
  display:block;
  margin-bottom:4px;
  color:#4b4034;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
.feature-card{
  padding:28px;
}
.step{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:50%;
  background:linear-gradient(180deg, var(--gold), #8e724d);
  color:#fff;
  font-weight:700;
  margin-bottom:16px;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
}
.gallery-grid img{
  width:100%;
  aspect-ratio: 5 / 4;
  object-fit:cover;
  border-radius:24px;
  border:1px solid rgba(133,109,81,.16);
  box-shadow:var(--shadow);
}

.topic-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
}
.topic-chip{
  border:1px solid rgba(115,133,107,.18);
  background:rgba(255,250,241,.82);
  border-radius:999px;
  padding:10px 16px;
  font-weight:600;
  color:#4b4034;
}

.journal-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:24px;
  align-items:start;
}
.journal-points{
  padding-left:18px;
  margin-top:18px;
}
.journal-panel{ padding:20px; }
.journal-panel textarea{
  width:100%;
  min-height:200px;
  border-radius:22px;
  border:1px solid rgba(133,109,81,.18);
  background:#fffdfa;
  color:var(--text);
  padding:16px;
  resize:vertical;
}
.journal-actions{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.journal-entries{
  margin-top:18px;
  display:grid;
  gap:12px;
}
.journal-entry{
  border:1px solid rgba(133,109,81,.14);
  border-radius:18px;
  background:rgba(255,255,255,.56);
  padding:14px;
}
.journal-entry time{
  display:block;
  color:#7d6548;
  font-size:.82rem;
  margin-bottom:8px;
  font-weight:700;
}

.site-footer{
  padding:34px 0 46px;
  background:#3e3327;
  color:#f6efe3;
}
.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}
.site-footer h3,.site-footer h4{
  font-family:Cambria, Georgia, "Times New Roman", serif;
  margin-bottom:10px;
}
.site-footer p{
  color:#dfd1bd;
  line-height:1.7;
  margin:0;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

body.ambient-on .hero{
  background:
    linear-gradient(180deg, rgba(103,84,58,.60), rgba(72,59,44,.28) 28%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, #b49d78 0%, #d9ccb7 25%, #edf4f3 48%, #d8e5df 62%, #efe8db 100%);
}
body.ambient-on .creek-flow{
  background:
    radial-gradient(circle at 15% 45%, rgba(255,255,255,.36), transparent 14%),
    radial-gradient(circle at 55% 50%, rgba(255,255,255,.26), transparent 18%),
    linear-gradient(180deg, rgba(143,179,170,.76), rgba(108,149,141,.88));
}

@keyframes drift{
  from{ transform:translateX(-6vw); }
  to{ transform:translateX(106vw); }
}
@keyframes float{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-10px); }
}
@keyframes ripple{
  from{ transform:translateX(-4%); }
  to{ transform:translateX(8%); }
}

@media (max-width: 980px){
  .hero-grid,
  .journal-grid,
  .feature-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }
  .gallery-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .verse-grid{ grid-template-columns:1fr; }
  .hero{ padding-top:28px; }
  .results-top{ flex-direction:column; }
}

@media (max-width: 720px){
  .nav-wrap{ flex-direction:column; align-items:flex-start; padding:12px 0; }
  .nav-links{ gap:14px; }
  .topic-form{ grid-template-columns:1fr; }
  .creek-copy{ flex-direction:column; align-items:flex-start; }
  .hero-main-image{ height:420px; }
  .hero-float-image{ width:42%; }
}

@media (max-width: 560px){
  .container{ width:min(100vw - 20px, 1180px); }
  h1{ font-size:2.8rem; }
  h2{ font-size:2.15rem; }
  .search-section,
  .feature-section,
  .gallery-section,
  .topics-section,
  .journal-section{ padding:64px 0; }
  .results{ padding:20px; }
  .gallery-grid{ grid-template-columns:1fr; }
  .hero-main-image{ height:340px; }
  .hero-float-image{ width:46%; }
}

@media (max-width: 700px){
  .topic-form-row{
    flex-direction:column;
  }
  .topic-form select,
  .topic-form-row .button{
    width:100%;
  }
}


body, p, li, a, button, input, select, textarea, small, span {
  letter-spacing: 0;
}

p, li {
  font-weight: 400;
}

