@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #0a0908;
  --ink-1: #0e0d0b;
  --ink-2: #15120e;
  --ink-3: #211a12;
  --paper: #f4ede1;
  --gold: #d3ad68;
  --gold-light: #f0d49b;
  --gold-dark: #8b672d;
  --text: #f5eee2;
  --muted: #aaa095;
  --line: rgba(224, 188, 117, .2);
  --line-soft: rgba(224, 188, 117, .1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: .98; }
h1 { font-size: clamp(3.5rem, 8vw, 8rem); letter-spacing: -.06em; }
h2 { font-size: clamp(2.7rem, 5vw, 5.4rem); letter-spacing: -.055em; }
h3 { font-size: 1.7rem; }
em { color: var(--gold-light); font-style: italic; }

.site-body { min-height: 100vh; }
.max { max-width: 1280px; margin: 0 auto; }
.navbar, nav#navbar, body > nav { position: sticky; z-index: 100; top: 0; width: 100%; padding: 17px 4%; background: rgba(10, 9, 8, .92); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(20px); }
.nav-inner { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.nav-logo { display: inline-flex; align-items: center; width: 156px; height: 48px; overflow: hidden; }
.nav-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.nav-links, .nav-right { display: flex; align-items: center; gap: 18px; }
.nav-links a, .nav-link { position: relative; padding: 8px 9px; color: rgba(245, 238, 226, .62); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: color .2s ease; }
.nav-links a::after, .nav-link::after { position: absolute; right: 9px; bottom: 0; left: 9px; height: 1px; background: var(--gold); content: ''; transform: scaleX(0); transition: transform .2s ease; }
.nav-links a:hover, .nav-links a.active, .nav-link:hover { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-cta, .btn-gold, .btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 1px solid var(--gold); background: linear-gradient(110deg, var(--gold), var(--gold-light)); color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease; }
.nav-cta:hover, .btn-gold:hover, .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(211, 173, 104, .22); }
.btn-ghost, .btn-outline, .tier-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-ghost:hover, .btn-outline:hover, .tier-btn:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.language-switcher { display: inline-flex; align-items: center; margin-left: 3px; }
.language-switcher select, .lang-btn { appearance: none; border: 1px solid var(--line); border-radius: 0; background: var(--ink-2); color: var(--gold-light); padding: 9px 10px; font-size: .62rem; letter-spacing: .1em; cursor: pointer; }
.language-switcher select:focus, .lang-btn:focus { outline: 1px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero { position: relative; isolation: isolate; min-height: 760px; padding: 110px 4% 95px; display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 80px; overflow: hidden; background: radial-gradient(circle at 82% 45%, rgba(211, 173, 104, .16), transparent 25rem), linear-gradient(135deg, #0b0a09, #17120c); }
.hero::before { position: absolute; z-index: -1; top: 7%; right: 10%; width: 550px; height: 550px; border: 1px solid rgba(211, 173, 104, .22); border-radius: 50%; content: ''; }
.hero::after { position: absolute; z-index: -1; right: 28%; bottom: -20%; width: 1px; height: 120%; background: linear-gradient(transparent, rgba(211, 173, 104, .35), transparent); content: ''; transform: rotate(18deg); }
.hero-content { position: relative; z-index: 2; max-width: 750px; }
.hero-badge, .hero-eyebrow, .sec-eyebrow, .section-label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--gold); font-size: .65rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.hero-badge::before, .hero-eyebrow::before, .sec-eyebrow::before { width: 32px; height: 1px; background: var(--gold); content: ''; }
.hero-h1 { margin-bottom: 25px; color: var(--text); font-size: clamp(4.2rem, 9vw, 8rem); }
.hero-h1 .ln { display: block; }
.hero-h1 .ln:nth-child(2) { color: var(--gold-light); font-style: italic; }
.hero-h1 .ln:nth-child(3) { margin-top: 20px; color: var(--muted); font-family: var(--sans); font-size: .2em; font-style: normal; letter-spacing: .44em; line-height: 1.35; text-transform: uppercase; }
.hero-desc, .hero-sub { max-width: 650px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.hero-stats { display: flex; align-items: center; gap: 38px; margin: 36px 0; }
.h-stat-n, .stat-n, .ab-n { color: var(--gold-light); font-family: var(--serif); font-size: 3.4rem; line-height: 1; }
.h-stat-l, .stat-l, .ab-l { margin-top: 8px; color: #857b70; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.hero-sep { width: 1px; height: 45px; background: var(--line); }
.hero-btns, .button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 490px; display: grid; place-items: center; padding: 28px; border: 1px solid rgba(211, 173, 104, .42); background: rgba(255, 255, 255, .025); box-shadow: 20px 20px 0 rgba(211, 173, 104, .08), var(--shadow); }
.hero-visual::before { position: absolute; inset: 16px; border: 1px solid var(--line); content: ''; }
.hero-visual img { position: relative; z-index: 1; width: 87%; height: auto; max-height: 410px; object-fit: contain; opacity: .94; }
.hero-visual .visual-label { position: absolute; z-index: 2; right: 26px; bottom: 23px; color: var(--gold-light); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue { position: absolute; right: 4%; bottom: 32px; display: flex; align-items: center; gap: 10px; color: #8e8378; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; }
.scroll-wire { width: 34px; height: 1px; background: var(--gold); }

.section { position: relative; padding: 120px 4%; background: var(--ink); }
.stats-section { padding: 55px 4%; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--ink-2); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-box { position: relative; padding: 27px 20px; border: 1px solid var(--line-soft); text-align: center; }
.stat-box::before { position: absolute; top: 0; right: 18%; left: 18%; height: 1px; background: var(--gold); content: ''; }
.stat-d { margin-top: 10px; color: #7f756b; font-size: .76rem; }
.section-top { max-width: 850px; margin: 0 auto 60px; text-align: center; }
.sec-title { margin-bottom: 20px; color: var(--text); }
.sec-sub { max-width: 650px; margin: 0 auto; color: var(--muted); line-height: 1.9; }
.gold-rule { width: 60px; height: 1px; margin: 28px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.services-grid, .exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-card, .exp-item, .testi-card, .blog-card, .tier, .apply-box, .post-card { position: relative; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-2); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.svc-card, .exp-item, .testi-card, .tier { padding: 36px; }
.svc-card::before, .exp-item::before, .tier::before, .apply-box::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); content: ''; transform: scaleX(.2); transition: transform .3s ease; }
.svc-card:hover, .exp-item:hover, .testi-card:hover, .blog-card:hover, .tier:hover { border-color: rgba(211, 173, 104, .5); box-shadow: var(--shadow); transform: translateY(-5px); }
.svc-card:hover::before, .exp-item:hover::before, .tier:hover::before { transform: scaleX(1); }
.svc-icon-wrap { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 27px; border: 1px solid var(--line); }
.svc-icon { width: 40px; height: 40px; color: var(--gold); stroke: currentColor; }
.svc-tag, .exp-detail, .post-tag { margin-bottom: 11px; color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.svc-name, .exp-title, .tier-name, .post-title, .testi-author { margin-bottom: 12px; color: var(--text); }
.svc-body, .exp-body, .tier-desc, .testi-text, .post-excerpt { color: var(--muted); line-height: 1.9; }
.svc-feats, .tier-feats { margin: 25px 0 0; padding: 17px 0 0; border-top: 1px solid var(--line-soft); list-style: none; }
.svc-feats li, .tier-feats li { padding: 7px 0; color: #8f857a; font-size: .78rem; }
.svc-feats li::before, .tier-feats li::before { display: inline-block; margin-right: 10px; color: var(--gold); content: '◆'; font-size: .42rem; }
.exp-num { position: absolute; top: 20px; right: 28px; color: rgba(211, 173, 104, .16); font-family: var(--serif); font-size: 4rem; }
.tiers-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { padding: 40px 30px; text-align: center; }
.tier.featured { border-color: var(--gold); background: linear-gradient(155deg, var(--ink-2), rgba(211, 173, 104, .09)); }
.tier-badge { display: inline-block; margin-bottom: 18px; padding: 7px 13px; background: var(--gold); color: var(--ink); font-size: .6rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.tier-price { color: var(--gold-light); font-family: var(--serif); font-size: 4rem; }
.tier-per { display: block; color: #82776b; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; }
.tier-btn { width: 100%; margin-top: 18px; }
.testi-grid, .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi-q { position: absolute; top: 10px; left: 21px; color: rgba(211, 173, 104, .12); font-family: var(--serif); font-size: 6rem; }
.testi-text { position: relative; z-index: 1; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.testi-role, .testi-detail { color: var(--gold); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.testi-detail { color: #7f756b; font-style: normal; }
.blog-card { display: block; padding: 30px; }
.blog-card::after { position: absolute; top: 18px; right: 18px; width: 25px; height: 25px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); content: ''; }
.blog-card .post-logo { width: 110px; height: 72px; margin-bottom: 22px; object-fit: contain; object-position: left center; opacity: .78; }
.read-more { color: var(--gold-light); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.about-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.about-h { color: var(--text); }
.about-p { color: var(--muted); line-height: 2; }
.about-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px; }
.ab-hl { padding: 23px 14px; border: 1px solid var(--line-soft); }
.apply-box { max-width: 820px; margin: 0 auto; padding: 44px; }
.apply-inner { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); background: rgba(211, 173, 104, .04); }
.apply-inner h3 { color: var(--text); }
.apply-inner p { color: var(--muted); }
.apply-note { margin-top: 18px; color: #756b62; font-size: .72rem; text-align: center; }

footer { position: relative; padding: 70px 4% 35px; border-top: 1px solid var(--line); background: var(--ink-1); text-align: center; }
footer::before { position: absolute; top: 0; left: 50%; width: 220px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); content: ''; transform: translateX(-50%); }
.footer-logo { display: inline-flex; width: 175px; height: 70px; margin-bottom: 18px; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-tagline, .copyright { color: #82786d; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-links { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin: 26px 0; }
.footer-links a { color: #a69b8f; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact { padding: 20px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.footer-contact p { margin: 7px 0; color: #8e8377; font-size: .78rem; }
.footer-contact a { color: var(--gold-light); }
.socials { display: flex; justify-content: center; gap: 10px; margin: 24px 0; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); }
.socials a:hover { background: var(--gold); color: var(--ink); }
.socials svg { width: 17px; height: 17px; }

.container { max-width: 1280px; margin: 0 auto; padding: 100px 4%; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.post-card { padding: 30px; }
.post-card .post-image, .post-image-wrap { display: none; }
.post-image-placeholder { min-height: 120px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line); background: var(--ink-3); }
.post-image-placeholder img { width: 110px; height: 65px; object-fit: contain; opacity: .75; }
.post-image-placeholder span { color: var(--gold); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
.empty-state, .blog-empty { grid-column: 1 / -1; padding: 80px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

/* Shared listings and legal pages */
.listing-page, .document-page { min-height: 100vh; }
.listing-header, .document-hero { max-width: 1050px; margin: 0 auto; padding: 100px 4% 55px; }
.listing-header h1, .document-hero h1 { margin-bottom: 20px; }
.listing-header p, .document-hero p { max-width: 650px; color: var(--muted); }
.listing-grid { max-width: 1280px; margin: 0 auto; padding: 0 4% 110px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.listing-card { padding: 30px; border: 1px solid var(--line-soft); background: var(--ink-2); }
.listing-card:hover { border-color: var(--gold); }
.listing-logo { width: 140px; height: 80px; margin-bottom: 20px; object-fit: contain; object-position: left center; opacity: .8; }
.listing-card h2 { margin-bottom: 14px; font-size: 2.4rem; }
.listing-card p { color: var(--muted); }
.listing-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 25px; }
.doc-wrapper { max-width: 980px; margin: 0 auto 110px; padding: 46px 4%; border: 1px solid var(--line); background: var(--ink-2); }
.doc-wrapper h2 { margin-top: 35px; color: var(--text); font-size: 2.1rem; }
.doc-wrapper p, .doc-wrapper li { color: var(--muted); line-height: 1.9; }
.doc-wrapper a { color: var(--gold-light); }

/* Forms and private login */
.form-page, .login-page { min-height: 100vh; }
.form-shell, .login-card { max-width: 760px; margin: 0 auto; padding: 100px 4% 120px; }
.form-card, .login-card { padding: 35px; border: 1px solid var(--line); background: var(--ink-2); box-shadow: var(--shadow); }
.form-card label, .login-card label { display: grid; gap: 8px; margin: 0 0 17px; color: #c6baaa; font-size: .73rem; letter-spacing: .06em; text-transform: uppercase; }
.form-card input, .form-card textarea, .form-card select, .login-card input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--ink); color: var(--text); }
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus, .login-card input:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.flash { max-width: 900px; margin: 15px auto; padding: 12px 17px; border: 1px solid var(--line); font-size: .82rem; }
.flash-success { color: #bcd8bd; background: rgba(91, 133, 93, .12); }
.flash-error { color: #edb3ad; background: rgba(185, 77, 68, .12); }
.login-page { display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 0%, rgba(211, 173, 104, .18), transparent 30rem), var(--ink); }
.login-card { width: min(470px, 100%); margin: 0; padding: 40px; }
.login-card .brand-logo { width: 190px; height: 75px; object-fit: contain; object-position: left center; margin-bottom: 26px; }
.login-card h1 { font-size: 3.4rem; }
.login-card p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: 690px; gap: 42px; }
  .hero-visual { width: min(100%, 520px); min-height: 390px; }
  .services-grid, .exp-grid { grid-template-columns: 1fr; }
  .testi-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-wrap { grid-template-columns: 1fr; max-width: 550px; margin: 0 auto; }
  .about-highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .navbar, nav#navbar, body > nav { padding: 13px 18px; }
  .nav-logo { width: 127px; height: 44px; }
  .nav-links, .nav-right { gap: 7px; }
  .nav-links a, .nav-link { display: none; }
  .nav-cta { min-height: 37px; padding: 9px 11px; font-size: .58rem; }
  .language-switcher select, .lang-btn { padding: 8px 7px; font-size: .58rem; }
  .hero { min-height: 700px; padding: 75px 24px 86px; }
  .hero-h1 { font-size: clamp(3.8rem, 16vw, 5.9rem); }
  .hero-stats { gap: 17px; flex-wrap: wrap; }
  .hero-visual { min-height: 300px; padding: 18px; }
  .hero-visual img { width: 94%; }
  .scroll-cue { right: 24px; bottom: 26px; }
  .section { padding: 78px 24px; }
  .stats-section { padding: 38px 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .testi-grid, .blog-grid, .listing-grid, .posts-grid { grid-template-columns: 1fr; }
  .svc-card, .exp-item, .testi-card, .tier, .post-card, .listing-card { padding: 26px 22px; }
  .about-highlights { grid-template-columns: repeat(2, 1fr); }
  .apply-box { padding: 24px; }
  footer { padding: 56px 24px 32px; }
  .footer-links { gap: 14px; }
  .container, .listing-header, .document-hero { padding-right: 24px; padding-left: 24px; }
  .container { padding-top: 76px; }
  .form-shell, .login-card { padding-right: 24px; padding-left: 24px; }
  .login-card { padding: 29px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Journal and editorial detail */
.journal-hero { max-width: 1120px; margin: 0 auto; padding: 125px 4% 80px; text-align: center; }
.journal-hero h1 { margin-bottom: 22px; }
.journal-hero .hero-sub { margin: 0 auto 30px; }
.journal-container { padding-top: 45px; }
.journal-heading { margin-bottom: 46px; }
.post-content { padding-top: 4px; }
.post-title { line-height: 1.1; }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.post-meta { color: #80766b; font-size: .67rem; letter-spacing: .06em; }
.post-hero-noimage { max-width: 980px; margin: 0 auto; padding: 125px 4% 60px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.post-eyebrow { margin-bottom: 18px; color: var(--gold); font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.post-hero-noimage .post-title { color: var(--text); font-size: clamp(3.2rem, 7vw, 6.4rem); }
.post-meta-row { display: flex; justify-content: center; gap: 25px; color: #887d72; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.post-logo-lockup { width: 150px; height: 82px; margin: 28px auto 0; opacity: .72; }
.post-logo-lockup img { width: 100%; height: 100%; object-fit: contain; }
.content-wrap { max-width: 820px; margin: 0 auto; padding: 75px 4% 105px; }
.gold-divider { width: 55px; height: 1px; margin-bottom: 43px; background: var(--gold); }
.post-body { color: #bcb2a7; font-family: var(--serif); font-size: 1.25rem; line-height: 1.9; }
.post-body h1, .post-body h2, .post-body h3 { margin: 42px 0 18px; color: var(--text); line-height: 1.15; }
.post-body h1 { font-size: 2.5rem; } .post-body h2 { font-size: 2.1rem; } .post-body h3 { font-size: 1.7rem; }
.post-body p { margin-bottom: 25px; }
.post-body img { display: none !important; }
.post-body a { color: var(--gold-light); border-bottom: 1px solid var(--line); }
.post-body blockquote { margin: 35px 0; padding: 7px 25px; border-left: 2px solid var(--gold); color: #92877b; font-style: italic; }
.post-body ul, .post-body ol { margin: 22px 0; padding-left: 27px; }
.post-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--line-soft); }
.views-label, .back-btn { color: #8b8074; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.back-btn { color: var(--gold-light); }
.rec-section { max-width: 1280px; margin: 0 auto; padding: 75px 4% 110px; border-top: 1px solid var(--line-soft); }
.rec-header { display: flex; align-items: center; gap: 20px; margin-bottom: 35px; }
.rec-header h2 { margin: 0; font-size: 2.3rem; }
.rec-line { flex: 1; height: 1px; background: var(--line); }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rec-card { display: block; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-2); }
.rec-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.rec-placeholder { min-height: 150px; display: grid; place-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft); background: var(--ink-3); }
.rec-placeholder img { width: 105px; height: 65px; object-fit: contain; opacity: .72; }
.rec-placeholder span { color: var(--gold); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.rec-content { padding: 20px; }
.rec-title { margin: 0 0 13px; color: var(--text); font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.rec-meta { display: flex; justify-content: space-between; gap: 12px; color: #857a6f; font-size: .65rem; }
.listing-header h1 { color: var(--text); }
.listing-grid { max-width: 1280px; margin: 0 auto; padding: 0 4% 110px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.listing-card { padding: 30px; border: 1px solid var(--line-soft); background: var(--ink-2); }
.listing-card:hover { border-color: var(--gold); }
.listing-card h2 { margin-bottom: 13px; font-size: 2.45rem; }
.listing-card p { color: var(--muted); }
.listing-logo { width: 140px; height: 80px; margin-bottom: 18px; object-fit: contain; object-position: left center; opacity: .8; }
.listing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.document-page { min-height: 100vh; }
.document-hero { max-width: 1050px; margin: 0 auto; padding: 125px 4% 60px; }
.document-hero h1 { color: var(--text); }
.document-hero p { max-width: 650px; color: var(--muted); }
.doc-wrapper { max-width: 980px; margin: 0 auto 110px; padding: 44px 4%; border: 1px solid var(--line); background: var(--ink-2); }
.doc-wrapper h2 { margin-top: 35px; color: var(--text); font-size: 2.1rem; }
.doc-wrapper p, .doc-wrapper li { color: var(--muted); line-height: 1.9; }
.doc-wrapper a { color: var(--gold-light); }

@media (max-width: 700px) {
  .journal-hero, .listing-header, .document-hero { padding: 86px 24px 45px; }
  .journal-container { padding: 36px 24px 78px; }
  .post-hero-noimage { padding: 90px 24px 45px; }
  .post-hero-noimage .post-title { font-size: clamp(3.1rem, 14vw, 5rem); }
  .content-wrap { padding: 55px 24px 80px; }
  .post-body { font-size: 1.16rem; }
  .post-footer-row { align-items: flex-start; flex-direction: column; }
  .rec-section { padding: 55px 24px 80px; }
  .rec-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .rec-line { width: 70px; flex: none; }
  .listing-grid { grid-template-columns: 1fr; padding: 0 24px 80px; }
  .doc-wrapper { margin: 0 24px 80px; padding: 30px 23px; }
}

/* Journal interaction layer */
.journal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 25px; padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.journal-search { position: relative; display: block; width: min(370px, 100%); }
.journal-search input { width: 100%; padding: 12px 38px 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--sans); font-size: .74rem; letter-spacing: .08em; }
.journal-search input::placeholder { color: #766c62; text-transform: uppercase; }
.journal-search input:focus { border-color: var(--gold); }
.journal-search > span { position: absolute; right: 3px; bottom: 10px; color: var(--gold); font-size: 1.25rem; line-height: 1; pointer-events: none; }
.journal-count { color: #887d72; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.journal-card { position: relative; display: flex; min-height: 430px; flex-direction: column; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-2); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.journal-card::after { position: absolute; top: 0; right: 22px; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); content: ''; }
.journal-card:hover { border-color: rgba(211, 173, 104, .55); box-shadow: var(--shadow); transform: translateY(-5px); }
.journal-card[hidden] { display: none; }
.journal-card-mark { display: flex; min-height: 150px; align-items: center; justify-content: space-between; gap: 16px; padding: 25px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(circle at 65% 45%, rgba(211, 173, 104, .1), transparent 45%), var(--ink-3); }
.journal-card-mark img { width: 150px; height: 80px; object-fit: contain; object-position: left center; opacity: .72; }
.journal-card-mark span { color: #887b6d; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.journal-card-content { display: flex; flex: 1; flex-direction: column; padding: 27px; }
.journal-card-content .post-title { margin-bottom: 14px; font-size: 2.2rem; }
.journal-card-content .post-excerpt { flex: 1; }
.journal-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 19px; border-top: 1px solid var(--line-soft); }
.journal-featured { grid-column: span 2; }
.journal-featured .journal-card-mark { min-height: 190px; }
.journal-featured .journal-card-mark img { width: 210px; height: 100px; }
.journal-featured .journal-card-content .post-title { font-size: clamp(2.5rem, 4vw, 4rem); }
.journal-filter-empty { margin-top: 16px; padding: 40px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.journal-filter-empty[hidden] { display: none; }
.empty-state { display: grid; grid-column: 1 / -1; justify-items: center; gap: 10px; padding: 75px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.empty-state img { width: 125px; height: 72px; margin-bottom: 10px; object-fit: contain; opacity: .7; }
.empty-state strong { color: var(--text); font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.empty-state span { color: var(--muted); }
.article-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 27px; }
.share-btn { padding: 10px 14px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.share-btn:hover { background: var(--gold); color: var(--ink); }
.reading-progress { position: fixed; z-index: 200; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transition: width .08s linear; }

@media (max-width: 1024px) {
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-featured { grid-column: span 2; }
}
@media (max-width: 700px) {
  .journal-toolbar { align-items: stretch; flex-direction: column; }
  .journal-search { width: 100%; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-featured { grid-column: auto; }
  .journal-featured .journal-card-mark { min-height: 150px; }
  .journal-card-content .post-title, .journal-featured .journal-card-content .post-title { font-size: 2.25rem; }
  .journal-card-footer { align-items: flex-start; flex-direction: column; }
  .article-tools { align-items: flex-start; flex-direction: column; }
}

/* Journal admin tools */
.header-logo { display: inline-flex; align-items: center; }
.admin-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.admin-search { flex: 1; }
.admin-search input, #statusFilter { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--ink-2); color: var(--text); font-size: .74rem; }
#statusFilter { width: auto; min-width: 155px; }
.admin-search input:focus, #statusFilter:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.admin-result-count { color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
[data-admin-row][hidden] { display: none; }
@media (max-width: 700px) {
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  #statusFilter { width: 100%; }
}
