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

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

/* ── tokens ── */
:root {
  --ink: #e8e0d0;
  --ink-muted: #7a7264;
  --bg: #0d0d0b;
  --surface: #161612;
  --surface-2: #1e1e1a;
  --border: rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.13);
  --accent: #c87941;
  --accent-hover: #da8d52;
  --danger: #c25450;
  --success: #5a9e6f;
  --warn: #c87941;
  --radius: 2px;
  --shadow: 0 2px 16px rgba(0,0,0,.5);
  --max: 860px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --muted: #7a7264;    /* alias for --ink-muted — used in inline styles */
  --card-bg: #161612; /* alias for --surface — used in inline styles */
}

/* ── film grain ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ── base ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: none; }
img { max-width: 100%; display: block; border-radius: var(--radius); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 400; }
h1 { font-size: 2.8rem; margin-bottom: .6rem; }
h2 { font-size: 2rem; margin-bottom: .5rem; }
h3 { font-size: 1.45rem; margin-bottom: .4rem; }
p { margin-bottom: .85rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
code {
  font-family: 'Courier New', monospace;
  font-size: .88em;
  color: var(--accent);
  background: rgba(200,121,65,.08);
  padding: .1em .35em;
}
em { font-style: italic; }

/* ── nav ── */
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .07em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}
.site-brand:hover { color: var(--ink); }
.site-tagline { font-size: .8rem; color: var(--ink-muted); font-style: italic; }

/* ── main ── */
.site-main { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.site-footer {
  text-align: center;
  color: var(--ink-muted);
  font-size: .72rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── hero ── */
.hero { text-align: center; padding: 5rem 1rem 3rem; }
.hero h1 {
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
.hero .tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-muted);
  margin: 1rem 0 1.25rem;
  letter-spacing: .02em;
}
.hero > p:not(.tagline) {
  max-width: 500px;
  margin: 0 auto .85rem;
  font-size: .95rem;
  color: var(--ink-muted);
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.25rem; }

/* ── concept cards ── */
.concept {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 3.5rem 0;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 600px) { .concept { grid-template-columns: 1fr; } }
.concept-card { background: var(--surface); padding: 2rem 1.75rem; }
.concept-card .label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: .85rem;
}
.concept-card h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.concept-card p { font-size: .9rem; color: var(--ink-muted); line-height: 1.7; margin: 0; }

/* ── buttons ── */
.btn {
  display: inline-block;
  padding: .6rem 1.7rem;
  border-radius: 0;
  font-size: .78rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.btn-primary { background: var(--accent); color: #0d0d0b; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0d0d0b; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #ad4a46; color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #4d8d60; color: #fff; }
.btn-sm { padding: .28rem .8rem; font-size: .72rem; }

/* ── forms ── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  margin-bottom: .45rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
}
.form-group .hint {
  font-size: .8rem;
  color: var(--ink-muted);
  margin-top: .35rem;
  font-style: italic;
}
input[type=text],
input[type=email],
input[type=url],
input[type=password],
textarea,
select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 300;
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: .7; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200,121,65,.12);
}
textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.form-check input { margin-top: .3rem; flex-shrink: 0; accent-color: var(--accent); }
.form-check label {
  font-size: .9rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 300;
}

/* ── file drop ── */
.file-drop {
  border: 1px dashed var(--border-strong);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  transition: border-color .2s, background .2s;
  position: relative;
}
/* contact-sheet corner marks */
.file-drop::before,
.file-drop::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
  opacity: .3;
  transition: opacity .2s;
}
.file-drop::before { top: 9px; left: 9px; border-width: 1px 0 0 1px; }
.file-drop::after  { bottom: 9px; right: 9px; border-width: 0 1px 1px 0; }
.file-drop:hover,
.file-drop.drag-over {
  border-color: var(--accent);
  background: rgba(200,121,65,.04);
}
.file-drop:hover::before,
.file-drop:hover::after,
.file-drop.drag-over::before,
.file-drop.drag-over::after { opacity: 1; }
.file-drop svg { color: var(--ink-muted); }
.file-drop p { margin: .5rem 0 0; font-size: .85rem; color: var(--ink-muted); }
.file-drop input[type=file] { display: none; }
.file-preview { max-height: 320px; width: auto; margin: 1.5rem auto 0; }

/* ── code reveal ── */
.code-reveal {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  margin: 2rem 0;
}
.code-reveal > p:first-child { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); }
.code-big {
  font-size: 5rem;
  font-family: 'Courier New', monospace;
  letter-spacing: .4em;
  font-weight: bold;
  color: var(--accent);
  margin: 1.25rem 0;
  text-shadow: 0 0 40px rgba(200,121,65,.25);
  line-height: 1;
}
.code-url { font-size: .875rem; color: var(--ink-muted); word-break: break-all; font-style: italic; }
.qr-code { margin: 1.75rem auto; max-width: 170px; filter: invert(1); opacity: .75; }

/* ── photo pair ── */
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 600px) { .pair-grid { grid-template-columns: 1fr; } }
.pair-side { background: var(--surface); border: 1px solid var(--border); padding: 1rem; }
.pair-side .label { font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); margin-bottom: .6rem; }
.pair-side img { width: 100%; height: 260px; object-fit: cover; border-radius: 0; }
.pair-placeholder { width: 100%; height: 260px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }

/* ── bio card ── */
.bio-card { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; margin: 1rem 0; }
.bio-card .name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.bio-card .credit { font-size: .72rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }
.bio-card .links { margin-top: .75rem; font-size: .85rem; }
.bio-card .links a { margin-right: .75rem; color: var(--accent); }

/* ── admin ── */
.admin-nav {
  display: flex;
  gap: 1.25rem;
  padding: .85rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.admin-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.admin-nav a:hover { color: var(--ink); }
.admin-nav .active { color: var(--accent); }

/* ── tables ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  text-align: left;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border-strong);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
  font-weight: 600;
}
.data-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.thumb-sm { width: 60px; height: 60px; object-fit: cover; border-radius: 0; }

/* ── badges ── */
.badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 0;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-pending  { background: rgba(200,121,65,.12);  color: #d48f5a; border: 1px solid rgba(200,121,65,.3);  }
.badge-approved { background: rgba(90,158,111,.12);  color: #6ab882; border: 1px solid rgba(90,158,111,.3);  }
.badge-rejected { background: rgba(194,84,80,.12);   color: #d47370; border: 1px solid rgba(194,84,80,.3);   }
.badge-submitted{ background: rgba(100,150,200,.12); color: #7aaad4; border: 1px solid rgba(100,150,200,.3); }
.badge-curated  { background: rgba(150,120,200,.12); color: #b09de0; border: 1px solid rgba(150,120,200,.3); }
.badge-inbook   { background: rgba(90,158,111,.12);  color: #6ab882; border: 1px solid rgba(90,158,111,.3);  }

/* ── alerts ── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: 0;
  margin-bottom: 1rem;
  font-size: .875rem;
  border-left: 2px solid;
}
.alert-info    { background: rgba(100,150,200,.08); color: #7aaad4; border-color: #4d7fa8; }
.alert-success { background: rgba(90,158,111,.08);  color: #6ab882; border-color: #4a8a5c; }
.alert-warn    { background: rgba(200,121,65,.08);  color: var(--accent); border-color: var(--accent); }
.alert-error   { background: rgba(194,84,80,.08);   color: #d47370; border-color: #b04846; }

/* ── toolbar ── */
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.toolbar select, .toolbar input { width: auto; }

/* ── review queue ── */
.review-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  margin-bottom: .5rem;
  background: var(--surface);
}
.review-item img { width: 120px; height: 90px; object-fit: cover; flex-shrink: 0; border-radius: 0; }
.review-meta { flex: 1; font-size: .875rem; }
.review-meta strong { display: block; margin-bottom: .25rem; font-weight: 400; font-family: var(--font-display); font-size: 1rem; }
.review-meta .muted { color: var(--ink-muted); }
.review-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }

/* ── empty state ── */
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-muted); }
.empty p { font-size: 1.2rem; font-style: italic; font-family: var(--font-display); }
