:root {
  --ink: #303238;
  --muted: #71747a;
  --accent: #c96f45;
  --accent-dark: #a95732;
  --paper: #fdfcfb;
  --soft: #f5f3f1;
  --line: #e7e5e3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.site-header { height: 80px; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 25px; font-weight: 700; letter-spacing: -.05em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--accent); font-size: 18px; }
.site-header nav { display: flex; gap: 34px; color: #5b5e63; font-size: 14px; font-weight: 600; }
.site-header nav a:hover, .text-link:hover, .back-link:hover { color: var(--accent); }
.hero { overflow: hidden; background: #f6f4f2; }
.hero-inner { min-height: 530px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-copy { padding: 65px 0 70px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero h1 { max-width: 700px; margin: 22px 0 24px; font-family: Georgia, serif; font-size: clamp(47px, 5.2vw, 74px); font-weight: 400; line-height: 1.06; letter-spacing: -.055em; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-copy > p { max-width: 510px; margin: 0 0 30px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 21px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 700; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-accent { color: #fff; background: var(--accent); }
.button-accent:hover { background: var(--accent-dark); }
.button-outline { color: var(--ink); background: #fff; border-color: #d4d2cf; }
.hero-art { position: relative; display: grid; place-items: center; width: 340px; height: 340px; margin: auto; border-radius: 50%; background: #f3dfd3; box-shadow: 34px 28px 0 #ebe7e3; transform: rotate(-10deg); }
.hero-art::after { content: "✳"; position: absolute; top: -70px; right: -30px; color: #dfa27f; font-size: 70px; }
.hero-art span { color: #875238; font-family: Georgia, serif; font-size: 43px; line-height: 1.16; text-align: center; letter-spacing: -.05em; }
.content-section { padding-top: 85px; padding-bottom: 100px; }
.category-section { padding-top: 80px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.category-card { position: relative; min-height: 230px; overflow: hidden; border-radius: 12px; background: #e9e0d9; }
.category-card img, .category-card-pattern { display: block; width: 100%; height: 230px; object-fit: cover; }
.category-card-pattern { display: grid; place-items: center; color: #bb7957; background: #f0e2d8; font-size: 76px; }
.category-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(35, 31, 29, .76)); pointer-events: none; }
.category-card-content { position: absolute; z-index: 1; right: 20px; bottom: 20px; left: 20px; color: #fff; }
.category-card-content strong, .category-card-content small { display: block; }
.category-card-content strong { font-family: Georgia, serif; font-size: 27px; font-weight: 400; }
.category-card-content small { margin-top: 6px; opacity: .85; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2, .about-strip h2 { margin: 12px 0 0; font-family: Georgia, serif; font-size: 43px; font-weight: 400; line-height: 1.1; letter-spacing: -.045em; }
.section-heading p { max-width: 320px; margin: 0 0 4px; color: var(--muted); line-height: 1.6; }
.category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.category-pill { padding: 10px 18px; border: 1px solid #dfdcd9; border-radius: 100px; color: #686b70; font-size: 13px; font-weight: 700; }
.category-pill.active, .category-pill:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.pagination a { min-width: 38px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; color: #61646a; font-size: 13px; font-weight: 700; text-align: center; }
.pagination a.current, .pagination a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { min-width: 0; }
.post-card-image { display: block; height: 220px; overflow: hidden; border-radius: 12px; background: #ebe7e4; }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-pattern { display: grid; place-items: center; height: 100%; color: #ca865e; background: radial-gradient(circle at 75% 25%, #f0cbbb 0 16%, transparent 16.5%), radial-gradient(circle at 25% 80%, #ded9d5 0 23%, transparent 23.5%), #f4e5dc; font-size: 90px; }
.post-card:nth-child(3n+2) .image-pattern { background-color: #ebe9e7; }
.post-card-content { padding: 20px 2px; }
.post-card-content h2 { margin: 11px 0; font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.22; letter-spacing: -.025em; }
.post-card-content h2 a:hover { color: var(--accent); }
.post-card-content p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #85878b; font-size: 12px; }
.post-card-featured { grid-column: span 2; display: grid; grid-template-columns: 1.07fr .93fr; overflow: hidden; border-radius: 12px; background: #f3eeeb; }
.post-card-featured .post-card-image { height: 100%; min-height: 270px; border-radius: 0; }
.post-card-featured .post-card-content { display: flex; flex-direction: column; justify-content: center; padding: 36px; }
.post-card-featured h2 { font-size: 35px; }
.empty-state { padding: 70px 20px; border: 1px dashed #d6d2cf; border-radius: 14px; background: #faf8f6; text-align: center; }
.empty-state > span { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; color: var(--accent); background: #f5e7de; font-size: 30px; }
.empty-state h3 { margin: 20px 0 8px; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.empty-state p { margin: 0; color: var(--muted); }
.about-strip { padding: 75px 0 85px; background: #f1eeeb; }
.about-strip h2 { max-width: 620px; font-size: 49px; }
.about-strip p { max-width: 550px; color: var(--muted); line-height: 1.7; }
.text-link { color: var(--accent); font-size: 14px; font-weight: 700; }
.site-footer { margin-top: auto; padding: 32px 0; border-top: 1px solid var(--line); color: #85878b; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.prose-page { max-width: 780px; min-height: 50vh; padding-top: 105px; padding-bottom: 145px; }
.prose-page h1, .category-page h1, .not-found h1 { margin: 15px 0 30px; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: -.05em; }
.prose-page p { color: #66696e; font-size: 18px; line-height: 1.8; }
.category-page { min-height: 65vh; }
.category-page h1 { margin-bottom: 10px; }
.page-intro { margin-bottom: 36px; color: var(--muted); }
.category-cover { margin: 0 0 46px; }
.category-cover img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; }
.back-link { display: block; margin-bottom: 36px; color: var(--accent); font-size: 13px; font-weight: 700; }
.article { max-width: 900px; padding-top: 48px; padding-bottom: 90px; }
.breadcrumbs { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 75px; color: #8a8c90; font-size: 12px; }
.breadcrumbs a { color: var(--accent); }
.article-header { max-width: 760px; margin: 0 auto 45px; }
.article-header h1 { margin: 15px 0 22px; font-family: Georgia, serif; font-size: clamp(44px, 5.5vw, 72px); font-weight: 400; line-height: 1.08; letter-spacing: -.055em; }
.article-lead { margin: 0 0 27px; color: #6c6f74; font-size: 20px; line-height: 1.65; }
.article-cover { margin: 0 0 60px; }
.article-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; }
.article-cover figcaption { margin-top: 11px; color: #8a8c90; font-size: 12px; text-align: center; }
.article-body { max-width: 760px; margin: auto; color: #404349; font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.article-body h2, .article-body h3 { margin: 42px 0 18px; color: var(--ink); font-family: Georgia, serif; font-weight: 400; line-height: 1.2; letter-spacing: -.03em; }
.article-body h2 { font-size: 37px; }
.article-body h3 { font-size: 29px; }
.article-body p { margin: 0 0 23px; }
.article-body ul, .article-body ol { margin: 0 0 25px; padding-left: 28px; }
.article-body li { margin: 7px 0; }
.article-body a { color: var(--accent-dark); text-decoration: underline; }
.article-body blockquote { margin: 32px 0; padding: 5px 0 5px 22px; border-left: 3px solid #e9bda6; color: #765f55; font-family: Georgia, serif; font-size: 23px; }
.article-body pre { overflow: auto; padding: 20px; border-radius: 8px; background: #f0eeec; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.article-body td, .article-body th { padding: 9px 12px; border: 1px solid var(--line); }
.related-section { padding-bottom: 100px; }
.not-found { min-height: 60vh; padding-top: 130px; }
.not-found p { margin-bottom: 25px; color: var(--muted); }
.admin-gate { max-width: 500px; margin: 80px auto 140px; padding: 42px; border-radius: 14px; background: var(--soft); }
.admin-gate h1, .admin-heading h1 { margin: 14px 0; font-family: Georgia, serif; font-size: 44px; font-weight: 400; letter-spacing: -.04em; }
.admin-gate p, .admin-heading p { color: var(--muted); line-height: 1.65; }
.admin-login { display: grid; gap: 16px; margin-top: 30px; }
.admin-login label, .editor-form label { display: grid; gap: 8px; color: #55585d; font-size: 13px; font-weight: 700; }
.admin-login input, .editor-form input, .editor-form textarea, .editor-form select { width: 100%; padding: 11px 13px; outline: none; border: 1px solid #d4d2cf; border-radius: 7px; color: var(--ink); background: #fff; }
.admin-login input:focus, .editor-form input:focus, .editor-form textarea:focus, .editor-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #f4e2d8; }
.admin-page, .editor-page { min-height: 65vh; padding-top: 70px; padding-bottom: 100px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.admin-heading h1 { margin-bottom: 4px; }
.admin-heading p { margin: 0; }
.admin-actions, .admin-row-actions { display: flex; align-items: center; gap: 10px; }
.admin-create-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-category { display: flex; align-items: center; gap: 15px; }
.admin-category img, .admin-category-placeholder { width: 64px; height: 54px; border-radius: 7px; object-fit: cover; }
.admin-category-placeholder { display: grid; place-items: center; color: var(--accent); background: #f2e3da; font-size: 25px; }
.admin-table { margin-top: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-table > p { padding: 25px; color: var(--muted); }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border: 0; }
.admin-row strong, .admin-row small { display: block; }
.admin-row small { margin-top: 6px; color: var(--muted); }
.admin-row-actions { font-size: 13px; font-weight: 700; }
.admin-row-actions a { color: var(--accent); }
.admin-row-actions button { border: 0; color: #a73f3f; background: transparent; font-size: 13px; font-weight: 700; }
.editor-form { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-grid .full { grid-column: 1 / -1; }
.form-hint { margin: 0; color: var(--muted); font-size: 13px; }
.form-hint a { color: var(--accent-dark); text-decoration: underline; }
.form-hint code { color: var(--accent-dark); font-size: 13px; overflow-wrap: anywhere; }
.image-preview img { display: block; width: min(100%, 380px); max-height: 230px; object-fit: cover; border-radius: 8px; }
.image-preview label { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.image-preview input[type=checkbox] { width: auto; }
.editor-form textarea { resize: vertical; line-height: 1.5; }
.editor-form textarea[name=body] { min-height: 320px; font-family: Consolas, monospace; font-size: 14px; }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.form-error, .form-success { padding: 12px 15px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.form-error { color: #9b3838; background: #fff0ed; }
.form-success { color: #477b48; background: #edf5eb; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr .7fr; }
  .hero-art { transform: rotate(-10deg) scale(.75); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card-featured { grid-column: span 2; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 32px, 1160px); }
  .site-header { height: 70px; }
  .brand { font-size: 20px; }
  .site-header nav { gap: 15px; font-size: 12px; }
  .site-header nav a:last-child { display: none; }
  .hero-inner { display: block; min-height: 0; }
  .hero-copy { padding: 70px 0; }
  .hero h1 { font-size: clamp(43px, 10vw, 58px); }
  .hero-copy > p { font-size: 16px; }
  .hero-art { display: none; }
  .content-section { padding-top: 65px; padding-bottom: 70px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 36px; }
  .section-heading p { margin: 14px 0 0; }
  .post-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-column: auto; display: block; }
  .post-card-featured .post-card-image { height: 220px; min-height: 0; }
  .post-card-featured .post-card-content { padding: 23px; }
  .post-card-featured h2 { font-size: 27px; }
  .about-strip { padding: 65px 0; }
  .about-strip h2 { font-size: 39px; }
  .footer-inner { flex-wrap: wrap; }
  .article { padding-top: 30px; }
  .breadcrumbs { margin-bottom: 45px; }
  .article-header h1 { font-size: 44px; }
  .article-lead { font-size: 18px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 32px; }
  .article-cover { margin-bottom: 40px; }
  .admin-page, .editor-page { padding-top: 35px; }
  .admin-heading { display: block; }
  .admin-actions { margin-top: 24px; }
  .admin-row { display: block; }
  .admin-row-actions { margin-top: 15px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .full { grid-column: auto; }
  .admin-gate { margin: 50px auto; padding: 25px; }
}
