/* ================================================================
   MIRA ROWEN — main.css v1
   Base styles, @font-face, CSS variables, typography, layout
   Design: editorial warmth — refined, soft, feminine
   ================================================================ */

/* --- FONT FACES (self-hosted WOFF2) --- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/CormorantGaramond-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/CormorantGaramond-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/Lora-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/Lora-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/Lora-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/Lora-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- CSS VARIABLES --- */
:root {
  /* Background */
  --bg-0: #faf7f5;
  --bg-1: #ffffff;
  --bg-2: #f3eeeb;
  --bg-warm: #f0e9e3;

  /* Text */
  --t0: #1a1412;
  --t1: #3d3530;
  --t2: #7a6e65;
  --t3: #a89d94;

  /* Accent */
  --acc: #c47d5c;
  --acc-hover: #a8654a;
  --acc-d: rgba(196,125,92,.08);
  --acc-l: rgba(196,125,92,.22);

  /* Semantic */
  --grn: #6b9a7d;
  --grn-d: rgba(107,154,125,.08);

  /* Line */
  --line: rgba(26,20,18,.09);
  --line-strong: rgba(26,20,18,.16);

  /* Fonts */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  /* Layout */
  --max-w: 1080px;
  --max-w-narrow: 720px;
  --pad: 24px;
  --radius: 10px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--t1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); text-decoration: none; transition: color .2s; }
a:hover { color: var(--acc-hover); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--t0);
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--t0); }
blockquote {
  border-left: 3px solid var(--acc);
  padding: 16px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--t2);
  background: var(--acc-d);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: 80px 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-warm {
  background: var(--bg-2);
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,245,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--t0);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo:hover { color: var(--acc); }
.site-logo img {
  width: 28px;
  height: 28px;
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--acc);
  border-bottom-color: var(--acc);
}

/* Burger button */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t0);
  margin: 5px auto;
  transition: all .25s;
  border-radius: 2px;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250,247,245,.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  padding: 32px var(--pad);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--t0);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--acc); }

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--t2);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--t3);
  text-decoration: none;
}
.footer-links a:hover { color: var(--acc); }
.footer-copy {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.6;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--acc-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196,125,92,.25);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--acc);
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--acc-l);
  transition: all .2s;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--acc);
  background: var(--acc-d);
  color: var(--acc-hover);
}

/* --- BREADCRUMB --- */
.breadcrumb {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--t3);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--acc); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root { --pad: 20px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 56px 0; }

  /* Header mobile */
  .nav-links { display: none; }
  .burger { display: flex; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .btn-group {
    flex-direction: column;
    gap: 10px;
  }
}
