:root {
  --ivory: #f8f6f0;
  --paper: #fffefa;
  --ink: #1e2422;
  --muted: #6c706c;
  --gold: #b99a54;
  --gold-dark: #8e7439;
  --line: #e7e2d7;
  --navy: #172526;
  --shadow: 0 18px 60px rgba(24, 31, 29, .10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 254, 250, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1220px; margin: auto; min-height: 78px; padding: 12px 24px; display:flex; align-items:center; gap:24px; }
.brand { display:flex; align-items:center; gap:12px; min-width: 250px; }
.brand-mark { width: 52px; height:52px; border:1px solid #d8cfba; border-radius:50%; display:grid; place-items:center; overflow:hidden; background:#fff; }
.brand-mark img { width:100%; height:100%; object-fit:cover; object-position:center 38%; }
.brand-text strong { display:block; font-family:"Playfair Display", serif; font-size:20px; line-height:1.05; }
.brand-text span { color:var(--muted); font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
.top-nav { display:flex; align-items:center; gap:6px; flex:1; overflow:auto; scrollbar-width:none; }
.top-nav::-webkit-scrollbar { display:none; }
.nav-btn { border:0; background:transparent; color:#505552; padding:10px 13px; border-radius:10px; white-space:nowrap; font-weight:600; }
.nav-btn:hover, .nav-btn.active { background:#f1ede3; color:var(--gold-dark); }
.header-actions { display:flex; gap:10px; align-items:center; }
.menu-btn { border:0; background:var(--navy); color:#fff; border-radius:10px; padding:11px 14px; font-weight:700; }
.icon-btn { border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:10px; padding:10px 12px; }

.hero { max-width: 1220px; margin: 26px auto 0; padding: 0 24px; }
.hero-card { min-height: 470px; border-radius: 24px; overflow:hidden; position:relative; background:
  linear-gradient(90deg, rgba(19,31,30,.82) 0%, rgba(19,31,30,.60) 44%, rgba(19,31,30,.18) 100%),
  radial-gradient(circle at 76% 25%, #d8c187, #5c624f 36%, #1e2c2c 80%);
  box-shadow:var(--shadow); display:flex; align-items:center; }
.hero-pattern { position:absolute; inset:0; opacity:.26; background-image:linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,.12) 44.2% 44.8%, transparent 45% 100%), radial-gradient(circle at 72% 35%, transparent 0 105px, rgba(255,255,255,.10) 106px 108px, transparent 109px); background-size:90px 90px, 100% 100%; }
.hero-copy { position:relative; z-index:1; padding: 54px clamp(30px, 6vw, 86px); max-width: 720px; color:#fff; }
.eyebrow { color:#e6cf96; letter-spacing:.2em; text-transform:uppercase; font-size:12px; font-weight:700; }
h1,h2,h3 { font-family:"Playfair Display", serif; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height:1.02; margin: 12px 0 18px; }
.hero p { font-size:18px; max-width:590px; color:rgba(255,255,255,.85); }
.hero-actions { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.btn { border:0; border-radius:10px; padding:12px 18px; font-weight:700; }
.btn-primary { background:#c7a85e; color:#172526; }
.btn-secondary { background:rgba(255,255,255,.11); color:#fff; border:1px solid rgba(255,255,255,.35); }

.container { max-width:1220px; margin:auto; padding: 58px 24px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.section-head h2 { margin:0; font-size:34px; }
.section-head p { margin:5px 0 0; color:var(--muted); }
.article-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.article-card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.2s transform, .2s box-shadow; }
.article-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.card-image { aspect-ratio:1 / 1; height:auto; background:#e8e4da; overflow:hidden; }
.card-image img { width:100%; height:100%; object-fit:cover; }
.card-body { padding:22px; }
.kicker { color:var(--gold-dark); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.12em; }
.card-body h3 { margin:8px 0; font-size:24px; line-height:1.15; }
.card-body p { color:var(--muted); margin:0 0 18px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.read-link { color:var(--gold-dark); font-weight:700; }
.empty { padding:60px 20px; text-align:center; background:#fffefa; border:1px dashed #d8d0c1; border-radius:18px; color:var(--muted); }

.quote-section { background:#1c2b2b; color:#fff; }
.quote-inner { max-width:900px; margin:auto; padding:76px 24px; text-align:center; }
.quote-mark { color:#c6a75d; font-family:serif; font-size:70px; line-height:.5; }
.quote-inner blockquote { font-family:"Playfair Display", serif; font-size:clamp(25px, 4vw, 38px); line-height:1.3; margin:25px 0 18px; }
.quote-inner cite { color:#c9cbc8; font-style:normal; }
.footer { background:#121d1e; color:#aeb6b3; padding:28px 24px; }
.footer-inner { max-width:1220px; margin:auto; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:13px; }

.overlay { position:fixed; inset:0; background:rgba(14,22,22,.65); z-index:100; display:grid; place-items:center; padding:20px; }
.modal { background:#fffefa; border-radius:22px; width:min(900px, 100%); max-height:90vh; overflow:auto; box-shadow:0 30px 90px rgba(0,0,0,.25); }
.modal-head { padding:24px 26px 14px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; }
.modal-body { padding:26px; }
.modal-image { width:400px; height:400px; max-width:100%; object-fit:cover; border-radius:14px; margin:0 auto 22px; display:block; }
.article-content { white-space:pre-wrap; font-size:17px; color:#3f4542; }
.close { border:1px solid var(--line); background:#fff; border-radius:10px; width:40px; height:40px; }

.admin-shell { min-height:100vh; background:#f3f0e9; }
.admin-login { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(460px,100%); background:#fffefa; border:1px solid var(--line); border-radius:22px; box-shadow:var(--shadow); padding:34px; }
.login-logo { width:64px; height:64px; border-radius:50%; overflow:hidden; border:1px solid var(--line); margin-bottom:18px; }
.login-logo img { width:100%; height:100%; object-fit:cover; object-position:center 38%; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; font-weight:700; margin-bottom:7px; }
.form-control { width:100%; border:1px solid #d9d4c8; background:#fff; border-radius:10px; padding:12px 13px; outline:none; }
.form-control:focus { border-color:#b59a5e; box-shadow:0 0 0 3px rgba(181,154,94,.13); }
textarea.form-control { min-height:240px; resize:vertical; }
.admin-top { background:#1a292a; color:#fff; padding:15px 24px; }
.admin-top-inner { max-width:1260px; margin:auto; display:flex; justify-content:space-between; align-items:center; gap:15px; }
.admin-main { max-width:1260px; margin:auto; padding:28px 24px 60px; }
.admin-layout { display:grid; grid-template-columns:280px 1fr; gap:22px; align-items:start; }
.panel { background:#fffefa; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.panel-head { padding:17px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:10px; }
.panel-head h3 { margin:0; font-size:19px; }
.panel-body { padding:18px; }
.category-item { display:flex; align-items:center; justify-content:space-between; padding:11px 12px; border-radius:10px; margin-bottom:5px; }
.category-item.selected { background:#f0ebdf; color:var(--gold-dark); font-weight:700; }
.category-item button { border:0; background:transparent; color:var(--muted); }
.admin-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:18px; }
.article-row { padding:14px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:15px; align-items:center; }
.article-row:last-child { border-bottom:0; }
.row-actions { display:flex; gap:7px; }
.small-btn { border:1px solid var(--line); background:#fff; padding:8px 10px; border-radius:8px; font-size:12px; font-weight:700; }
.small-btn.danger { color:#9d3939; }
.badge { display:inline-flex; padding:4px 8px; border-radius:99px; font-size:11px; font-weight:700; background:#edf1ee; color:#53615a; }
.badge.off { background:#f4e8e5; color:#8e5047; }
.image-editor { border:1px solid var(--line); border-radius:14px; padding:14px; background:#f6f3eb; }
.crop-stage { width:400px; height:400px; max-width:100%; margin:auto; overflow:hidden; background:#ded8ca; position:relative; border-radius:10px; }
.crop-stage img { width:100%; height:100%; object-fit:cover; transform-origin:center; }
.range-row { display:grid; grid-template-columns:95px 1fr 45px; gap:10px; align-items:center; margin-top:12px; font-size:12px; }
.range-row input { width:100%; }
.admin-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.notice { background:#f2ead8; border:1px solid #e0d2af; color:#6f5a2e; padding:11px 13px; border-radius:10px; font-size:13px; margin-bottom:14px; }
.error { color:#9a3939; font-size:13px; margin-top:8px; }
.toast { position:fixed; bottom:22px; right:22px; z-index:200; background:#182626; color:#fff; padding:12px 16px; border-radius:10px; box-shadow:var(--shadow); transform:translateY(120px); opacity:0; transition:.2s; max-width:340px; }
.toast.show { transform:translateY(0); opacity:1; }
.hidden { display:none !important; }

@media (max-width: 980px) {
  .header-inner { flex-wrap:wrap; }
  .brand { min-width:auto; flex:1; }
  .top-nav { order:3; flex-basis:100%; }
  .article-grid { grid-template-columns:repeat(2,1fr); }
  .admin-layout, .admin-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .header-inner { padding:10px 15px; }
  .brand-text strong { font-size:17px; }
  .header-actions .icon-btn { display:none; }
  .hero { padding:0 14px; margin-top:14px; }
  .hero-card { min-height:530px; }
  .container { padding:44px 15px; }
  .article-grid { grid-template-columns:1fr; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .crop-stage { width: min(400px, 100%); height:min(400px, 100vw); }
}

.search-modal { background:#fffefa; border-radius:22px; width:min(760px,100%); max-height:88vh; overflow:hidden; box-shadow:0 30px 90px rgba(0,0,0,.25); }
.search-head { padding:24px 26px 16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.search-head h2 { margin:5px 0 0; font-size:32px; }
.search-body { padding:20px 26px 26px; overflow:auto; max-height:calc(88vh - 130px); }
.search-input { font-size:16px; padding:14px 15px; }
.search-results { margin-top:16px; display:grid; gap:8px; }
.search-result { width:100%; text-align:left; border:1px solid var(--line); background:#fff; border-radius:12px; padding:14px 16px; display:flex; flex-direction:column; gap:4px; transition:.15s background,.15s border-color,.15s transform; }
.search-result:hover { background:#f7f2e7; border-color:#d8caa9; transform:translateY(-1px); }
.search-result strong { font-family:"Playfair Display",serif; font-size:20px; color:var(--ink); }
.search-result > span:last-child { color:var(--muted); font-size:13px; }
@media (max-width:620px) { .search-head,.search-body { padding-left:18px; padding-right:18px; } .search-head h2 { font-size:27px; } .header-actions .icon-btn { display:block; } }
