@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --paper: #F6F2E9;
  --paper-deep: #EFE9DA;
  --ink: #23271D;
  --ink-soft: #4A4E42;
  --forest: #2F4A3C;
  --forest-deep: #22362C;
  --ipe: #E8A93A;
  --brick: #A84B32;
  --brick-deep: #8A3C28;
  --sand: #DCD3BE;
  --sand-deep: #C4B896;
  --max-w: 700px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover{ color: var(--brick); }

h1, h2, h3{
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
.site-header{
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.site-header-inner{
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand{
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover{ color: var(--ink); }
.brand-badge{
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--forest);
  color: var(--paper);
  padding: 3px 9px 4px;
  border-radius: 20px;
  transform: translateY(1px);
}
.site-nav{
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
}
.site-nav a{ color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover{ color: var(--brick); }

/* ---------- Roofline motif (brand signature) ---------- */
.roofline{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper-deep);
}
.roofline-slim{ height: 46px; }
.roofline-hero{ height: 150px; }

.roofline-layer{
  position: absolute;
  left: 0; right: 0; bottom: 0;
}
.roofline-back{
  top: 0;
  background: var(--sand-deep);
  clip-path: polygon(0% 100%,8% 28%,16% 100%,24% 28%,32% 100%,40% 28%,48% 100%,56% 28%,64% 100%,72% 28%,80% 100%,88% 28%,96% 100%,100% 55%,100% 100%);
}
.roofline-front{
  top: 34%;
  background: var(--forest);
  clip-path: polygon(0% 100%,6% 45%,12% 100%,18% 45%,24% 100%,30% 45%,36% 100%,42% 45%,48% 100%,54% 45%,60% 100%,66% 45%,72% 100%,78% 45%,84% 100%,90% 45%,96% 100%,100% 62%,100% 100%);
}
.roofline-front.brick{ background: var(--brick); }
.roofline-slim .roofline-front{
  top: 0;
  background: var(--brick);
  clip-path: polygon(0% 100%,10% 15%,20% 100%,30% 15%,40% 100%,50% 15%,60% 100%,70% 15%,80% 100%,90% 15%,100% 100%);
}
.roofline-sun{
  position: absolute;
  top: 22px;
  right: 9%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ipe);
}

/* ---------- Main content ---------- */
main{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.post-meta{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.post-meta .tag{
  display: inline-block;
  background: var(--sand);
  color: var(--forest-deep);
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

h1.post-title{
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: 0.32em;
  max-width: 17ch;
}

.post-lede{
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-weight: 400;
  margin-bottom: 2.2em;
  max-width: 58ch;
}

article h2{
  font-size: 1.55rem;
  margin-top: 1.8em;
}
article h3{
  font-size: 1.15rem;
  margin-top: 1.4em;
}
article p{ margin: 0 0 1.2em; max-width: 66ch; }
article ul, article ol{ margin: 0 0 1.4em; padding-left: 1.3em; max-width: 64ch; }
article li{ margin-bottom: 0.5em; }
article strong{ color: var(--forest-deep); }

blockquote{
  border-left: 3px solid var(--ipe);
  margin: 2em 0;
  padding: 0.3em 0 0.3em 1.2em;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- Contact card ---------- */
.contact-card{
  background: var(--forest-deep);
  color: var(--paper);
  border-radius: 6px;
  padding: 34px 34px 30px;
  margin-top: 2.6em;
  position: relative;
  overflow: hidden;
}
.contact-card::before{
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(232,169,58,0.14);
}
.contact-card h3{
  color: var(--paper);
  font-size: 1.4rem;
  margin-bottom: 0.45em;
  max-width: 22ch;
  position: relative;
}
.contact-card p{
  color: #D6DED4;
  margin-bottom: 1.3em;
  max-width: 52ch;
  position: relative;
}
.contact-card dl{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 18px;
  font-size: 0.95rem;
  margin: 0;
  position: relative;
}
.contact-card dt{ color: var(--ipe); font-weight: 500; }
.contact-card dd{ margin: 0; color: var(--paper); }
.contact-card .cta{
  display: inline-block;
  margin-top: 22px;
  background: var(--ipe);
  color: var(--forest-deep);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 4px;
  position: relative;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-card .cta:hover{ background: #F2BE5D; color: var(--forest-deep); transform: translateY(-1px); }

/* ---------- Related links ---------- */
.related{ margin-top: 2.6em; }
.related h3{ font-size: 1rem; color: var(--ink-soft); font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 1em; }
.related ul{ list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.related a{
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--sand);
}
.related a:hover{ color: var(--brick); }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--sand);
  margin-top: 40px;
}
.site-footer-inner{
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer-inner strong{ color: var(--ink); }

/* ---------- Hero (index page) ---------- */
.hero{
  max-width: 1040px;
  margin: 0 auto;
  padding: 54px 24px 30px;
}
.hero h1{
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  max-width: 15ch;
  margin-bottom: 0.35em;
}
.hero p{
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* ---------- Post grid (index) ---------- */
.post-grid{
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 24px 70px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.post-card{
  background: var(--paper-deep);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  grid-column: span 3;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card.featured{ grid-column: span 6; flex-direction: row; }
.post-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 28px -14px rgba(35,39,29,0.28); }

.post-card .swatch{ position: relative; height: 84px; overflow: hidden; }
.post-card.featured .swatch{ height: auto; width: 42%; flex-shrink: 0; }

.post-card .card-body{ padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card.featured .card-body{ padding: 32px 34px; justify-content: center; }
.post-card .tag{
  font-size: 0.78rem;
  color: var(--forest-deep);
  font-weight: 600;
}
.post-card h2{
  font-size: 1.18rem;
  margin: 0;
}
.post-card.featured h2{ font-size: 1.75rem; max-width: 16ch; }
.post-card p{
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}
.post-card .read-more{
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brick);
}

@media (max-width: 720px){
  .post-card{ grid-column: span 6; }
  .post-card.featured{ flex-direction: column; }
  .post-card.featured .swatch{ width: 100%; height: 130px; }
}

@media (max-width: 560px){
  main{ padding: 36px 20px 32px; }
  .contact-card{ padding: 26px 22px; }
  .roofline-hero{ height: 110px; }
}
