:root {
  --bg: #f6f3ed;
  --paper: #fffdf8;
  --ink: #24211d;
  --muted: #746f67;
  --line: #dcd6cc;
  --accent: #c54f2f;
  --accent-soft: #f2dfd6;
  --shadow: 0 22px 70px rgba(53, 43, 31, .08);
  --max: 1100px;
}

html[data-theme="dark"] {
  --bg: #191817;
  --paper: #22201e;
  --ink: #eee9e1;
  --muted: #aaa39a;
  --line: #3a3733;
  --accent: #ee805e;
  --accent-soft: #422a22;
  --shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0, var(--accent-soft), transparent 28rem),
    var(--bg);
  font-family: ui-serif, Georgia, "Noto Serif SC", "Songti SC", serif;
  line-height: 1.75;
  transition: color .25s, background-color .25s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header { padding: 28px 0 18px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--ink); border-radius: 50%; font-size: 13px; letter-spacing: -.08em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.theme-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; }
.theme-button:hover { background: var(--paper); }

.hero { padding: clamp(74px, 12vw, 144px) 0 90px; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(48px, 9vw, 104px); font-weight: 500; letter-spacing: -.065em; line-height: .98; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-copy { display: grid; grid-template-columns: 1fr minmax(280px, 430px); gap: 40px; align-items: end; margin-top: 48px; }
.hero-copy p { grid-column: 2; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section { padding: 76px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.section-head a { color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.feature { display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.feature-art { position: relative; min-height: 360px; background: #bd563a; overflow: hidden; }
.feature-art::before, .feature-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.feature-art::before { width: 280px; height: 280px; top: 42px; left: 50%; transform: translateX(-50%); }
.feature-art::after { width: 170px; height: 170px; top: 97px; left: 50%; transform: translateX(-50%); }
.feature-letter { position: absolute; inset: 0; display: grid; place-items: center; color: #fff8ec; font-size: 150px; font-style: italic; line-height: 1; transform: translateY(-5px); }
.feature-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 7vw, 78px); }
.meta { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.feature h3 { margin: 18px 0 20px; font-size: clamp(34px, 5vw, 58px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
.feature p { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.read-more { color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 800; }
.read-more::after { content: " →"; }

.post-list { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 28px; align-items: center; padding: 30px 4px; border-bottom: 1px solid var(--line); transition: padding .2s, color .2s; }
.post-row:hover { padding-left: 12px; color: var(--accent); }
.post-row time, .post-row span { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; }
.post-row h3 { margin: 0; font-size: clamp(21px, 3vw, 30px); font-weight: 500; letter-spacing: -.025em; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note { min-height: 215px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.note:nth-child(2) { transform: translateY(18px); }
.note p { margin: 0 0 24px; font-size: 20px; line-height: 1.6; }
.note small { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; }

.page-intro { max-width: 780px; padding: 90px 0 66px; }
.page-intro h1, .article h1 { margin: 0 0 26px; font-size: clamp(46px, 8vw, 84px); font-weight: 500; letter-spacing: -.055em; line-height: 1.03; }
.page-intro p { color: var(--muted); font-size: 20px; }
.article { max-width: 740px; padding: 80px 0 110px; }
.article-header { margin-bottom: 60px; }
.article-body { font-size: 18px; }
.article-body p { margin: 0 0 1.6em; }
.article-body h2 { margin: 2.2em 0 .8em; font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.article-body blockquote { margin: 2.2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 23px; font-style: italic; }
.article-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); }
.share { border: 1px solid var(--line); border-radius: 99px; padding: 9px 16px; color: var(--muted); background: transparent; cursor: pointer; }
.share:hover { color: var(--ink); background: var(--paper); }
.about-card { display: grid; grid-template-columns: 180px 1fr; gap: 40px; margin-top: 50px; padding: 40px; background: var(--paper); border: 1px solid var(--line); }
.portrait { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: #fff; background: var(--accent); font-size: 54px; font-style: italic; }
.about-card h2 { margin-top: 0; font-size: 32px; font-weight: 500; }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.reading-progress { position: fixed; z-index: 10; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); }

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-links a:not([aria-current="page"]) { display: none; }
  .hero { padding-top: 70px; }
  .hero-copy { display: block; }
  .hero-copy p { max-width: 470px; margin-top: 28px; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 250px; }
  .post-row { grid-template-columns: 1fr auto; gap: 9px 18px; }
  .post-row time { grid-column: 1 / -1; }
  .note-grid { grid-template-columns: 1fr; }
  .note:nth-child(2) { transform: none; }
  .about-card { grid-template-columns: 1fr; padding: 28px; }
  .portrait { width: 120px; }
  .footer-inner { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
