/* ============================================================
   OPTEEMO — BOLD SINGLE-PAGE MANIFESTO
   ============================================================ */

:root {
  --bg: #0c1310;
  --bg-right: #0a100d;
  --grid-line: rgba(244, 239, 230, 0.025);
  --cream: #f4efe6;
  --cream-body: rgba(244, 239, 230, 0.95);
  --cream-dim: rgba(244, 239, 230, 0.40);
  --amber: #e84f2b;
  --amber-glow: rgba(232, 79, 43, 0.12);
  --ice: #b8ccd4;
  --border: rgba(244, 239, 230, 0.10);

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  /* fixed status bar */
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Grid overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Scanline --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px);
}

/* --- Utility --- */
.mono {
  font-family: var(--font-mono);
}

.dim {
  color: var(--cream-dim);
}

.amber {
  color: var(--amber);
}


/* ============================================================
   STATUS BAR
   ============================================================ */
.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 2.5rem;
  background: var(--amber);
  color: var(--bg);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.status-bar-right {
  text-transform: uppercase;
}


/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  display: grid;
  grid-template-columns: 1fr 400px;
  flex: 1;
  min-height: 0;
}


/* ============================================================
   LEFT — Manifesto
   ============================================================ */
.left {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--border);
  padding: 0 0 0.5rem 0;
}

/* Brand header — now full-width above the grid */
.left-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.75rem 2.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--cream);
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--cream-body);
  line-height: 1.35;
  margin-top: 0.25rem;
}

.version {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  align-self: flex-start;
  padding-top: 0.35rem;
}

/* Scrollable manifesto */
.manifesto {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.5rem 3rem;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: var(--amber) transparent;
}

.manifesto::-webkit-scrollbar {
  width: 3px;
}

.manifesto::-webkit-scrollbar-track {
  background: transparent;
}

.manifesto::-webkit-scrollbar-thumb {
  background: var(--amber);
  border-radius: 2px;
}

.m-head {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--cream);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.m-head:first-child {
  margin-top: 0;
}

.manifesto p {
  font-size: 0.95rem;
  color: var(--cream-body);
  margin-bottom: 1.1rem;
  max-width: 580px;
  line-height: 1.7;
}
.manifesto strong {
  color: var(--cream);
  font-weight: 600;
}
.manifesto em {
  font-style: italic;
  color: var(--ice);
}


.m-footer {
  flex-shrink: 0;
  margin: 0 2.5rem 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}


/* ============================================================
   RIGHT — Cards + Team
   ============================================================ */
.right {
  background: var(--bg-right);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.right-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.5rem;
  gap: 0.5rem;
}

/* Right header */
.right-header {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: rgba(244, 239, 230, 0.015);
}

.right-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.right-headline {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--cream);
}

/* Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
}

.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: rgba(244, 239, 230, 0.015);
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  border-color: var(--amber);
  background: var(--amber-glow);
  transform: translateX(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.2;
}

.card-arrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cream-body);
  transition: color 0.25s, transform 0.25s;
}

.card:hover .card-arrow {
  color: var(--amber);
  transform: translateX(3px);
}

.card-body {
  font-size: 0.82rem;
  color: var(--cream-body);
  line-height: 1.55;
}


/* Team line */
.team-line {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  background: rgba(244, 239, 230, 0.015);
  text-align: left;
}

.team-line p {
  font-size: 0.82rem;
  color: var(--cream-body);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.team-line strong {
  color: var(--cream);
}
.team-line strong a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.team-line strong a:hover {
  color: var(--amber);
}

.team-email {
  display: block;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--amber);
  padding: 0.45rem 1.25rem;
  transition: opacity 0.2s;
  font-weight: 700;
}

.team-email:hover {
  opacity: 0.85;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {

  /* Kill all desktop overflow/height constraints */
  html,
  body {
    height: auto;
    overflow: auto;
  }

  body {
    display: block;
    padding-top: 24px;
  }

  .status-bar {
    padding: 0.4rem 1.25rem;
    font-size: 0.45rem;
  }

  .left-header {
    padding: 1.5rem 1.25rem 1rem;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .brand-tag {
    font-size: 0.7rem;
  }

  .version {
    font-size: 0.45rem;
  }

  /* Stack to single column */
  .page {
    display: block;
  }

  .left {
    display: block;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .manifesto {
    overflow: visible;
    padding: 1.5rem 1.25rem 2rem;
  }

  .manifesto p {
    max-width: 100%;
  }

  .m-head {
    font-size: 1.15rem;
    margin-top: 1.75rem;
  }

  .m-footer {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .right {
    display: block;
    height: auto;
    overflow: visible;
  }

  .right-content {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .right-headline {
    font-size: 0.95rem;
  }

  .cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .card {
    flex: none;
    padding: 1.25rem;
  }

  .team-line {
    padding: 1.25rem;
  }

  .team-line p {
    font-size: 0.75rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {

  .status-bar {
    padding: 0.35rem 0.75rem;
    font-size: 0.4rem;
    letter-spacing: 0.1em;
  }

  .left-header {
    padding: 1.25rem 1rem 0.75rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .manifesto {
    padding: 1.25rem 1rem 2rem;
  }

  .manifesto p {
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .m-head {
    font-size: 1.05rem;
  }

  .m-footer {
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 0.45rem;
  }

  .right-content {
    padding: 0.75rem 1rem;
  }

  .card {
    padding: 1rem;
  }

  .card-title {
    font-size: 0.8rem;
  }

  .card-body {
    font-size: 0.7rem;
  }

  .team-email {
    font-size: 0.5rem;
    padding: 0.4rem 1rem;
  }
}