:root {
  color-scheme: dark;
  --ink: #09090b;
  --surface: #151518;
  --surface-raised: #1d1d21;
  --paper: #f5f5f6;
  --muted: #a3a3ab;
  --line: #2b2b31;
  --red: #e5484d;
  --red-bright: #ff6871;
  --display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 82px;
  padding: 0 max(32px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 216px; }
.brand img { display: block; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 16px; font-weight: 850; letter-spacing: 1.2px; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-family: var(--utility); font-size: 9px; letter-spacing: 1.4px; }

.main-nav { display: flex; align-self: stretch; align-items: center; gap: 28px; flex: 1; }
.main-nav a { position: relative; display: inline-flex; align-items: center; height: 100%; color: #c9c9cd; font-size: 13px; font-weight: 650; }
.main-nav a:hover, .main-nav a.current { color: var(--paper); }
.main-nav a.current::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--red); content: ""; }

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #49494f;
  border-radius: 6px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}

.header-action:hover { border-color: var(--red); background: #211417; }
.header-action span, .category-arrow { color: var(--red-bright); }

main { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
  align-items: center;
  gap: 48px;
  min-height: 476px;
  padding: 56px 0 50px;
  border-bottom: 1px solid var(--line);
}

.opening-copy { max-width: 690px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: #c8c8cd; font-family: var(--utility); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.eyebrow-mark { display: inline-block; width: 22px; height: 3px; background: var(--red); }

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-family: var(--display); font-size: 72px; font-weight: 850; line-height: .98; letter-spacing: 0; }
h1 span { color: var(--red-bright); }
.opening-description { max-width: 430px; margin-bottom: 23px; color: #c5c5ca; font-size: 16px; }

.search-form {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 492px);
  min-height: 50px;
  padding: 5px 6px 5px 13px;
  border: 1px solid #38383e;
  border-radius: 6px;
  background: var(--surface);
}

.search-form svg { flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-form input { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: none; background: transparent; color: var(--paper); font-size: 13px; }
.search-form input::placeholder { color: #85858d; }
.search-form input:focus-visible { outline: none; }
.search-form:focus-within { border-color: var(--red); box-shadow: 0 0 0 2px rgb(229 72 77 / 16%); }
.search-form button { min-height: 38px; padding: 0 15px; border: 0; border-radius: 4px; background: var(--red); color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.search-form button:hover { background: #f05a63; }
.search-note { margin: 7px 0 19px; color: #85858d; font-size: 11px; }

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 17px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-action:hover { transform: translateY(-2px); background: #f05a63; }
.play-symbol { font-size: 12px; }
.action-arrow { margin-left: 10px; font-size: 16px; }
.open-note { margin: 11px 0 0; color: #96969e; font-size: 11px; }

.opening-art { position: relative; display: flex; min-height: 320px; align-items: center; justify-content: center; }
.opening-art img { display: block; width: min(100%, 270px); height: auto; border-radius: 50%; }
.art-rule { position: absolute; top: 13%; bottom: 13%; left: 4px; width: 3px; background: var(--red); }
.art-caption { position: absolute; right: 0; bottom: 15px; padding: 8px 0 0 12px; border-top: 1px solid #4b292c; color: #c7c7cc; font-family: var(--utility); font-size: 9px; letter-spacing: 1.2px; }

.catalog-section { padding: 38px 0 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.section-heading .eyebrow { margin-bottom: 6px; }
h2 { margin-bottom: 0; font-size: 24px; font-weight: 780; letter-spacing: 0; }
.section-aside { padding-bottom: 4px; color: var(--muted); font-size: 12px; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category-link {
  display: flex;
  min-height: 115px;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.category-link:hover, .category-link:focus-visible { transform: translateY(-2px); border-color: #74343a; background: #191619; }
.category-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 5px; background: #2b171a; color: var(--red-bright); }
.category-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.category-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.category-copy strong { color: var(--paper); font-size: 14px; font-weight: 750; }
.category-copy small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.category-arrow { align-self: flex-start; font-size: 15px; }

.browser-note { display: flex; align-items: center; gap: 12px; padding: 15px 0 20px; border-top: 1px solid var(--line); }
.note-mark { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border: 1px solid #49494f; border-radius: 50%; color: #d4d4d8; font-family: Georgia, serif; font-size: 13px; font-style: italic; }
.browser-note p { flex: 1; margin: 0; color: #a7a7ae; font-size: 11px; }
.browser-note a { flex: 0 0 auto; color: var(--red-bright); font-size: 11px; font-weight: 700; }
.browser-note a:hover { text-decoration: underline; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px max(32px, calc((100vw - 1320px) / 2)); border-top: 1px solid var(--line); color: #888890; font-family: var(--utility); font-size: 9px; letter-spacing: .7px; }
.footer-dot { padding: 0 7px; color: var(--red); }

@media (max-width: 900px) {
  .site-header { gap: 20px; padding: 0 24px; }
  .brand { min-width: auto; }
  .main-nav { gap: 17px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opening { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
  h1 { font-size: 60px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 70px; flex-wrap: wrap; gap: 0; padding: 12px 18px 0; }
  .brand img { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .header-action { min-height: 38px; margin-left: auto; padding: 0 10px; font-size: 11px; }
  .main-nav { order: 3; width: calc(100% + 36px); height: 44px; flex: 0 0 calc(100% + 36px); gap: 23px; margin: 10px -18px 0; padding: 0 18px; overflow-x: auto; }
  .main-nav a { flex: 0 0 auto; font-size: 12px; }
  main { width: calc(100% - 36px); }
  .opening { grid-template-columns: 1fr; gap: 7px; min-height: 0; padding: 36px 0 31px; }
  .opening-art { display: none; }
  .eyebrow { margin-bottom: 13px; font-size: 9px; }
  h1 { margin-bottom: 13px; font-size: 43px; line-height: 1.02; }
  .opening-description { max-width: 330px; margin-bottom: 18px; font-size: 14px; }
  .search-form { min-height: 47px; gap: 8px; }
  .search-form input { font-size: 12px; }
  .search-form button { min-height: 35px; padding: 0 11px; font-size: 11px; }
  .search-note { margin-bottom: 16px; font-size: 10px; }
  .primary-action { min-height: 48px; }
  .open-note { max-width: 310px; font-size: 10px; }
  .catalog-section { padding: 29px 0 30px; }
  .section-heading { align-items: start; flex-direction: column; gap: 3px; margin-bottom: 14px; }
  h2 { font-size: 21px; }
  .section-aside { font-size: 10px; }
  .category-grid { gap: 8px; }
  .category-link { min-height: 99px; gap: 9px; padding: 11px 9px; }
  .category-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .category-icon svg { width: 18px; height: 18px; }
  .category-copy strong { font-size: 12px; }
  .category-copy small { font-size: 9px; }
  .category-arrow { font-size: 12px; }
  .browser-note { align-items: start; gap: 9px; padding: 13px 0 16px; }
  .browser-note p { font-size: 10px; }
  .browser-note a { align-self: center; font-size: 10px; }
  .site-footer { flex-direction: column; gap: 6px; padding: 16px 18px; font-size: 8px; }
}

@media (max-width: 360px) {
  .header-action { padding: 0 8px; }
  .category-link { gap: 7px; padding: 9px 7px; }
  .category-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .category-copy strong { font-size: 11px; }
  .category-copy small { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
