:root {
    --background: #ffffff;
    --surface: #ffffff;
    --text: #33363b;
    --muted: #8a7568;
    --accent: #fb6d19;
    --link: #0e83cd;
    --line: #f0e2d6;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.75;
}

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

.home-hero { height: 100vh; min-height: 420px; overflow: hidden; position: relative; }
.home-hero-image {
    background: #fff url("../img/banner.jpg") center / cover no-repeat;
    inset: 0;
    position: absolute;
}
.homelogo {
    background: rgba(255, 255, 255, .9);
    left: 50%;
    max-width: 400px;
    padding: 20px;
    position: absolute;
    text-align: center;
    top: 46%;
    transform: translate(-50%, -50%);
    width: min(400px, calc(100% - 40px));
}
.intro-navigate {
    background: rgba(255, 255, 255, .9);
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    left: 0;
    padding: 10px 16px;
    position: absolute;
    right: 0;
}
.intro-navigate a { color: #444; font-size: 1.05rem; padding: 12px 8px; }
.intro-navigate a:hover { color: var(--accent); }
.hero-title { letter-spacing: 6px; margin: 0; text-transform: uppercase; }
.hero-title a { color: #000; }
.hero-description { color: #444; margin: 8px 0 0; }

.site-header { background: var(--surface); border-bottom: 3px solid var(--accent); }
.header-inner, .care-layout, .footer-inner { display: flex; }
.header-inner { align-items: center; justify-content: space-between; margin: 0 auto; padding: 16px 0; width: min(1080px, calc(100% - 40px)); }
.site-brand { color: var(--text); font: 700 1.4rem/1 var(--serif); }
.site-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-nav a { color: var(--text); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav a:hover, .site-brand:hover { color: var(--accent); }

.care-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.care-layout { align-items: flex-start; gap: 32px; padding: 36px 0 64px; }
.care-main { flex: 1 1 auto; min-width: 0; }
.care-sidebar { flex: 0 0 260px; }

.section-kicker { color: var(--accent); font-size: 0.7rem; letter-spacing: 0.18em; margin: 0 0 6px; }
.section-heading h1, .article-header h1 { color: var(--text); font-family: var(--serif); margin: 0; }
.section-heading { margin-bottom: 18px; }
.section-heading h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

.note-row { display: block; margin-bottom: 28px; }
.note-index { display: none; }
.note-card { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
.note-meta, .article-meta { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; margin: 0; text-transform: uppercase; }
.meta-separator { margin: 0 8px; }
.note-card h2 { font: 700 1.45rem/1.3 var(--serif); margin: 8px 0; }
.note-card h2 a { color: var(--text); }
.note-summary { margin: 0 0 10px; }
.read-more { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.empty-state, .sidebar-empty { color: var(--muted); }

.pagination { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-top: 8px; }
.pagination span { color: var(--muted); }
.pagination a { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.sidebar-section { background: var(--surface); border-radius: 14px; margin-bottom: 16px; padding: 16px; }
.care-sidebar h2 { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.14em; margin: 0 0 10px; text-transform: uppercase; }
.sidebar-list, .sidebar-terms, .archive-year ul { list-style: none; margin: 0; padding: 0; }
.sidebar-list li, .sidebar-terms li { border-top: 1px solid var(--line); padding: 7px 0; }
.sidebar-list a, .sidebar-terms a, .archive-year a { color: var(--text); }
.sidebar-list time { color: var(--muted); display: block; font-size: 0.7rem; }
.sidebar-terms li { align-items: center; display: flex; justify-content: space-between; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { background: #fff3eb; border-radius: 999px; color: #c45312; font-size: 0.75rem; padding: 3px 8px; }

.term-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.term-card { background: var(--surface); border-radius: 14px; color: var(--text); display: flex; justify-content: space-between; padding: 16px; }
.term-card strong { color: var(--accent); }

.archive-year { background: var(--surface); border-radius: 14px; margin-bottom: 14px; padding: 16px 18px; }
.archive-year-heading { align-items: baseline; display: flex; justify-content: space-between; }
.archive-year-heading h2 { font-family: var(--serif); margin: 0 0 8px; }
.archive-year-heading span, .archive-year time { color: var(--muted); font-size: 0.75rem; }
.archive-year li { align-items: baseline; display: flex; gap: 14px; padding: 7px 0; }
.archive-year time { flex: 0 0 105px; }

.article-page { background: var(--surface); border-radius: 16px; padding: 28px 26px; }
.article-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 6px 0 12px; }
.article-toc { background: #fff3eb; border-radius: 12px; margin: 0 0 20px; padding: 14px 16px; }
.toc-title { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.12em; margin: 0 0 8px; text-transform: uppercase; }
.article-content img, .article-content video { height: auto; max-width: 100%; }
.article-content pre, .article-content code { background: #fff6f0; }
.article-content pre { overflow-x: auto; padding: 14px; }
.article-content blockquote { border-left: 3px solid var(--accent); color: var(--muted); margin-left: 0; padding-left: 14px; }
.article-content table { display: block; overflow-x: auto; }
.article-footer { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; }
.taxonomy-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.taxonomy-row > span { color: var(--muted); }
.taxonomy-row a { background: #fff3eb; border-radius: 999px; padding: 2px 8px; }
.article-nav { display: flex; gap: 16px; justify-content: space-between; margin-top: 20px; }
.article-nav a { display: flex; flex: 1; flex-direction: column; }
.article-nav-next { align-items: flex-end; text-align: right; }
.article-nav span { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.article-nav strong { color: var(--text); font-family: var(--serif); }

.site-footer { border-top: 1px solid var(--line); padding: 18px 0 28px; }
.footer-inner { align-items: center; color: var(--muted); font-size: 0.75rem; justify-content: space-between; }
.footer-note { flex: 1; text-align: center; }

@media (max-width: 760px) {
    .header-inner, .care-layout, .footer-inner, .note-row, .article-nav { display: block; }
    .care-shell, .header-inner { width: min(100% - 28px, 640px); }
    .site-nav { margin-top: 12px; }
    .care-sidebar { margin-top: 20px; }
    .article-nav-next { align-items: flex-start; text-align: left; }
    .footer-note { margin: 8px 0; text-align: left; }
    .article-page { padding: 20px 16px; }
}
