/*
Theme Name: BloomWithin Jules
Theme URI: https://bloomwithinco.com
Author: Codex
Author URI: https://openai.com
Description: A polished wellness magazine theme for BloomWithin Co. with cycle-syncing guides, skincare content, capsule closet tools, YMYL-friendly disclosure sections, and activation seed content.
Version: 1.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bloomwithin-jules
Tags: blog, wellness, magazine, responsive, accessibility-ready
*/

:root {
  --ink: #24201d;
  --muted: #69605a;
  --soft: #f7f3ef;
  --paper: #fffdf9;
  --line: #e3d9cf;
  --rose: #b85347;
  --rose-dark: #88372f;
  --moss: #54715f;
  --sage: #dce6dd;
  --gold: #b9893f;
  --lavender: #e9e4f2;
  --shadow: 0 18px 45px rgba(42, 31, 26, .1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--rose-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--rose);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.container,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 0;
}

.site-title a {
  color: var(--ink);
}

.site-tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 11px;
  font-weight: 700;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  display: block;
  color: var(--ink);
  font-weight: 650;
  font-size: .95rem;
  padding: 9px 10px;
  border-radius: 6px;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: var(--soft);
  text-decoration: none;
}

.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(220, 230, 221, .95), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(233, 228, 242, .85), transparent 30%),
    linear-gradient(135deg, #fffaf4 0%, #f6eee7 55%, #edf4ee 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: center;
  gap: 52px;
  padding: 72px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.12;
  color: var(--ink);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  margin: 0 0 18px;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 10px;
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: #4c433e;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.wp-block-button__link,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--rose-dark);
  background: var(--rose-dark);
  color: #fff;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
.button:focus,
button[type="submit"]:hover,
button[type="submit"]:focus {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  text-decoration: none;
}

.button.secondary {
  color: var(--rose-dark);
  background: transparent;
}

.button.secondary:hover,
.button.secondary:focus {
  background: #fff;
  color: var(--rose-dark);
}

.hero-panel {
  background: rgba(255, 253, 249, .8);
  border: 1px solid rgba(136, 55, 47, .2);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 22px;
}

.cycle-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.cycle-wheel {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: conic-gradient(#d8bbb6 0 25%, #dfe9da 25% 50%, #efdba8 50% 75%, #d9d1e8 75% 100%);
  position: relative;
}

.cycle-wheel::after {
  content: "";
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}

.cycle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cycle-list span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-header p {
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.post-card,
.content-box,
.phase-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(38, 31, 26, .05);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sage);
  color: var(--moss);
  font-weight: 900;
  margin-bottom: 14px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card h3 a {
  color: var(--ink);
}

.post-card p {
  color: var(--muted);
}

.post-card .read-more {
  margin-top: auto;
  font-weight: 800;
}

.entry-meta,
.post-meta {
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.entry-content {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: #332d29;
}

.entry-content p {
  margin: 0 0 1.25em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
}

.page-hero {
  padding: 64px 0 36px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar .content-box + .content-box {
  margin-top: 16px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  color: var(--moss);
  font-weight: 800;
}

.site-footer {
  background: #211d1a;
  color: #f7f3ef;
  margin-top: 70px;
  padding: 46px 0 32px;
}

.site-footer a {
  color: #f5d6ca;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 16px 0 0;
}

.copyright {
  margin: 22px 0 0;
  color: #cfc4bb;
  font-size: .92rem;
}

.disclaimer {
  color: #cfc4bb;
  font-size: .92rem;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.swatch-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(36, 32, 29, .2);
}

.not-found {
  text-align: center;
  max-width: 720px;
  margin: 80px auto;
}

@media (max-width: 900px) {
  .hero-inner,
  .content-layout,
  .footer-inner,
  .grid.three,
  .grid.two,
  .phase-grid,
  .capsule-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    position: absolute;
    inset: 68px 0 auto 0;
    display: none;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    display: grid;
    gap: 4px;
  }

  .hero-inner,
  .section {
    padding: 44px 0;
  }

  .section-header {
    display: block;
  }

  .cycle-list {
    grid-template-columns: 1fr;
  }
}
