/* ==========================================================================
   Horseback Riding Guide — equestrian theme
   leather · brass · sage · cream
   ========================================================================== */
:root {
  --ink: #2a1d15;
  --ink-2: #4b3a2e;
  --muted: #86735f;
  --line: #eadfcc;
  --line-2: #e0d0b6;
  --paper: #fffdf9;
  --cream: #faf5ec;
  --sand: #f2e7d4;
  --leather: #8b4a26;
  --leather-2: #a65d32;
  --brass: #c4923f;
  --brass-2: #e3b866;
  --sage: #62795c;
  --forest: #22382a;
  --espresso: #1f160f;
  --r: 18px;
  --r-sm: 12px;
  --sh: 0 1px 2px rgba(42, 29, 21, .05), 0 10px 30px -12px rgba(42, 29, 21, .22);
  --sh-lg: 0 2px 4px rgba(42, 29, 21, .06), 0 26px 50px -18px rgba(42, 29, 21, .38);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --shoe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5C3.8 6.9 3 10.8 4.1 14.3 5.3 18.4 8.4 21 12 21s6.7-2.6 7.9-6.7c1.1-3.5.3-7.4-1.9-10.8l-3 1.2c1.6 2.6 2.1 5.4 1.3 8C15.6 15.6 13.9 17 12 17s-3.6-1.4-4.3-4.3c-.8-2.6-.3-5.4 1.3-8z'/%3E%3C/svg%3E");
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath fill='%23fff' fill-opacity='.09' transform='translate(8 8)' d='M6 3.5C3.8 6.9 3 10.8 4.1 14.3 5.3 18.4 8.4 21 12 21s6.7-2.6 7.9-6.7c1.1-3.5.3-7.4-1.9-10.8l-3 1.2c1.6 2.6 2.1 5.4 1.3 8C15.6 15.6 13.9 17 12 17s-3.6-1.4-4.3-4.3c-.8-2.6-.3-5.4 1.3-8z'/%3E%3Cpath fill='%23fff' fill-opacity='.06' transform='translate(62 64) rotate(180) scale(.7)' d='M6 3.5C3.8 6.9 3 10.8 4.1 14.3 5.3 18.4 8.4 21 12 21s6.7-2.6 7.9-6.7c1.1-3.5.3-7.4-1.9-10.8l-3 1.2c1.6 2.6 2.1 5.4 1.3 8C15.6 15.6 13.9 17 12 17s-3.6-1.4-4.3-4.3c-.8-2.6-.3-5.4 1.3-8z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leather); text-decoration: none; transition: color .15s; }
a:hover { color: var(--leather-2); }
svg { width: 1em; height: 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ic { width: 15px; height: 15px; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

/* ---------- palettes (horse coat colours) ---------- */
.ph-0 { --ph-bg: linear-gradient(135deg, #b0673a, #6e3216); }  /* chestnut */
.ph-1 { --ph-bg: linear-gradient(135deg, #6a4430, #2c1a10); }  /* bay */
.ph-2 { --ph-bg: linear-gradient(135deg, #d7a855, #946421); }  /* palomino */
.ph-3 { --ph-bg: linear-gradient(135deg, #839a74, #4b6145); }  /* sage meadow */
.ph-4 { --ph-bg: linear-gradient(135deg, #46664b, #1c3024); }  /* forest */
.ph-5 { --ph-bg: linear-gradient(135deg, #94705f, #4a3540); }  /* roan */
.ph-6 { --ph-bg: linear-gradient(135deg, #c07a4a, #7a3f1f); }  /* sorrel */
.ph-7 { --ph-bg: linear-gradient(135deg, #b39b76, #6c5840); }  /* buckskin */
.pal-0 { background: #f8e6d8; color: #8a4520; }
.pal-1 { background: #efe2d8; color: #4a2c1c; }
.pal-2 { background: #fbefd2; color: #8a5c17; }
.pal-3 { background: #e8eedf; color: #4b6145; }
.pal-4 { background: #dfeadf; color: #24402c; }
.pal-5 { background: #f0e4e3; color: #5c3f45; }
.pal-6 { background: #f9e5d5; color: #8f4a22; }
.pal-7 { background: #f1e9db; color: #6c5840; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--leather-2), var(--leather) 55%, #5c2f17); color: #fff3dd; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -6px rgba(139, 74, 38, .7); }
.logo-mark svg { width: 32px; height: 32px; transform: translateY(2px); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-txt b { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.logo-txt small { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; font-weight: 600; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a { display: block; padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.nav-list > li > a:hover { background: var(--sand); color: var(--leather); }
.mega { position: relative; margin-left: 8px; }
.mega-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer; font: 600 14.5px var(--sans); background: var(--ink); color: #fff3dd; transition: background .15s; }
.mega-btn:hover, .mega.open .mega-btn { background: var(--leather); }
.mega-btn svg { width: 16px; height: 16px; }
.mega-btn .chev { transition: transform .2s; }
.mega.open .mega-btn .chev, .mega:hover .mega-btn .chev { transform: rotate(180deg); }
.mega-panel { position: absolute; right: 0; top: calc(100% + 14px); width: min(780px, 92vw); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-lg); padding: 16px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.mega-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.mega:hover .mega-panel, .mega.open .mega-panel, .mega:focus-within .mega-panel { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mega-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 13px; color: var(--ink); }
.mega-link:hover { background: var(--cream); color: var(--leather); }
.mega-link b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.mega-link small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.ti { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ti svg { width: 20px; height: 20px; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; }

/* ---------- shared bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--leather); letter-spacing: .02em; box-shadow: var(--sh); }
.eyebrow svg { width: 18px; height: 18px; color: var(--brass); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: transform .15s, border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--leather); color: var(--leather); transform: translateY(-1px); }
.chip small { color: var(--muted); font-weight: 500; font-size: 12px; }
.chip .ic { color: var(--brass); }
.chips-sm .chip { padding: 6px 12px; font-size: 13px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--sand); color: var(--leather); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.3; }
.pill:hover { background: var(--leather); color: #fff; }
.pill-lg { font-size: 12.5px; padding: 7px 14px; background: var(--paper); box-shadow: var(--sh); }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); font-weight: 500; }
.crumbs a:hover { color: var(--leather); }
.crumbs .sep { margin: 0 8px; color: var(--brass); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 110px; background: radial-gradient(1100px 520px at 88% -12%, #f7d9aa 0, transparent 62%), radial-gradient(900px 480px at -12% 112%, #e2e9d4 0, transparent 58%), var(--cream); }
.hero::before { content: ''; position: absolute; width: 520px; height: 520px; left: -160px; top: -200px; background: var(--brass); opacity: .07; -webkit-mask: var(--shoe) center/contain no-repeat; mask: var(--shoe) center/contain no-repeat; transform: rotate(-24deg); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.02; margin: 24px 0 18px; letter-spacing: -.03em; font-weight: 700; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--leather); font-size: .62em; letter-spacing: -.015em; margin-top: 10px; }
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }
.hero-stats { display: flex; gap: 28px; margin: 0 0 30px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats div + div { padding-left: 28px; border-left: 1px solid var(--line-2); }
.hero-stats b { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--ink); font-weight: 700; }
.hero-stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; font-weight: 600; }
.hero-art { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(110, 60, 25, .28)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; color: var(--paper); }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec-tight { padding-top: 40px; }
.sec-paper { background: var(--paper); }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.sec-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sand), #ecdcc0); color: var(--leather); flex: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.sec-ic svg { width: 26px; height: 26px; }
.sec-head .more { margin-left: auto; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.topic:hover { background: var(--paper); border-color: var(--brass); box-shadow: var(--sh); transform: translateY(-3px); color: var(--ink); }
.topic .ti { width: 50px; height: 50px; border-radius: 15px; }
.topic .ti svg { width: 26px; height: 26px; }
.topic-txt { display: flex; flex-direction: column; min-width: 0; }
.topic-txt b { font-size: 15px; line-height: 1.3; font-weight: 650; }
.topic-txt small { color: var(--muted); font-size: 13px; }
.topic-go { margin-left: auto; width: 18px; height: 18px; color: var(--brass); opacity: 0; transform: translateX(-4px); transition: .2s; flex: none; }
.topic:hover .topic-go { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); border: 1px solid rgba(234, 223, 204, .75); transition: transform .25s ease, box-shadow .25s ease; min-width: 0; }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; gap: 11px; padding: 20px 22px 20px; flex: 1; }
.card-title { font-size: 21px; line-height: 1.28; font-weight: 600; }
.card-title a { color: var(--ink); background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 2px no-repeat; transition: background-size .35s, color .15s; }
.card-title a:hover { background-size: 100% 2px; color: var(--ink); }
.card-excerpt { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.card-excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 13px; border-top: 1px dashed var(--line-2); }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .ic { color: var(--brass); }
.card-featured { grid-column: 1 / -1; flex-direction: row; }
.card-featured .card-media { flex: 0 0 54%; aspect-ratio: auto; min-height: 360px; }
.card-featured .card-body { padding: 40px 44px; justify-content: center; gap: 14px; }
.card-featured .card-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.card-featured .card-excerpt { font-size: 16.5px; }
.card-featured .card-excerpt p { -webkit-line-clamp: 4; }
.card-featured .card-meta { margin-top: 8px; }
.card-mini .card-title { font-size: 18px; }
.card-mini .card-body { padding: 18px 20px; }

/* placeholder art for posts without image */
.ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px 20px; color: #fff; overflow: hidden; background: var(--ph-bg, linear-gradient(135deg, #a65d32, #6e3216)); }
.ph::before, .cat-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); background-size: 72px 72px; pointer-events: none; }
.ph::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(0deg, rgba(0, 0, 0, .28), transparent 55%); pointer-events: none; }
.ph-horse { position: absolute; right: -4%; bottom: -10%; width: 60%; height: auto; aspect-ratio: 1; color: rgba(255, 255, 255, .17); transition: transform .6s ease; }
.card:hover .ph-horse { transform: translateX(-6px) rotate(-3deg); }
.ph-shoe { position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; color: rgba(255, 255, 255, .6); }
.ph-label { position: relative; z-index: 1; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 14px rgba(0, 0, 0, .3); max-width: 70%; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 52px 0 0; list-style: none; padding: 0; }
.pager a, .pager span { min-width: 46px; height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.pager a:hover { border-color: var(--leather); color: var(--leather); }
.pager .cur { background: var(--leather); border-color: var(--leather); color: #fff; box-shadow: 0 8px 18px -8px rgba(139, 74, 38, .85); }
.pager .dots { border: 0; background: none; min-width: 24px; padding: 0; }

/* ---------- archive heroes ---------- */
.page-band { padding: 48px 0 8px; }
.page-band h1 { font-size: clamp(32px, 4.4vw, 52px); margin: 18px 0 10px; letter-spacing: -.02em; }
.page-band p { color: var(--ink-2); max-width: 640px; margin: 0 0 22px; font-size: 17px; }
.cat-hero { position: relative; overflow: hidden; color: #fff8ec; padding: 40px 0 52px; background: var(--ph-bg); }
.cat-hero .wrap { position: relative; z-index: 1; }
.cat-hero .crumbs, .cat-hero .crumbs a { color: rgba(255, 248, 236, .82); }
.cat-hero .crumbs .sep { color: var(--brass-2); }
.cat-hero-in { display: flex; gap: 24px; align-items: center; }
.big-ic { width: 88px; height: 88px; border-radius: 26px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .28); flex: none; backdrop-filter: blur(4px); }
.big-ic svg { width: 46px; height: 46px; }
.cat-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); }
.cat-hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 56px); margin: 6px 0 8px; letter-spacing: -.02em; }
.cat-count { margin: 0; color: rgba(255, 248, 236, .85); }
.cat-count b { color: #fff; }
.cat-desc { margin-top: 18px; max-width: 760px; color: rgba(255, 248, 236, .9); font-size: 17px; }
.cat-desc p { margin: 0 0 .6em; }
.cat-hero .chips { margin-top: 26px; }
.chips-label { font-size: 13px; font-weight: 600; color: rgba(255, 248, 236, .8); margin-right: 4px; }
.chips-light .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(4px); }
.chips-light .chip:hover { background: #fff; color: var(--leather); border-color: #fff; }
.chips-light .chip small { color: rgba(255, 255, 255, .7); }
.chips-light .chip:hover small { color: var(--muted); }
.cat-hero-horse { position: absolute; right: max(-40px, calc(50% - 700px)); bottom: -70px; width: 400px; height: 400px; color: rgba(255, 255, 255, .09); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); background: var(--paper); border-radius: var(--r); border: 1px dashed var(--line-2); }
.empty svg { width: 90px; height: 90px; color: var(--sand); margin-bottom: 10px; }

/* ---------- single post ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brass), var(--leather)); transform-origin: 0 50%; transform: scaleX(0); }
.post-hero { position: relative; overflow: hidden; padding: 40px 0 124px; background: radial-gradient(900px 420px at 92% -5%, #f4d6a6, transparent 62%), linear-gradient(180deg, var(--sand), var(--cream)); }
.post-hero-in { position: relative; z-index: 1; max-width: 880px; }
.post-title { font-size: clamp(32px, 4.5vw, 54px); line-height: 1.08; margin: 18px 0 22px; letter-spacing: -.025em; font-weight: 700; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.post-meta b { color: var(--ink); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--leather-2), var(--leather)); color: #fff3dd; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 3px var(--paper); }
.avatar svg { width: 27px; height: 27px; transform: translateY(2px); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
.post-hero-horse { position: absolute; right: max(10px, calc(50% - 660px)); bottom: -40px; width: 320px; height: 320px; color: rgba(139, 74, 38, .08); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; margin-top: -88px; position: relative; z-index: 2; }
.post-main { background: var(--paper); border-radius: 26px; box-shadow: var(--sh); padding: clamp(20px, 4vw, 52px); min-width: 0; border: 1px solid rgba(234, 223, 204, .75); }
.post-cover { margin: 0 0 38px; border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 16 / 7.5; background: var(--sand); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .ph { padding: 26px 30px; }
.post-cover .ph-horse { width: 42%; }
.post-cover .ph-label { font-size: clamp(22px, 3vw, 32px); }

.entry-content { font-size: 18px; line-height: 1.8; color: var(--ink-2); overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content > p:first-of-type { font-size: 20px; line-height: 1.7; color: var(--ink); }
.entry-content > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-size: 4.2em; line-height: .82; font-weight: 700; color: var(--leather); margin: .07em .12em 0 0; }
.entry-content h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 1.9em 0 .75em; padding-bottom: .5em; position: relative; }
.entry-content h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brass), var(--leather-2)); }
.entry-content h3 { font-size: 22.5px; margin: 1.6em 0 .55em; }
.entry-content h4 { font: 700 18.5px/1.35 var(--sans); margin: 1.4em 0 .5em; color: var(--ink); }
.entry-content strong, .entry-content b { color: var(--ink); font-weight: 650; }
.entry-content a { color: var(--leather); text-decoration: underline; text-decoration-color: rgba(196, 146, 63, .55); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--leather); }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.entry-content ul > li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.entry-content ul > li::before { content: ''; position: absolute; left: 3px; top: .42em; width: 17px; height: 17px; background: var(--brass); -webkit-mask: var(--shoe) center / contain no-repeat; mask: var(--shoe) center / contain no-repeat; }
.entry-content ol { counter-reset: n; }
.entry-content ol > li { counter-increment: n; position: relative; padding-left: 46px; margin-bottom: .75em; }
.entry-content ol > li::before { content: counter(n); position: absolute; left: 0; top: .15em; width: 31px; height: 31px; border-radius: 50%; background: var(--sand); color: var(--leather); font: 700 14px/31px var(--sans); text-align: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.entry-content li > ul, .entry-content li > ol { margin: .6em 0 0; }
.entry-content blockquote { margin: 1.8em 0; padding: 24px 28px 24px 70px; background: var(--cream); border-radius: var(--r); position: relative; font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink); border: 1px solid var(--line); }
.entry-content blockquote::before { content: '\201C'; position: absolute; left: 20px; top: 6px; font-size: 76px; line-height: 1; color: var(--brass); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: 16px; line-height: 1.55; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--sand); font-weight: 700; color: var(--ink); }
.entry-content tr:nth-child(even) td { background: #fcf8f1; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content img { border-radius: var(--r-sm); margin: 1.4em auto; }
.entry-content figure { margin: 1.6em 0; max-width: 100%; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: .5em; }
.entry-content hr { border: 0; height: 26px; margin: 2.2em 0; background: var(--brass); -webkit-mask: var(--shoe) center / 24px no-repeat; mask: var(--shoe) center / 24px no-repeat; }
.entry-content pre, .entry-content code { font-size: .88em; background: var(--cream); border-radius: 8px; }
.entry-content code { padding: .15em .4em; }
.entry-content pre { padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* interlinking blocks inside the article */
.read-also { display: flex; align-items: center; gap: 16px; margin: 2em 0; padding: 18px 22px 18px 24px; border-radius: var(--r); background: linear-gradient(135deg, #fcf4e6, #f3e5cc); border: 1px solid var(--line-2); position: relative; overflow: hidden; font-family: var(--sans); }
.read-also::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--brass), var(--leather)); }
.ra-icon { width: 48px; height: 48px; border-radius: 15px; background: var(--paper); display: grid; place-items: center; color: var(--leather); flex: none; box-shadow: var(--sh); }
.ra-icon svg { width: 26px; height: 26px; }
.ra-body { display: flex; flex-direction: column; gap: 3px; }
.ra-label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); line-height: 1.3; }
.entry-content .read-also a { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.entry-content .read-also a:hover { color: var(--leather); }

.toc-inline { display: none; margin: 0 0 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); padding: 4px 20px; }
.toc-inline summary { cursor: pointer; font-weight: 700; padding: 12px 0; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.toc-inline summary .ic { color: var(--brass); }
.toc-inline ol { margin: 0 0 14px; padding-left: 22px; }
.toc-inline li { margin: 6px 0; }
.toc-inline li.l3 { margin-left: 16px; font-size: .95em; }

.post-foot { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.foot-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.share a { padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); background: var(--cream); }
.share a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.author-box { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--r); background: linear-gradient(135deg, var(--cream), var(--sand)); border: 1px solid var(--line); }
.author-box .avatar { width: 68px; height: 68px; }
.author-box .avatar svg { width: 44px; height: 44px; }
.author-box b { display: block; font-family: var(--serif); font-size: 20px; margin-top: 2px; }
.author-box p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.post-nav a:hover { border-color: var(--brass); box-shadow: var(--sh); transform: translateY(-2px); color: var(--ink); }
.post-nav small { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.post-nav b { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.35; }
.post-nav .next { text-align: right; grid-column: 2; }

.post-side { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--paper); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); border: 1px solid rgba(234, 223, 204, .75); }
.widget h2 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.widget h2 svg { width: 22px; height: 22px; color: var(--brass); flex: none; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-list a { display: flex; gap: 13px; align-items: center; color: var(--ink); }
.side-thumb { width: 66px; height: 66px; border-radius: 14px; overflow: hidden; position: relative; flex: none; background: var(--sand); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb .ph-horse { width: 90%; right: -12%; bottom: -14%; color: rgba(255, 255, 255, .3); }
.side-thumb .ph-shoe { display: none; }
.side-list b { font-size: 14.5px; font-weight: 600; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.side-list a:hover b { color: var(--leather); }
.side-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14px; }
.toc { position: sticky; top: 98px; max-height: calc(100vh - 120px); overflow: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-2); line-height: 1.42; }
.toc li.l3 a { padding-left: 28px; font-size: 13.5px; color: var(--muted); }
.toc li a:hover, .toc li a.active { color: var(--leather); border-left-color: var(--leather); }

.related { background: var(--paper); padding: 64px 0; margin-top: 64px; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.post-layout:last-child { margin-bottom: 64px; }
.fence { height: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='46'%3E%3Cg fill='%231f160f'%3E%3Crect x='14' y='2' width='10' height='44' rx='3'/%3E%3Crect x='84' y='2' width='10' height='44' rx='3'/%3E%3Crect x='0' y='12' width='140' height='7' rx='3'/%3E%3Crect x='0' y='28' width='140' height='7' rx='3'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / 140px 46px; }
.ftr { position: relative; overflow: hidden; background: var(--espresso); color: #cdbba3; padding: 60px 0 0; }
.ftr a { color: #eadbc5; }
.ftr a:hover { color: var(--brass-2); }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 44px; position: relative; z-index: 1; }
.ftr h3 { color: #fff3dd; font-size: 18px; margin-bottom: 18px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.ftr-latest a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.ftr-about p { font-size: 14.5px; line-height: 1.7; margin: 18px 0 0; max-width: 340px; color: #b9a68d; }
.ftr-stats { display: flex; gap: 18px; margin-top: 18px; font-size: 13px; color: #a8957d; }
.ftr-stats b { color: var(--brass-2); font-family: var(--serif); font-size: 18px; }
.logo-light .logo-txt b { color: #fff3dd; }
.logo-light .logo-txt small { color: #a8957d; }
.ftr-bottom { position: relative; z-index: 1; margin-top: 50px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: #a8957d; }
.ftr-love { display: inline-flex; align-items: center; gap: 8px; }
.ftr-love svg { color: var(--brass); width: 18px; height: 18px; }
.ftr-horse { position: absolute; right: -70px; bottom: -60px; width: 440px; height: 440px; color: rgba(255, 255, 255, .035); }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(3, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .nav-list > li:nth-child(n+3):not(.mega) { display: none; }
}
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; margin-top: -76px; }
  .post-side .toc { display: none; }
  .toc-inline { display: block; }
  .post-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 960px) {
  .burger { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-lg); display: none; max-height: calc(100vh - 76px); overflow: auto; }
  .hdr.nav-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px 20px 22px; gap: 2px; }
  .nav-list > li:nth-child(n+3):not(.mega) { display: block; }
  .mega { margin: 6px 0 0; }
  .mega-btn { display: none; }
  .mega-panel { position: static; opacity: 1; visibility: visible; transform: none; width: auto; box-shadow: none; border: 0; padding: 6px 0 0; border-top: 1px solid var(--line); border-radius: 0; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 380px; margin: 0 auto; order: -1; }
  .card-featured { flex-direction: column; }
  .card-featured .card-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .card-featured .card-body { padding: 24px; }
  .topics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hdr-in { min-height: 66px; gap: 12px; }
  .logo-mark { width: 40px; height: 40px; border-radius: 12px; }
  .logo-mark svg { width: 27px; height: 27px; }
  .logo-txt b { font-size: 16.5px; }
  .logo-txt small { display: none; }
  .grid, .topics, .ftr-grid, .post-side, .mega-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 80px; }
  .hero-stats { gap: 18px; }
  .hero-stats div + div { padding-left: 18px; }
  .hero-stats b { font-size: 27px; }
  .sec { padding: 48px 0; }
  .cat-hero-in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .big-ic { width: 64px; height: 64px; border-radius: 20px; }
  .big-ic svg { width: 34px; height: 34px; }
  .post-hero { padding: 28px 0 100px; }
  .post-main { border-radius: 20px; }
  .post-cover { aspect-ratio: 16 / 9; margin-bottom: 28px; }
  .entry-content { font-size: 17px; }
  .entry-content > p:first-of-type { font-size: 18.5px; }
  .entry-content table { display: block; overflow-x: auto; }
  .entry-content blockquote { padding: 20px 20px 20px 54px; font-size: 18px; }
  .entry-content blockquote::before { left: 14px; font-size: 60px; }
  .read-also { padding: 16px; gap: 12px; }
  .ra-icon { width: 40px; height: 40px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; }
  .pager .prev span, .pager .next span { display: none; }
  .author-box { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
