:root {
  --bg: #FAF8F5;
  --bg-deep: #F2EEE6;
  --ink: #0F0F0F;
  --ink-soft: #2A2926;
  --muted: #6B6A66;
  --muted-2: #9A978F;
  --hair: #E6E1D7;
  --hair-strong: #D4CDBD;
  --accent: #FF4D1C;
  --accent-ink: #C23410;
  --accent-tint: #FFEDE5;
  --accent-strength: 1;
}

[data-accent-strength="subtle"] { --accent-strength: 0.55; }
[data-accent-strength="balanced"] { --accent-strength: 1; }
[data-accent-strength="bold"] { --accent-strength: 1.35; }

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display {
  font-family: 'Archivo', 'Figtree', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.94;
}
.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.caps {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 500;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* --- top bar --- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: baseline; gap: 10px;
  font-family: 'Archivo', sans-serif; font-weight: 800;
  letter-spacing: -0.02em; font-size: 17px;
}
.logo-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}
.logo-sub {
  font-family: 'JetBrains Mono', monospace; font-weight: 400;
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-left: 10px; border-left: 1px solid var(--hair-strong);
  margin-left: 4px;
}
.topnav { display: flex; gap: 28px; align-items: center; }
.topnav a {
  font-size: 14px; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.topnav a.active, .topnav a:hover {
  color: var(--ink);
}
.topnav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.topnav .submit-btn {
  background: var(--ink); color: var(--bg);
  padding: 9px 16px; border-radius: 0;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.topnav .submit-btn:hover { background: var(--accent); }

@media (max-width: 960px) {
  .logo-sub { display: none; }
}
@media (max-width: 720px) {
  .topnav .nav-link { display: none; }
  .topnav { gap: 16px; }
}
@media (max-width: 420px) {
  .topnav .submit-btn { padding: 9px 12px; font-size: 12px; }
  .logo { font-size: 15px; }
}

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: none; background: var(--ink); color: var(--bg);
  padding: 14px 22px; font-size: 14px; font-weight: 500;
  transition: background 140ms ease, transform 140ms ease;
}
.btn:hover { background: var(--accent-ink); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hair-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-deep); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }

/* --- chips --- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--hair-strong);
  background: transparent;
  font-size: 13px; color: var(--ink-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 120ms ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.chip .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; opacity: 0.7;
}

/* --- card --- */
.card {
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 200ms ease;
}
.card:hover .card-img-inner { transform: scale(1.02); }
.card:hover .card-title { color: var(--accent-ink); }
.card-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
}
.card-img-inner {
  width: 100%; height: 100%;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.card-meta-top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.verified {
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px;
  display: inline-flex; align-items: center; gap: 5px;
}
.verified::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  transform: scale(calc(0.7 + 0.3 * var(--accent-strength)));
}
.card-body {
  padding: 16px 2px 0;
}
.card-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  line-height: 1.05;
  transition: color 120ms ease;
}
.card-meta {
  margin-top: 6px;
  display: flex; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.card-meta .dot { color: var(--muted-2); }
.card-hook {
  margin-top: 10px;
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- layout --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --- art placeholder (medium-keyed color block) --- */
.art-placeholder {
  width: 100%; height: 100%;
  position: relative;
  display: grid;
  place-items: center;
}
.art-placeholder::before,
.art-placeholder::after {
  content: ""; position: absolute; inset: 0;
}
.art-placeholder .ap-bg {
  position: absolute; inset: 0;
}
.art-placeholder .ap-shape {
  position: absolute;
  mix-blend-mode: multiply;
}
.art-tag {
  position: absolute; bottom: 10px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  mix-blend-mode: difference;
}

/* --- real IG post image --- */
.art-image {
  width: 100%; height: 100%;
  background: var(--bg-deep);
  overflow: hidden;
}
.art-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* --- footer --- */
footer {
  margin-top: 120px;
  border-top: 1px solid var(--hair);
  padding: 48px 0 64px;
  font-size: 14px; color: var(--muted);
}
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer a:hover { color: var(--ink); }
footer .col { display: flex; flex-direction: column; gap: 8px; }

/* --- modal --- */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(15,15,15,0.42);
  z-index: 90;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn 220ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg);
  width: 100%; max-width: 460px;
  padding: 36px 32px 32px;
  position: relative;
  animation: modalIn 280ms cubic-bezier(.2,.7,.2,1);
}
@keyframes modalIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: none; background: transparent;
  color: var(--ink); font-size: 20px; line-height: 1;
}
.modal-close:hover { color: var(--accent); }

/* --- inputs --- */
.input, .textarea, .select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--hair-strong);
  background: transparent;
  padding: 14px 0 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 140ms ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-bottom-color: var(--accent);
}
.textarea { resize: vertical; min-height: 90px; }
.field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 18px;
}
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-error { color: var(--accent-ink); font-size: 12px; margin-top: 4px; }

/* --- tweaks panel --- */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px;
  background: var(--bg);
  border: 1px solid var(--hair-strong);
  padding: 18px 20px 18px;
  width: 280px;
  z-index: 80;
  box-shadow: 0 8px 32px rgba(15,15,15,0.12);
  font-size: 13px;
}
.tweaks-panel h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.tweaks-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.tweaks-row:last-child { margin-bottom: 0; }
.tweaks-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.tweaks-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-options button {
  border: 1px solid var(--hair-strong);
  background: transparent;
  padding: 6px 10px; font-size: 12px;
  color: var(--ink-soft);
}
.tweaks-options button.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* --- search --- */
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  margin-bottom: 20px;
}
.search-wrap input {
  flex: 1; border: none; background: transparent;
  font-size: 18px; font-family: inherit; color: var(--ink);
  outline: none;
}
.search-wrap input::placeholder { color: var(--muted-2); }
.search-icon {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted);
}

/* --- results meta bar --- */
.results-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin-bottom: 48px;
}
.results-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
}
.clear-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.12em;
  background: none; border: none; padding: 0;
}
.clear-all:hover { color: var(--ink); }

/* --- chip row --- */
.chip-rows {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 0 8px;
}
.chip-row {
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.12em;
  min-width: 64px;
}

/* --- detail page --- */
.detail-top {
  padding-top: 48px; padding-bottom: 32px;
}
.detail-crumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.detail-crumbs a:hover { color: var(--accent-ink); }
.detail-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.detail-hook {
  font-size: 20px; color: var(--ink-soft);
  max-width: 560px; line-height: 1.35;
  margin-bottom: 28px;
}
.detail-meta-row {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.detail-meta-row .cell { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.detail-meta-row .cell span:first-child {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.detail-meta-row .cell span:last-child { font-size: 14px; color: var(--ink); }

.detail-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin: 40px 0;
}
.detail-hero-grid > div {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-deep);
}
.detail-hero-grid > div:first-child { aspect-ratio: 1; }
@media (max-width: 720px) {
  .detail-hero-grid { grid-template-columns: 1fr 1fr; }
  .detail-hero-grid > div:first-child { grid-column: 1 / -1; }
}

.detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  padding: 40px 0;
}
@media (max-width: 900px) {
  .detail-body { grid-template-columns: 1fr; gap: 40px; }
}
.detail-bio {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.detail-side { display: flex; flex-direction: column; gap: 24px; }
.detail-side .section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
  padding-bottom: 10px; border-bottom: 1px solid var(--hair);
  margin-bottom: 10px;
}
.link-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
}
.link-list a:hover { color: var(--accent-ink); }
.link-list a .arrow { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.link-list a:hover .arrow { transform: translate(2px, -2px); }
.link-list a .arrow { transition: transform 140ms ease; display: inline-block; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--hair-strong);
}

.credit-card {
  background: var(--bg-deep);
  padding: 20px;
  font-size: 13px; color: var(--ink-soft);
  line-height: 1.5;
}
.credit-card strong { color: var(--ink); font-weight: 600; }

.related-title {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 32px; letter-spacing: -0.02em;
  margin: 80px 0 32px;
}

/* --- hero treatments --- */
.hero {
  padding: 60px 0 48px;
}
.hero-editorial .hero-title {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(64px, 10vw, 168px);
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin: 0;
}
.hero-editorial .hero-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-editorial .hero-sub {
  margin-top: 24px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  flex-wrap: wrap;
}
.hero-editorial .hero-tag {
  font-size: 18px; max-width: 420px; line-height: 1.35;
  color: var(--ink-soft);
}
.hero-editorial .hero-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em;
  display: flex; gap: 20px;
}
.hero-editorial .hero-stat .num { color: var(--ink); font-size: 13px; }

.hero-preview {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-preview .hero-title {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(48px, 6.2vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.hero-preview .hero-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.hero-preview .hero-strip > div {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-deep);
}
@media (max-width: 760px) { .hero-preview { grid-template-columns: 1fr; } }

.hero-manifesto {
  padding: 60px 0 40px;
  max-width: 900px;
}
.hero-manifesto .hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.hero-manifesto .hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-manifesto .hero-title .strike {
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.hero-manifesto .hero-title .accent {
  color: var(--accent-ink);
  font-style: italic;
}
.hero-manifesto .hero-sub {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* --- about page --- */
.about-body {
  max-width: 720px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 40px 0 80px;
}
.about-body p { margin: 0 0 22px; text-wrap: pretty; }
.about-body p:first-of-type::first-letter {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 72px; line-height: 0.9;
  float: left; padding: 6px 10px 0 0;
}

/* --- submit page --- */
.submit-page {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 60px 0 100px;
}
@media (max-width: 860px) { .submit-page { grid-template-columns: 1fr; gap: 40px; } }
.submit-page h1 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0 0 24px;
}
.submit-page .lede {
  font-size: 18px; color: var(--ink-soft); line-height: 1.45; max-width: 440px;
}
.submit-form {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.form-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 20px;
}

/* --- success --- */
.success-state {
  padding: 80px 0;
  text-align: center;
  max-width: 520px; margin: 0 auto;
}
.success-state .tick {
  width: 56px; height: 56px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  font-size: 24px;
}
.success-state h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 44px; margin: 0 0 12px; line-height: 1.05;
}

/* empty state */
.empty {
  padding: 80px 20px;
  text-align: center;
  border: 1px dashed var(--hair-strong);
  color: var(--muted);
}
.empty h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; color: var(--ink); margin: 0 0 8px;
}

/* utility */
.ink { color: var(--ink); }
.muted { color: var(--muted); }
.accent { color: var(--accent-ink); }
.pad-y-80 { padding: 80px 0; }

/* signup inline */
.inline-signup {
  background: var(--ink);
  color: var(--bg);
  padding: 48px 40px;
  margin-top: 60px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 760px) {
  .inline-signup { grid-template-columns: 1fr; padding: 36px 24px; }
}
.inline-signup h3 {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
.inline-signup .sub {
  margin-top: 10px; color: #C9C6BE; font-size: 15px; line-height: 1.45;
}
.inline-signup form {
  display: flex; border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 12px;
}
.inline-signup input {
  flex: 1; background: transparent; border: none; color: #fff;
  padding: 8px 0; font-size: 16px; outline: none;
  font-family: inherit;
}
.inline-signup input::placeholder { color: #8A8883; }
.inline-signup button {
  background: transparent; border: none; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
}
.inline-signup button:hover { color: #fff; }
