@import url('fonts/fonts.css');

:root {
  --ink: #191315;
  --dark: #1d141f;
  --paper: #fff9ec;
  --paper-deep: #f6eddf;
  --yellow: #ffc54d;
  --red: #a83027;
  --muted: #615454;
  --line: #d7c8b7;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --measure: 74rem;
  --pad: clamp(1.1rem, 4.4vw, 4.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.on-dark :focus-visible { outline-color: var(--yellow); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: .95; }
.wrap { width: min(100% - var(--pad) * 2, var(--measure)); margin-inline: auto; }
.skip { position: fixed; z-index: 6; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--yellow); color: var(--ink); translate: 0 -180%; }
.skip:focus { translate: 0; }

.masthead { border-bottom: 2px solid var(--ink); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.3rem; min-height: 5rem; }
.brand { display: block; justify-self: start; width: 9.45rem; background: var(--dark); padding: .12rem .4rem; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.65rem); }
.main-nav a, .header-contact { font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current], .footer-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.header-contact { justify-self: end; border: 1px solid var(--ink); padding: .55rem 1rem; }
.header-contact:hover, .header-contact[aria-current] { background: var(--ink); color: var(--paper); }

.hero { background: var(--dark); color: var(--paper); border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr .96fr; align-items: stretch; min-height: clamp(32rem, 47vw, 41.5rem); isolation: isolate; }
.hero-copy { position: relative; align-self: center; z-index: 2; padding: 3.1rem 0 3.6rem; }
.kicker { display: flex; gap: .6rem; align-items: center; margin: 0 0 1rem; color: var(--red); font: 800 1rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ''; width: 1.65rem; height: .18rem; background: currentColor; flex-shrink: 0; }
.on-dark .kicker { color: var(--yellow); }
.hero h1 { font-style: italic; font-size: clamp(5rem, 9.5vw, 9.45rem); line-height: .78; letter-spacing: -.018em; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--yellow); }
.hero-summary { max-width: 29rem; font-size: clamp(1.03rem, 1.65vw, 1.2rem); color: #e7d9e0; line-height: 1.45; margin: 1.5rem 0 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.05rem; padding: .64rem 1.15rem; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.25; }
.button:hover { background: var(--ink); color: var(--paper); }
.on-dark .button { border-color: var(--yellow); }
.on-dark .button:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button.secondary { background: transparent; }
.button.secondary:hover { background: var(--ink); color: var(--paper); }
.button:disabled { opacity: .65; }

.hero-visual { position: relative; display: flex; min-width: 0; align-items: end; justify-content: center; }
.hero-visual::before { content: ''; position: absolute; z-index: -2; inset: 0 calc(var(--pad) * -1 - 3rem) 0 -3.7rem; background: #48233e; background-image: radial-gradient(#21132682 1.2px, transparent 1.6px), linear-gradient(140deg, #793b50 1%, #492744 52%, #322648 100%); background-size: 7px 7px, 100%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.hero-visual::after { content: ''; position: absolute; z-index: -1; width: min(88%, 30rem); aspect-ratio: 1; align-self: center; border-radius: 50%; background: var(--yellow); opacity: .96; transform: translate(3%, 1%); box-shadow: 0 0 0 11px #ffc54d22, 0 0 0 24px #ffc54d14; }
.hero-art { width: min(115%, 42rem); max-width: none; align-self: center; height: auto; flex: 0 0 auto; object-fit: contain; object-position: center; filter: drop-shadow(0 11px 15px #29132388); }

.section { padding-block: clamp(3rem, 6.4vw, 6.4rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.7rem; }
.section-title, .inner-title { font-size: clamp(3.4rem, 6.4vw, 6rem); text-transform: uppercase; letter-spacing: -.01em; }
.section-head .kicker, .page-head .kicker { margin-bottom: .45rem; }
.text-link { text-decoration-thickness: 2px; font-weight: 700; }
.text-link:hover { color: var(--red); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; align-items: stretch; }
.card, .card a { min-width: 0; }
.card a { display: grid; height: 100%; grid-template-rows: auto 1fr; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; }
.card a:hover { box-shadow: 4px 4px 0 var(--ink); }
.card-visual { position: relative; display: block; overflow: hidden; aspect-ratio: 1.15; background: #d78877; border-bottom: 2px solid var(--ink); }
.card:nth-child(4n+2) .card-visual { background: #c7a37a; }
.card:nth-child(4n+3) .card-visual { background: #bc829f; }
.card:nth-child(4n+4) .card-visual { background: #7f9b9c; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; transition: transform .22s ease; }
.card a:hover img { transform: scale(1.04); }
.faction { position: absolute; top: .55rem; left: .55rem; padding: .22rem .5rem; border: 1px solid var(--ink); background: var(--yellow); color: var(--ink); font: 800 .92rem/1 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.faction.villains { color: var(--paper); background: var(--red); }
.card-title { min-height: 3.4rem; padding: .67rem .8rem .74rem; font-size: clamp(1.65rem, 2.4vw, 2.25rem); text-transform: uppercase; overflow-wrap: anywhere; }

.studio-block { border-block: 2px solid var(--ink); background: var(--yellow); }
.studio-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 3rem; }
.studio-block .kicker { color: #7c211c; }
.studio-block .section-title { max-width: 13ch; }
.studio-copy { margin: 1rem 0; max-width: 29rem; font-size: 1.12rem; }
.studio-poster { min-height: 12rem; aspect-ratio: 1.95; position: relative; margin: 0; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--ink); background-color: var(--dark); background-image: radial-gradient(#e9a66a66 1px, transparent 1.4px); background-size: 7px 7px; }
.studio-poster img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }

.page-head { border-bottom: 2px solid var(--ink); background: var(--paper-deep); padding-block: clamp(2.6rem, 6vw, 5rem); }
.page-intro { max-width: 44rem; margin-top: .75rem; color: var(--muted); font-size: 1.125rem; }
.catalog-section { padding-top: 1.8rem; }
.catalog-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .7rem 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button { background: transparent; color: var(--ink); padding: .5rem .8rem; min-height: 2.85rem; border: 1px solid var(--ink); font-weight: 700; }
.filters button:hover { background: var(--paper-deep); }
.filters button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.search-label { display: grid; gap: .25rem; font-weight: 700; font-size: .9rem; }
.search-label input, .contact-form input, .contact-form textarea { background: white; color: var(--ink); border: 1px solid var(--ink); border-radius: 0; min-height: 2.85rem; padding: .52rem .68rem; }
.search-label input { min-width: min(16rem, 100%); }
.catalog-status { margin: .9rem 0; color: var(--muted); }
.empty { border: 1px solid var(--line); padding: 1.5rem; }
.empty .button { margin-top: .5rem; }

.profile-head { padding-block: clamp(2rem, 5.2vw, 4.8rem); background: var(--dark); color: var(--paper); border-bottom: 2px solid var(--ink); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(1.6rem, 6vw, 5rem); }
.profile-back { display: inline-block; margin-bottom: 1.6rem; color: #f7e2dd; font-weight: 700; }
.profile-grid .inner-title { font-size: clamp(4.1rem, 10vw, 9rem); overflow-wrap: anywhere; }
.profile-power { font-size: 1.12rem; max-width: 34rem; color: #f7e2dd; margin-top: 1.1rem; }
.profile-art { border: 2px solid var(--yellow); width: 100%; aspect-ratio: 1; object-fit: cover; background: #7d4554; }
.profile-story { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.prose { max-width: 46rem; }
.prose h2, .variants h2 { font-size: clamp(2.15rem, 4vw, 3.35rem); margin-bottom: .55rem; }
.prose section + section { margin-top: 2.2rem; }
.prose p + p { margin-top: .85rem; }
.prose p + h2 { margin-top: 1.6rem; }
.variants { border-top: 2px solid var(--red); padding-top: .75rem; }
.variants dl { margin: 0; }
.variants dt { font-weight: 700; margin-top: .6rem; text-transform: capitalize; }
.variants dd { margin: 0; color: var(--muted); }
.related { border-top: 2px solid var(--ink); background: var(--paper-deep); }

.journal-list { display: grid; border-top: 1px solid var(--ink); }
.journal-row { display: grid; grid-template-columns: 10rem 1fr; gap: .75rem 1.5rem; align-items: baseline; padding: 1.35rem 0; border-bottom: 1px solid var(--ink); }
.journal-row h2, .journal-row h3 { font-size: clamp(1.78rem, 4vw, 2.9rem); }
.journal-row p { color: var(--muted); margin-top: .35rem; }
.journal-row a:hover { color: var(--red); }
.journal-index section + section { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.journal-index .section-title { margin-bottom: 1rem; font-size: clamp(2.85rem, 5vw, 4.65rem); }
.inventory > p { max-width: 47rem; margin-bottom: .85rem; }
.inventory-scroll { overflow-x: auto; margin-block: 1.4rem; }
.inventory table { border-collapse: collapse; width: 100%; min-width: 34rem; }
.inventory caption { text-align: left; font-weight: 700; margin-bottom: .6rem; }
.inventory :is(th, td) { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); }
.inventory thead th { border-block: 1px solid var(--ink); background: var(--paper-deep); }
.inventory td:nth-last-child(-n+2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.article { width: min(100% - var(--pad) * 2, 47rem); }
.article .kicker { margin-top: 1.1rem; }
.article .inner-title { font-size: clamp(3.1rem, 7.6vw, 5.9rem); margin-bottom: 1.6rem; }
.article .prose { margin-top: 1.5rem; }
.contact-form { display: grid; max-width: 37rem; gap: .8rem; }
.contact-form label { display: grid; gap: .2rem; font-weight: 700; }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form .button { justify-self: start; }
.contact-form .form-note { color: var(--muted); }
.contact-form [role='status'] { font-weight: 700; }
.contact-form [role='status']:empty { display: none; }

.site-footer { background: var(--dark); color: var(--paper); border-top: 2px solid var(--ink); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem 2.25rem; flex-wrap: wrap; padding-block: 2rem; }
.site-footer .brand { padding: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; }
.footer-links a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.footer-meta { color: #e0cbd4; font-size: .88rem; }

@media (max-width: 62rem) {
  .hero-inner { min-height: 31rem; }
  .hero h1 { font-size: clamp(4.6rem, 10.4vw, 7.2rem); }
  .hero-art { width: 119%; }
  .cards { gap: .75rem; }
}

@media (max-width: 43rem) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: .75rem 1rem; padding-block: .75rem; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; padding-top: .6rem; border-top: 1px solid var(--line); gap: 1.55rem; }
  .header-contact { grid-column: 2; grid-row: 1; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.35rem 0 1.25rem; }
  .hero h1 { font-size: clamp(3.25rem, 16.65vw, 7rem); }
  .hero-summary { margin: 1rem 0 1.26rem; }
  .hero-visual { min-height: 0; height: clamp(15rem, 65vw, 26rem); }
  .hero-visual::before { inset: .7rem calc(var(--pad) * -1) 0 calc(var(--pad) * -1); clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
  .hero-visual::after { width: min(60%, 16rem); }
  .hero-art { width: min(110%, calc(100% + 2 * var(--pad))); height: 100%; }
  .section-head { align-items: start; flex-direction: column; gap: .55rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-inner, .profile-grid, .profile-story { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .studio-poster { width: 100%; min-height: 0; max-height: 19rem; }
  .profile-back { margin-bottom: 1rem; }
  .profile-art { max-height: 28rem; object-position: 50% 33%; }
  .journal-row { grid-template-columns: 1fr; gap: .2rem; }
}

@media (max-width: 24rem) {
  .brand { width: 8.7rem; }
  .main-nav { justify-content: space-between; flex-wrap: wrap; gap: .5rem .35rem; }
  .cards { gap: .55rem; }
  .card-title { font-size: 1.45rem; padding-inline: .55rem; }
}

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