/* ============================================
   FACES FOUND — Global Styles
   Palette: Deep sepia, aged paper, warm ivory,
   dusty rose accent, ink black
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600&family=Courier+Prime&display=swap');

:root {
  --ink:        #1c1510;
  --sepia:      #3d2b1f;
  --warm-mid:   #7a5c45;
  --aged-paper: #f0e6d3;
  --ivory:      #faf6ef;
  --accent:     #b5604a;
  --accent-light: #d4897a;
  --dust:       #c9b49a;
  --white:      #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--sepia);
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--alt { background: var(--aged-paper); }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  padding: 0 1.5rem;
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--aged-paper);
  letter-spacing: 0.02em;
}

.nav__logo span { color: var(--accent-light); font-style: italic; }
.nav__logo:hover { text-decoration: none; color: var(--white); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--dust);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dust);
  transition: all 0.2s;
}

/* ── Hero ── */
.hero {
  background: var(--ink);
  padding: 7rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

/* Decorative grain overlay feel */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(181,96,74,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__headline em {
  color: var(--accent-light);
  font-style: italic;
}

.hero__body {
  font-size: 1.1rem;
  color: var(--dust);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Signature element: stacked polaroid-style photo cluster */
.hero__photos {
  position: relative;
  height: 380px;
}

.hero__photo {
  position: absolute;
  background: var(--white);
  padding: 10px 10px 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  width: 200px;
}

.hero__photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: sepia(40%) contrast(0.95);
}

.hero__photo .caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--warm-mid);
  text-align: center;
}

.hero__photo:nth-child(1) { top: 20px;  left: 60px;  rotate: -4deg; z-index: 1; }
.hero__photo:nth-child(2) { top: 60px;  left: 180px; rotate:  3deg; z-index: 2; }
.hero__photo:nth-child(3) { top: 180px; left: 30px;  rotate:  2deg; z-index: 3; }
.hero__photo:nth-child(4) { top: 160px; left: 210px; rotate: -3deg; z-index: 2; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn--primary:hover {
  background: #9e4f3b;
  text-decoration: none;
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--dust);
  border: 1px solid var(--warm-mid);
}

.btn--outline:hover {
  border-color: var(--dust);
  color: var(--white);
  text-decoration: none;
}

.btn--dark {
  background: var(--sepia);
  color: var(--ivory);
}

.btn--dark:hover {
  background: var(--ink);
  text-decoration: none;
  color: var(--ivory);
}

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--dust);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--sepia);
  margin-bottom: 0.5rem;
}

.step__body {
  font-size: 0.95rem;
  color: var(--warm-mid);
}

/* ── Section headings ── */
.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section__sub {
  font-size: 1.05rem;
  color: var(--warm-mid);
  max-width: 560px;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.photo-card {
  background: var(--white);
  padding: 10px 10px 20px;
  box-shadow: 0 2px 12px rgba(28,21,16,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.photo-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 0 8px 28px rgba(28,21,16,0.2);
}

.photo-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: sepia(30%) contrast(0.95) brightness(0.97);
}

.photo-card__meta {
  margin-top: 12px;
  padding: 0 4px;
}

.photo-card__era {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--sepia);
  margin: 2px 0 4px;
}

.photo-card__location {
  font-size: 0.8rem;
  color: var(--warm-mid);
}

.photo-card__status {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}

.status--unknown { background: #f3ede5; color: var(--warm-mid); }
.status--identified { background: #e8f3e8; color: #3a6b3a; }
.status--available { background: #fdf0ed; color: var(--accent); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--dust);
  background: transparent;
  color: var(--warm-mid);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--sepia);
  border-color: var(--sepia);
  color: var(--ivory);
}

/* ── Community banner ── */
.community {
  background: var(--sepia);
  padding: 4rem 1.5rem;
  text-align: center;
}

.community h2 { color: var(--ivory); margin-bottom: 1rem; }
.community p  { color: var(--dust); margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }

.community__links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact / Submit form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full { grid-column: 1 / -1; }

label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sepia);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--dust);
  background: var(--white);
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 120px; }

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: var(--dust);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.footer__logo span { color: var(--accent-light); font-style: italic; }

.footer__tagline {
  font-size: 0.85rem;
  color: var(--warm-mid);
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 2rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--dust);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--white); text-decoration: none; }

.footer__copy {
  font-size: 0.78rem;
  color: var(--warm-mid);
}

/* ── Page header (inner pages) ── */
.page-header {
  background: var(--ink);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.page-header h1 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3rem); }
.page-header p  { color: var(--dust); margin-top: 0.75rem; font-size: 1.05rem; }

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.value__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sepia);
  margin-bottom: 0.3rem;
}

.value__body { font-size: 0.95rem; color: var(--warm-mid); }

/* ── Modal (photo detail) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,21,16,0.85);
  z-index: 1000;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; align-items: center; justify-content: center; }

.modal {
  background: var(--ivory);
  max-width: 720px;
  width: 100%;
  padding: 2rem;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--warm-mid);
  line-height: 1;
}

.modal__close:hover { color: var(--ink); }

.modal__img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  filter: sepia(25%);
  margin-bottom: 1.5rem;
}

.modal__era {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal__title {
  font-size: 1.6rem;
  color: var(--sepia);
  margin: 0.4rem 0 0.75rem;
}

.modal__details {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dust);
}

.modal__detail-item { font-size: 0.88rem; color: var(--warm-mid); }
.modal__detail-item strong { display: block; color: var(--sepia); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; }

.modal__desc { font-size: 0.95rem; color: var(--warm-mid); margin-bottom: 1.5rem; }

.modal__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photos { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); padding: 1rem 1.5rem 1.5rem; gap: 1rem; }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .nav { position: relative; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
