/*
Theme Name: UNLSTD
Theme URI: https://unlstd.ro
Author: UNLSTD
Description: Private car culture. Dark, monochrome, editorial WordPress theme ported from the UNLSTD app.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: unlstd
*/

/* ---------- Design tokens ---------- */
:root {
  --background: #0a0a0a;
  --foreground: #f4f1ea;
  --muted: #1c1c1c;
  --muted-foreground: #8c8a85;
  --border: #262626;
  --accent: #2a2a2a;
  --chrome: #d8d4cc;
  --bone: #ece7dd;

  --font-display: "AkiraExpanded", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1400px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--foreground); color: var(--background); }

/* ---------- Utilities ---------- */
.container-edge { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container-edge { padding-inline: 2.5rem; } }

.font-display { font-family: var(--font-display); letter-spacing: 0.04em; font-weight: 900; }
.font-mono { font-family: var(--font-mono); }
.text-muted { color: var(--muted-foreground); }
.text-balance { text-wrap: balance; }
.uppercase-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); }

.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}
.hairline { border-top: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1rem 1.5rem; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--foreground); color: var(--background); }
.btn-primary:hover { background: var(--chrome); }
.btn-outline { border: 1px solid var(--border); }
.btn-outline:hover { background: var(--accent); }
.btn-ghost { color: var(--muted-foreground); }
.btn-ghost:hover { color: var(--foreground); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.18em; }
.main-nav { display: none; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-foreground);
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav a.current-menu-item { color: var(--foreground); }
.menu-toggle { display: inline-flex; padding: .5rem; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; padding: 1.5rem 1.25rem; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-nav a { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at top, #2a2a2a 0%, transparent 60%);
}
.hero__inner { padding: 6rem 0 8rem; }
@media (min-width: 768px) { .hero__inner { padding: 10rem 0 12rem; } }
.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 11vw, 11rem); line-height: 0.9; letter-spacing: 0.02em;
  margin: 2rem 0 0;
}
.hero__title .dot { color: var(--muted-foreground); }
.hero__tagline {
  margin-top: 2rem; max-width: 36rem; font-size: 1.125rem; color: var(--muted-foreground);
}
@media (min-width: 768px) { .hero__tagline { font-size: 1.25rem; } }
.hero__cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.meta-strip {
  border-top: 1px solid var(--border); padding: 1.5rem 0 2.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground);
}
@media (min-width: 768px) { .meta-strip { grid-template-columns: repeat(4, 1fr); } }
.meta-strip .v { display: block; color: var(--foreground); font-family: var(--font-mono); font-size: 14px; letter-spacing: normal; text-transform: none; margin-bottom: .25rem; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--background); padding: 1.25rem 0;
}
.marquee__track {
  display: flex; gap: 3rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.5rem; letter-spacing: 0.2em;
  animation: marquee 40s linear infinite;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .marquee__track { font-size: 1.875rem; } }
.marquee__track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track .sep { color: var(--foreground); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 10rem 0; } }
.section__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .section__grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.section__title { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; line-height: 0.95; margin: 1rem 0 0; }
@media (min-width: 768px) { .section__title { font-size: 3.75rem; } }

/* ---------- Countdown ---------- */
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.countdown > div { padding: 1.5rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.countdown > div:last-child { border-right: 0; }
@media (min-width: 768px) { .countdown > div { padding: 2.5rem 1rem; } }
.countdown__num { font-family: var(--font-display); font-weight: 900; font-size: 1.875rem; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .countdown__num { font-size: 3.75rem; } }
.countdown__label { margin-top: .75rem; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); }
@media (min-width: 768px) { .countdown__label { font-size: 12px; } }

/* ---------- Pillars ---------- */
.pillars { border-top: 1px solid var(--border); }
.pillars__grid { display: grid; }
@media (min-width: 768px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.pillar:first-child { border-top: 0; }
@media (min-width: 768px) {
  .pillar { padding: 5rem 2.5rem; border-top: 0; border-left: 1px solid var(--border); }
  .pillar:first-child { border-left: 0; }
}
.pillar__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-foreground); }
.pillar__title { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; margin: 1.5rem 0 0; }
@media (min-width: 768px) { .pillar__title { font-size: 1.875rem; } }
.pillar__body { margin-top: 1rem; max-width: 20rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.6; }

/* ---------- CTA Strip ---------- */
.cta-card { border: 1px solid var(--border); padding: 2rem; }
@media (min-width: 768px) { .cta-card { padding: 4rem; } }
.cta-card__title { font-family: var(--font-display); font-weight: 900; font-size: 1.875rem; line-height: 1.05; max-width: 48rem; margin: 1rem 0 0; }
@media (min-width: 768px) { .cta-card__title { font-size: 3rem; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; max-width: 36rem; }
.form label { display: block; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: .5rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .875rem 1rem;
  background: var(--muted); color: var(--foreground);
  border: 1px solid var(--border);
  font-family: inherit; font-size: 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--chrome); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 6rem; }
.site-footer__top { padding: 4rem 0; display: grid; gap: 3rem; }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: repeat(4, 1fr); } }
.site-footer h4 { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; font-size: 14px; }
.site-footer a:hover { color: var(--chrome); }
.site-footer__bottom {
  border-top: 1px solid var(--border); padding: 1.5rem 0;
  display: flex; flex-direction: column; gap: .75rem; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground);
}
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; } }

/* ---------- Single / archive content ---------- */
.entry { padding: 4rem 0; }
.entry-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
.entry-content { margin-top: 2rem; max-width: 42rem; font-size: 1rem; line-height: 1.7; color: var(--bone); }
.entry-content p { margin: 0 0 1.25rem; }
.entry-content a { color: var(--chrome); text-decoration: underline; }
