﻿:root{
  --paper:#f7f1e4;
  --paper2:#fffdf8;
  --forest:#213f31;
  --forest2:#345a47;
  --gold:#a88650;
  --ink:#232820;
  --muted:#687168;
  --line:#ddd3c0;
  --shadow:0 12px 34px rgba(31,48,36,.08);
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}

a{color:inherit}

.site-header{
  background:var(--forest);
  color:white;
}

.header-inner,
.page{
  max-width:1120px;
  margin:auto;
  padding-left:20px;
  padding-right:20px;
}

.header-inner{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  text-decoration:none;
}

.brand strong{
  display:block;
  font-family:Georgia,serif;
  font-size:21px;
}

.brand small{
  display:block;
  opacity:.72;
  margin-top:2px;
}

.site-nav{
  display:flex;
  align-items:center;
  gap:20px;
}

.site-nav a{
  text-decoration:none;
  font-size:14px;
  opacity:.9;
}

.site-nav a:hover{
  opacity:1;
  text-decoration:underline;
  text-underline-offset:5px;
}

.page{
  padding-top:42px;
  padding-bottom:70px;
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--gold);
  font-size:12px;
  font-weight:800;
}

h1,h2,h3{
  font-family:Georgia,serif;
  color:var(--forest);
}

h1{
  font-size:clamp(34px,5vw,55px);
  line-height:1.05;
  margin:.18em 0;
}

h2{
  font-size:27px;
}

.lead{
  color:var(--muted);
  max-width:720px;
  line-height:1.75;
}

.hero{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:25px;
  align-items:stretch;
  margin-bottom:38px;
}

.card{
  background:var(--paper2);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:23px;
}

.hero-main{
  padding:32px;
}

.hero-side{
  background:
    linear-gradient(
      145deg,
      var(--forest),
      var(--forest2)
    );
  color:white;
  position:relative;
  overflow:hidden;
}

.hero-side h2,
.hero-side h3{
  color:white;
}

.hero-side:after{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border:1px solid rgba(255,255,255,.12);
  transform:rotate(45deg);
  right:-85px;
  bottom:-85px;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  padding:11px 16px;
  text-decoration:none;
  font-weight:750;
  cursor:pointer;
}

.btn-primary{
  background:var(--forest);
  color:white;
}

.btn-light{
  background:#ede6d8;
  color:var(--forest);
}

.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.section{
  margin-top:38px;
}

.meta{
  color:var(--muted);
  font-size:13px;
}

.series-card h3,
.lesson-card h3{
  margin:6px 0 9px;
}

.series-card,
.lesson-card{
  transition:.18s ease;
}

.series-card:hover,
.lesson-card:hover{
  transform:translateY(-2px);
}

.lesson-row{
  padding:17px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
}

.lesson-row:last-child{
  border-bottom:0;
}

.search-box{
  width:100%;
  background:white;
  border:1px solid #cdc3b1;
  padding:13px 14px;
  border-radius:10px;
  font:inherit;
}

.filter-row{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin:13px 0 20px;
}

.filter{
  border:1px solid var(--line);
  background:var(--paper2);
  border-radius:999px;
  padding:7px 11px;
  cursor:pointer;
}

.filter.active{
  color:white;
  background:var(--forest);
}

.study-section{
  margin-top:27px;
}

.rich-content{
  line-height:1.8;
}

.rich-content blockquote{
  border-left:3px solid var(--gold);
  margin-left:0;
  padding-left:17px;
  color:var(--muted);
}

.rich-content a{
  color:var(--forest2);
}

.studied{
  opacity:.65;
}

.check{
  color:var(--forest);
  font-weight:bold;
}

.footer{
  border-top:1px solid var(--line);
  padding:30px 20px;
  color:var(--muted);
  text-align:center;
  font-size:13px;
}

@media(max-width:800px){
  .header-inner{
    align-items:flex-start;
    padding-top:16px;
    padding-bottom:16px;
    flex-direction:column;
  }

  .site-nav{
    width:100%;
    overflow-x:auto;
    padding-bottom:3px;
  }

  .hero,
  .grid3{
    grid-template-columns:1fr;
  }

  .page{
    padding-top:25px;
  }

  .lesson-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .lesson-row .actions{
    margin-top:0;
  }
}
