/* =========================================================================
   The Izzie Effect - Blog stylesheet
   This file controls how every page looks. Change a value here once and
   it updates across the whole blog. Colours and fonts below are copied
   from the Wix booking site so the two sites match.
   ========================================================================= */

/* ---- 1. Brand values, defined once so you can reuse them everywhere ----
   These are "CSS variables". Use them later like: color: var(--brown); */
:root {
  --cream:  #F2E5DC;  /* page background */
  --brown:  #88522C;  /* headings + button accents (brand brown) */
  --bar:    #8D6F5A;  /* header + footer background (taupe) */
  --ink:    #000000;  /* body text */
  --white:  #FFFFFF;

  --font-heading: "Cinzel", serif;            /* big titles + logo */
  --font-nav:     "Source Sans 3", sans-serif; /* menu + footer text */
  --font-body:    "Inter", sans-serif;         /* paragraphs */

  --max-width: 900px; /* how wide the readable content area gets */
}

/* ---- 2. Baseline reset so browsers start from the same place ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
    min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- 3. Headings ---- */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--brown);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: 44px; margin-bottom: 8px; }
h2 { font-size: 28px; margin-bottom: 8px; }

/* ---- 4. Header bar (brown, with logo + menu) ---- */
.site-header {
  background-color: var(--bar);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo {
  font-family: var(--font-nav);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* the navigation menu */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-nav);
  color: var(--white);
  font-size: 17px;
  text-decoration: none;
  opacity: 0.9;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; }
.site-nav a.active { text-decoration: underline; font-weight: 600; } /* marks the page you're on */

/* the hamburger button - hidden on desktop, shown on small screens */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font-nav);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* ---- 5. Main content area, centred with a max width ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  flex: 1;
}
.page-intro { margin-bottom: 36px; }
.page-intro p { max-width: 640px; }

/* ---- 6. The directory list on the index page ---- */
.post-list { list-style: none; display: grid; gap: 24px; }
.post-card {
  background-color: var(--white);
  border: 1px solid rgba(136, 82, 44, 0.25);
  border-radius: 8px;
  padding: 24px;
}
.post-card h2 { margin-bottom: 4px; }
.post-card .post-date {
  font-family: var(--font-nav);
  color: var(--brown);
  font-size: 14px;
  margin-bottom: 12px;
}
.post-card p { margin-bottom: 16px; }

/* ---- 7. Buttons / links styled as pills (outline style, like your site) ---- */
.btn {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 15px;
  color: var(--brown);
  background: transparent;
  border: 1px solid var(--brown);
  border-radius: 30px;       /* matches the 30px round corners from your site */
  padding: 8px 22px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background-color: var(--brown); color: var(--white); }

/* ---- 8. Single post page ---- */
.post-body { margin-top: 24px; }
.post-body p { margin-bottom: 18px; max-width: 680px; }
.post-meta {
  font-family: var(--font-nav);
  color: var(--brown);
  font-size: 14px;
  margin-bottom: 24px;
}
.back-link { margin-top: 40px; }

/* ---- 9. Footer (brown, mirrors your Wix footer) ---- */
.site-footer {
  background-color: var(--bar);
  color: var(--white);
  font-family: var(--font-nav);
  text-align: center;
  padding: 40px 24px;
  margin-top: 60px;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-logo {
  font-family: var(--font-nav);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.9px;
  display: inline-block;
  margin-bottom: 12px;
}
.site-footer p { margin-bottom: 8px; }
.footer-social { display: flex; gap: 20px; justify-content: center; margin-top: 12px; }

/* ---- 10. Small screens: stack the menu behind the hamburger ---- */
@media (max-width: 700px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;            /* hidden until the hamburger is tapped */
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 12px;
  }
  .site-nav.open { display: flex; } /* JS adds "open" when you tap the button */
  h1 { font-size: 34px; }
}
/* White reading panel, post pages only (index has no <article>) */
article {
  background-color: var(--white);
  border: 1px solid rgba(136, 82, 44, 0.2);
  border-radius: 8px;
  padding: 40px;
  margin-top: 8px;
}
@media (max-width: 700px) {
  article { padding: 24px; }
}