/* ─────────────────────────────────────────────────────────────
   miles2walk.com — shared styles for index.html and shop.html.
   Page-specific rules stay inline on their own page; anything
   used by both lives here. Edit once, both pages follow.
   ───────────────────────────────────────────────────────────── */

/* ─── Reset & Base ─── */

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

:root {
  --ink:       #0d0b08;
  --ink-soft:  #1a1610;
  --parchment: #f0e8d5;
  --cream:     #ede3cc;
  --gold:      #c9973a;
  --gold-dim:  #8a6525;
  --rust:      #8c3a1e;
  --moss:      #2e4a2e;
  --fog:       #b8a88a;
  --fog-light: #d4c9b0;
  --border:    rgba(201,151,58,0.25);
  --border-strong: rgba(201,151,58,0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

/* ─── Noise texture overlay ─── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ─── Typography ─── */

h1, h2, h3 {
  font-family: 'Cinzel', serif; letter-spacing: 0.08em;
}

.display {
  font-family: 'Cinzel Decorative', serif;
}

.mono {
  font-family: 'Space Mono', monospace; font-size: 0.78em;
}

a {
  color: var(--gold); text-decoration: none; transition: color 0.2s;
}

a:hover {
  color: var(--parchment);
}

/* ─── Custom Cursor ─── */

body {
  cursor: none;
}

#cursor {
  position: fixed;
  width: 12px; height: 12px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, opacity 0.2s;
  mix-blend-mode: difference;
}

#cursor-trail {
  position: fixed;
  width: 32px; height: 32px;
  border: 0.5px solid rgba(201,151,58,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease, top 0.15s ease;
}

/* ─── Decorative HR ─── */

.rule {
  display: flex; align-items: center; gap: 12px;
  margin: 2rem 0;
  color: var(--gold-dim);
}

.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.rule-symbol {
  font-size: 1rem; opacity: 0.6;
}

/* ─── Navigation ─── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(13,11,8,0.95), transparent);
  backdrop-filter: blur(0px);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-mark {
  height: 26px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

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

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Animated corner ornaments */

.btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 1px solid;
  transition: all 0.25s;
  cursor: none;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--parchment);
  border-color: var(--parchment);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fog);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Section base ─── */

section {
  padding: 6rem 0;
}

.container {
  max-width: 1100px; margin: 0 auto; padding: 0 2.5rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--cream);
}

/* ─── Contact ─── */

#contact {
  background: var(--ink);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner .section-title {
  margin-bottom: 1.2rem;
}

.contact-inner p {
  color: var(--fog);
  font-style: italic;
  margin-bottom: 2.5rem;
  font-size: 1.4rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.email-display {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--parchment);
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  display: block;
}

.email-display:hover {
  color: var(--gold);
}

/* ─── Footer ─── */

footer {
  background: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-mark {
  height: 22px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  opacity: 0.75;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--fog);
  opacity: 0.5;
  letter-spacing: 0.1em;
}

/* ─── Animations ─── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.05); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr; gap: 3rem;
  }
  .about-portrait {
    max-width: 280px;
  }
  .corner {
    display: none;
  }
  #cursor, #cursor-trail {
    display: none;
  }
  body {
    cursor: default;
  }
}
