/* ══════════════════════════════════════════
   SHARED STYLES — Xandi Drysdale Portfolio
   ══════════════════════════════════════════ */

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

:root {
  --green:   #243d28;
  --green2:  #2e5235;
  --cream:   #f2ede0;
  --cream2:  #e8e0cc;
  --terra:   #c04e18;
  --terra2:  #e07040;
  --ink:     #1c2e1f;
  --faint:   rgba(36,61,40,0.08);
}

html, body {
  width: 100%; height: 100%;
  background: var(--cream);
  font-family: 'DM Mono', monospace;
  color: var(--ink);
}

/* ── PAPER TEXTURE ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(36,61,40,0.04) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(36,61,40,0.02) 28px);
  pointer-events: none;
  z-index: 0;
}

/* ── CARDS ── */
.card {
  background: var(--green);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2), box-shadow 0.25s ease;
  box-shadow: 3px 4px 0px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.1);
}

.card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.015) !important;
  box-shadow: 6px 10px 0px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.12);
  z-index: 50;
}

.card-cream {
  background: var(--cream2);
  border: 2px solid var(--green);
  box-shadow: 3px 4px 0px rgba(0,0,0,0.12);
}

/* ── TYPOGRAPHY ── */
.name-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra2);
  margin-bottom: 0.6rem;
  font-weight: 300;
}

.name-main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 5.5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.name-main em {
  font-style: italic;
  color: var(--terra2);
}

.name-sub {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(242,237,224,0.65);
  margin-top: 1rem;
  font-weight: 300;
  line-height: 1.4;
  max-width: 340px;
}

/* ── NAV CARD COMPONENTS ── */
.nav-card-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--terra2);
  margin-bottom: auto;
  font-weight: 300;
}

.nav-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  color: var(--cream);
  line-height: 1;
  margin-top: auto;
  letter-spacing: -0.02em;
}

.nav-card-title em {
  font-style: italic;
  color: var(--terra2);
}

.nav-card-desc {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(242,237,224,0.5);
  margin-top: 0.4rem;
  font-weight: 300;
  line-height: 1.4;
}

.nav-card-arrow {
  position: absolute;
  bottom: 1.2rem; right: 1.4rem;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(242,237,224,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  opacity: 0.4;
  font-size: 0.85rem;
  transition: opacity 0.2s, transform 0.2s;
}

.card:hover .nav-card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ── ABOUT / STATUS LIST ── */
.about-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.about-list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.about-list li {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-list li::before {
  content: '\2014';
  color: var(--terra);
  font-size: 0.6rem;
}

/* ── TAGLINE ── */
.tagline-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 1.4vw, 1.3rem);
  color: var(--cream);
  line-height: 1.35;
  font-weight: 700;
}

.tagline-text span {
  color: var(--terra2);
}

/* ── PHOTO LABEL ── */
.photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--terra);
  padding: 0.5rem 0.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
}

/* ── DECORATIVE SVG ELEMENTS ── */
.deco-helix {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

.deco-circuit {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
}

/* ── PAPER PIN ── */
.pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 10;
}

.pin-left { left: 25%; }
.pin-right { left: 75%; }

/* ── ENTRY ANIMATION ── */
.card {
  animation: cardIn 0.55s cubic-bezier(.22,.68,0,1.15) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) rotate(var(--r, 0deg)) scale(0.96); }
  to   { opacity: 1; }
}

/* ── CLICKABLE CARDS ── */
a.card { cursor: pointer; text-decoration: none; }
a.card:hover .nav-card-title { color: var(--terra2); }
