/* Design tokens */
:root{
  --bg: #f6fbff;
  --card: #ffffff;
  --accent: #7b4a2f;
  --accent-contrast: #fff;
  --muted: #6b7280;
  --max-width: 1100px;
  --radius: 12px;
  --gap: 1.25rem;
}

/* Reset & Basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #111827;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(123,74,47,.98), var(--accent));
  color: var(--accent-contrast);
  padding: 0.6rem 0;
  box-shadow: 0 4px 18px rgba(16,24,40,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow .18s ease, padding .18s ease, background-color .18s ease;
}

/* scrolled state: tighter header with stronger shadow */
.site-header.scrolled {
  padding: 0.35rem 0;
  box-shadow: 0 10px 30px rgba(16,24,40,0.12);
  background: linear-gradient(180deg, rgba(123,74,47,.985), var(--accent));
}

/* brand (logo + title) should not look like a default link */
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--accent-contrast);
  text-decoration: none;
  outline: none;
}
.brand:focus,
.brand:active {
  outline: 2px solid rgba(255,255,255,0.12);
  border-radius: 6px;
}

/* Keep header inner centered but fix height so sticky spacing is consistent */
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  justify-content: space-between;
  height: var(--header-height, 68px);
}

/* slightly smaller logo to fit the sticky bar */
.brand-logo { height:48px; width:48px; border-radius:8px; object-fit:cover; }
.brand-title{ font-weight:700; font-size:1.0rem; }

/* ensure page content is not hidden under the fixed header
   move the vertical spacing into the .container instead of body padding */
:root { --header-height: 68px; }
/* Remove body padding-top to avoid visual shift/white gap */
/* body { padding-top: var(--header-height); } */

/* push main content below the fixed header */
.container {
  flex: 1;
  max-width: var(--max-width);
  margin: calc(var(--header-height) + 2.5rem) auto 2.5rem;
  padding: 0 1.5rem;
}

/* Nav */
.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  padding:.35rem;
  cursor:pointer;
}
.nav-toggle .bar{
  display:block;
  width:22px;
  height:2px;
  background:var(--accent-contrast);
  margin:4px 0;
  border-radius:2px;
}

/* ensure open nav overlays on top */
.site-nav { position: relative; }
.site-nav ul{
  list-style:none;
  display:flex;
  gap:1rem;
  align-items:center;
}
.site-nav.open {
  /* for mobile, nav becomes a popover */
  position: absolute;
  right: 1rem;
  top: calc(var(--header-height) + 8px);
  background: rgba(255,255,255,0.02);
  padding: .75rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.12);
}
.site-nav a{
  color: var(--accent-contrast);
  text-decoration:none;
  padding:.45rem .6rem;
  border-radius:8px;
  font-weight:600;
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover{ background: rgba(255,255,255,0.06); }

/* Container */
.container {
  flex: 1;
  max-width: var(--max-width);
  margin: calc(var(--header-height) + 2.5rem) auto 2.5rem;
  padding: 0 1.5rem;
}

/* Center content */
.center-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  gap: var(--gap);
}

/* Posts grid */
.post {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(16,24,40,0.06);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width:100%;
}
.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(16,24,40,0.08);
}
.post h2{ margin-bottom:.5rem; }
.post small{ color:var(--muted); font-size:.875rem; }

/* Feature list */
.feature-list { text-align:left; display:inline-block; margin-top:.5rem; }
.feature-list li{ margin: .5rem 0; padding-left:1.1rem; position:relative; }
.feature-list li:before{
  content: "✓";
  position:absolute;
  left:0;
  color:var(--accent);
  font-weight:700;
}

/* Buttons */
.contact-link {
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: 999px;
  display: inline-block;
  transition: transform .12s ease, box-shadow .12s ease;
  background-color: var(--accent);
  box-shadow: 0 6px 18px rgba(123,74,47,0.12);
}
.contact-link:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(123,74,47,0.16);
}

/* Contact list */
.contact-list { list-style:none; padding:0; margin:0; display:flex; gap: .75rem; flex-direction:column; align-items:center; }

/* Footer */
.site-footer{
  background: var(--accent);
  color: #fff7ed;
  text-align:center;
  padding:1.25rem;
  margin-top:auto;
}

/* Responsive */
@media (max-width: 900px){
  :root { --header-height: 64px; }
  .header-inner{ padding:0 1rem; height: 64px; }
  body { padding-top: var(--header-height); }
  .site-nav ul{ display:none; flex-direction:column; gap:.5rem; background:transparent; }
  .site-nav.open ul{ display:flex; margin-top:.25rem; }
  .nav-toggle{ display:block; }
  .brand-title{ display:none; }
  .container{ margin:1.5rem auto; }
  .post{ padding:1.25rem; border-radius:10px; }
}
