/* =========================================================
   OTHER Model Management — Minimal Editorial Stylesheet
   ========================================================= */

:root {
  --bg: #fbfbf9;
  --surface: #f4f3ef;
  --frame-bg: #e8e6e1;
  --ink: #111110;
  --ink-muted: #6c6a64;
  --rule: rgba(17, 17, 16, 0.12);
  --rule-strong: rgba(17, 17, 16, 0.28);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-sub {
  font-weight: 400;
  color: #7c7972;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

/* ---------- Model Board ---------- */

.board-section {
  padding-top: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(64px, 8vw, 108px);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 26px);
}

.model-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.model-card:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

.model-frame {
  aspect-ratio: 3 / 4;
  background: var(--frame-bg);
  overflow: hidden;
}

.model-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s var(--ease);
}

.model-card:hover .model-frame img,
.model-card:focus-visible .model-frame img {
  transform: scale(1.03);
}

.model-name {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.empty-board {
  padding: 48px 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- Model Detail Page ---------- */

.detail-section {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.detail-back-row {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.back-link {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.detail-photo {
  aspect-ratio: 3 / 4;
  background: var(--frame-bg);
  overflow: hidden;
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.detail-info {
  padding-top: clamp(0px, 1vw, 12px);
  max-width: 520px;
}

.detail-name {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.detail-stats {
  margin-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--rule);
}

.detail-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.detail-stat-row dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.detail-stat-row dd {
  font-size: 14px;
  color: var(--ink);
  text-align: right;
}

/* More photos below */

.detail-gallery-section {
  margin-top: clamp(48px, 6vw, 84px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--rule);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.gallery-frame {
  aspect-ratio: 3 / 4;
  background: var(--frame-bg);
  overflow: hidden;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Prev / Next model navigation */

.detail-pager {
  margin-top: clamp(48px, 6vw, 84px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pager-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.pager-link:hover,
.pager-link:focus-visible {
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-copy {
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-photo {
    max-width: 480px;
  }

  .detail-info {
    max-width: 100%;
  }

  .detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
}
