@font-face {
  font-family: DM;
  src: url(assets/sans.woff2) format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Display;
  src: url(assets/serif.woff2) format("woff2");
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #281f29;
  --accent: #b84443;
  --ink: #fff9f9;
  --line: #fff2fc2e;
  --muted: #c9bdc6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font:
    16px/1.5 DM,
    sans-serif;
  background:
    radial-gradient(ellipse at 78% 23%, #492c29, transparent 49%),
    radial-gradient(ellipse at 56% 112%, #283427, transparent 60%),
    linear-gradient(135deg, #302138, #342124 59%, #34252d);
}
a,
button {
  color: inherit;
  transition:
    color 0.2s,
    background 0.2s;
}
a {
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
:focus-visible {
  outline: 3px solid #ffbbb3;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.wrap {
  width: min(92%, 1296px);
  margin-inline: auto;
}
header,
footer,
nav,
.brand,
.cta,
.controls,
.bar,
.filters,
.chat-head {
  display: flex;
  align-items: center;
}
header {
  padding: 18px 0;
}
.brand {
  font:
    800 34px/1 Georgia,
    serif;
  letter-spacing: -1.7px;
  min-height: 44px;
  color: white;
}
.brand sup {
  font-size: 13px;
  margin: -17px 0 0 3px;
}
.product {
  margin-left: 22px;
  padding-left: 22px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 14px;
}
nav {
  gap: 26px;
}
header nav,
.info header > a:last-child {
  margin-left: auto;
  font-weight: 550;
}
nav button,
nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}
footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  padding: 18px 0;
  gap: 10px 24px;
  color: var(--muted);
  justify-content: space-between;
  flex-wrap: wrap;
}
main {
  flex: 1;
}
.legal {
  line-height: 1.7;
}
.registered {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.registered a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 570px) {
  .legal {
    text-wrap: pretty;
  }
  .registered a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  footer nav {
    gap: 4px 16px;
  }
}

.banner {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  overflow: hidden;
  background: #171525;
  min-height: clamp(330px, 27vw, 400px);
  display: flex;
  align-items: center;
}
.back,
.art,
.banner:before {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}
.back {
  opacity: 0.66;
  filter: blur(24px);
  transform: scale(1.1);
}
.art {
  left: auto;
  width: 54%;
  object-position: center 13%;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.banner:before {
  content: "";
  z-index: 0;
  background: linear-gradient(90deg, #100b1acc, #100b1a80 45%, transparent 69%);
}
.story {
  position: relative;
  margin: 36px 5%;
  width: 54%;
}
#person {
  font-size: 17px;
  font-weight: 600;
  color: #e6d2c4;
}
.story h1 {
  font:
    italic clamp(44px, 4.65vw, 70px) / 1.09 Display,
    Georgia,
    serif;
  letter-spacing: -0.03em;
  color: #fff3e8;
  margin: 8px 0 14px;
}
#synopsis {
  max-width: 440px;
  color: #f1e8ed;
  text-wrap: pretty;
  line-height: 1.55;
}
.cta {
  margin-top: 26px;
  gap: 10px;
  font-weight: 650;
  background: var(--accent);
  color: white;
  border-radius: 25px;
  padding: 12px 22px;
}
.controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  border-radius: 28px;
  border: 1px solid #ffffff38;
  background: #120f1fc9;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.controls button,
.close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.controls button:before {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.controls .prev:before {
  transform: rotate(-135deg);
}
.bar {
  gap: 24px;
  margin: 30px 0 16px;
}
.bar h2 {
  font-size: 23px;
}
.filters {
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  border-radius: 24px;
  padding: 8px 17px;
  font-weight: 550;
  font-size: 14px;
  background: #ffffff13;
}
.filters [aria-pressed="true"] {
  background: var(--accent);
  color: white;
}
.cards {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.cards button {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.cards img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.cards strong {
  position: absolute;
  inset: 30% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 10px;
  background: linear-gradient(transparent, #100c16b8 62%, #0b0812f2);
  line-height: 1.25;
  font-size: clamp(14px, 1.18vw, 17px);
}
.cards span {
  font-weight: 400;
  font-size: 13px;
  margin-top: 4px;
  color: #e9e0e7;
}
.summary {
  font-size: 15px;
  color: var(--muted);
  margin: 26px 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog {
  border: 0;
  border-radius: 24px;
  width: min(490px, 92vw);
  padding: 34px;
  background: var(--paper);
  color: inherit;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #1d171a75;
  backdrop-filter: blur(4px);
}
.close {
  position: absolute;
  right: 20px;
  top: 20px;
}
.close:before,
.close:after {
  content: "";
  height: 2px;
  width: 18px;
  background: currentColor;
  transform: rotate(45deg);
  grid-area: 1/1;
}
.close:after {
  transform: rotate(-45deg);
}
h2 {
  line-height: 1.15;
  font-size: 32px;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 18px;
  margin-top: 22px;
}
dialog p,
.info p,
small {
  color: var(--muted);
  margin-top: 8px;
}
[data-contact] {
  overflow-wrap: anywhere;
}
[data-contact] a {
  text-decoration: underline;
}
.chat-head {
  gap: 12px;
  padding-right: 36px;
}
.chat-head img {
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.chat-head h2 {
  font-size: 22px;
}
#messages {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 22px 0;
}
#messages p {
  max-width: 88%;
  width: fit-content;
  padding: 12px 16px;
  color: var(--ink);
  background: #473944;
  border-radius: 18px 18px 18px 3px;
}
#messages .you {
  background: #943d42;
  color: white;
  margin-left: auto;
  border-radius: 18px 18px 3px;
}
#choices {
  display: grid;
  gap: 8px;
}
#choices button {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  color: #ffe3db;
  font-weight: 550;
}
.info main {
  flex: 1;
  width: min(86%, 680px);
  margin: 50px auto 80px;
}
.info h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
}
.info h2 {
  font-size: 24px;
  margin-top: 32px;
}
.info p {
  font-size: 17px;
}
dialog {
  border: 1px solid var(--line);
}
dialog::backdrop {
  background: #0b070bbe;
}
@media (hover: hover) {
  a:hover,
  header button:hover {
    color: #ffd2c7;
  }
  .cards button:hover img {
    transform: scale(1.04);
  }
  .filters button:hover,
  .controls button:hover,
  #choices button:hover,
  .close:hover {
    background: #ffffff24;
  }
  .cta:hover,
  .filters [aria-pressed="true"]:hover {
    background: #a13a39;
  }
}
@media (max-width: 1120px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cards strong {
    font-size: 17px;
  }
}
@media (max-width: 760px) {
  header {
    padding: 10px 0;
  }
  .brand {
    font-size: 29px;
  }
  nav {
    gap: 14px;
    font-size: 14px;
  }
  .product {
    font-size: 13px;
    margin-left: 10px;
    padding-left: 10px;
  }
  .bar {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 14px;
  }
  .bar h2 {
    font-size: 21px;
  }
  .filters {
    gap: 6px;
  }
  .filters button {
    font-size: 13px;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 11px;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .story h1 {
    font-size: 40px;
  }
}
@media (max-width: 570px) {
  .banner {
    align-items: end;
    min-height: clamp(430px, 111vw, 520px);
  }
  .art {
    inset: 0;
    width: 100%;
    mask-image: none;
    object-position: center 13%;
  }
  .banner:before {
    background: linear-gradient(transparent 23%, #110b1bcc 60%, #110b1bf5);
  }
  .story {
    width: 90%;
    margin: 0 5% 18px;
  }
  #person,
  #synopsis {
    font-size: 14px;
  }
  .story h1 {
    font-size: clamp(29px, 8.8vw, 44px);
    margin: 4px 0 9px;
  }
  .cta {
    margin-top: 17px;
    padding: 12px 16px;
    font-size: 14px;
  }
  .controls {
    bottom: 18px;
    right: 5%;
    border: none;
    background: none;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards strong {
    font-size: 16px;
  }
  footer,
  footer nav {
    font-size: 13px;
  }
  footer nav {
    flex-wrap: wrap;
  }
  dialog {
    padding: 28px 20px;
  }
  .close {
    right: 14px;
    top: 14px;
  }
  .chat-head img {
    width: 42px;
    height: 42px;
  }
  .chat-head h2 {
    font-size: 19px;
  }
}
@media (max-width: 380px) {
  .product {
    max-width: 95px;
    line-height: 1.2;
  }
  header nav {
    gap: 6px;
  }
  .filters {
    gap: 4px;
  }
  .filters button {
    padding-inline: 7px;
  }
  .cta {
    gap: 6px;
    padding-inline: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
