/* ============================================
   OpenFrank — Shared Stylesheet
   openfrank.css
   ============================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* VARIABLES */
:root {
  --black: #1a1a18;
  --off-black: #2C2C2A;
  --amber: #BA7517;
  --amber-light: #EF9F27;
  --amber-dark: #854F0B;
  --green-confirm: #3B6D11;
  --text-primary: #1a1a18;
  --text-secondary: #5F5E5A;
  --text-tertiary: #888780;
  --border-light: rgba(26,26,24,0.12);
  --border-mid: rgba(26,26,24,0.25);
  --bg-page: #fafaf8;
  --bg-surface: #f4f3ef;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Fraunces', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* BASE */
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-mono); background: var(--bg-page); color: var(--text-primary); min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* ============================================
   NAV
   ============================================ */
.site-nav { border-top: 5px solid var(--black); border-bottom: 1px solid var(--border-light); background: var(--bg-page); position: sticky; top: 0; z-index: 100; }
.nav-inner { margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-icon { width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo { font-family: var(--font-display); font-size: 34px; letter-spacing: 3px; color: var(--text-primary); line-height: 1; }
.nav-logo span { color: var(--amber); }
.nav-links { display: flex; gap: 20px; align-items: center; list-style: none; }
.nav-links a { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.nav-links a:hover { color: var(--amber); }
.nav-links a.active { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); transition: all 0.2s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-mobile { display: none; border-top: 1px solid var(--border-light); background: var(--bg-page); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); text-decoration: none; padding: 14px 1.25rem; border-bottom: 1px solid var(--border-light); transition: color 0.15s; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: var(--text-primary); }
.nav-mobile a:hover { color: var(--amber); }

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page { margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.page-rule { height: 1px; background: var(--border-light); margin: 2rem 0; }
.masthead-rule { height: 1px; background: var(--border-light); margin-bottom: 2rem; }

/* AD SLOTS — uncomment to activate
.ad-slot { width: 100%; margin: 1.5rem 0; display: flex; align-items: center; justify-content: center; background: var(--bg-surface); border: 1px dashed var(--border-mid); }
.ad-slot-leaderboard { min-height: 90px; }
.ad-slot-rectangle { min-height: 250px; }
*/
.ad-placeholder-top { margin-top: 1.5rem; }
.ad-placeholder-mid { margin-top: 1.5rem; }

/* ============================================
   PAGE HEADER
   ============================================ */
.breadcrumb { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); margin-bottom: 1.25rem; }
.breadcrumb span { color: var(--amber); }
.page-kicker { display: inline-block; background: var(--black); color: #fafaf8; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; padding: 3px 8px; margin-bottom: 12px; }
.page-headline { font-family: var(--font-display); font-size: clamp(34px,6vw,48px); letter-spacing: 2px; color: var(--text-primary); line-height: 1.05; margin-bottom: 1rem; }
.page-headline em { color: var(--amber); font-style: normal; }
.page-deck { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text-primary); border-left: 3px solid var(--black); padding-left: 1rem; margin-bottom: 2rem; }
.page-deck em { font-style: italic; color: var(--amber); }

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-tertiary); display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }

/* ============================================
   MODE CARDS — shared across pages
   ============================================ */
.modes-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-tertiary); display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; }
.modes-label::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.modes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 1.5rem; }
.mode-card { border: 1px solid var(--border-light); padding: 14px; opacity: 0.45; }
.mode-num { font-size: 9px; color: var(--text-tertiary); letter-spacing: 0.1em; margin-bottom: 4px; }
.mode-title { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; color: var(--text-secondary); line-height: 1.1; margin-bottom: 4px; }
.mode-desc { font-family: var(--font-body); font-size: 11px; font-style: italic; color: var(--text-tertiary); line-height: 1.5; }
.mode-tag { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); margin-top: 8px; }

/* Active mode hero card */
.mode-hero { border: 1px solid var(--border-mid); padding: 20px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 16px; text-decoration: none; transition: all 0.15s; background: var(--bg-page); }
.mode-hero:hover { border-color: var(--amber); background: var(--bg-surface); }
.mode-num-badge { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; color: #fafaf8; background: var(--amber); padding: 3px 8px; flex-shrink: 0; margin-top: 3px; }
.mode-hero-content { flex: 1; }
.mode-hero-title { font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; color: var(--text-primary); line-height: 1.1; margin-bottom: 5px; }
.mode-hero-desc { font-family: var(--font-body); font-size: 14px; font-style: italic; color: var(--text-secondary); line-height: 1.55; margin-bottom: 10px; }
.mode-hero-cta { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); }

/* Coming soon cards */
.modes-coming { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 1.5rem; }
.mode-coming { border: 1px dashed var(--border-light); padding: 14px; opacity: 0.42; }
.mode-coming-num { font-size: 9px; color: var(--text-tertiary); letter-spacing: 0.1em; margin-bottom: 4px; }
.mode-coming-title { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; color: var(--text-secondary); line-height: 1.1; margin-bottom: 4px; }
.mode-coming-desc { font-family: var(--font-body); font-size: 11px; font-style: italic; color: var(--text-tertiary); line-height: 1.5; }
.mode-coming-tag { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); margin-top: 8px; }

/* ============================================
   PROMPT CONSTRUCTION — shared animation styles
   ============================================ */
.proc-header { background: var(--black); color: #fafaf8; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; }
.proc-title { font-family: var(--font-display); font-size: 15px; letter-spacing: 2px; }
.proc-title em { color: var(--amber-light); font-style: normal; }
.proc-dots { display: flex; gap: 4px; }
.proc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); animation: dotpulse 1.2s ease-in-out infinite; }
.proc-dot:nth-child(2) { animation-delay: .2s; }
.proc-dot:nth-child(3) { animation-delay: .4s; }
@keyframes dotpulse { 0%,80%,100%{opacity:.3}40%{opacity:1} }
.proc-text { white-space: pre-wrap; word-break: break-word; color: var(--text-secondary); }
.proc-text .rh { color: var(--amber); }
.proc-text .ui { color: var(--amber-light); }
.proc-text .cm { color: var(--text-tertiary); opacity: .7; }
.proc-text .cursor { display: inline-block; width: 6px; height: 12px; background: var(--amber); margin-left: 1px; animation: blink .7s step-end infinite; vertical-align: text-bottom; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }
.proc-bar-track { height: 3px; background: var(--border-light); }
.proc-bar { height: 100%; background: var(--amber); width: 0%; transition: width .2s ease; }

/* ============================================
   EMAIL CAPTURE
   ============================================ */
.email-capture { margin: 1.5rem 0; padding: 1.25rem; background: var(--bg-surface); border: 1px solid var(--border-light); }
.email-capture-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); margin-bottom: 8px; }
.email-capture-heading { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 4px; }
.email-capture-sub { font-family: var(--font-body); font-size: 12px; font-style: italic; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.email-form { display: flex; gap: 0; }
.email-form input[type="email"] { flex: 1; padding: 10px 14px; font-family: var(--font-body); font-size: 14px; color: var(--text-primary); background: #fff; border: 2px solid var(--black); border-right: none; border-radius: 0; outline: none; min-width: 0; transition: border-color 0.15s; }
.email-form input[type="email"]:focus { border-color: var(--amber); }
.email-form input[type="email"]::placeholder { color: var(--text-tertiary); font-style: italic; }
.email-form button { padding: 10px 18px; font-family: var(--font-display); font-size: 16px; letter-spacing: 2px; background: var(--black); color: #fafaf8; border: 2px solid var(--black); border-radius: 0; cursor: pointer; white-space: nowrap; transition: background 0.15s; flex-shrink: 0; }
.email-form button:hover { background: var(--amber); border-color: var(--amber); }
.email-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.email-success { display: none; font-family: var(--font-body); font-size: 13px; font-style: italic; color: var(--amber); margin-top: 8px; }
.email-error { display: none; font-family: var(--font-body); font-size: 12px; font-style: italic; color: #a32d2d; margin-top: 8px; }
.email-note { font-family: var(--font-body); font-size: 11px; font-style: italic; color: var(--text-tertiary); margin-top: 8px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { border-top: 2px solid var(--black); padding-top: 0.75rem; margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--font-display); font-size: 18px; letter-spacing: 2px; color: var(--text-primary); }
.footer-brand span { color: var(--amber); }
.footer-right { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); text-align: right; line-height: 1.8; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .modes-grid { grid-template-columns: 1fr; }
  .modes-coming { grid-template-columns: 1fr; }
}
