/* Hallmark v2 | brand: BIXTROM Enredo | theme: approved cream, plum, pink and citrus | shape: home with a shop at its front door | signature: Miso’s window and Enredo on the sill */
/* Critique: the first decision is the catalogue. Photographs and actual game artwork show what visitors can explore. */
:root {
  color-scheme: light;
  --paper: #fff6e8;
  --ink: #211321;
  --wine: #4f213e;
  --pink: #f870ac;
  --citrus: #f1fa67;
  --pink-soft: #fce2ed;
  --wine-rule: #9c6788;
  --muted: #624859;
  --display: Impact, 'Arial Black', 'Franklin Gothic Heavy', sans-serif;
  --body: system-ui, sans-serif;
  --measure: 76rem;
  --gutter: clamp(18px, 4.2vw, 64px);
  --gap: clamp(1rem, 3vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; }
h1, h2 { text-wrap: balance; }
a { color: inherit; text-underline-offset: .25em; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 4px;
}
.shell { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 5;
  inset: .5rem auto auto .5rem;
  transform: translateY(-160%);
  background: var(--citrus);
  padding: .5rem .75rem;
}
.skip:focus { transform: translateY(0); }
.mast, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem var(--gap);
}
.mast { min-height: 4.6rem; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: clamp(116px, 14vw, 170px); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.7rem, 2vw, 1.5rem); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .91rem; font-weight: 740; }
.nav a:hover { text-decoration-thickness: 2px; }
.nav .nav-shop { font-weight: 850; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .6rem 1.06rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--citrus);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 850;
  text-decoration: none;
}
.button:hover { background: var(--pink); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button--secondary { background: var(--paper); }
.footer { padding-block: 1.1rem; border-top: 2px solid var(--ink); }
.section { padding-block: clamp(2rem, 5.2vw, 4.5rem); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.card { min-width: 0; border: 2px solid var(--ink); padding: clamp(.9rem, 2.3vw, 1.8rem); background: var(--paper); }
.card h3 { font-size: 1.35rem; line-height: 1.1; }
.card p, .card li { max-width: 45ch; }
.card :where(p, ol, ul, details) { margin-top: .65rem; }
.card :where(ol, ul) { padding-inline-start: 1.35rem; }
.card li + li { margin-top: .38rem; }
.program :where(a, summary) { font-weight: 730; }
.program summary { cursor: pointer; }
.page-intro h1, .section h2 {
  font: 900 clamp(2.15rem, 5.65vw, 4.55rem)/.96 var(--display);
  letter-spacing: -.018em;
  text-transform: uppercase;
}
.page-intro p { max-width: 50ch; margin-top: .85rem; font-size: 1.13rem; }
.section > :where(p, .split, .button) { margin-top: 1rem; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--gap);
  align-items: center;
  padding-block: clamp(2.05rem, 5vw, 4.45rem);
}
.home-hero h1 {
  color: var(--wine);
  font: 900 clamp(3.25rem, 7.55vw, 7.5rem)/.91 var(--display);
  letter-spacing: -.034em;
  text-transform: uppercase;
}
.home-hero h1 span { display: block; }
.home-hero p {
  max-width: 36ch;
  margin-top: 1.15rem;
  font-size: clamp(1.07rem, 1.75vw, 1.31rem);
}
.home-hero .button, .home-game .button, .home-studio .button { margin-top: 1.32rem; }
.home-hero-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
  padding: clamp(.9rem, 3vw, 2.25rem) clamp(2.2rem, 6vw, 5.35rem) clamp(1.1rem, 3.25vw, 2.7rem);
  background: var(--pink);
  border: 2px solid var(--ink);
  box-shadow: .37rem .4rem 0 var(--wine);
}
.home-hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 10% 9% auto auto;
  width: 65%;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--citrus);
  content: '';
}
.home-hero-window {
  overflow: clip;
  aspect-ratio: 1.05;
  border: 3px solid var(--wine);
  border-radius: 48% 48% 10px 10px / 48% 48% 10px 10px;
  color: var(--paper);
  background: var(--wine);
  box-shadow: 5px 6px 0 var(--wine);
}
.home-hero-window img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.home-hero-mascot {
  position: absolute;
  bottom: 3%;
  right: 4%;
  width: clamp(4.2rem, 11.1vw, 9.6rem);
  transform: rotate(10deg);
  filter: drop-shadow(1px 4px 0 var(--wine));
}
.home-catalog {
  background: var(--pink-soft);
  border-block: 2px solid var(--ink);
}
.home-catalog .section { padding-block: clamp(1.65rem, 4vw, 3rem); }
.home-aisles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); margin-top: 1.25rem; }
.home-aisle {
  display: grid;
  align-content: space-between;
  min-height: 8rem;
  padding: clamp(.62rem, 1.8vw, 1.35rem);
  background: var(--paper);
  text-decoration: none;
}
.home-aisle + .home-aisle { border-inline-start: 1px solid var(--ink); }
.home-aisle:hover { background: var(--citrus); }
.home-aisle:focus-visible { position: relative; z-index: 1; outline-offset: -4px; }
.home-aisle h3 {
  color: var(--wine);
  font: 900 clamp(1.15rem, 2.5vw, 2.15rem)/1.03 var(--display);
  text-transform: uppercase;
}
.home-aisle p { margin-top: .75rem; font-size: .87rem; font-weight: 650; }
.home-plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); gap: var(--gap); align-items: center; }
.home-plans p, .home-studio p, .home-game p { max-width: 42ch; margin-top: .72rem; }
.home-plan-links { display: grid; border-block: 1px solid var(--wine-rule); }
.home-plan-links a { display: flex; align-items: center; min-height: 48px; padding: .4rem .15rem; font-weight: 790; }
.home-plan-links a + a { border-top: 1px solid var(--wine-rule); }
.home-plan-links a:hover { text-decoration-thickness: 2px; }
.home-game { border-block: 2px solid var(--ink); color: var(--paper); background: var(--wine); }
.home-game-layout, .home-studio { display: grid; align-items: center; gap: var(--gap); }
.home-game-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
.home-game-art { border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--pink); }
.home-game-art img { width: 100%; }
.home-game :focus-visible { outline-color: var(--citrus); }
.home-text-link { display: inline-flex; align-items: center; min-height: 44px; margin: .5rem 0 0 .6rem; font-weight: 760; }
.home-studio { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.home-studio-art {
  display: grid;
  place-items: center;
  overflow: clip;
  padding: clamp(1.35rem, 3.8vw, 3.1rem);
  background: var(--pink);
  border: 2px solid var(--ink);
}
.home-studio-art img {
  width: min(53%, 13rem);
  border: 1px solid var(--ink);
  box-shadow: 5px 6px 0 var(--wine);
  transform: rotate(-7deg);
}
@media (max-width: 740px) {
  .mast { min-height: 0; padding-top: .38rem; }
  .nav { column-gap: .78rem; }
  .home-hero, .home-plans, .home-studio, .home-game-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .home-hero { gap: 1.55rem; }
  .home-hero h1 { font-size: clamp(3rem, 12.15vw, 5.8rem); }
  .home-hero-visual { padding-inline: clamp(2.15rem, 10vw, 5rem); }
  .home-aisles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-aisle { min-height: 6.6rem; }
  .home-aisle:nth-child(odd) { border-inline-start: none; }
  .home-aisle:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .home-aisle h3 { font-size: clamp(1.1rem, 4.8vw, 2rem); }
  .home-game-art { order: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
}
