:root {
  --cream: #f2ebe0;
  --paper: #faf6ef;
  --ink: #16120f;
  --muted: #5a5148;
  --ember: #c24e24;
  --ember-dark: #9a3a18;
  --line: rgba(22, 18, 15, 0.14);
  --max: 980px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(194, 78, 36, 0.07), transparent 28%),
    var(--cream);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.page {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 235, 224, 0.92);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.nav {
  display: none;
  gap: 1rem;
  font-size: 0.88rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0.75rem;
  top: 3.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  min-width: 10rem;
  box-shadow: 0 12px 28px rgba(22, 18, 15, 0.1);
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    min-width: 0;
  }
}

/* Hero — compact, not full-viewport empty */
.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 1.75rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    padding: 1.75rem 0 2rem;
  }
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--ember);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lead {
  margin: 0 0 1.1rem;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ember);
  color: #fff8f3;
}

.btn-primary:hover {
  background: var(--ember-dark);
}

.btn-ghost {
  border: 1px solid var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero-art {
  margin: 0;
  justify-self: center;
  width: min(100%, 280px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(22, 18, 15, 0.12);
  transform: rotate(-1deg);
}

@media (min-width: 800px) {
  .hero-art {
    width: min(100%, 320px);
    justify-self: end;
  }
}

.hero-art img {
  width: 100%;
}

/* Sections */
.block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.block-head {
  margin-bottom: 1rem;
}

.label {
  margin: 0 0 0.35rem;
  color: var(--ember);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.block h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.12;
  font-weight: 600;
}

.prose {
  display: grid;
  gap: 0.75rem;
  max-width: 62ch;
}

.prose p {
  margin: 0;
  color: var(--muted);
}

/* Articles */
.articles {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .articles {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

.article-card {
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: rgba(194, 78, 36, 0.45);
  transform: translateY(-1px);
}

.article-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd6cb;
}

.article-card-body {
  padding: 1rem 1.05rem 1.1rem;
}

.category-filter-host {
  margin: 0 0 1.15rem;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.article-card[hidden] {
  display: none !important;
}

.cat-chip:hover {
  border-color: rgba(194, 78, 36, 0.4);
  color: var(--ink);
}

.cat-chip.is-active {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff8f3;
}

.article-card .cat {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}

.article-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.15;
  font-weight: 600;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-card .meta {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

.article-cover {
  margin: 0 0 1.15rem;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Book */
.book-row {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 720px) {
  .book-row {
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
  }
}

.book-row > img {
  width: min(100%, 200px);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(22, 18, 15, 0.1);
}

.book-kicker {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
}

.book-row h2 {
  margin-bottom: 0.55rem;
}

.book-row p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.book-quote {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink) !important;
  line-height: 1.35;
}

.book .actions {
  margin-top: 0.35rem;
}

.row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.text-link {
  color: var(--ember);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.section-lead {
  margin: 0 0 1.1rem;
  max-width: 48ch;
  color: var(--muted);
}

/* Interest form */
.interest-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-row .optional {
  opacity: 0.7;
  font-size: 0.8rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(194, 78, 36, 0.35);
  outline-offset: 1px;
}

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.25em;
}

.form-status.is-ok {
  color: #2f6b3a;
}

.form-status.is-error {
  color: #9a3a18;
}

/* Article page */
.page-title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
}

.article-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
}

.article-page .meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-body {
  margin-bottom: 1.5rem;
}

.back-link {
  margin: 0;
}

.back-link a {
  color: var(--ember);
  text-decoration: none;
  font-weight: 600;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Footer */
.foot {
  padding: 1.35rem 0 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .article-card:hover {
    transform: none;
  }
}
