/* =========================================================
   THE SHUFFLE PROJECT — shared stylesheet
   Aesthetic: gritty editorial. Sand-paper bone, deep ink,
   one bleached-orange accent, characterful serif display.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,800;1,9..144,400;1,9..144,600&family=JetBrains+Mono:wght@400;500&family=Inter+Tight:wght@400;500;600&display=swap');

:root {
  --bone:        #ede5d6;
  --bone-deep:   #e0d6c2;
  --bone-light:  #f4eee2;
  --ink:         #1a1814;
  --ink-soft:    #3a342b;
  --rust:        #c2410c;
  --rust-faded:  #d97757;
  --sand:        #b8a482;
  --line:        rgba(26, 24, 20, 0.18);
  --line-soft:   rgba(26, 24, 20, 0.08);

  --display: 'Fraunces', 'Times New Roman', serif;
  --body:    'Inter Tight', -apple-system, sans-serif;
  --mono:    'JetBrains Mono', monospace;

  --max:     1480px;
  --max-narrow: 1080px;
  --max-wide:   1720px;
  --gutter:  clamp(20px, 4vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(194, 65, 12, 0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(184, 164, 130, 0.15), transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

@media (min-width: 1200px) {
  body { font-size: 18px; }
}
@media (min-width: 1600px) {
  body { font-size: 19px; }
}

/* paper-grain overlay — fixed, very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.35 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.4;
  mix-blend-mode: multiply;
}

main, header, footer, section { position: relative; z-index: 2; }

/* ----- typography ----- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
h1 { font-size: clamp(56px, 9vw, 184px); }
h2 { font-size: clamp(36px, 5.5vw, 96px); }
h3 { font-size: clamp(24px, 2.8vw, 44px); }

.italic { font-style: italic; }
.serif  { font-family: var(--display); }
.mono   { font-family: var(--mono); }

a { color: inherit; }

/* ----- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 229, 214, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-mark {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rust);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rust); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--rust);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--rust); border-color: var(--rust); }

.menu-toggle { display: none; }

/* ----- shared layout ----- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--rust);
}

.section {
  padding: clamp(80px, 11vw, 160px) 0;
  border-top: 1px solid var(--line-soft);
}

.divider-rule {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover { background: var(--rust); border-color: var(--rust); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- photographer credit ----- */
.photo-credit {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.65;
  margin-top: 8px;
  padding-left: 4px;
}
.photo-credit::before { content: "Photo · "; color: var(--rust); }
/* Variant for when credit sits over a dark image */
.photo-credit-overlay {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(237, 229, 214, 0.7);
  background: rgba(26, 24, 20, 0.4);
  padding: 4px 8px;
  backdrop-filter: blur(3px);
  z-index: 3;
}
.photo-credit-overlay::before { content: "Photo · "; color: var(--rust-faded); }

/* ----- footer ----- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust-faded);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer p { color: rgba(237, 229, 214, 0.7); font-size: 15px; line-height: 1.6; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  text-decoration: none;
  color: rgba(237, 229, 214, 0.85);
  font-size: 15px;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--rust-faded); }
.footer-brand .serif {
  font-family: var(--display);
  font-size: 34px;
  font-style: italic;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.footer-bottom {
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(237, 229, 214, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 229, 214, 0.5);
}

/* ----- hero pattern (used differently per page) ----- */
.hero {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rust);
  animation: pulse 2.4s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ----- page-load reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal.d1 { animation-delay: 0.1s; }
.reveal.d2 { animation-delay: 0.25s; }
.reveal.d3 { animation-delay: 0.4s; }
.reveal.d4 { animation-delay: 0.55s; }
.reveal.d5 { animation-delay: 0.7s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ----- mobile ----- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    padding: 20px var(--gutter);
    gap: 16px;
    transform: translateY(-110%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle {
    display: block;
    background: none;
    border: 1px solid var(--ink);
    padding: 8px 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-cta { display: none; }
  .footer .container { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
