/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #1a1612;
  --paper:   #faf8f4;
  --cream:   #f2ede4;
  --accent:  #8b5e3c;
  --accent2: #c49a6c;
  --rule:    #d6ccc0;
  --muted:   #7a6e62;
  --nav-bg:  #1a1612;
  --nav-text:#faf8f4;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  line-height: 1.75;
}

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 3px solid var(--accent);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent2);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.85rem;
  color: #c8bfb5;
  text-decoration: none;
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--nav-text);
}

.nav-links a.active {
  background: var(--accent);
  color: #fff;
}

/* ── Page wrapper ── */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

/* ── Header ── */
.label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
}

.divider {
  border: none;
  border-top: 2px solid var(--rule);
  margin-bottom: 3rem;
}

/* ── Steps ── */
.step {
  display: flex;
  gap: 1.8rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.step-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #3d3530;
  margin-bottom: 1rem;
}

.step-content img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: block;
  margin-top: 0.75rem;
}

/* ── Info box (video link) ── */
.info-box {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.97rem;
  color: var(--ink);
}

.info-box a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-box a:hover {
  color: var(--ink);
}

/* ── Image placeholder ── */
.img-placeholder {
  width: 100%;
  min-height: 180px;
  background: var(--cream);
  border: 2px dashed var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 1.5rem;
}

.img-placeholder span {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

/* ── Code block ── */
.code-block {
  background: #2a2420;
  color: #e8d5b7;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  margin: 0.75rem 0 1rem;
  letter-spacing: 0.02em;
}

/* ── Footer note ── */
.footer-note {
  background: var(--cream);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  font-style: italic;
  color: var(--muted);
  font-size: 0.97rem;
  border-left: 4px solid var(--accent2);
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: #c8bfb5;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--accent2);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 0.6rem 0;
    gap: 0.4rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .step-number {
    margin-top: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}
