:root {
  --bg: #f6efe7;
  --bg-card: #fffdf9;
  --ink: #2e2620;
  --ink-soft: #6f6259;
  --accent: #a3664f;
  --accent-dark: #7f4c39;
  --line: #e4d8ca;
  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(46, 38, 32, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { color: var(--accent); display: grid; place-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 10px 24px -12px rgba(163, 102, 79, 0.8);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg-card);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn-small { padding: 0.5rem 1.05rem; font-size: 0.85rem; background: var(--accent); color: #fff !important; }
.btn-small:hover { background: var(--accent-dark); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1240px;
  margin: 0 auto;
}

.hero-media {
  order: 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-card { order: 1; }

.avatar {
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  box-shadow: 0 8px 20px -8px rgba(46, 38, 32, 0.4);
  margin-bottom: 1.4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hero h1 em { font-style: italic; color: var(--accent-dark); }

.lede { color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }

.stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.stats dt {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}

.stats dd { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Boards ---------- */

.boards {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head { max-width: 60ch; margin-bottom: 2rem; }

.section-head h2, .about h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-head p { color: var(--ink-soft); }

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.board-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--line);
  text-decoration: none;
  box-shadow: 0 12px 28px -18px rgba(46, 38, 32, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.board-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.board-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.board-card:hover img { transform: scale(1.04); }

.board-info {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 2.2rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(28, 22, 18, 0.82), rgba(28, 22, 18, 0));
  color: #fff;
}

.board-info strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.board-card.featured .board-info strong { font-size: 1.5rem; }
.board-info span { font-size: 0.8rem; opacity: 0.85; }

.boards-more { margin-top: 1.8rem; color: var(--ink-soft); }
.boards-more a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.boards-more a:hover { text-decoration: underline; }

/* ---------- About ---------- */

.about {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.about p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about .btn { margin-top: 0.8rem; }

/* ---------- Footer ---------- */

.footer {
  padding: 1.8rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer a { color: var(--accent-dark); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Blog ---------- */

.page-head {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) 0;
  text-align: center;
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.page-head p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }

.post-list {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.post-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.post-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.post-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
}

.post-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }

.post-card time { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Article ---------- */

.post-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem) 0;
}

.post-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 4rem);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.article h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.article h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 2rem 0 0.7rem;
}

.article p { margin-bottom: 1.05rem; color: var(--ink); }

.article p.intro { font-size: 1.1rem; color: var(--ink-soft); }

.article ul, .article ol { margin: 0 0 1.05rem 1.3rem; }
.article li { margin-bottom: 0.4rem; }

.article-cta {
  margin-top: 2.2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p { margin-bottom: 0.9rem; color: var(--ink-soft); }

.article-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) 2.5rem;
}

.article-nav a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.article-nav a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: 1; aspect-ratio: 16 / 10; }
  .hero-card { order: 2; }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  .board-card.featured { grid-column: span 1; grid-row: span 1; aspect-ratio: 4 / 3; }
}
