/* ============================================================
   zorba.cache — stylesheet
   palette: concrete, sodium, sick green. mono everywhere.
   ============================================================ */

:root {
  --bg-primary    : #0d0d0d;
  --bg-secondary  : #161614;
  --bg-tertiary   : #1f1e1c;

  --text-primary  : #e5e2db;
  --text-secondary: #8a8676;
  --text-tertiary : #4a4842;

  --accent-sodium : #d4b85a;
  --accent-cyan   : #5a8a7d;
  --accent-rust   : #6b3a2a;

  --border-faint  : #2a2826;
  --border-mid    : #3a3a38;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Mono', 'SF Mono', 'Menlo', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* ---------- grain overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  z-index: 100;
  mix-blend-mode: overlay;
}

/* ---------- layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- hero ---------- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- section base ---------- */
section {
  padding: 120px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border-faint);
  padding-top: 24px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-header .meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.section-header .meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.section-header .meta a:hover {
  color: var(--accent-sodium);
  border-bottom-color: var(--accent-sodium);
}

/* ---------- selected works grid ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.work {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-secondary);
  overflow: hidden;
  cursor: pointer;
}

.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 11px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  transition: filter 0.4s ease;
}

.work:hover .work-placeholder {
  filter: brightness(1.1);
}

.work .caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(13, 13, 13, 0.85);
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work:hover .caption {
  opacity: 1;
}

/* ---------- recent / instagram ---------- */
.recent-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.recent-hero {
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 11px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recent-item {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-faint);
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-item:hover {
  color: var(--accent-sodium);
}

.recent-item:hover .slug,
.recent-item:hover .date {
  color: var(--accent-sodium);
}

.recent-item .date {
  color: var(--text-tertiary);
}

.recent-item .slug {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

/* ---------- commissioned ---------- */
.commissioned-empty {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 48px 0;
}

.commissioned-empty a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-mid);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.commissioned-empty a:hover {
  color: var(--accent-sodium);
  border-bottom-color: var(--accent-sodium);
}

/* ---------- about ---------- */
.about-text {
  font-size: 16px;
  line-height: 1.7;
  max-width: 580px;
  color: var(--text-primary);
}

.about-text p + p {
  margin-top: 12px;
}

/* ---------- contact ---------- */
.contact-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px 24px;
  font-size: 14px;
}

.contact-label {
  color: var(--text-secondary);
}

.contact-value a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-value a:hover {
  color: var(--accent-sodium);
  border-bottom-color: var(--accent-sodium);
}

/* ---------- footer ---------- */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-faint);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-tertiary);
}

footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

footer a:hover {
  border-bottom-color: var(--text-tertiary);
}

/* ---------- focus visible (a11y) ---------- */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent-sodium);
  outline-offset: 2px;
}

/* ---------- fade-in (only when JS enabled) ---------- */
.js-enabled .fade-target {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js-enabled .fade-target.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-enabled .fade-target {
    opacity: 1;
    transform: none;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .hero h1 { font-size: 64px; }

  section { padding: 80px 0; }

  .section-header h2 { font-size: 22px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }

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

  .contact-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-label { margin-top: 8px; }

  .contact-label:first-child { margin-top: 0; }
}
