/*
Theme Name: 老安乱弹
Description: A Chinese literary blog in ink black and vermilion.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: laongon-notebook
*/
:root {
  color-scheme: dark;
  --ink: #141110;
  --panel: #1d1615;
  --paper: #f3e8d9;
  --muted: #c6b5a8;
  --red: #f07c71;
  --line: #55403b;
  --serif: "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font: 1rem/1.75 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .24em; }
a:hover, a:focus-visible { color: var(--red); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.shell { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; min-height: 5rem; padding-block: 1rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; font: bold 1.35rem var(--serif); text-decoration: none; }
.site-logo { display: block; width: auto; height: 2.8rem; padding: .14rem; background: #fff; border-radius: .2rem; }
nav { display: flex; flex-wrap: wrap; gap: .65rem 1.35rem; font-size: .92rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: clamp(4rem, 10vw, 8rem); background: radial-gradient(ellipse at 89% 35%, #481c1a 0%, transparent 64%), var(--ink); }
.hero-inner { position: relative; }
.hero-mark { position: absolute; right: 3%; top: 50%; transform: translateY(-54%); color: #c3544e30; font: bold clamp(9rem, 29vw, 27rem)/1 var(--serif); pointer-events: none; z-index: -1; }
.hero h1 { margin: 0 0 1.2rem; font-size: clamp(3.4rem, 10vw, 7.6rem); letter-spacing: .035em; }
.hero p { margin: 0 0 1.7rem; max-width: 28rem; color: var(--muted); }
.cta, .share button { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--red); border-radius: .15rem; color: var(--paper); background: transparent; text-decoration: none; padding: .55rem .9rem; cursor: pointer; }
.cta:hover, .share button:hover { color: var(--red); }
.section { margin-block: 3.4rem; }
.section h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 1.2rem; }
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.topic { display: block; min-height: 9.5rem; padding: 1.1rem; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid #b94d45; text-decoration: none; }
.topic h3 { margin: 0 0 .7rem; font-size: 1.16rem; }
.topic small { color: var(--muted); font-size: .88rem; }
.topic:hover { border-color: var(--red); }
.post-list { border-top: 1px solid var(--line); }
.post-summary { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.post-summary h2, .post-summary h3 { font-size: 1.45rem; margin: 0; }
.post-summary p { margin: .4rem 0 0; grid-column: 1 / -1; color: var(--muted); }
.post-summary a { text-decoration: none; }
.post-date, .muted { color: var(--muted); }
.reading { width: min(760px, 100% - 3rem); margin: 4rem auto; }
.reading h1 { font-size: clamp(2.25rem, 6vw, 3.8rem); margin: .4rem 0 1rem; }
.prose { font: 1.1rem/1.95 var(--serif); overflow-wrap: anywhere; }
.prose a, .post-meta a { color: var(--red); }
.prose img, .reading img, .prose audio, .prose video { max-width: 100%; }
.prose img, .reading img { height: auto; }
.prose figure { margin-inline: 0; }
.prose blockquote { border-left: 3px solid var(--red); margin-inline: 0; padding: .5rem 1rem; background: var(--panel); }
.prose blockquote cite { display: block; color: var(--muted); font-style: normal; font-size: .9em; }
.post-meta { margin: 0 0 2rem; color: var(--muted); }
.share { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); }
.pagination { margin-block: 1.8rem; }
.pagination a { color: var(--red); }
@media (max-width: 880px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) {
  .shell, .reading { width: calc(100% - 2rem); }
  .topics { grid-template-columns: 1fr; }
  .topic { min-height: auto; }
  .post-summary { grid-template-columns: 1fr; }
}

.share button[hidden] { display: none; }
