:root {
  --bg: #100d0b;
  --surface: #191310;
  --surface-2: #241a16;
  --border: #3e2c25;
  --border-soft: #2c211d;
  --text: #f2e6d2;
  --muted: #c5ad90;
  --faint: #89725f;
  --red: #d54545;
  --red-soft: rgba(213, 69, 69, 0.16);
  --amber: #c58b3a;
  --teal: #4fb5a8;
  --ice: #8fc7df;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1000px 540px at 86% -8%, rgba(213, 69, 69, 0.16), transparent 62%),
    radial-gradient(760px 460px at 0% 96%, rgba(79, 181, 168, 0.1), transparent 64%),
    linear-gradient(180deg, #100d0b, #15100e 44%, #0f0c0b);
}

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

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

p,
h1,
h2,
h3 {
  margin: 0;
}

p {
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 4px;
  color: #120d0d;
  background: var(--red);
}

.skip:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(16, 13, 11, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--amber);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 68vh, 720px);
  overflow: hidden;
  padding: clamp(48px, 8vw, 92px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--border-soft);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.92), rgba(16, 13, 11, 0.62) 48%, rgba(16, 13, 11, 0.18)),
    linear-gradient(180deg, rgba(16, 13, 11, 0.08), rgba(16, 13, 11, 0.72));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;  
  filter: saturate(0.9) contrast(1.08);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
}

.hero-copy p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.collections {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
}

.section-heading {
  display: block;
  margin-bottom: 22px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.site-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: 0 18px 44px var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 220ms ease;
}

.site-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px var(--shadow);
}

.king-card:hover {
  border-color: var(--red);
}

.lovecraft-card:hover {
  border-color: var(--teal);
}

.templar-card:hover {
  border-color: var(--amber);
}

.franklin-card:hover {
  border-color: var(--ice);
}

.card-media {
  display: block;
  height: 230px;
  overflow: hidden;
  background: #090807;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.site-card:hover .card-media img {
  transform: scale(1.035);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.card-kicker,
.path {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-kicker span:last-child {
  color: var(--amber);
}

.lovecraft-card .card-kicker span:last-child {
  color: var(--teal);
}

.franklin-card .card-kicker span:last-child {
  color: var(--ice);
}

h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--red-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.lovecraft-card .primary-link {
  border-color: rgba(79, 181, 168, 0.6);
  background: rgba(79, 181, 168, 0.12);
}

.templar-card .primary-link {
  border-color: rgba(197, 139, 58, 0.68);
  background: rgba(197, 139, 58, 0.13);
}

.franklin-card .primary-link {
  border-color: rgba(143, 199, 223, 0.68);
  background: rgba(143, 199, 223, 0.13);
}

.primary-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.primary-link.muted {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
}

.path {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 64px) 42px;
  border-top: 1px solid var(--border-soft);
  color: var(--faint);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 1180px) {
  .site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .brand small,
  .nav a {
    display: none;
  }

  .hero {
    min-height: 520px;
  }
  
  .hero-media img {
    object-position: 72% center;
    filter: saturate(1) contrast(1.05) brightness(1.08);
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(16, 13, 11, 0.78), rgba(16, 13, 11, 0.9)),
      linear-gradient(90deg, rgba(16, 13, 11, 0.88), rgba(16, 13, 11, 0.32));
      linear-gradient(180deg, rgba(16, 13, 11, 0.42), rgba(16, 13, 11, 0.82)),
      linear-gradient(90deg, rgba(16, 13, 11, 0.78), rgba(16, 13, 11, 0.18) 56%, rgba(16, 13, 11, 0.36));
  }

  h1 {
    max-width: 13ch;
    font-size: 3.6rem;
    max-width: 100%;
    font-size: 3.1rem;
    overflow-wrap: break-word;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 32ch;
    line-height: 1.45;
  }

  .site-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .site-grid {
    display: grid;
  }

  .card-media {
    height: 190px;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .path {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    display: none;
  }

  h1 {
    font-size: 3rem;
    font-size: 2.75rem;
  }
}

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