/* =========================
   JASMINE'S GROVE — CSS
   earthy + witchy, clean, readable, sidebar-ready
   ========================= */

:root{
  --bg: #070b08;                 /* forest night */
  --panel: rgba(15,23,18,.78);   /* card */
  --panel-soft: rgba(11,18,14,.78);
  --text: #efe9da;               /* parchment */
  --muted: #bfb6a3;              /* dried grass */
  --line: rgba(239,233,218,.14);
  --gold: #d6b25e;               /* candlelight */
  --ink: rgba(239,233,218,.92);
  --shadow: rgba(0,0,0,.45);
}

/* Reset */
*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.7;

  background:
    radial-gradient(900px 650px at 18% 10%, rgba(122,168,116,.18), transparent 60%),
    radial-gradient(800px 560px at 78% 18%, rgba(214,178,94,.12), transparent 55%),
    radial-gradient(900px 700px at 65% 92%, rgba(193,139,147,.10), transparent 60%),
    var(--bg);
}

/* subtle star-grain */
body::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  opacity:.10;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(239,233,218,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 60%, rgba(239,233,218,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 30%, rgba(239,233,218,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 75%, rgba(239,233,218,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 85%, rgba(239,233,218,.5) 50%, transparent 51%);
  background-size: 240px 240px;
}

a{ color: var(--gold); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.header{
  padding: 2.2rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(239,233,218,.04), transparent);
}

.site-title{
  margin:0;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
}

.site-subtitle{
  margin: .35rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Nav */
.nav{
  display:flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.2rem;
}

.nav a{
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15,23,18,.55);
  box-shadow: 0 10px 25px var(--shadow);
}

.nav a.active{
  border-color: rgba(214,178,94,.45);
  box-shadow: 0 0 0 4px rgba(214,178,94,.10);
}

main{ padding: 1.3rem 0 3rem; }

/* Layout: main + sidebar */
.layout{
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 820px){
  .layout{ grid-template-columns: 1fr; }
}

/* Optional: sticky sidebar */
aside{
  position: sticky;
  top: 1rem;
  align-self: start;
}

/* Cards */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: 0 12px 35px var(--shadow);
  backdrop-filter: blur(6px);
  margin: 1rem 0;
}

.card.soft{ background: var(--panel-soft); }

/* Text */
h2{
  margin: 0 0 .6rem;
  font-size: 1.35rem;
}

.meta{
  color: var(--muted);
  font-size: .95rem;
}

.small{ font-size: .92rem; }

hr{
  border: none;
  border-top: 1px dashed var(--line);
  margin: .9rem 0;
}

.list{
  margin: 0;
  padding-left: 1.1rem;
}

.list li{ margin: .45rem 0; }

/* Note / charm styling */
.note{
  padding-left: .9rem;
  border-left: 3px solid rgba(214,178,94,.45);
  color: var(--ink);
}

/* Widget title row */
.widget-title{
  display:flex;
  align-items:center;
  gap: .5rem;
}

.sigils{
  color: var(--gold);
  text-shadow: 0 0 14px rgba(214,178,94,.25);
}

/* Sidebar polish */
.sidebar-card p.meta{
  margin: .25rem 0;
}
.sidebar-card p.meta b{
  color: var(--gold);
  font-weight: 600;
}
.sidebar-card .note{
  margin-top: .35rem;
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

/* =========================
   STATUS ARCHIVE PAGE
   ========================= */
.status-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}

.status-list li{
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(239,233,218,.03);
}

.status-date{
  display: inline-block;
  min-width: 7ch;
  color: var(--muted);
  font-size: .95rem;
  margin-right: .6rem;
}

.status-text{
  color: var(--ink);
}
.poem{
  margin-top: .8rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(239,233,218,.03);
}

.atabook-frame{
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(239,233,218,.03);
  box-shadow: 0 12px 35px var(--shadow);
}
/* =========================
   Guestbook (AttaBook) page
   ========================= */

.center{ text-align:center; }

.guestbook-intro{
  position: relative;
}

.guestbook-icon{
  display:flex;
  justify-content:center;
  margin-bottom: 1rem;
}

/* If the image ever fails to load, the alt text won’t show like that broken icon */
.guestbook-icon img{
  width: 170px;
  height: auto;
  display:block;
  opacity: .95;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.35));
}

/* Frame that makes the embed feel like it belongs on your site */
.atabook-frame{
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(239,233,218,.03);
  box-shadow: 0 12px 35px var(--shadow);
}

/* The AttaBook page background color (matches your guestbook green) */
.atabook-frame iframe{
  width: 100%;
  height: 860px;
  border: 0;
  display: block;
  background: #e6ede3;
}

/* Optional: make the iframe a little less “web-default” */
.atabook-frame{
  filter: saturate(.95) contrast(.98);
}

/* =========================
   Site scrollbar (NOT the iframe)
   ========================= */

/* Chrome/Edge/Safari */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b120e; }
::-webkit-scrollbar-thumb {
  background: #9fb8a1;
  border-radius: 12px;
  border: 2px solid #0b120e;
}
::-webkit-scrollbar-thumb:hover { background: #7fa08a; }

/* Firefox */
*{
  scrollbar-width: thin;
  scrollbar-color: #9fb8a1 #0b120e;
}
.blog-post .post-title{
  margin-bottom: .25rem;
}

.post-meta{
  margin-top: 0;
  opacity: .85;
}

.post-body p{
  margin: .9rem 0;
  line-height: 1.7;
}
.archive-list{
  display: grid;
  gap: 12px;
}

.archive-item{
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(239,233,218,.03);
}
/* =========================
   Visual polish layer ✶
   Paste at bottom of style.css
   ========================= */

/* If you already have these vars, this will simply override/tweak them */
:root{
  --bg: #0e1510;
  --bg2: #0b120d;
  --paper: rgba(230,237,227,.04);
  --paper2: rgba(230,237,227,.06);
  --line: rgba(230,237,227,.12);
  --text: #e6ede3;
  --muted: rgba(230,237,227,.72);
  --accent: #8fbf9b;      /* sage */
  --accent2: #d7c9a7;     /* candle */
  --glow: rgba(143,191,155,.18);
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius: 20px;
}

/* Background depth */
body{
  color: var(--text);
  background:
    radial-gradient(900px 650px at 15% 10%, rgba(143,191,155,.10), transparent 60%),
    radial-gradient(700px 550px at 85% 20%, rgba(215,201,167,.08), transparent 55%),
    radial-gradient(800px 700px at 45% 95%, rgba(143,191,155,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
}

/* Wider breathing room (safe to keep) */
.wrap{
  max-width: 980px;
}

/* Header polish */
.header{
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(230,237,227,.08);
  background:
    linear-gradient(180deg, rgba(230,237,227,.03), transparent 70%);
  backdrop-filter: blur(6px);
}

.site-title{
  letter-spacing: .02em;
  text-transform: lowercase;
}

.site-subtitle{
  color: var(--muted);
  margin-top: 6px;
}

/* Nav polish */
.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nav a{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230,237,227,.10);
  background: rgba(230,237,227,.02);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav a:hover{
  transform: translateY(-1px);
  background: rgba(143,191,155,.08);
  border-color: rgba(143,191,155,.30);
  box-shadow: 0 0 0 3px rgba(143,191,155,.10);
}

.nav a.active{
  background: rgba(215,201,167,.10);
  border-color: rgba(215,201,167,.35);
  box-shadow: 0 0 0 3px rgba(215,201,167,.10);
}

/* Layout: make sidebars feel like sidebars */
.layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 860px){
  .layout{ grid-template-columns: 1fr; }
}

/* Card glow + texture */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(230,237,227,.12);
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(143,191,155,.10), transparent 55%),
    radial-gradient(700px 220px at 90% 0%, rgba(215,201,167,.08), transparent 55%),
    rgba(230,237,227,.03);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before{
  content:"";
  position: absolute;
  inset: -2px;
  background: radial-gradient(500px 200px at 25% 0%, rgba(143,191,155,.12), transparent 70%);
  opacity: .55;
  pointer-events: none;
}

.card > *{
  position: relative;
}

/* Soft card variant */
.card.soft{
  background: rgba(230,237,227,.03);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}

/* Card headings */
.card h2{
  font-size: 1.1rem;
  letter-spacing: .02em;
  margin-bottom: .35rem;
}

.card h3{
  font-size: .95rem;
  margin-top: 1.1rem;
  opacity: .9;
}

/* Text rhythm */
p, li{
  line-height: 1.8;
}

.meta{
  color: var(--muted);
}

.note{
  color: rgba(230,237,227,.85);
}

/* Links */
a{
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover{
  color: #b7e6c1;
  text-decoration: underline;
}

.list{
  padding-left: 1.1rem;
}

.list li{
  margin: .35rem 0;
}

/* Sidebar widgets */
.sidebar-card .widget-title{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sigils{
  opacity: .9;
  filter: drop-shadow(0 0 10px rgba(215,201,167,.25));
}

/* Poetry + blog body polish */
.post-body p,
.poem-body p{
  margin: 1.05rem 0;
}

/* Center helper (if you use it) */
.center{
  text-align: center;
}

/* Archive polish */
.archive-list{
  display: grid;
  gap: 12px;
}

.archive-item{
  padding: 12px 14px;
  border: 1px solid rgba(230,237,227,.12);
  border-radius: 16px;
  background: rgba(230,237,227,.02);
}

/* Optional: tiny star divider utility */
.star-divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: rgba(230,237,227,.55);
}

.star-divider::before,
.star-divider::after{
  content:"";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(230,237,227,.18), transparent);
}

/* Footer */
.footer{
  margin-top: 26px;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(230,237,227,.08);
  color: var(--muted);
}
/* =========================
   Witchy upgrade layer ☾✶
   (no external fonts)
   ========================= */

/* Make headings feel more "grimoire" without importing fonts */
.site-title,
.card h2,
.card h3,
.widget-title{
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: .04em;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Candle-ink vibe: slightly warmer text + quieter meta */
:root{
  --accent: #89c49a;        /* moss-sage */
  --accent2: #e3d2ab;       /* candle */
  --muted: rgba(230,237,227,.68);
}

/* Make cards feel like enchanted parchment in the dark */
.card{
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(227,210,171,.10), transparent 55%),
    radial-gradient(900px 260px at 90% 0%, rgba(137,196,154,.10), transparent 55%),
    linear-gradient(180deg, rgba(230,237,227,.05), rgba(230,237,227,.02));
  border: 1px solid rgba(227,210,171,.18);
}

/* Subtle sigil corners on cards */
.card::after{
  content: "✶";
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 12px;
  opacity: .35;
  color: rgba(227,210,171,.85);
  text-shadow: 0 0 14px rgba(227,210,171,.22);
  pointer-events: none;
}

/* Links feel more “spellbook” */
a{
  text-decoration-thickness: 1px;
}
a:hover{
  text-decoration-thickness: 2px;
}

/* Nav becomes a “ring of charms” */
.nav a{
  background: rgba(230,237,227,.02);
  border: 1px solid rgba(227,210,171,.16);
}
.nav a:hover{
  background: rgba(137,196,154,.10);
  border-color: rgba(137,196,154,.32);
  box-shadow: 0 0 0 3px rgba(137,196,154,.10), 0 12px 30px rgba(0,0,0,.25);
}
.nav a.active{
  background: rgba(227,210,171,.12);
  border-color: rgba(227,210,171,.34);
}

/* “Candlelit” blockquotes/notes (if you use them) */
.note{
  background: rgba(227,210,171,.05);
  border-left: 3px solid rgba(227,210,171,.35);
  padding: 10px 12px;
  border-radius: 14px;
}

/* Make poem/blog bodies feel more like pages */
.post-body,
.poem-body{
  padding-top: 4px;
}
.post-body p,
.poem-body p{
  margin: 1.15rem 0;
}

/* Add a ritual divider class for extra witchy spacing */
.ritual-divider{
  margin: 14px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: .65;
}
.ritual-divider::before,
.ritual-divider::after{
  content:"";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,210,171,.22), transparent);
}
.ritual-divider span{
  font-family: ui-serif, Georgia, serif;
  letter-spacing: .12em;
  color: rgba(227,210,171,.90);
  text-shadow: 0 0 18px rgba(227,210,171,.18);
}

/* Slight vignette like an old screen / night window */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 900px at 50% 40%, transparent 55%, rgba(0,0,0,.35) 100%);
  opacity: .55;
  z-index: 0;
}
body > *{
  position: relative;
  z-index: 1;
}
