/* ============================================
   COPYWRITER — Typewriter Clean
   Colors: #FAF9F6, #111111, #D2B48C (Sand)
   Fonts: 'Courier Prime', 'Lora'
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #FAF9F6;
  --text: #111111;
  --sand: #F2EBE1;
  --font-heading: 'Courier Prime', monospace;
  --font-body: 'Lora', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.8; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 5%; }
.section { padding: 120px 0; }
.bg-sand { background: var(--sand); }
.text-center { text-align: center; }

/* Smart Header */
.header { position: fixed; top: 0; width: 100%; padding: 25px 0; background: var(--bg); transition: transform 0.3s ease, box-shadow 0.3s ease; z-index: 1000; }
.header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 15px 0; }
.header.hide { transform: translateY(-100%); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 1rem; color: #555; transition: 0.3s; }
.nav-links a:hover { color: var(--text); }
.btn-outline { font-family: var(--font-heading); font-size: 0.9rem; padding: 10px 20px; border: 1px solid var(--text); transition: 0.3s; }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-solid { font-family: var(--font-heading); font-size: 1.1rem; padding: 15px 30px; background: var(--text); color: var(--bg); display: inline-block; transition: 0.3s; }
.btn-solid:hover { background: transparent; color: var(--text); border: 1px solid var(--text); }

/* Hero */
.hero { padding: 200px 0 100px; text-align: center; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.2; margin-bottom: 30px; }
.hero p { font-size: 1.3rem; color: #555; max-width: 600px; margin: 0 auto; }

/* Work */
.section-title { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 60px; text-align: center; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.work-card { border-top: 2px solid var(--text); padding-top: 20px; }
.work-card span { font-family: var(--font-heading); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #777; display: block; margin-bottom: 10px; }
.work-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.work-card p { color: #555; font-size: 1rem; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-text .section-title { text-align: left; margin-bottom: 30px; }
.split-text p { font-size: 1.1rem; margin-bottom: 20px; color: #444; }
.split-image img { border-radius: 200px 200px 0 0; }

/* Footer */
footer { padding: 40px 0; text-align: center; border-top: 1px solid #ddd; font-family: var(--font-heading); font-size: 0.9rem; color: #777; }

/* Responsive Nav */
.nav-toggle { display: none; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; z-index: 1000; }
.nav-toggle span { width: 30px; height: 2px; background: var(--text); transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .btn-outline { display: none; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--sand); flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.4s ease; gap: 40px; z-index: 999;
  }
  .nav-links.active { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-heading); }
  
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .split { grid-template-columns: 1fr; }
  .split-image img { border-radius: 0; }
}
