/* =============================================================
   JoannaMikel.com - site styles.
   Brand palette drawn from the original Be You Christ Full
   newsletters: dusty rose, french blue, warm ivory paper.
   Fonts: Lora (headings) + Raleway (body).
   ============================================================= */

:root {
  --paper:      #fdf9f5;
  --paper-deep: #f8efe9;
  --white:      #ffffff;
  --ink:        #453740;
  --ink-soft:   #7c6b74;
  --rose:       #b25269;
  --rose-deep:  #96415a;
  --blush:      #f4dee3;
  --blush-line: #e9cfd6;
  --blue:       #3f6d99;
  --blue-soft:  #e3ecf4;
  --shadow:     0 10px 28px rgba(69, 55, 64, 0.12);
  --shadow-lift:0 16px 40px rgba(69, 55, 64, 0.18);
  --font-body:  'Raleway', 'Segoe UI', sans-serif;
  --font-head:  'Lora', Georgia, serif;
  --measure:    46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--rose); text-decoration-color: var(--blush-line); text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover { color: var(--rose-deep); }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--white); padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 249, 245, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--blush-line);
}

.header-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 0.85rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 1.45rem; color: var(--ink);
}
.brand-tag {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rose);
}

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink-soft); text-decoration: none; position: relative; padding: 4px 0;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  border-bottom: 2px solid var(--rose);
  transition: right 0.25s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px 0;
  background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Shared layout ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 1.4rem; }
.section-blush { background: var(--blush); }
.section-deep  { background: var(--paper-deep); }
.container { max-width: 72rem; margin: 0 auto; }
.container-narrow { max-width: var(--measure); margin: 0 auto; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.9rem;
}

/* Hand-drawn feeling underline for section headings */
.flourish { position: relative; padding-bottom: 0.55rem; }
.flourish::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 74px; height: 3px; border-radius: 2px;
  background: var(--rose);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.in .flourish::after, .flourish.in::after { transform: scaleX(1); }

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.03em;
  padding: 0.72rem 1.6rem; border-radius: 999px;
  border: 1.5px solid var(--rose); cursor: pointer;
  text-decoration: none; transition: all 0.22s ease;
}
.btn-solid { background: var(--rose); color: var(--white); }
.btn-solid:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--rose); }
.btn-ghost:hover { background: var(--blush); color: var(--rose-deep); transform: translateY(-2px); }

/* ---------- Polaroid photo frames (echo of the newsletter) ---------- */

.polaroid {
  background: var(--white); padding: 12px 12px 40px;
  box-shadow: var(--shadow); border-radius: 2px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.polaroid img { display: block; width: 100%; border-radius: 1px; }
.polaroid figcaption, .polaroid .polaroid-caption {
  display: block;
  font-family: var(--font-head); font-style: italic;
  text-align: center; color: var(--ink-soft);
  font-size: 0.95rem; margin-top: 12px;
}
a.polaroid { text-decoration: none; }
.song-listen { font-family: var(--font-body); font-style: normal; font-weight: 600; color: var(--rose); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.tilt-l { transform: rotate(-2.2deg); }
.tilt-r { transform: rotate(2deg); }
.polaroid:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-lift); }

/* ---------- Home hero ---------- */

.hero { overflow: hidden; }
.hero-grid {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 1.4rem;
}
.hero-script {
  font-family: var(--font-head); font-style: italic; font-weight: 400;
  color: var(--rose); font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 0.4rem;
}
.hero-copy .hero-script { text-align: center; }
.hero h1 { margin-bottom: 0.9rem; }
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-photo { max-width: 24rem; justify-self: center; }

/* ---------- Brand plaque (Be You Full logo) ---------- */

.brand-plaque {
  display: block; width: 100%; height: auto;
  border-radius: 10px; box-shadow: var(--shadow);
  margin: 0 0 1.6rem;
}

/* ---------- Journal list (latest writings) ---------- */

.journal-list { list-style: none; margin: 0; padding: 0; }
.journal-item {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--blush-line);
}
.journal-item:first-child { border-top: 1px solid var(--blush-line); }
.journal-date {
  font-size: 0.85rem; color: var(--blue); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.35rem;
}
.journal-title { font-size: 1.35rem; margin-bottom: 0.35rem; }
.journal-title a { color: var(--ink); text-decoration: none; }
.journal-title a:hover { color: var(--rose); }
.journal-excerpt { color: var(--ink-soft); margin: 0 0 0.5rem; }
.journal-meta { font-size: 0.85rem; color: var(--ink-soft); }
.journal-meta .cat { color: var(--rose); font-weight: 600; }
.readmore {
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  white-space: nowrap;
}
.readmore::after { content: ' \2192'; transition: margin-left 0.2s ease; }
.readmore:hover::after { margin-left: 4px; }

/* ---------- Verse band ---------- */

.verse-band { text-align: center; }
.verse-band blockquote {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.55;
  color: var(--ink); max-width: 44rem; margin: 0 auto 0.8rem;
}
.verse-band cite { font-family: var(--font-body); font-style: normal; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); }

/* ---------- Art gallery ---------- */

.art-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}
.art-grid .polaroid { cursor: zoom-in; }
.art-grid .polaroid:nth-child(3n+1) { transform: rotate(-1.6deg); }
.art-grid .polaroid:nth-child(3n+2) { transform: rotate(1.4deg); }
.art-grid .polaroid:nth-child(3n)   { transform: rotate(-0.6deg); }
.art-grid .polaroid:hover { transform: rotate(0) translateY(-6px); }
.art-empty {
  text-align: center; color: var(--ink-soft);
  border: 1.5px dashed var(--blush-line); border-radius: 10px;
  padding: 3.5rem 1.5rem;
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(69, 55, 64, 0.9);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 62rem); max-height: 82vh; box-shadow: var(--shadow-lift); background: var(--white); padding: 10px; }
.lightbox-caption { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: var(--white); font-family: var(--font-head); font-style: italic; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: 0; color: var(--white); font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- Resource cards ---------- */

.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 290px));
  gap: 1.8rem; justify-content: center;
}
.resource-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--white); border: 1px solid var(--blush-line);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.resource-media {
  display: flex; align-items: center; justify-content: center;
  height: 150px; padding: 1.4rem; background: var(--paper-deep);
  border-bottom: 1px solid var(--blush-line);
}
.resource-media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.resource-media.is-photo { padding: 0; }
.resource-media.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.resource-media.is-mono { background: var(--blush); }
.resource-mono {
  font-family: var(--font-head); font-style: italic; font-size: 2.6rem;
  color: var(--rose); line-height: 1;
}
.resource-group + .resource-group { margin-top: 3.2rem; }
.resource-group .resource-grid { margin-top: 1.6rem; }
.resource-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.resource-name { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.resource-desc { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.resource-go { font-weight: 600; font-size: 0.9rem; color: var(--rose); }
.resource-go::after { content: ' \2192'; transition: margin-left 0.2s ease; }
.resource-card:hover .resource-go::after { margin-left: 4px; }

/* ---------- Blog listing ---------- */

.blog-hero { text-align: center; padding-bottom: 1rem; }
.blog-hero .hero-script { margin-bottom: 0.2rem; }

/* ---------- Blog post ---------- */

.post-hero { max-width: 46rem; margin: clamp(1.5rem, 4vw, 3rem) auto 0; padding: 0 1.4rem; }
.post-hero .polaroid { max-width: 34rem; margin: 0 auto; }
.post-header { text-align: center; padding-top: clamp(2rem, 4vw, 3rem); }
.post-header .cat {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue);
}
.post-header h1 { margin-top: 0.5rem; }
.post-byline { font-size: 0.92rem; color: var(--ink-soft); }
.post-byline a { color: var(--ink-soft); }

.post-body { max-width: var(--measure); margin: 0 auto; }
.post-body p:first-of-type::first-letter {
  font-family: var(--font-head); font-size: 3.1em; float: left;
  line-height: 0.85; padding: 0.08em 0.12em 0 0; color: var(--rose);
}
.post-body h2, .post-body h3 { margin-top: 1.8em; }
.post-body blockquote {
  border-left: 3px solid var(--rose); margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  font-family: var(--font-head); font-style: italic;
  color: var(--ink-soft); font-size: 1.08em;
}
.post-figure { margin: 2.2rem auto; max-width: 26rem; }
.post-figure.wide { max-width: 34rem; }
.post-body img {
  display: block; margin: 2.4rem auto; max-width: min(100%, 28rem);
  background: var(--white); padding: 10px; box-shadow: var(--shadow); border-radius: 2px;
}
.post-sig { font-family: var(--font-head); font-style: italic; color: var(--ink-soft); margin-top: 2.5rem; }

.post-nav { max-width: var(--measure); margin: 3rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--blush-line); }

/* ---------- Comments on writings ---------- */

.comments { max-width: var(--measure); margin: 3.5rem auto 0; }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment { padding: 1.3rem 0; border-bottom: 1px solid var(--blush-line); }
.comment:first-child { border-top: 1px solid var(--blush-line); }
.comment-meta { margin: 0 0 0.4rem; font-size: 0.95rem; }
.comment-meta span { color: var(--ink-soft); font-size: 0.85rem; margin-left: 0.6rem; }
.comment-body { margin: 0; }
.comment-none { color: var(--ink-soft); font-style: italic; }
.comment-form { margin-top: 2rem; }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label.field { display: block; font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--blush-line);
  border-radius: 8px; padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(178, 82, 105, 0.14);
}
.field textarea { resize: vertical; min-height: 9rem; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

.alert { border-radius: 8px; padding: 0.9rem 1.2rem; margin-bottom: 1.4rem; }
.alert-ok { background: var(--blue-soft); color: var(--blue); }
.alert-err { background: var(--blush); color: var(--rose-deep); }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-deep); border-top: 1px solid var(--blush-line); margin-top: 3rem; }
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 3rem 1.4rem 2.2rem; text-align: center; }
.footer-verse {
  font-family: var(--font-head); font-style: italic;
  color: var(--ink-soft); max-width: 38rem; margin: 0 auto 1.6rem;
}
.footer-ref { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin-top: 0.5rem; }
.footer-nav { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.footer-nav a { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--rose); }
.footer-copy { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.footer-credit { font-size: 0.78rem; color: var(--ink-soft); margin: 0.5rem 0 0; }
.footer-credit a { color: var(--ink-soft); text-decoration-color: var(--blush-line); }
.footer-credit a:hover { color: var(--rose); }

/* ---------- Scroll-reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* Hero entrance on page load */
@keyframes settle-in {
  from { opacity: 0; transform: translateY(26px) rotate(0.5deg); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--settle-tilt, 0deg)); }
}
.hero-photo .polaroid { --settle-tilt: 2deg; animation: settle-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.hero-copy > * { animation: settle-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo .polaroid, .hero-copy > * { animation: none; }
  .flourish::after { transform: scaleX(1); transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 17rem; }
  .journal-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--blush-line);
    flex-direction: column; gap: 0; padding: 0.4rem 1.4rem 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
