:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-strong: #fff7ea;
  --ink: #1f1b16;
  --muted: #675e52;
  --line: rgba(31, 27, 22, 0.12);
  --accent: #a84d1d;
  --accent-strong: #7f3710;
  --success: #2d6a4f;
  --danger: #9c2f2f;
  --shadow: 0 18px 45px rgba(43, 33, 20, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --content-width: min(1120px, calc(100vw - 32px));
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: radial-gradient(circle at top, rgba(255, 221, 180, 0.55), transparent 38%), var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(246, 241, 231, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #f1b26f);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 1.1rem/1 var(--font-display);
  box-shadow: var(--shadow);
}

.brand__name {
  font: 700 1.15rem/1.1 var(--font-display);
}

.brand__tagline {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav__link {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.site-main {
  padding: 48px 0 64px;
}

.hero,
.panel,
.post-card,
.article,
.page,
.state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 32px;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(255, 209, 159, 0.44), rgba(255, 255, 255, 0.4)),
    var(--surface);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.article h1,
.page h1,
.state h1 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.hero p,
.section-copy,
.state p,
.page__content,
.article__content {
  color: var(--muted);
  font-size: 1rem;
}

.hero__meta,
.article__meta,
.listing__summary,
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.listing {
  display: grid;
  gap: 18px;
}

.listing__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.post-card {
  display: grid;
  overflow: hidden;
}

.post-card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(168, 77, 29, 0.2), rgba(241, 178, 111, 0.38));
}

.post-card__body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.post-card__title {
  margin: 0;
  font: 700 1.45rem/1.15 var(--font-display);
}

.post-card__title a,
.article h1 a {
  text-decoration: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent-strong);
  font-size: 0.84rem;
  padding: 8px 12px;
  text-decoration: none;
}

.article,
.page,
.panel,
.state {
  padding: 28px;
}

.article__content,
.page__content {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.article__content > *:first-child,
.page__content > *:first-child {
  margin-top: 0;
}

.article__content > *:last-child,
.page__content > *:last-child {
  margin-bottom: 0;
}

.article__content h2,
.article__content h3,
.page__content h2,
.page__content h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 0;
}

.state {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.state__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.state--error .state__badge {
  color: var(--danger);
}

.state--loading .state__badge {
  color: var(--accent);
}

.state--success .state__badge {
  color: var(--success);
}

.skeleton {
  display: grid;
  gap: 16px;
}

.skeleton__block {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 233, 205, 0.9), rgba(255, 255, 255, 0));
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

.skeleton__block--hero {
  height: 180px;
}

.skeleton__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.skeleton__card {
  height: 260px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
}

.site-footer__inner {
  display: grid;
  gap: 18px;
  padding: 24px 0 38px;
}

.site-footer__title {
  margin: 0;
  font: 700 1.1rem/1.15 var(--font-display);
}

.site-footer__meta {
  justify-content: space-between;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    justify-content: start;
  }

  .hero,
  .article,
  .page,
  .panel,
  .state {
    padding: 22px;
  }

  .site-main {
    padding-top: 28px;
  }
}
