:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #1b1a17;
  --muted: #6b665e;
  --line: #e6e1d8;
  --accent: #a8442b;
  --accent-dark: #7f3120;
  --green: #245c4a;
  --header: rgba(251, 250, 247, .92);
  --hover: #f1ede5;
  --strip-bg: #1b1a17;
  --strip-ink: #f4f1ea;
  --strip-muted: #c9c3b8;
  --strip-line: #4a463f;
  --note: #f3efe7;
  --quote: #3c3831;
  --shadow: rgba(35, 28, 20, .10);
  --img-bg: #e8e2d8;
  --glow1: rgba(168, 68, 43, .10);
  --glow2: rgba(36, 92, 74, .10);
  --btn-ink: #ffffff;
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0f13;
  --paper: #151920;
  --ink: #ece9e2;
  --muted: #9aa3b2;
  --line: #252b35;
  --accent: #e08963;
  --accent-dark: #f0a37f;
  --green: #8fc7b0;
  --header: rgba(13, 15, 19, .92);
  --hover: #1d232d;
  --strip-bg: #1a2029;
  --strip-ink: #f4f1ea;
  --strip-muted: #aab3c2;
  --strip-line: #3a4350;
  --note: #1a2029;
  --quote: #c8c2b8;
  --shadow: rgba(0, 0, 0, .38);
  --img-bg: #1f252e;
  --glow1: rgba(224, 137, 99, .10);
  --glow2: rgba(143, 199, 176, .07);
  --btn-ink: #12161c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 12% 8%, var(--glow1), transparent 60%),
    radial-gradient(800px 500px at 88% 92%, var(--glow2), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

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

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

.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: .5px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.1;
}

.brand-tagline {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  padding: 9px 12px;
  border-radius: 9px;
}

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

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  padding: 8px 11px;
  font-size: 18px;
  line-height: 1;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  max-width: 15ch;
}

.hero-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 19px;
  margin: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero-figure-wrap { margin-top: 30px; }

.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--img-bg);
}

.hero-figure img {
  width: 100%;
  height: clamp(220px, 36vw, 430px);
  object-fit: cover;
}

.hero-figure figcaption,
.article-cover figcaption {
  padding: 9px 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section { padding: 48px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -.01em;
  margin: 0;
}

.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--shadow);
}

.card-cover {
  height: 180px;
  background: var(--img-bg);
  overflow: hidden;
}

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

.card:hover .card-cover img { transform: scale(1.035); }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.card-tag {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 10px;
}

.card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.22;
  margin: 0 0 10px;
}

.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent-dark); }

.card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

.card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.about-strip {
  margin: 20px 0 8px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--strip-bg);
  color: var(--strip-ink);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}

.about-strip h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 10px;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--btn-ink);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn:hover { background: var(--accent-dark); color: var(--btn-ink); }

.btn-ghost {
  background: transparent;
  border-color: var(--strip-line);
  color: var(--strip-ink);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .09); color: var(--strip-ink); }

.page-head { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }

.page-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin: 0 0 16px;
}

.page-head p { max-width: 65ch; color: var(--muted); margin: 0; }

.article-cover {
  margin: 30px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--img-bg);
}

.article-cover img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.prose { max-width: 72ch; padding: 38px 0 56px; }
.prose h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 30px;
  margin: 38px 0 14px;
}
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 26px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--quote);
}

.note {
  background: var(--note);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--muted);
}

.list { margin: 0; padding: 0; list-style: none; }
.list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
}
.list-thumb {
  width: 104px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--img-bg);
}
.list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list a { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.25; }
.list a:hover { color: var(--accent-dark); }
.list time { color: var(--muted); font-size: 14px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding-top: 34px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card h3 { margin: 0 0 8px; font-size: 17px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; }

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 60px 0;
}
.notfound .code {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 12vw, 120px);
  line-height: 1;
  color: var(--accent);
}
.notfound h1 { font-size: 28px; margin: 10px 0 12px; font-weight: 500; }
.notfound p { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 820px) {
  .about-strip { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 18px 40px var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .list li { align-items: flex-start; }
  .list-thumb { width: 84px; height: 64px; }
  .list a { font-size: 20px; }
  .hero-meta { gap: 12px; }
  .theme-toggle { width: 38px; height: 38px; }
}
