/* ═══════════════════════════════════════════════════════
   renato.design — stylesheet
   Dark editorial. No templates. No apologies.
   ═══════════════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Questrial&display=swap');

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

/* ── Base ── */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #e8e8e8;
  --text-dim: #888;
  --text-faint: #555;
  --brand-gold: #c9a84c;
  --brand-gold-dim: rgba(201, 168, 76, 0.3);
  --accent: #170DF2;
  --accent-dim: rgba(23, 13, 242, 0.3);
  --border: #2a2a2a;
  --max-width: 1200px;
  --font-head: 'Syne', Arial, Helvetica, sans-serif;
  --font-body: 'Questrial', Arial, Helvetica, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

p {
  font-size: 1.05rem;
  max-width: 38em;
  text-wrap: pretty;
}

/* ── Layout ── */
.site-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Site Header ── */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .site-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .brand {
  display: flex;
  align-items: center;
}

.site-header .brand img {
  height: 38px;
  width: auto;
}

.site-header nav a {
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-left: 2rem;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: var(--text);
  opacity: 1;
}

/* ── Hero ── */
.hero {
  padding: 2rem 0 1.5rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.3em;
}

.hero .subtitle {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero .tagline {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 2rem;
  font-style: italic;
  max-width: 32em;
}

.hero .genre-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.3em 0.8em;
  margin-bottom: 2rem;
}

.hero-image {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
}

/* ── App Icon (used in hero and cards) ── */
.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 1.5rem;
}

.app-icon-small {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

/* ── Section ── */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

/* ── Philosophy / Writing Block ── */
.writing-block {
  max-width: 42em;
  margin-bottom: 3rem;
}

.writing-block p {
  margin-bottom: 1.5em;
  color: var(--text);
  line-height: 1.7;
}

.writing-block .kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 2rem;
}

/* ── Screenshot Gallery ── */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.screenshot-grid.two-up {
  grid-template-columns: 1fr 1fr;
}

.screenshot-grid img {
  border-radius: 4px;
  border: 1px solid var(--border);
  width: 100%;
}

.screenshot-caption {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

/* ── Feature Loop ── */
.loop {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin: 3rem 0;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
}

.loop-step {
  color: var(--text);
  white-space: nowrap;
}

.loop-arrow {
  color: var(--text-faint);
  margin: 0 0.6em;
  font-weight: 400;
}

/* ── Download Section ── */
.download-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.download-block .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex-shrink: 0;
}

.download-info h2 {
  margin-bottom: 0.5rem;
}

.download-button {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  padding: 0.75em 2em;
  border-radius: 4px;
  margin: 1.5rem 0;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.download-button:hover {
  background: #1209c4;
  opacity: 1;
}

.download-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.download-meta strong {
  color: var(--text);
}

/* ── App Card Grid (Homepage) ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.15s;
  display: block;
  color: var(--text);
}

.app-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  opacity: 1;
}

.app-card .card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-card h3 {
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.app-card .card-genre {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--accent);
}

.app-card .card-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.app-card.coming-soon {
  opacity: 0.4;
  pointer-events: none;
  position: relative;
}
.card-status {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: 'Questrial', sans-serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-faint, #555);
  opacity: 0.8;
}

/* ── Featured Card (larger, homepage hero) ── */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3rem;
  display: block;
  color: var(--text);
  transition: border-color 0.2s;
}

.featured-card:hover {
  border-color: var(--accent-dim);
  opacity: 1;
}

.featured-card .featured-image {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.featured-card .featured-body {
  padding: 2.5rem;
}

.featured-card h2 {
  margin-bottom: 0.3rem;
}

.featured-card .card-genre {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.featured-card .card-desc {
  color: var(--text-dim);
  line-height: 1.6;
}

.featured-title-link {
  color: inherit;
}

.featured-title-link:hover {
  opacity: 0.75;
}

/* ── Concordance Footer ── */
.concordance {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
  line-height: 1.8;
}

.concordance h3 {
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
  color: var(--text-faint);
}

.concordance p {
  max-width: 50em;
  margin-bottom: 1em;
}

.concordance .lineage {
  font-style: italic;
}

/* ── Site Footer ── */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.site-footer .site-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--text-dim);
}

.site-footer .terms {
  font-size: 10px;
  color: var(--text-faint);
  opacity: 0.7;
  margin-top: 8px;
  max-width: 60em;
  line-height: 1.5;
}

/* ── Manifesto Block (Homepage) ── */
.manifesto {
  max-width: 44em;
  padding: 0.5rem 0 1rem;
}

.manifesto p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5em;
}

.manifesto .sign-off {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 2rem;
}

/* ── More / Expandable ── */
.more-toggle {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-gold);
  cursor: pointer;
  margin-top: 1rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.more-toggle:hover {
  opacity: 0.7;
}

.more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.more-content.open {
  max-height: 4000px;
}

.more-content .writing-block {
  padding-top: 2rem;
}

.more-content h2 {
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

.more-content h2:first-child {
  margin-top: 0;
}

/* ── Lightbox (click-to-expand screenshots) ── */
.screenshot-grid img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .download-block {
    flex-direction: column;
    padding: 2rem;
  }

  .screenshot-grid.two-up {
    grid-template-columns: 1fr;
  }

  .site-header .site-wrap {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .site-header nav a {
    margin-left: 0;
    margin-right: 1.5rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .site-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .loop {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
  }

  .loop-arrow {
    display: none;
  }
}

/* ─── murmur (and any future has-web app) — dual launch buttons on the homepage card ─── */
.app-card.has-web .card-launch {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.app-card .launch-btn {
  display: inline-block;
  padding: 8px 14px;
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent, #c6a050);
  transition: transform 0.15s, background 0.2s;
}
.app-card .launch-btn:hover { transform: translateY(-1px); }
.app-card .launch-web {
  background: transparent;
  color: var(--accent, #c6a050);
}
.app-card .launch-web:hover {
  background: rgba(74, 158, 138, 0.12);
}
.app-card .launch-mac {
  background: var(--accent, #c6a050);
  color: #fff;
}
.app-card .card-more {
  margin-left: auto;
  font-family: 'Questrial', sans-serif;
  font-size: 11px;
  color: var(--text-faint, #666);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.app-card .card-more:hover { color: var(--accent, #c6a050); }

/* RULE — small grid cards do NOT carry per-app accent overrides.
   The grid is a uniform field; per-app color belongs on the marketing
   page and the featured rotation hero, not the small card. Genre tags
   on grid cards always render in the site's default accent. Featured
   cards may carry their accent; grid cards may not. */

/* ─── lightbox (used by app pages with screenshot grids) ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border: 1px solid #333;
}
