/* Grace Mills — Site Styles (v3)
 *
 * Brand system: editorial restraint, no floods, sentence case, type-driven, generous white space.
 *
 * Colors:
 *   --bg          #F7F4EC   warm cream
 *   --primary     #2A2A28   near-charcoal
 *   --accent      #5C6B4F   deep sage
 *   --text        #2A2429   unchanged (charcoal)
 */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --bg: #F7F4EC;
  --primary: #2A2A28;
  --accent: #5C6B4F;
  --text: #2A2429;
  --text-muted: rgba(42, 36, 41, 0.7);
  --border: rgba(92, 107, 79, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------- Typography ---------------- */

h1, h2, h3, h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-weight: 500; font-size: clamp(1.25rem, 2.5vw, 1.5rem); color: var(--text); }

p { line-height: 1.65; }

a { color: var(--primary); text-decoration: none; transition: opacity 150ms ease; }
a:hover { opacity: 0.75; }

::selection { background-color: var(--accent); color: var(--primary); }

.script { font-family: 'Great Vibes', cursive; font-weight: 400; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---------------- Layout helpers ---------------- */

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 4rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------- Header ---------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  gap: 2rem;
}

.logotype { display: flex; flex-direction: column; line-height: 1; }
.logotype .script { font-size: 2rem; color: var(--primary); }
.logotype .subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.nav { display: flex; align-items: center; gap: 2rem; font-size: 0.875rem; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--primary); opacity: 1; }

/* Mobile menu — uses native <details> for no-JS toggle */
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  user-select: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile ul {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 12rem;
  z-index: 10;
}
.nav-mobile li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
}
.nav-mobile li a:hover { background: rgba(201, 184, 214, 0.3); color: var(--primary); }

@media (min-width: 768px) {
  .nav-mobile { display: none; }
}
@media (max-width: 767px) {
  .nav-desktop { display: none; }
}

/* ---------------- Hero ---------------- */

.hero { padding: 5rem 0; }
.hero .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .grid { grid-template-columns: 1.2fr 1fr; }
}

.hero h1 .script { color: var(--primary); font-weight: 400; display: block; margin-top: 0.5rem; }
.hero p.lead {
  font-size: 1.125rem;
  color: rgba(42, 36, 41, 0.85);
  max-width: 36rem;
  margin: 2rem 0;
  line-height: 1.7;
}

.cta-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 500px) { .cta-row { flex-direction: row; } }

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 150ms ease;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background-color: var(--primary); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background-color: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background-color: var(--primary); color: var(--bg); opacity: 1; }

/* Manual cover mockup — placeholder, replace with real image when ready */
.cover-mockup {
  background-color: var(--primary);
  color: var(--bg);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  max-width: 22rem;
  margin: 0 auto;
}
.cover-mockup .eyebrow { color: rgba(245, 243, 248, 0.7); margin: 0; }
.cover-mockup .title { font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.cover-mockup .rule { border-top: 1px solid rgba(245, 243, 248, 0.3); margin: 1rem 0; }
.cover-mockup .signature { font-family: 'Great Vibes', cursive; font-size: 1.5rem; }

/* ---------------- Banner block (editorial accent, NOT a full flood) ---------------- */

.banner-block {
  background-color: var(--primary);
  color: var(--bg);
  padding: 3rem 2.5rem;
  margin: 3rem 0;
}
.banner-block .eyebrow { color: rgba(245, 243, 248, 0.7); }
.banner-block h2 { color: var(--bg); }
.banner-block p { font-size: 1.25rem; line-height: 1.5; max-width: 48rem; }
.banner-block a { color: var(--bg); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.banner-block a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .banner-block { padding: 4rem 3rem; }
  .banner-block p { font-size: 1.5rem; }
}

/* ---------------- Sections ---------------- */

section { scroll-margin-top: 5rem; }
.section { padding: 5rem 0; }
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) { .section-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- What You Get — counts grid ---------------- */

.counts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}
@media (min-width: 700px) { .counts-grid { grid-template-columns: repeat(3, 1fr); } }

.count-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.count-item .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.who-list { margin: 2rem 0; padding-left: 1.25rem; }
.who-list li { margin-bottom: 0.75rem; line-height: 1.6; }

/* ---------------- Forms ---------------- */

.form-card { background: rgba(201, 184, 214, 0.2); padding: 2.5rem; }
.form-card h3 { color: var(--primary); margin-bottom: 0.75rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 500px) { .form-row { flex-direction: row; } }

.form-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.form-input::placeholder { color: rgba(42, 36, 41, 0.4); }

textarea.form-input { min-height: 8rem; resize: vertical; }

/* ---------------- Contact ---------------- */

#contact .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 800px) {
  #contact .grid { grid-template-columns: 1fr 1.5fr; }
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}
.site-footer .columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}
@media (min-width: 700px) {
  .site-footer .columns { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.875rem; }

.site-footer .bottom {
  border-top: 1px solid rgba(201, 184, 214, 0.4);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (min-width: 500px) {
  .site-footer .bottom { flex-direction: row; justify-content: space-between; }
}
.site-footer .bottom .tagline { color: var(--primary); font-size: 1rem; opacity: 0.8; }

/* ---------------- Blog ---------------- */

.post-list { list-style: none; margin: 2.5rem 0 0; }
.post-list li {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.post-list li:first-child { border-top: 1px solid var(--border); }
.post-list .post-date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.post-list h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 0.5rem; }
.post-list h2 a { color: var(--primary); }
.post-list .post-excerpt { color: rgba(42, 36, 41, 0.85); max-width: 42rem; }
.post-list .read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* Single post article */
.post-article { max-width: 44rem; margin: 0 auto; }
.post-article .post-date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.post-article h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.post-article .post-body { font-size: 1.075rem; line-height: 1.8; }
.post-article .post-body > * + * { margin-top: 1.25rem; }
.post-article .post-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  color: var(--primary);
}
.post-article .post-body h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--primary);
}
.post-article .post-body ul,
.post-article .post-body ol { padding-left: 1.5rem; }
.post-article .post-body li { margin-bottom: 0.5rem; }
.post-article .post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
}
.post-article .post-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}
.post-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.post-footer-nav {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
}

/* ---------------- Preview slider ---------------- */

.slider {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.slider:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.slider-track {
  display: flex;
  transition: transform 350ms ease;
}
.slider .slide {
  min-width: 100%;
  box-sizing: border-box;
}
.slider .slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: var(--primary);
  color: var(--bg);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 150ms ease;
  z-index: 2;
}
.slider-arrow:hover { opacity: 1; }
.slider-prev { left: 0.75rem; }
.slider-next { right: 0.75rem; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}
.slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  cursor: pointer;
  padding: 0;
  transition: background 150ms ease;
}
.slider-dot[aria-selected="true"] { background: var(--primary); }

@media (max-width: 500px) {
  .slider-arrow { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
}

/* ---------------- Motion: scroll reveals + premium hovers ---------------- */

/* Scroll-reveal: sections start slightly down + transparent, ease in when visible */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium button hover: gentle lift + soft shadow instead of just opacity */
.btn {
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 58, 122, 0.25);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 58, 122, 0.15);
}

/* Slider arrows: subtle scale on hover */
.slider-arrow { transition: opacity 150ms ease, transform 150ms ease; }
.slider-arrow:hover { transform: translateY(-50%) scale(1.08); }

/* Blog post cards in the list: lift the title link area on hover */
.post-list li { transition: transform 250ms ease; }
.post-list li:hover { transform: translateX(4px); }

/* Respect users who prefer reduced motion — disable all of the above */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .btn, .btn-primary:hover, .btn-secondary:hover,
  .slider-arrow, .slider-arrow:hover,
  .post-list li, .post-list li:hover {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}

/* In-post scene divider */
.post-body .post-divider {
  border: none;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 2.5rem auto;
  opacity: 0.6;
}
