/* =========================================================
   Rooted — a garden journal of devotionals
   Design tokens
   ========================================================= */
:root{
  --paper: #EFEAD8;      /* kraft-cream page */
  --paper-soft: #F7F4E9; /* lighter card surface */
  --ink: #24301F;        /* deep forest ink, body text */
  --ink-soft: #4B5A42;   /* muted green-grey for secondary text */
  --fern: #3F5C3F;       /* primary brand green */
  --fern-deep: #2B3F29;  /* headline / hover green */
  --gold: #AD7C2E;       /* porch-light amber accent */
  --gold-soft: #E4CE9E;  /* pale gold for tints */
  --blush: #BD7E85;      /* Claire's orchid blossom */
  --sky: #6C8F9C;        /* dusk sky, used sparingly */
  --line: #D9D1B7;       /* hairline / stitch color */
  --shadow: 0 18px 40px -22px rgba(36,48,31,0.45);
  --radius: 3px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display{
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  color: var(--fern-deep);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow, .label, .marker-name, nav, .tag{
  font-family: "Space Mono", "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a{ color: inherit; }

img{ max-width: 100%; display:block; }

.wrap{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- Header ---------------- */
.site-header{
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-title{
  font-size: 1.5rem;
  text-decoration:none;
}
.site-title .stem{
  color: var(--gold);
}
nav.back-link{
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-decoration:none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
nav.back-link:hover{ color: var(--fern); border-color: var(--fern); }

/* ---------------- Hero / Intro ---------------- */
.hero{
  padding: 56px 0 40px;
}
.hero .sprig{
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 22px;
}
.hero h1{
  font-size: clamp(2.1rem, 5vw, 3rem);
  max-width: 14ch;
}
.hero p{
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-top: 18px;
}

/* ---------------- Section eyebrow ---------------- */
.eyebrow{
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 10px;
  display:block;
}

/* ---------------- Featured journal entry ---------------- */
.featured{
  margin: 10px 0 64px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.featured-inner{
  display: grid;
  grid-template-columns: 1fr;
}
.featured-photo{
  position: relative;
  padding: 22px 22px 0;
}
.featured-photo .frame{
  position: relative;
  transform: rotate(-1.1deg);
  border: 8px solid #fff;
  box-shadow: 0 12px 28px -14px rgba(36,48,31,0.55);
}
.featured-photo .frame img{ width:100%; height:auto; }
.featured-photo .tape{
  position:absolute;
  top:-14px; left: 40px;
  width: 84px; height: 26px;
  background: rgba(228,206,158,0.75);
  border: 1px solid rgba(173,124,46,0.35);
  transform: rotate(-4deg);
}
.featured-body{
  padding: 30px 30px 38px;
}
.featured-body .kicker{
  font-size: 0.72rem;
  color: var(--fern);
  margin-bottom: 8px;
}
.featured-body h2{
  font-size: clamp(1.6rem, 4vw, 2.15rem);
}
.featured-body .scripture-tag{
  margin-top: 14px;
}
.featured-body .devotional-text{
  margin-top: 20px;
}
.featured-body .read-more{
  display:inline-block;
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
}

@media(min-width: 700px){
  .featured-inner{ grid-template-columns: 1fr 1.15fr; align-items: stretch; }
  .featured-photo{ padding: 30px; display:flex; align-items:center; }
  .featured-body{ padding: 40px 42px 40px 8px; display:flex; flex-direction:column; justify-content:center; }
}

/* ---------------- Scripture tag ---------------- */
.scripture-tag{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scripture-tag span{
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--fern-deep);
  background: var(--gold-soft);
  padding: 4px 9px;
  border-radius: 2px;
}

/* ---------------- Library / garden markers ---------------- */
.library-heading{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 34px;
  margin-bottom: 26px;
}
.library-heading h2{ font-size: 1.5rem; }
.library-heading .count{
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.marker-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 60px;
}
@media(min-width: 620px){
  .marker-grid{ grid-template-columns: 1fr 1fr; }
}

.marker{
  position: relative;
  display:flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.marker:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--fern);
}
.marker::after{
  content:"";
  position:absolute;
  left: 22px; bottom: -9px;
  width: 2px; height: 12px;
  background: var(--ink-soft);
  opacity: 0.35;
}
.marker .thumb{
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px -4px rgba(36,48,31,0.5);
  flex-shrink: 0;
}
.marker .thumb.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--gold-soft);
  color: var(--fern-deep);
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}
.marker .marker-name{
  font-size: 0.66rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.marker h3{
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.marker .marker-refs{
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: "Lora", serif;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------------- Single devotional page ---------------- */
.entry-header{
  padding: 26px 0 0;
}
.entry-header .series-note{
  font-size: 0.72rem;
  color: var(--sky);
  margin-bottom: 10px;
  display:block;
}
.entry-header h1{
  font-size: clamp(2rem, 5vw, 2.7rem);
  max-width: 18ch;
}
.entry-header .scripture-tag{ margin-top: 18px; }

.entry-photo{
  margin: 34px 0 8px;
  border: 8px solid var(--paper-soft);
  box-shadow: var(--shadow);
}

.entry-body{
  max-width: 66ch;
  margin: 34px 0 10px;
  font-size: 1.08rem;
}
.entry-body p{ margin: 0 0 20px; }
.entry-body p:first-of-type::first-letter{
  font-family: "Fraunces", serif;
  font-size: 3.1rem;
  float: left;
  line-height: 0.8;
  padding: 6px 8px 0 0;
  color: var(--fern);
}

.invite{
  margin: 40px 0 60px;
  padding: 22px 24px;
  background: var(--paper-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.invite strong{ color: var(--fern-deep); }

.next-note{
  margin: 0 0 60px;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.next-note .label{
  display:block;
  font-size: 0.66rem;
  color: var(--blush);
  margin-bottom: 8px;
}

.entry-footer-nav{
  display:flex;
  justify-content: space-between;
  padding: 24px 0 60px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}
.entry-footer-nav a{ text-decoration:none; color: var(--fern); }
.entry-footer-nav a:hover{ color: var(--gold); }

/* ---------------- Footer ---------------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 30px 0 60px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ---------------- Accessibility ---------------- */
a:focus-visible, .marker:focus-visible{
  outline: 2px solid var(--fern);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
