:root {
  --bg: #f4efe6;
  --bg-elevated: #fbf7f0;
  --ink: #1c1914;
  --muted: #6b6358;
  --line: #ddd4c6;
  --accent: #9a3b24;
  --accent-soft: #c45c3e;
  --nav: #1f2a22;
  --nav-text: #efe8dc;
  --shadow: 0 18px 40px rgba(28, 25, 20, 0.08);
  --radius: 18px;
  --max: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(154, 59, 36, 0.08), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(31, 42, 34, 0.08), transparent 50%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  background: var(--nav);
  color: var(--nav-text);
}

.header-inner,
.nav-inner,
.footer-inner,
.hero,
.layout,
.page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: 0.04em;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-sub {
  color: #c9c0b2;
  font-size: 0.78rem;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
}

.nav a {
  position: relative;
  color: #d8d0c4;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent-soft);
}

.hero {
  padding: 72px 0 28px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.page h1,
.article h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

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

.lede {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 280px;
  gap: 36px;
  padding: 24px 0 80px;
}

.feed {
  display: grid;
  gap: 22px;
}

.card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thumb {
  min-height: 148px;
  border-radius: 12px;
  background: #2a3a31;
  overflow: hidden;
}

.thumb span {
  display: flex;
  height: 100%;
  min-height: 148px;
  align-items: flex-end;
  padding: 14px;
  color: #f6eee4;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.thumb.one { background: linear-gradient(160deg, #31473c, #9a3b24); }
.thumb.two { background: linear-gradient(160deg, #1f2a22, #6d5a3c); }
.thumb.three { background: linear-gradient(160deg, #3d2a24, #8a6a3a); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tag {
  color: var(--accent);
  font-weight: 600;
}

.card h2,
.sidebar h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}

.card p,
.sidebar p,
.article p,
.about p {
  margin: 0;
  color: #4d463c;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #cfc4b3;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel {
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.panel li + li {
  margin-top: 10px;
}

.panel a {
  border-bottom: 1px solid transparent;
}

.panel a:hover {
  border-bottom-color: var(--accent);
}

.page,
.article-wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.article h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.article .meta {
  margin: 16px 0 28px;
}

.article p + p,
.about p + p {
  margin-top: 1.1em;
}

.article h2 {
  margin: 1.8em 0 0.6em;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.article blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: #3d372f;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 860px) {
  .layout,
  .card,
  .footer-inner {
    grid-template-columns: 1fr;
    display: block;
  }

  .nav {
    gap: 14px;
  }

  .thumb {
    min-height: 120px;
  }

  .card {
    display: block;
  }

  .thumb {
    margin-bottom: 16px;
  }
}
