/* ========================================================================== */
/*  ROOT + GLOBAL RESET                                                        */
/* ========================================================================== */

:root {
  /* widen global container so header/footer match page width better */
  --container: 900px;

  /* Neutral palette */
  --ff-bg: #e8e1d8;
  --ff-text: #111;
  --ff-border: #e0d6c8;

  /* Component colors */
  --ff-card-bg: #f5eee2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ff-text);
  background: var(--ff-bg);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ========================================================================== */
/*  TYPOGRAPHY                                                                */
/* ========================================================================== */

h1,
h1.wp-block-heading {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 2rem 0;
}

h2,
h2.wp-block-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

p {
  margin: 0 0 1.2rem;
}

/* ========================================================================== */
/*  HEADER + FOOTER                                                           */
/* ========================================================================== */

.site-header,
.site-footer {
  background: var(--ff-bg);
  border-bottom: 1px solid var(--ff-border);
}

.site-footer {
  border-top: 1px solid var(--ff-border);
  border-bottom: none;
  margin-top: 3rem;
  padding: 24px 0 40px;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.logo-area {
  flex-shrink: 0;
}

.logo-mark {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.logo-bold {
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
  margin-right: 2px;
  color: var(--ff-text);
}

.logo-serif {
  font-family: "Times New Roman", serif;
  font-weight: 300;
  color: var(--ff-text);
}

/* NAV */

.primary-nav,
.footer-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
}

.menu--primary,
.menu--footer {
  justify-content: center;
  gap: 32px;
}

.menu--primary a,
.menu--footer a {
  color: var(--ff-text);
  text-decoration: none;
  font-weight: 400;
}

.menu--primary a:hover,
.menu--primary a:focus,
.menu--footer a:hover,
.menu--footer a:focus {
  text-decoration: underline;
}

/* Contact pill */

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border: 1px solid #3a2f2a;
  border-radius: 999px;
  color: #3a2f2a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  line-height: 1;
  white-space: nowrap;
}

.contact-pill:hover {
  background: #3a2f2a;
  color: #fff;
}

/* ========================================================================== */
/*  GLOBAL PAGE SPACING                                                       */
/* ========================================================================== */

.site-main {
  padding-top: 80px;
  padding-bottom: 80px;
}

.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-image {
  margin-bottom: 40px;
}

/* ========================================================================== */
/*  GLOBAL REUSABLE COMPONENT CLASSES                                         */
/* ========================================================================== */

/* Sections */
.ff-section {
  margin: 60px auto;
}

.ff-section--narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.ff-section--wide {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.ff-section--center {
  text-align: center;
}

/* Cards */
.ff-card {
  background: var(--ff-card-bg);
  border-radius: 16px;
  padding: 40px 24px;
  margin-bottom: 40px;
}

/* Split Layout */
.ff-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.ff-split--reverse {
  direction: rtl;
}

.ff-split--reverse > * {
  direction: ltr;
}

/* ========================================================================== */
/*  UTILITIES                                                                 */
/* ========================================================================== */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* ========================================================================== */
/*  RESPONSIVE HEADER + FOOTER                                               */
/* ========================================================================== */

@media (max-width: 782px) {

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .primary-nav,
  .footer-nav {
    justify-content: center;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .contact-pill {
    margin-top: 4px;
  }
}
