/* ==========================================================================
   Fortune Commercial — Theme stylesheet
   Design tokens, typography, layout primitives, and section styles.
   ========================================================================== */

:root {
  --ink: #0b1a33;          /* midnight blue */
  --midnight: #12244a;
  --ivory: #f4efe6;
  --stone: #6b6459;
  --gold: #d4b978;
  --gold-deep: #a7873d;
  --bg: #fbf9f4;
  --fg: #0b1a33;
  --border: rgba(11,26,51,0.12);
  --card: #ffffff;
  --secondary: #efeae0;
  --radius: 0;
  --max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-deep); }
button { font: inherit; cursor: pointer; }

.font-display { font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; font-weight: 300; }
.italic { font-style: italic; }
.eyebrow { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.eyebrow.gold { color: var(--gold-deep); }
.rule-gold { display:inline-block; width: 40px; height: 1px; background: var(--gold); vertical-align: middle; }

.display-xl { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
.display-lg { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.05; margin: 0; }
.display-md { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.4rem); margin: 0; }
em.gold { color: var(--gold-deep); font-style: italic; font-weight: 300; }
em.gold-light { color: var(--gold); font-style: italic; font-weight: 300; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ---------- Nav ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(251,249,244,0.65); border-bottom: 1px solid var(--border); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header .brand { display: flex; flex-direction: column; line-height: 1; }
.site-header .brand .l1 { font-size: 10px; letter-spacing: 0.35em; color: var(--gold-deep); }
.site-header .brand .l2 { font-size: 10px; letter-spacing: 0.35em; color: rgba(11,26,51,0.7); }
.site-header nav.primary { display: none; gap: 2.5rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(11,26,51,0.75); }
.site-header nav.primary a:hover { color: var(--fg); }
.site-header .cta { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; border: 1px solid rgba(11,26,51,0.2); padding: 0.55rem 1rem; }
.site-header .cta:hover { background: var(--fg); color: var(--bg); }
.menu-toggle { display: inline-flex; background: none; border: 0; padding: .5rem; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content:''; display:block; width: 22px; height: 1px; background: var(--fg); position: relative; }
.menu-toggle span::before { top: -6px; position: absolute; }
.menu-toggle span::after { top: 6px; position: absolute; }
@media (min-width: 900px) {
  .site-header nav.primary { display: flex; }
  .menu-toggle { display: none; }
}
.mobile-nav { display: none; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.5rem; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.mobile-nav.open { display: block; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 7rem 0; }
@media (min-width: 900px) { .section { padding: 10rem 0; } }
.section.dark { background: var(--ink); color: var(--ivory); }
.section.dark .eyebrow { color: rgba(244,239,230,0.6); }
.section.dark em.gold { color: var(--gold); }
.section.secondary { background: var(--secondary); }

/* Hero (front page) */
.hero-front { position: relative; min-height: 88vh; display: flex; align-items: flex-end; padding: 8rem 0 5rem; background: var(--ink); color: var(--ivory); overflow: hidden; }
.hero-front .blob { position: absolute; border-radius: 9999px; filter: blur(80px); opacity: 0.3; }
.hero-front .blob.a { top: -160px; left: -160px; width: 600px; height: 600px; background: rgba(167,135,61,0.35); animation: float 12s ease-in-out infinite; }
.hero-front .blob.b { bottom: -160px; right: -160px; width: 700px; height: 700px; background: rgba(212,185,120,0.18); animation: float 15s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-20px) } }
.hero-front .top-meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; margin-bottom: 6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 3rem; }
.hero-stats .n { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.25rem, 4vw, 3rem); color: var(--gold); }
.hero-stats .l { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244,239,230,0.6); margin-top: .5rem; }

/* Hero (single project) */
.hero-single { position: relative; height: 100vh; min-height: 720px; width: 100%; overflow: hidden; color: var(--ivory); }
.hero-single > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.hero-single::after { content:''; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(11,26,51,0.4) 0%, rgba(11,26,51,0.2) 40%, rgba(11,26,51,0.9) 100%); }
.hero-single .inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 6rem 0 3rem; }
.stat { display: block; }
.stat .l { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244,239,230,0.6); }
.stat .v { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; margin-top: .25rem; }
.stat .s { font-size: .75rem; color: rgba(244,239,230,0.55); margin-top: .25rem; }

/* Project cards on portfolio */
.projects-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.project-card { display: block; border: 1px solid var(--border); background: var(--card); transition: border-color .3s ease; }
.project-card:hover { border-color: var(--gold-deep); }
.project-card .media { position: relative; overflow: hidden; }
.project-card .media img { width: 100%; height: 420px; object-fit: cover; transition: transform .7s ease; }
@media (min-width: 768px) { .project-card .media img { height: 520px; } }
.project-card:hover .media img { transform: scale(1.05); }
.project-card .media::after { content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(11,26,51,0.8) 0%, rgba(11,26,51,0.1) 50%, transparent 100%); }
.project-card .badge { position:absolute; top: 1.25rem; left: 1.25rem; background: rgba(251,249,244,0.95); color: var(--fg); padding: .25rem .75rem; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; z-index: 2; }
.project-card .index { position:absolute; top: 1.25rem; right: 1.25rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244,239,230,0.85); z-index: 2; }
.project-card .cap { position:absolute; left: 0; right: 0; bottom: 0; padding: 2rem; color: var(--ivory); z-index: 2; }
.project-card .cap h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem, 3vw, 3rem); margin: .75rem 0 0; }
.project-card .body { padding: 2.5rem; }
.project-card .tagline { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 1.35rem; line-height: 1.35; }
.project-card .blurb { color: var(--stone); margin-top: 1.25rem; line-height: 1.6; }
.project-card .meta { margin-top: 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); }
.project-card .meta > div { padding: 1.25rem .5rem; text-align: center; border-left: 1px solid var(--border); }
.project-card .meta > div:first-child { border-left: 0; text-align: left; padding-left: 0; }
.project-card .meta > div:last-child { text-align: right; padding-right: 0; }
.project-card .meta .v { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.75rem; color: var(--gold-deep); }
.project-card .cta-row { margin-top: 2rem; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone); }
.project-card .cta-row .arrow { color: var(--gold-deep); transition: transform .3s ease; }
.project-card:hover .cta-row .arrow { transform: translateX(8px); }

/* Grid helpers */
.grid-12 { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }

/* Tenets / philosophy */
.tenet { display: flex; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(244,239,230,0.15); }
.tenet + .tenet { margin-top: 2rem; }
.tenet .n { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem; color: var(--gold); width: 3rem; padding-top: .5rem; }
.tenet h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.5rem, 2vw, 2rem); margin: 0; }
.tenet p { margin: .75rem 0 0; color: rgba(244,239,230,0.7); font-weight: 300; }

/* Contact */
.contacts-list { border-top: 1px solid var(--fg); }
.contacts-list .row { display: grid; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .contacts-list .row { grid-template-columns: 1fr 1fr; } }
.contacts-list .name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 300; margin-top: .5rem; }
.contacts-list .info { display: flex; flex-direction: column; gap: .25rem; font-size: .875rem; font-weight: 300; }
@media (min-width: 640px) { .contacts-list .info { text-align: right; } }

/* Facts list (project overview) */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; align-items: baseline; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--border); }
.facts li:first-child { border-top: 0; }
.facts .n { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; color: var(--gold-deep); width: 2rem; }
.facts .t { font-size: 1.125rem; font-weight: 300; }
.note { padding: 2rem; border: 1px solid var(--border); background: var(--card); margin-top: 3rem; }
.note p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.3; margin: 1rem 0 0; }

/* Concept grid */
.concepts { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 768px) { .concepts.cols-3 { grid-template-columns: repeat(3, 1fr); } .concepts.cols-6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .concepts.cols-6 { grid-template-columns: repeat(3, 1fr); } }
.concept { background: var(--bg); padding: 2.5rem; }
.section.dark .concept { background: var(--ink); }
.concept .row { display: flex; align-items: baseline; justify-content: space-between; }
.concept .tag { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 3rem; color: var(--gold-deep); }
.section.dark .concept .tag { color: var(--gold); }
.concept .kicker { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); }
.section.dark .concept .kicker { color: rgba(244,239,230,0.5); }
.concept h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.5rem, 2.2vw, 2rem); margin: 2.5rem 0 0; }
.concept p { color: var(--stone); font-weight: 300; margin: 1rem 0 0; line-height: 1.6; }
.section.dark .concept p { color: rgba(244,239,230,0.7); }
.concept ul { list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: .9rem; display: grid; gap: .5rem; }
.concept ul li { display: flex; gap: .75rem; }
.concept ul li::before { content: '◆'; color: var(--gold-deep); margin-top: 2px; }
.section.dark .concept ul li::before { color: var(--gold); }

/* Seasons */
.seasons { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .seasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .seasons { grid-template-columns: repeat(4, 1fr); } }
.season .media { position: relative; overflow: hidden; }
.season .media img { width: 100%; height: 420px; object-fit: cover; transition: transform .7s ease; }
.season:hover .media img { transform: scale(1.05); }
.season .tag { position: absolute; top: 1rem; left: 1rem; background: rgba(244,239,230,0.95); color: var(--ink); padding: .25rem .75rem; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }
.season ul { list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: .875rem; }
.season ul li { padding: .5rem 0; border-bottom: 1px solid rgba(11,26,51,0.1); }

/* Access / trajectory blocks */
.access-list { list-style: none; padding: 0; margin: 3rem 0 0; border-top: 1px solid rgba(244,239,230,0.15); border-bottom: 1px solid rgba(244,239,230,0.15); }
.access-list li { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid rgba(244,239,230,0.15); align-items: center; }
.access-list li:first-child { border-top: 0; }
.access-list .t { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold); font-weight: 300; }
.access-list .l { font-weight: 300; color: rgba(244,239,230,0.8); }

.trajectory, .market-stats, .forces { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.section.dark .trajectory, .section.dark .market-stats { background: rgba(244,239,230,0.1); border-color: rgba(244,239,230,0.1); }
@media (min-width: 640px) { .trajectory, .market-stats, .forces { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trajectory, .market-stats { grid-template-columns: repeat(4, 1fr); } .forces { grid-template-columns: repeat(3, 1fr); } }
.traj-cell, .stat-cell, .force-cell { background: var(--bg); padding: 2rem; }
.section.dark .traj-cell, .section.dark .stat-cell { background: var(--ink); }
.traj-cell .y, .stat-cell .v, .force-cell .v { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--gold-deep); }
.section.dark .traj-cell .y, .section.dark .stat-cell .v { color: var(--gold); }
.stat-cell .l { margin-top: 1rem; font-size: .875rem; }
.stat-cell .s { margin-top: .25rem; font-size: .75rem; color: rgba(244,239,230,0.5); }

/* Media groups */
.media-mosaic { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .media-mosaic { grid-template-columns: 7fr 5fr; gap: 3rem; } }
.media-mosaic .main img { width: 100%; height: 600px; object-fit: cover; }
.media-mosaic .side { display: grid; gap: 2rem; }
.media-mosaic .side img { width: 100%; height: 290px; object-fit: cover; }
.media-mosaic .cap { position: relative; }
.media-mosaic .cap .overlay { position: absolute; inset: auto 0 0 0; background: linear-gradient(to top, rgba(11,26,51,0.9), transparent); padding: 2rem; color: var(--ivory); }
.media-mosaic .cap .overlay p { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.25rem; margin: .5rem 0 0; }

/* Site footer */
.site-footer { background: var(--ink); color: rgba(244,239,230,0.7); padding: 2.5rem 0; border-top: 1px solid rgba(244,239,230,0.1); font-size: .75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.site-footer .inner { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .site-footer .inner { flex-direction: row; justify-content: space-between; } }
.site-footer .brand .l1 { color: var(--gold); }

/* Utilities */
.center { text-align: center; }
.max-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.flex-between { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-end; }
.text-gold { color: var(--gold); }
.text-gold-deep { color: var(--gold-deep); }
.text-stone { color: var(--stone); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Block editor content (page.php) */
.entry-content { max-width: 48rem; margin: 8rem auto 6rem; padding: 0 1.5rem; }
.entry-content h1, .entry-content h2, .entry-content h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; }
.entry-content a { color: var(--gold-deep); text-decoration: underline; }

/* Skip link (a11y) */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--ivory); padding: .5rem 1rem; z-index: 999; }

/* Focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Print */
@media print { .site-header, .site-footer, .hero-front .blob { display:none !important; } body { background:#fff; color:#000; } }
