/*
Theme Name: Investors Guild
Theme URI: https://example.com/investors-guild
Author: Investors Guild
Description: A dark, editorial WordPress theme for a private investment ideas collective. News-first homepage, top navigation, and an editable contact sidebar.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: investors-guild
*/

:root {
  --ink: #08090a;
  --ink-2: #0e1011;
  --panel: #141617;
  --panel-2: #191b1d;
  --line: rgba(197, 153, 81, .25);
  --line-strong: rgba(220, 174, 96, .58);
  --gold: #d2ad70;
  --gold-light: #f1d29d;
  --muted: #9b9a93;
  --text: #e5e0d6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--ink); font: 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 80% -10%, rgba(178,124,48,.08), transparent 45%), linear-gradient(#08090a,#0b0d0e); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
::selection { background: #bc914f; color: #08090a; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { width: auto; height: auto; top: 8px; left: 8px; margin: 0; padding: 12px 16px; clip: auto; color: #000; background: var(--gold-light); z-index: 100; }
.container { width: min(1230px, calc(100% - 72px)); margin: 0 auto; }

.topline { height: 4px; background: linear-gradient(90deg, #352414, #c69b58 32%, #f3d4a0 51%, #9d7036 70%, #24190d); }
.site-header { position: relative; z-index: 50; background: rgba(10,11,12,.98); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 98px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; max-width: 325px; }
.brand img { width: 290px; max-height: 84px; object-fit: contain; object-position: left center; }
.brand-text { color: var(--gold-light); font: 600 26px/1 var(--serif); letter-spacing: .09em; }
.primary-nav ul { display: flex; gap: 34px; align-items: center; list-style: none; margin: 0; padding: 0; }
.primary-nav a { position: relative; display: block; padding: 16px 0; color: #c0bdb6; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: color .2s; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav a[aria-current='page'] { color: var(--gold-light); }
.primary-nav a::after { content: ''; position: absolute; bottom: 10px; left: 0; height: 1px; width: 0; background: var(--gold); transition: width .2s; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav a[aria-current='page']::after { width: 100%; }
.nav-toggle { display: none; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; padding: 10px 13px; color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nav-bars { display: grid; gap: 4px; }
.nav-bars i { display: block; width: 18px; height: 1px; background: var(--gold-light); }

.hero { position: relative; min-height: 500px; background: #0b0a09 url('assets/images/guild-background.png') center center / cover no-repeat; border-bottom: 1px solid rgba(211,157,76,.4); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.19) 0%, transparent 35%, rgba(0,0,0,.09) 65%, #090a0b 100%); }
.hero::after { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(226,179,103,.12); pointer-events: none; }
.hero-bottom { position: absolute; z-index: 1; bottom: 24px; left: 0; right: 0; }
.hero-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #d6ba89; font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 5px #000; }
.hero-caption .scroll-hint { color: #a18c6b; font-weight: 400; }
.hero-caption .scroll-hint::after { content: ' ↓'; font-size: 16px; }
.inner-hero { min-height: 210px; background-position: center 47%; }
.inner-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 35%, #090a0b 100%); }

.page-body { position: relative; padding: 65px 0 104px; }
.body-grid { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 66px; align-items: start; }
.sidebar { position: relative; }
.sidebar-card { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(32,29,23,.98), rgba(18,20,21,.98) 60%); border: 1px solid var(--line-strong); padding: 30px 26px; box-shadow: 0 16px 48px rgba(0,0,0,.24), inset 0 0 0 6px rgba(0,0,0,.16); }
.sidebar-card::before, .sidebar-card::after { content: ''; position: absolute; width: 38px; height: 38px; border-color: var(--gold); border-style: solid; opacity: .6; pointer-events: none; }
.sidebar-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.sidebar-card::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.side-rule { width: 48px; height: 1px; margin: 21px 0 25px; background: var(--gold); }
.sidebar h2 { margin: 14px 0 0; font: 400 30px/1.16 var(--serif); color: #f3e6d1; }
.sidebar p { color: #b3ada3; font-size: 13px; line-height: 1.8; margin: 0 0 18px; }
.contact-label { display: block; margin: 0 0 8px; color: #8d8a84; font-size: 10px; letter-spacing: .21em; text-transform: uppercase; }
.contact-value { overflow-wrap: anywhere; display: block; margin-bottom: 18px; color: #e3c38b; font: 17px/1.45 var(--serif); }
.contact-placeholder { color: #9b968d; font: 13px/1.7 var(--sans); }
.contact-form { position: relative; margin-top: 20px; }
.contact-form .contact-label { margin: 16px 0 7px; }
.contact-input { display: block; width: 100%; min-height: 42px; border: 1px solid rgba(191,151,88,.3); border-radius: 0; padding: 9px 11px; color: #eee4d5; background: rgba(0,0,0,.3); outline: none; font-size: 13px; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.contact-input:focus { border-color: #d5a761; box-shadow: 0 0 0 2px rgba(213,167,97,.1); }
.contact-input:disabled { opacity: .62; cursor: not-allowed; }
.contact-message { min-height: 118px; resize: vertical; }
.contact-submit { margin-top: 18px; width: 100%; }
.contact-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.contact-submit:disabled:hover { background: linear-gradient(110deg, rgba(154,102,35,.14), rgba(154,102,35,.04)); transform: none; }
.contact-help { margin: 13px 0 0 !important; color: #8f897e !important; font-size: 11px !important; line-height: 1.6 !important; }
.contact-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; }
.form-status { padding: 10px 12px; border: 1px solid rgba(191,151,88,.3); background: rgba(191,151,88,.09); font-size: 12px !important; }
.form-status.is-success { border-color: rgba(113,178,128,.48); color: #b4d8ba; }
.form-status.is-error { border-color: rgba(196,127,93,.45); color: #e1b69e; }
.gold-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; gap: 12px; padding: 12px 18px; border: 1px solid #ca9d59; color: #efcf98; background: linear-gradient(110deg, rgba(154,102,35,.14), rgba(154,102,35,.04)); font-size: 10px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; transition: background .2s, transform .2s; }
.gold-button:hover { background: rgba(198,150,73,.23); transform: translateY(-2px); }
.gold-button::after { content: '↗'; font-size: 15px; font-weight: 400; }
.sidebar-lower { margin-top: 27px; padding: 24px 24px 22px; border: 1px solid rgba(191,151,88,.16); background: rgba(255,255,255,.015); }
.sidebar-lower h3 { color: #c8a46a; margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.sidebar-lower p { margin: 0; color: #7f807c; font-size: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #c39b5a; box-shadow: 0 0 10px rgba(205,159,87,.4); }

.section-label { display: flex; align-items: center; gap: 15px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; }
.section-label::before { content: ''; width: 33px; height: 1px; background: var(--gold); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 23px; border-bottom: 1px solid var(--line-strong); }
.section-heading h1, .section-heading h2 { margin: 12px 0 0; color: #f3eee6; font: 400 clamp(34px, 4vw, 53px)/1.13 var(--serif); letter-spacing: -.025em; }
.section-heading .heading-note { white-space: nowrap; padding-bottom: 6px; font-size: 10px; color: #7c7c77; letter-spacing: .17em; text-transform: uppercase; }
.news-list { display: grid; gap: 0; }
.news-card { display: grid; grid-template-columns: 46px minmax(0,1fr) 18px; gap: 21px; padding: 32px 0; border-bottom: 1px solid rgba(191,151,88,.17); }
.news-index { padding-top: 4px; font: 20px/1 var(--serif); color: #9d783e; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; color: #a48757; font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.news-meta .meta-divider { width: 14px; height: 1px; background: #6c5533; }
.news-card h3 { margin: 11px 0 10px; color: #eee8df; font: 400 clamp(24px,2.6vw,32px)/1.22 var(--serif); transition: color .2s; }
.news-card h3 a:hover { color: var(--gold-light); }
.news-card p { max-width: 690px; margin: 0; color: #a8a59f; font-size: 14px; line-height: 1.8; }
.news-arrow { align-self: center; color: #b08c55; font-size: 21px; transition: transform .2s; }
.news-card:hover .news-arrow { transform: translate(4px,-3px); }
.news-card:first-child { padding-top: 36px; }
.news-card:first-child h3 { font-size: clamp(27px,3vw,37px); }
.demo-pill { display: inline-block; border: 1px solid rgba(200,158,88,.38); padding: 3px 8px; color: #ab8c61; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 30px; }
.pagination .page-numbers { border: 1px solid var(--line); padding: 6px 13px; font-size: 12px; color: #c0b6a6; }
.pagination .current { background: #ba8d4b; color: #08090a; }
.empty-news { margin-top: 32px; padding: 44px 36px; border: 1px solid var(--line); background: var(--panel); }
.empty-news h3 { margin: 0 0 10px; font: 400 28px var(--serif); }
.empty-news p { margin: 0; color: var(--muted); }

.about-strip { position: relative; margin-top: 48px; padding: 28px 30px; border: 1px solid rgba(197,153,81,.2); border-left: 2px solid #b98a4b; background: linear-gradient(105deg, rgba(182,133,61,.08), rgba(255,255,255,.012) 58%); }
.about-strip h2 { color: #ebdfca; margin: 8px 0 7px; font: 400 25px var(--serif); }
.about-strip p { color: #a6a29a; margin: 0; font-size: 13px; }
.about-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding-bottom: 4px; border-bottom: 1px solid rgba(197,153,81,.58); color: var(--gold-light); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.about-link:hover { color: #fff0ce; border-color: var(--gold-light); }
.guild-intro { max-width: 780px; }
.guild-intro .guild-lead { margin-top: 0; color: var(--gold-light); font: 400 clamp(21px,2.7vw,29px)/1.45 var(--serif); }
.guild-intro .guild-closing { margin-top: 28px; padding-left: 22px; border-left: 2px solid var(--gold); color: #e8d3ad; font: 400 22px/1.55 var(--serif); }
.article-body { padding-top: 27px; color: #c8c4bd; font-size: 16px; line-height: 1.9; }
.article-body h2, .article-body h3, .article-body h4 { color: #f1e6d4; font-family: var(--serif); font-weight: 400; line-height: 1.3; }
.article-body a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 2px solid var(--gold); margin: 26px 0; padding: 6px 0 6px 24px; color: #e1c696; font: italic 22px/1.5 var(--serif); }
.article-body img { border: 1px solid var(--line); }
.article-body pre { max-width: 100%; overflow-x: auto; }
.back-link { display: inline-block; margin-top: 30px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.back-link:hover { color: var(--gold-light); }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: #08090a; }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.footer-mark { color: var(--gold); font: 20px var(--serif); letter-spacing: .11em; }
.footer-note { color: #6b6c69; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }

@media (max-width: 1030px) {
  .container { width: min(100% - 48px, 1200px); }
  .body-grid { grid-template-columns: 245px minmax(0,1fr); gap: 38px; }
  .brand img { width: 250px; }
  .primary-nav ul { gap: 22px; }
  .hero { min-height: 420px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 78px; }
  .brand img { width: 205px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #0d0e0f; border-bottom: 1px solid var(--line-strong); box-shadow: 0 20px 30px rgba(0,0,0,.4); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; padding: 10px 24px 24px; }
  .primary-nav li { border-bottom: 1px solid rgba(197,153,81,.14); }
  .primary-nav a { padding: 15px 0; }
  .primary-nav a::after { bottom: 8px; }
  .hero { min-height: 330px; background-position: center center; }
  .hero-caption { font-size: 9px; letter-spacing: .13em; }
  .hero-caption .scroll-hint { display: none; }
  .page-body { padding: 45px 0 72px; }
  .body-grid { display: flex; flex-direction: column; gap: 42px; }
  .sidebar, .main-content { width: 100%; }
  .sidebar-card { padding: 26px; }
  .sidebar-lower { display: none; }
  .section-heading h1, .section-heading h2 { font-size: 39px; }
  .news-card { grid-template-columns: 32px minmax(0, 1fr) 14px; gap: 12px; }
  .news-card h3 { font-size: 25px; }
  .news-card:first-child h3 { font-size: 28px; }
  .section-heading .heading-note { display: none; }
  .footer-inner { display: block; }
  .footer-note { margin-top: 9px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .brand img { width: 168px; }
  .nav-toggle { font-size: 0; gap: 0; }
  .hero { min-height: 255px; }
  .hero::after { inset: 8px; }
  .hero-bottom { bottom: 16px; }
  .hero-caption span:first-child { max-width: 215px; line-height: 1.5; }
  .news-card { grid-template-columns: 27px minmax(0,1fr); }
  .news-arrow { display: none; }
  .news-index { font-size: 17px; }
  .section-heading h1, .section-heading h2 { font-size: 36px; }
  .about-strip { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; } }
