@font-face {
  font-family: Studio;
  src: url("assets/fonts/font-4.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Studio;
  src: url("assets/fonts/font-5.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font: 1.125rem/1.45 Studio, system-ui, sans-serif;
  background: #111323;
  color: #fff8f1;
  --peach: #ffc997;
  --art: url("assets/homepage-reference.png");
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
h2, h3 { font-weight: 500; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; }
.skip { position: fixed; z-index: 2; inset: .75rem auto auto .75rem; transform: translateY(-200%); padding: .5rem 1rem; color: #111323; background: var(--peach); }
.skip:focus { transform: none; }
.cover { position: relative; max-width: 110rem; margin-inline: auto; }
.hotspot { text-decoration: none; }
.destinations section { display: none; max-width: 62rem; margin: auto; padding: 2.5rem 1.25rem 4rem; }
.destinations section:target { display: block; }
.destinations h2, dialog h2 { margin-bottom: .6rem; }
.destinations a, dialog a { color: var(--peach); }
.destinations p { margin-bottom: 1rem; }
dialog { width: min(32rem, calc(100% - 2rem)); padding: 1.5rem; background: #202039; color: inherit; border: 1px solid #856b94; border-radius: .5rem; }
dialog::backdrop { background: #070712bb; }
dialog input { display: block; width: 100%; padding: .45rem; margin-top: .3rem; }
.close { float: right; border: 1px solid #856b94; background: #33304b; color: inherit; border-radius: .3rem; }
@media (min-width: 55rem) {
  .cover { aspect-ratio: 1216 / 1293; background: var(--art) center / 100% 100% no-repeat; }
  .hotspot { position: absolute; z-index: 1; border-radius: .3rem; background: none; border: 0; padding: 0; }
  .hotspot:hover { background-color: #ffcf9818; box-shadow: 0 0 0 2px #ffcf9899; }
  .brand > span, nav .hotspot > span, .intro, .tile-copy, .closing p {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .brand { left: 5.6%; top: .2%; width: 27%; height: 9.2%; }
  nav .hotspot { top: 2.4%; height: 3.3%; }
  .search { left: 89.6%; width: 3.6%; }
  .cart { left: 93.8%; width: 3.7%; }
  .creations { position: absolute; top: 46.8%; left: 0; width: 100%; height: 31%; }
  .tile { top: 0; width: 33.5%; height: 100%; clip-path: polygon(29% 8%, 100% 0, 73% 95%, 0 100%); }
  .tile:hover, .tile:focus-visible { background: #ffcf9833; }
  .tile-books { left: -1.3%; }
  .tile-art { left: 22.6%; }
  .tile-apps { left: 46.2%; }
  .tile-shop { left: 69%; }
}
@media (max-width: 54.999rem) {
  .header { padding: 1rem clamp(1rem, 4vw, 2rem); background: #10101f; }
  .brand { display: flex; align-items: center; gap: .75rem; font-size: 1.3rem; line-height: 1.12; font-weight: 500; width: fit-content; }
  .brand::before { content: ""; width: 3.2rem; height: 2.6rem; background: var(--art) 6.7% .4% / 1035% auto no-repeat; }
  .brand-subtitle { display: block; margin-top: .3rem; text-transform: uppercase; letter-spacing: .12em; font-size: .69rem; font-weight: 400; }
  nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .8rem; font-size: .9rem; }
  nav .hotspot { padding-block: .25rem; }
  .search { border: 0; background: none; color: inherit; padding-inline: 0; }
  nav a:hover, .search:hover, .home { color: var(--peach); }
  .hero { padding: 1.7rem 0 0; background: radial-gradient(ellipse at 12% 7%, #372449, #141629 58%); }
  .intro { margin-inline: clamp(1rem, 4vw, 2rem); }
  .eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }
  h1 { margin-block: .6rem .9rem; max-width: 17ch; font: 400 clamp(2.15rem, 7.6vw, 4.1rem)/.98 system-ui, sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
  .intro h1 strong, .intro h1 em { font-weight: 500; }
  .intro h1 em { display: inline-block; color: var(--peach); }
  .summary { max-width: 39ch; }
  .hero-photo { aspect-ratio: 2.09; background: var(--art) right 12.5% / 160% auto no-repeat; }
  .creations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: .8rem clamp(1rem, 4vw, 2rem) 1.2rem; }
  .tile { overflow: hidden; border: 1px solid #846784; border-radius: .3rem; background: #25213c; }
  .tile:hover h2 { color: var(--peach); }
  .tile-image { aspect-ratio: 1.38; background-image: var(--art); background-repeat: no-repeat; background-size: 505% auto; background-position: var(--crop) 57.7%; }
  .tile-books { --crop: 9%; }
  .tile-art { --crop: 37%; }
  .tile-apps { --crop: 67%; }
  .tile-shop { --crop: 98%; }
  .tile-copy { padding: .7rem; }
  .tile h2 { font-size: 1.15rem; line-height: 1.05; }
  .tile p { margin-top: .45rem; font-size: .9rem; }
  .closing { min-height: 9rem; display: flex; align-items: end; padding: 1.15rem; background: linear-gradient(transparent, #0e1329e0), var(--art) left bottom / 170% auto; }
  .closing p { font-size: .91rem; text-transform: uppercase; letter-spacing: .11em; }
}

.inner-header, .page-content, .inner-footer { width: min(68rem, calc(100% - 2rem)); margin-inline: auto; }
.inner-header, .inner-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .7rem 2rem; padding-block: 1rem; }
.inner-header { border-bottom: 1px solid #51435e; }
.inner-header nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0; }
.inner-header a, .inner-footer a { text-decoration: none; }
.inner-header a:hover, .inner-footer a:hover { text-decoration: underline; }
.inner-header a[aria-current] { color: var(--peach); }
.inner-brand { font-size: 1.4rem; font-weight: 500; }
.page-content { min-height: 55vh; padding-block: clamp(2.5rem, 6vw, 5rem); }
.page-content h1 { margin: 0 0 1rem; max-width: 26ch; font: 500 clamp(2.25rem, 6vw, 4rem)/1.06 Studio, sans-serif; text-transform: none; }
.page-content p { margin-block: .65rem 1rem; max-width: 68ch; }
.page-content a { color: var(--peach); text-underline-offset: .2em; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin-block: 1.75rem; }
.catalog article, .feature { padding: 1.25rem; background: #24223b; border: 1px solid #51435e; border-radius: .4rem; }
.ordering-catalog > section { min-width: 0; }
.ordering-catalog h2 { margin-bottom: .6rem; }
.ordering-catalog lulu-buy-button { display: block; width: 100%; }
.product-type { font-size: .9rem; color: #dbcbe7; }
.specs div { display: flex; gap: .5rem; }
.specs dt { font-weight: bold; }
.specs dd { margin: 0; }
.page-content .action { display: inline-block; border-radius: .3rem; padding: .55rem .85rem; background: var(--peach); color: #111323; font-weight: 500; text-decoration: none; }
.inner-footer { border-top: 1px solid #51435e; }
.footer-links, .support-content nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.support-content section { margin-block: 1.5rem; }
.support-content details { padding: .5rem 0; }
.support-content summary { cursor: pointer; }
.support-content iframe { border: 0; max-width: 100%; }
.support-content fieldset { border: 1px solid #51435e; border-radius: .4rem; padding: 1rem; }
.support-content form { max-width: 38rem; }
.support-content label { display: block; margin-top: .8rem; }
.support-content input, .support-content select, .support-content textarea {
  width: 100%;
  font: inherit;
  padding: .4rem .6rem;
  border: 1px solid #856b94;
  border-radius: .25rem;
}
.support-content button { border: 0; border-radius: .3rem; padding: .55rem .85rem; background: var(--peach); color: #111323; }
@media (min-width: 55rem) {
  .cover { container-type: inline-size; }
  .cover nav::before {
    content: ""; position: absolute; top: 1.5%; left: 35.8%; width: 53.4%; height: 4.4%;
    background: linear-gradient(90deg, #111221, #161526 53%, #101221);
  }
}

@media (min-width: 55rem) {
  .creations {
    top: 46.7%;
    height: 31.15%;
    background: linear-gradient(155deg, #171429, #191e3a 64%, #382349);
  }
  .creations .tile {
    display: flex;
    flex-direction: column;
    width: 32%;
    height: 99%;
    border: 0;
    border-radius: 0;
    background: var(--edge);
    clip-path: polygon(28% 7%, 100% 0, 73% 95%, 0 100%);
  }
  .creations .tile::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    clip-path: inherit;
    background: linear-gradient(145deg, #171831, var(--panel));
  }
  .creations .tile:hover, .creations .tile:focus-visible { background: var(--peach); }
  .creations .tile:focus-visible .tile-copy h2, .creations .tile:hover .tile-copy h2 { color: var(--peach); }
  .creations .tile-image {
    height: 56%;
    background: linear-gradient(transparent 69%, #171831 100%), var(--art) var(--crop) 57% / 460% auto no-repeat;
  }
  .creations .tile-copy {
    position: static;
    width: 59%;
    height: auto;
    margin: -1.1cqw 0 0 16%;
    padding: .2cqw 0 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  .tile-copy h2 { max-width: 13ch; font-size: 2.1cqw; line-height: .98; text-transform: uppercase; }
  .tile-copy p { margin-top: .8cqw; font-size: 1.3cqw; line-height: 1.23; }
  .creations .tile-apps { left: -.6%; --crop: 65%; --edge: #a4b8d2; --panel: #102c40; }
  .creations .tile-art { left: 22.6%; --crop: 37%; --edge: #deb2ca; --panel: #352641; }
  .creations .tile-books { left: 46%; --crop: 9%; --edge: #f0cca4; --panel: #392443; }
  .creations .tile-shop { left: 69.2%; --crop: 98%; --edge: #ecc0a0; --panel: #29233b; }
}

.nav-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
@media (min-width: 55rem) {
  .cover .nav-links {
    position: absolute;
    z-index: 1;
    inset: 2.4% 11.6% auto 36.4%;
    height: 3.4%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: .5cqw;
  }
  .cover .nav-links .hotspot {
    position: relative;
    display: grid;
    place-items: center;
    padding: .4em .15em;
    font: 500 1.4cqw Studio, sans-serif;
    white-space: nowrap;
  }
  .cover .nav-links .hotspot > span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
  }
}

@media (min-width: 55rem) {
  .cover .hero::after {
    content: "";
    position: absolute;
    top: 37.6%;
    left: 4.9%;
    width: 23.7%;
    height: 4%;
    background: linear-gradient(110deg, #17192a, #101323 68%, #151728);
    border-radius: .45cqw;
  }
}
