:root {
  color-scheme: dark;
  --bg: #0e0d11;
  --surface: #17151d;
  --surface-2: #24202d;
  --text: #f7f1e8;
  --muted: #b8adb6;
  --line: #332c3d;
  --accent: #ff6b35;
  --accent-2: #54c6b2;
  --gold: #f2c86b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { margin: 0 auto; max-width: 1180px; padding: 0 18px; }
.site-header, .site-footer, .admin-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 16px max(18px, calc((100vw - 1180px) / 2));
}
.site-footer { border-bottom: 0; border-top: 1px solid var(--line); color: var(--muted); flex-wrap: wrap; font-size: 14px; margin-top: 42px; }
.brand { font-size: 19px; font-weight: 850; letter-spacing: 0; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 14px; }
nav a, .site-footer a, .admin-header a { color: var(--muted); font-size: 14px; text-decoration: none; }
.hero { padding: 42px 0 22px; }
.feed-hero {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  padding: 34px 0 24px;
}
.feed-hero h1 { font-size: clamp(38px, 8vw, 84px); letter-spacing: 0; line-height: .92; margin: 0; max-width: 760px; }
.feed-hero p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0; }
.feed-bar {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 18px 0;
  text-transform: uppercase;
}
.feed-bar strong { color: var(--text); font-size: 13px; }
.hero h1 { font-size: clamp(34px, 7vw, 68px); letter-spacing: 0; line-height: 1; margin: 0; max-width: 920px; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 760px; }
.pill { border: 1px solid rgba(48, 196, 160, .55); border-radius: 999px; color: #cffff4; display: inline-flex; font-size: 13px; font-weight: 800; margin-bottom: 18px; padding: 8px 12px; }
.grid { display: grid; gap: 18px 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.card {
  background: var(--surface);
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
}
.card img { aspect-ratio: 4 / 5; display: block; object-fit: cover; width: 100%; }
.card-body { display: grid; gap: 8px; padding: 12px; }
.card h2 { font-size: 18px; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.card h3 { font-size: 16px; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.4; margin: 0; }
.model-page { padding-top: 24px; }
.model-photo { display: block; margin: 0 auto 20px; max-width: min(430px, 100%); text-decoration: none; }
.model-photo img { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; display: block; max-height: 62vh; object-fit: contain; width: 100%; }
.model-copy { margin: 0 auto; max-width: 680px; }
.model-copy h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: 0; line-height: 1; margin: 0 0 14px; overflow-wrap: anywhere; }
.cta, button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  text-decoration: none;
}
.cta.secondary, button.secondary { background: var(--surface-2); color: var(--text); }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 12px; }
.stat span { color: var(--muted); display: block; font-size: 12px; font-weight: 750; margin-bottom: 4px; text-transform: uppercase; }
.section { padding: 26px 0 0; }
.section h2 { font-size: 24px; margin: 0 0 10px; }
.section p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.similar-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, 132px); justify-content: center; }
.similar-grid .card img { aspect-ratio: 4 / 5; object-fit: cover; }
.similar-grid .card-body { padding: 10px; }
.similar-grid .card h3 { font-size: 14px; }
.similar-grid .card p { font-size: 12px; }
.directory { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.letters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.letters a { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); min-width: 34px; padding: 8px; text-align: center; text-decoration: none; }
.auth { display: grid; min-height: 100vh; place-items: center; padding: 18px; }
.panel, .auth-card, .admin-box, .notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.auth-card, .panel, .admin-box { padding: 18px; }
.auth-card { display: grid; gap: 14px; max-width: 380px; width: 100%; }
.admin-main { display: grid; gap: 18px; padding: 20px max(18px, calc((100vw - 1180px) / 2)); }
.admin-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.admin-box h2, .panel h2 { margin: 0 0 14px; }
form { display: grid; gap: 10px; }
label { color: var(--muted); display: grid; font-size: 13px; gap: 6px; }
input, textarea, select {
  background: #0c0f11;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 94px; resize: vertical; }
.row { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; gap: 12px; justify-content: space-between; padding: 12px 0; }
.row:first-of-type { border-top: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions form { display: inline; }
.row-actions button { background: var(--surface-2); min-height: 34px; padding: 8px 10px; }
.notice { border-color: rgba(48, 196, 160, .6); color: #d9fff5; padding: 12px 14px; }
.danger { background: #713244; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 820px; width: 100%; }
td, th { border-bottom: 1px solid var(--line); color: var(--muted); padding: 10px; text-align: left; vertical-align: top; }
th { color: var(--text); }
.small { color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 780px) {
  .site-header, .admin-header { align-items: flex-start; flex-direction: column; }
  .feed-hero { align-items: start; grid-template-columns: 1fr; }
  .feed-bar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .similar-grid { grid-template-columns: repeat(2, minmax(0, 132px)); }
}
