/* ==========================================================================
   Read-Only Fridays — Minimalist Vesper Edition
   Palette: Vesper (#101010 matte dark, #FFC799 warm apricot, #99FFE4 soft mint)
   Zero inline styles (strict CSP: style-src 'self' https://fonts.googleapis.com)
   ========================================================================== */

:root {
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --v-bg: #101010;
  --v-surface: #151515;
  --v-surface-2: #1B1B1B;
  --v-inset: #0C0C0C;
  --v-line: #1F1F1F;
  --v-line-hover: #2E2E2E;
  --v-fg: #F5F5F5;
  --v-text: #B8B8B8;
  --v-muted: #7E7E7E;
  --v-dim: #525252;
  --v-peach: #FFC799;
  --v-peach-hover: #FFD6B3;
  --v-peach-tint: rgba(255, 199, 153, 0.08);
  --v-peach-border: rgba(255, 199, 153, 0.32);
  --v-mint: #99FFE4;
  --v-mint-tint: rgba(153, 255, 228, 0.07);
  --v-mint-border: rgba(153, 255, 228, 0.26);
  --v-coral: #FF8080;
  --v-coral-tint: rgba(255, 128, 128, 0.08);
  --v-coral-border: rgba(255, 128, 128, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--v-bg);
  color: var(--v-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse 60% 300px at 50% 0%, rgba(255, 199, 153, 0.045), transparent 75%);
  background-repeat: no-repeat;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--v-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-name {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  color: var(--v-fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.site-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v-peach);
  display: inline-block;
}

.site-name:hover {
  color: var(--v-peach);
}

.day-stamp {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.71rem;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--v-line-hover);
  color: var(--v-muted);
  white-space: nowrap;
}

.day-stamp.is-friday {
  border-color: var(--v-coral-border);
  color: var(--v-coral);
  background: var(--v-coral-tint);
}

.day-stamp.is-thursday {
  border-color: var(--v-peach-border);
  color: var(--v-peach);
  background: var(--v-peach-tint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--v-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--v-fg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--v-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  gap: 48px;
  align-items: start;
}

.kicker {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--v-peach);
  margin-bottom: 12px;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--v-fg);
  text-wrap: balance;
}

.accent-name {
  color: var(--v-peach);
}

.hero-copy p {
  color: var(--v-text);
  margin-bottom: 16px;
  font-size: 1rem;
  text-wrap: pretty;
}

.hero-copy p.lead {
  color: var(--v-fg);
  font-size: 1.05rem;
}

.hero-copy strong {
  color: var(--v-fg);
  font-weight: 600;
}

.hero-copy code,
.site-footer code {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.86em;
  color: var(--v-peach);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.v-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--v-line-hover);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.v-btn:active {
  transform: translateY(1px);
}

.v-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.v-btn-primary {
  background: var(--v-peach);
  color: #101010;
  border-color: var(--v-peach);
}

.v-btn-primary:hover {
  background: var(--v-peach-hover);
  border-color: var(--v-peach-hover);
}

.v-btn-ghost {
  background: transparent;
  color: var(--v-text);
}

.v-btn-ghost:hover {
  border-color: var(--v-peach-border);
  color: var(--v-fg);
}

/* Minimalist Hero Avatar & Quip */
.hero-aside {
  padding-top: 8px;
}

.portrait-wrap {
  cursor: pointer;
  user-select: none;
  outline: none;
}

.portrait-wrap:focus-visible .avatar-portrait-img {
  box-shadow: 0 0 0 1px var(--v-peach);
}

.avatar-portrait-img {
  width: 256px;
  height: 256px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--v-line-hover);
  background: #101010;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: box-shadow 0.18s ease;
}

.portrait-wrap:hover .avatar-portrait-img {
  box-shadow: 0 0 0 1px var(--v-peach-border);
}

.portrait-speech {
  margin-top: 14px;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.56;
  color: var(--v-text);
  min-height: 68px;
  text-wrap: pretty;
}

.portrait-hint {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.69rem;
  color: var(--v-dim);
  transition: color 0.15s ease;
}

.portrait-wrap:hover .portrait-hint {
  color: var(--v-peach);
}

/* ==========================================================================
   SECTIONS (SHARED)
   ========================================================================== */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--v-line);
}

h2 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--v-fg);
}

/* ==========================================================================
   ARCADE SECTION
   ========================================================================== */
.section-head-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.arcade-sub {
  font-size: 0.88rem;
  color: var(--v-muted);
}

.arcade-sub strong {
  color: var(--v-coral);
  font-weight: 600;
}

.crt-cabinet {
  background: var(--v-surface);
  border: 1px solid var(--v-line-hover);
  border-radius: 12px;
  padding: 16px;
}

.crt-bezel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.73rem;
  color: var(--v-muted);
}

.sfx-btn {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--v-bg);
  color: var(--v-mint);
  border: 1px solid var(--v-mint-border);
  cursor: pointer;
}

.sfx-btn[aria-pressed="false"] {
  color: var(--v-muted);
  border-color: var(--v-line-hover);
}

.sfx-btn:hover {
  border-color: var(--v-peach);
  color: var(--v-peach);
}

.crt-screen-wrap {
  position: relative;
  border-radius: 6px;
  border: 1px solid var(--v-line);
  background: #0A0A0C;
  overflow: hidden;
}

.crt-screen-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
}

#game-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 300;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
}

.rpg-dialogue {
  margin-top: 12px;
  background: var(--v-inset);
  border: 1px solid var(--v-line);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-face-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--v-line-hover);
  flex-shrink: 0;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.rpg-dialogue-body {
  flex: 1;
  min-width: 0;
}

.rpg-text {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.79rem;
  color: var(--v-text);
  line-height: 1.45;
  text-wrap: pretty;
}

.touch-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dpad-group,
.action-group {
  display: flex;
  gap: 8px;
}

.arcade-pad-btn {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 6px;
  background: var(--v-surface-2);
  color: var(--v-fg);
  border: 1px solid var(--v-line-hover);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.arcade-pad-btn:hover {
  border-color: var(--v-peach-border);
}

.arcade-pad-btn:active {
  transform: translateY(1px);
}

.arcade-pad-fire {
  background: var(--v-coral-tint);
  border-color: var(--v-coral-border);
  color: var(--v-coral);
}

.arcade-pad-jump {
  background: var(--v-peach-tint);
  border-color: var(--v-peach-border);
  color: var(--v-peach);
}

.controls-legend {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.71rem;
  color: var(--v-muted);
}

.controls-legend strong {
  color: var(--v-fg);
  font-weight: 500;
}

/* ==========================================================================
   MINIMALIST TWO-COLUMN PROSE (HOW I LEAD & OFF THE CLOCK)
   ========================================================================== */
.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
}

.prose-col h2 {
  margin-bottom: 20px;
}

.clean-list {
  list-style: none;
  display: grid;
  gap: 22px;
}

.clean-list li {
  font-size: 0.95rem;
  color: var(--v-text);
  line-height: 1.66;
  text-wrap: pretty;
}

.clean-list strong {
  color: var(--v-fg);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}

.contact-intro h2 {
  margin-bottom: 12px;
}

.contact-intro p {
  font-size: 0.95rem;
  color: var(--v-text);
  line-height: 1.66;
  text-wrap: pretty;
}

.inline-accent-link {
  color: var(--v-peach);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.inline-accent-link:hover {
  color: var(--v-fg);
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.topic-chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--v-muted);
  border: 1px solid var(--v-line-hover);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.topic-chip:hover {
  border-color: var(--v-peach-border);
  color: var(--v-fg);
}

.topic-chip[aria-pressed="true"] {
  background: var(--v-peach-tint);
  color: var(--v-peach);
  border-color: var(--v-peach-border);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-row .field {
  margin-bottom: 0;
}

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--v-muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--v-fg);
  background: var(--v-surface);
  border: 1px solid var(--v-line-hover);
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--v-dim);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--v-peach);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

/* Hidden honeypot trap for bots */
.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.spam-note {
  font-size: 0.8rem;
  color: var(--v-muted);
}

.form-status {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-size: 0.79rem;
  min-height: 1.2em;
}

.form-status.error {
  color: var(--v-coral);
}

.form-status.success {
  color: var(--v-mint);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 28px 0 44px;
  font-size: 0.82rem;
  color: var(--v-muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--v-muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a:hover {
  color: var(--v-peach);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 44px 0;
  }
  .portrait-wrap {
    max-width: 256px;
  }
  .avatar-portrait-img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .two-col-section,
  .contact-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .controls-legend {
    display: none;
  }
}

@media (max-width: 540px) {
  .page {
    padding: 0 18px;
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
