/* PandaDevWorks landing page — v1 scaffold based on Stitch concept */

:root {
  --bg: #F5F2EC;
  --bg-subtle: #ECE8DE;
  --ink: #17150F;
  --ink-muted: #5C5A53;
  --accent: #17150F;
  --accent-text: #F5F2EC;

  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Faint bamboo watermark — opt in by adding class="has-watermark" to body */
body.has-watermark::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/bamboo-pattern.svg");
  background-repeat: repeat;
  background-size: 300px 400px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all page content sits above the watermark */
body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: auto;
  color: var(--ink);     /* SVG uses currentColor */
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 15px;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

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

main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px var(--gutter) 80px;
}

.hero {
  max-width: 760px;
  width: 100%;
  margin: clamp(24px, 6vh, 80px) auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-mark {
  width: clamp(120px, 18vw, 180px);
  height: auto;
  color: var(--ink);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 128px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--ink);
}

/* Coming-soon pages have longer headlines — scale down */
.hero-soon .hero-title {
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1;
  max-width: 12ch;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  max-width: 36ch;
  margin: 0 auto;
  color: var(--ink-muted);
}

.hero-tagline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 21, 15, 0.18);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: rgba(23, 21, 15, 0.32);
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 520px) {
  .site-header {
    padding: 20px var(--gutter);
  }

  .brand-name {
    display: none;        /* very small screens: mark-only */
  }

  .site-nav {
    gap: 22px;
  }

  .hero {
    gap: 22px;
  }

  .hero-ctas {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }
}
