/* ==========================================================================
   workwithzaki.com — portfolio site for Zaki.
   Single page, monochrome, no JS, no frameworks. The visual language is
   intentionally close to usemizan.app so the two sites read as the same
   designer's work, but the typography is the inverse — DM Serif Display
   for the hero headline (Inter on Mizan) and Inter for the wordmark
   (Serif on Mizan). Cousins, not twins.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-deep: #0a0a0a;
  --text: #0a0a0a;
  --text-mid: #404040;
  --text-dim: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;

  --max: 1080px;
  --pad-x: clamp(20px, 4vw, 48px);

  --t-display: clamp(2.6rem, 6vw, 4.8rem);
  --t-h2: clamp(1.8rem, 3.4vw, 2.6rem);
  --t-body: 1rem;
  --t-small: 0.875rem;

  --leading-tight: 1.05;
  --leading-body: 1.6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--t-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 120ms ease;
}
a:hover { opacity: 0.7; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

p { margin: 0; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad-x) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-word {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: var(--t-small);
  color: var(--text-mid);
}

@media (max-width: 540px) {
  .nav-links { display: none; }
}

/* --------------------------------------------------------------------------
   Section common
   -------------------------------------------------------------------------- */

.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--max);
}

.section-eyebrow {
  font-size: var(--t-small);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'DM Serif Display', 'Inter', Georgia, serif;
  font-weight: 400;
  font-size: var(--t-h2);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--pad-x) clamp(60px, 10vh, 120px);
}

.hero-eyebrow {
  font-size: var(--t-small);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'DM Serif Display', 'Inter', Georgia, serif;
  font-size: var(--t-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 32px;
}

.hero-sub {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.55;
}

.hero-sub a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
  font-weight: 600;
}
.hero-sub a:hover {
  text-decoration-color: var(--text);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */

.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}

.project {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 720px) {
  .project {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.project-tag {
  font-size: var(--t-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.project-copy em {
  font-style: italic;
  color: var(--text);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.project-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 56px 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg);
  aspect-ratio: 1 / 1;
}

.project-mark {
  width: clamp(120px, 30vw, 200px);
  height: clamp(120px, 30vw, 200px);
  color: var(--text);
}

.project-mark-word {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}

.about-body {
  margin-top: 24px;
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}

.contact-sub {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.contact-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Buttons (shared by .project-links + .contact-actions)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: #1a1a1a; }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad-x) 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: var(--t-small);
  color: var(--text-dim);
}
