/* ============================================================
   Change Your Space Yoga — Site Theme
   ============================================================
   Edit variables below to change the entire look.
   Fonts, colors, spacing — all in one place.
   ============================================================ */

/* ----- Palette ----- */
:root {
  --bg:        #faf6f1;       /* page background */
  --surface:   #fffdf9;       /* cards, panels */
  --ink:       #3a302a;       /* primary text */
  --muted:     #8a7e74;       /* secondary text */
  --border:    #e6ddd3;       /* lines, card borders */
  --accent:    #7b9e87;       /* buttons, links (sage green) */
  --accent-hover: #6b8e77;    /* button hover */
  --warm:      #c4956a;       /* warm accent (unused, available) */
  --soft:      #c5b5d4;       /* soft accent (unused, available) */
  --gold:      #c9a84c;       /* decorative details */

  /* States */
  --success:   #3e9b7a;
  --info:      #4d7bd9;
  --warn:      #d98a2b;
  --danger:    #d95f5f;
}

/* ----- Fonts ----- */
:root {
  --font-body:  ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-heading: 'Cormorant Garamond', ui-serif, Georgia, serif;
  --font-mono:  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ----- Spacing ----- */
:root {
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-pill: 28px;
}


/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(123,158,135,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(197,181,212,.08) 0%, transparent 60%);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }

::selection { background: rgba(123,158,135,.2); color: var(--ink); }

.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }


/* ============================================================
   Nav
   ============================================================ */
.site-nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(250,246,241,.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .03em;
}

.site-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  position: relative;
  transition: color .2s;
}

.site-links a:hover { color: var(--accent); }

.site-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .3s, left .3s;
}

.site-links a:hover::after { width: 100%; left: 0; }


/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero::before {
  content: '\2727';
  display: block;
  font-size: 4.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: .6;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-style: italic;
}


/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: .75rem auto 0;
  opacity: .5;
}

.section h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .75rem;
}


/* ============================================================
   Cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(58,48,42,.1);
  transition: box-shadow .3s, transform .3s;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(58,48,42,.1);
  transform: translateY(-3px);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .75rem;
  color: var(--ink);
}

.card p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-body { padding: 1rem 0; text-align: left; }

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Gallery images — warm tint on hover */
.card img {
  transition: filter .3s;
}
.card:hover img {
  filter: brightness(1.03) saturate(1.1);
}


/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: .6rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .03em;
  border: none;
  cursor: pointer;
  transition: background .3s, transform .2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: #fff;
}

.btn-muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-muted:hover {
  background: rgba(0,0,0,.03);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}


/* ============================================================
   Forms
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="file"],
textarea,
select {
  padding: .6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--surface);
  color: var(--ink);
}

textarea { resize: vertical; }
label { font-size: .9rem; color: var(--muted); display: block; margin-bottom: .25rem; }
small { color: var(--muted); }


/* ============================================================
   Tags
   ============================================================ */
.tag {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--radius-s);
  font-size: .8rem;
  background: rgba(123,158,135,.1);
  color: var(--accent);
}


/* ============================================================
   Alerts
   ============================================================ */
.alert {
  padding: .8rem 1.2rem;
  border-radius: var(--radius-s);
  font-size: .9rem;
  margin-bottom: 1rem;
}

.alert.success { background: rgba(62,155,122,.1); color: var(--success); }
.alert.info    { background: rgba(77,123,217,.1); color: var(--info); }
.alert.warn    { background: rgba(217,138,43,.1); color: var(--warn); }
.alert.danger  { background: rgba(217,95,95,.1); color: var(--danger); }


/* ============================================================
   Prose (blog content)
   ============================================================ */
.prose { max-width: 720px; }
.prose h1 { font-family: var(--font-heading); font-weight: 300; font-style: italic; font-size: 2.2rem; }
.prose h2 { font-family: var(--font-heading); font-weight: 400; font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { font-family: var(--font-heading); font-weight: 400; font-size: 1.3rem; margin-top: 1.5rem; }
.prose p { margin: 1rem 0; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  background: rgba(201,168,76,.04);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}


/* ============================================================
   Hearts
   ============================================================ */
.heart-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  transition: color .2s;
  padding: .2rem;
}

.heart-button:hover,
.heart-button.liked { color: #e25555; }


/* ============================================================
   User pill (dropdown)
   ============================================================ */
.user-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-pill-btn {
  padding: .4rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: .85rem;
  font-family: var(--font-body);
}

.user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: .3rem;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 100;
  white-space: nowrap;
}

.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  padding: .5rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-family: var(--font-body);
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
}

.user-menu a:first-child,
.user-menu button:first-child { border-top: none; }

.user-menu a:hover,
.user-menu button:hover { background: rgba(0,0,0,.03); }

.user-menu a::after { display: none; }


/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  font-style: italic;
}

.site-footer a { color: var(--muted); }

.site-footer::before {
  content: '\2766';
  display: block;
  font-size: 3rem;
  color: var(--gold);
  opacity: .4;
  margin-bottom: .75rem;
}


/* ============================================================
   Grid (post listings)
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}


/* ============================================================
   Utilities
   ============================================================ */
.stack-s > * + * { margin-top: var(--space-2); }
.stack-m > * + * { margin-top: var(--space-4); }
.stack-l > * + * { margin-top: var(--space-6); }


/* ============================================================
   Smooth scroll & polish
   ============================================================ */
html { scroll-behavior: smooth; }

/* Subtle fade-in for sections */
.section, .hero {
  animation: fadeUp .6s ease-out both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Focus styles — earthy ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2rem 0; }
  .site-nav-inner { justify-content: center; text-align: center; }
  .site-links { justify-content: center; }
  .grid { grid-template-columns: 1fr; }
}
