/* Homepage layout. The site header, cart, and footer use their existing styles. */
#main.homepage {
  --ink: #09090b;
  --paper: #f1e9dc;
  --muted: #c1b9ae;
  --red: #ff5744;
  --line: #4a2928;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}

.homepage img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.homepage a {
  color: inherit;
  text-decoration: none;
}

.homepage a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

.homepage #watch-read { scroll-margin-top: 22px; }

.homepage .home-shell {
  width: min(1280px,calc(100% - 96px));
  margin-inline: auto;
}

.homepage .home-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  min-height: 46px;
  border: 1px solid transparent;
  font: 700 14px/1.35 'Courier New',monospace;
}

.homepage .home-action.primary {
  background: #a72e24;
  border-color: #e96b56;
  color: #fff5ed;
}

.homepage .home-action.primary:hover {
  background: #bf3f30;
}

.homepage .home-action.outline {
  border-color: #a46659;
  background: #140e11b0;
  color: var(--paper);
}

.homepage .home-action.outline:hover {
  background: #3a1d1d;
}

.homepage .home-action.text-link {
  color: #f3ad99;
  justify-content: flex-start;
  min-height: 44px;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width:850px) {
  .homepage .home-shell {
    width: calc(100% - 48px);
  }
}

@media (max-width:570px) {
  .homepage .home-shell {
    width: calc(100% - 36px);
  }
}

.homepage .studio-hero {
  min-height: clamp(470px,45vw,635px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0b090b;
  border-bottom: 1px solid var(--line);
}

.homepage .studio-hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 24%;
  overflow: hidden;
  background: #110b0c;
}

.homepage .studio-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 55%;
  filter: saturate(.55) brightness(1.28) contrast(1.05);
}

.homepage .studio-hero-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#0b090b 0%,#0b090bba 25%,#0b090b22 69%,#0b090b44),linear-gradient(0deg,#0b090bd9,transparent 39%,transparent 62%,#0b090b66),radial-gradient(ellipse at 85% 42%,#a2382d50,transparent 64%);
  pointer-events: none;
}

.homepage .signal-ring {
  position: absolute;
  right: 14%;
  top: 13%;
  width: clamp(63px,10vw,145px);
  aspect-ratio: 1;
  border: 1px solid #cf6e5a65;
  border-radius: 50%;
  box-shadow: 0 0 45px #e24e4144,inset 0 0 12px #dc6d5c44;
  opacity: .88;
}

.homepage .studio-hero-inner {
  padding: 60px 0 63px;
}

.homepage .studio-hero h1 {
  font: 700 clamp(51px,6.4vw,97px)/.98 Georgia,'Times New Roman',serif;
  letter-spacing: -.05em;
  margin: 0 0 20px;
  text-shadow: 0 2px 24px #080707;
}

.homepage .studio-hero h1 em {
  font-weight: 400;
  font-style: italic;
  letter-spacing: inherit;
  color: #f0a08d;
  text-shadow: inherit;
}

.homepage .studio-hero p:not(.overline) {
  color: #e6d8d0;
  font-size: 18px;
  margin: 0 0 24px;
  max-width: 34ch;
}

.homepage .studio-hero .overline {
  color: #f0b5a2;
}

.homepage .doors {
  padding: 44px 0 55px;
}

.homepage .doors:focus {
  outline: none;
}

.homepage .doors-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 22px;
}

.homepage .doors-head h2 {
  font: 700 clamp(31px,4vw,48px)/1.05 Georgia,serif;
  letter-spacing: -.04em;
  margin: 0;
}

.homepage .doors-head p {
  color: #caafa0;
  margin: 0;
  font: 14px/1.4 'Courier New',monospace;
}

.homepage .door-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 26px;
}

.homepage .door {
  background: #151013;
  border: 1px solid #50302b;
  min-width: 0;
}

.homepage .door-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.15;
  background: #1e1718;
  border-bottom: 1px solid #51312c;
}

.homepage .door-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.homepage .tales-visual img {
  object-position: 50% 40%;
}

.homepage .door-copy {
  padding: 19px 20px 12px;
}

.homepage .door-copy .overline {
  font-size: 12px;
  margin: 0 0 8px;
}

.homepage .door h3 {
  font: 700 29px/1.1 Georgia,serif;
  letter-spacing: -.03em;
  margin: 0 0 9px;
}

.homepage .door p:not(.overline) {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 8px;
}

.homepage .door-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.homepage .case-visual {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: radial-gradient(ellipse at 60% 10%,#482520,#201514 58%,#191012);
}

.homepage .case-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-9deg) translate(-12%,3%);
  width: 50%;
  height: 120%;
  margin-top: 9%;
  padding: 15px 16px 20px;
  background: linear-gradient(130deg,#948079,#5a423b);
  border: 1px solid #ebaaa142;
  box-shadow: 14px 13px 0 #321e1d,0 12px 24px #080606ab;
  color: #271712;
}

.homepage .case-paper>span {
  font: 700 clamp(7px,1vw,11px) 'Courier New',monospace;
  letter-spacing: .08em;
}

.homepage .case-paper>strong {
  font: 900 clamp(20px,3.3vw,46px)/.88 Georgia,serif;
  margin: 8px 0;
}

.homepage .case-paper i {
  width: 75%;
  display: block;
  border-top: 1px solid #412c26;
  margin-top: 5px;
}

.homepage .case-paper i:last-child {
  width: 58%;
}

.homepage .case-light {
  position: absolute;
  right: -2%;
  bottom: 18%;
  width: 44%;
  height: 1%;
  transform: rotate(-28deg);
  box-shadow: 0 0 25px 17px #e98c6060;
  background: #fbcd9b7a;
  filter: blur(6px);
}

@media (max-width:850px) {
  .homepage .studio-hero {
    min-height: 530px;
  }

  .homepage .studio-hero-visual {
    left: 9%;
  }

  .homepage .door-grid {
    gap: 14px;
  }

  .homepage .door-copy {
    padding: 15px 14px 9px;
  }
}

@media (max-width:620px) {
  .homepage .studio-hero {
    min-height: 0;
  }

  .homepage .studio-hero-visual {
    inset: 0 0 auto;
    height: 78%;
  }

  .homepage .studio-hero-image {
    object-position: 59% 61%;
  }

  .homepage .studio-hero-visual:after {
    background: linear-gradient(0deg,#0b090b 1%,#0b090ba0 40%,transparent 92%),linear-gradient(90deg,#0b090b66,transparent 76%);
  }

  .homepage .studio-hero-inner {
    padding: 127px 0 32px;
  }

  .homepage .studio-hero h1 {
    font-size: clamp(39px,9.9vw,58px);
    margin-bottom: 14px;
  }

  .homepage .studio-hero p:not(.overline) {
    font-size: 16px;
    margin: 0 0 17px;
  }

  .homepage .studio-hero .overline {
    font-size: 11px;
    letter-spacing: .1em;
    margin-bottom: 8px;
    max-width: 34ch;
  }

  .homepage .signal-ring {
    top: 11%;
    right: 13%;
    width: 70px;
  }

  .homepage .doors {
    padding: 28px 0 34px;
  }

  .homepage .doors-head {
    display: block;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .homepage .doors-head h2 {
    font-size: 31px;
    margin-bottom: 8px;
  }

  .homepage .doors-head p {
    font-size: 12px;
  }

  .homepage .door-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .homepage .door {
    display: grid;
    grid-template-columns: minmax(95px,.55fr) minmax(0,1fr);
  }

  .homepage .door-image {
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid #51312c;
  }

  .homepage .door-image img {
    position: absolute;
    inset: 0;
  }

  .homepage .door-copy {
    padding: 12px 12px 4px;
  }

  .homepage .door-copy .overline {
    font-size: 10px;
    letter-spacing: .07em;
    margin-bottom: 5px;
  }

  .homepage .door h3 {
    font-size: 23px;
    margin-bottom: 6px;
  }

  .homepage .door p:not(.overline) {
    font-size: 14px;
    line-height: 1.45;
  }

  .homepage .door .home-action {
    font-size: 12px;
    min-height: 44px;
  }

  .homepage .case-paper {
    width: 77%;
    height: auto;
    min-height: 85px;
    margin: 0;
    padding: 7px 8px;
    box-shadow: 6px 7px 0 #321e1d,0 12px 24px #080606ab;
  }

  .homepage .case-paper strong {
    font-size: 22px;
  }
}

.homepage .studio-hero p.studio-identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 12px;
  max-width: none;
  margin: 0 0 19px;
  font-size: 15px;
  line-height: 1.4;
  color: #f5e0d9;
}

.homepage .studio-hero .studio-identity strong {
  font-weight: 700;
  font-size: 17px;
}

.homepage .studio-hero .studio-identity span {
  color: #e4b19f;
  border-left: 1px solid #a96450;
  padding-left: 12px;
  font: 14px/1.4 'Courier New',monospace;
}

.homepage .studio-hero p:not(.studio-identity) {
  max-width: 43ch;
}

.homepage .doors .door-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.homepage .door-grid .door {
  display: flex;
  flex-direction: column;
}

.homepage .doors .door-copy {
  flex: 1;
}

.homepage .doors .door-copy>.home-action,
.homepage .doors .door-links {
  margin-top: auto;
}

.homepage .doors .door-copy p {
  margin-bottom: 9px;
}

.homepage .doors .door-copy h3 {
  font-size: 26px;
}

.homepage .doors .door-image {
  flex-shrink: 0;
}

.homepage .doors .door-links .home-action {
  min-height: 44px;
}

@media (max-width:620px) {
  .homepage .studio-hero-inner {
    padding-top: 96px;
    padding-bottom: 27px;
  }

  .homepage .studio-hero p.studio-identity {
    gap: 3px 9px;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .homepage .studio-hero .studio-identity strong {
    font-size: 16px;
  }

  .homepage .studio-hero .studio-identity span {
    font-size: 12px;
    padding-left: 9px;
  }

  .homepage .studio-hero p:not(.studio-identity) {
    max-width: 42ch;
  }

  .homepage .studio-hero-visual {
    height: 82%;
  }

  .homepage .studio-hero-visual:after {
    background: linear-gradient(0deg,#0b090b 1%,#0b090bb0 46%,transparent 96%),linear-gradient(90deg,#0b090b66,transparent 76%);
  }

  .homepage .door-grid .door {
    display: grid;
  }

  .homepage .doors .door-copy h3 {
    font-size: 22px;
  }

  .homepage .doors .door-copy p {
    font-size: 15px;
  }

  .homepage .doors-head h2 {
    margin-bottom: 0;
  }

  .homepage .door-grid .door-copy>.home-action,
  .homepage .door-grid .door-links {
    margin-top: 0;
  }
}

@media (max-width:350px) {
  .homepage .studio-hero .studio-identity span {
    border-left: 0;
    padding-left: 0;
    flex-basis: 100%;
  }
}

.homepage .home-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.homepage .home-extra {
  display: grid;
  grid-template-columns: 100px minmax(0,1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: linear-gradient(116deg,#201416,#141014 68%);
  border: 1px solid #50302b;
}

.homepage .home-extra .extra-art {
  min-width: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #120e12;
}

.homepage .home-extra .extra-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.homepage .home-extra h3 {
  font: 700 21px/1.18 Georgia,serif;
  margin: 0 0 3px;
}

.homepage .home-extra p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.homepage .home-extra .home-action {
  min-height: 44px;
  padding: 5px 0;
  line-height: 1.2;
}

.homepage .home-extra .community-emblem {
  background: repeating-linear-gradient(0deg,#641b2514 0,#641b2514 1px,transparent 1px,transparent 4px),radial-gradient(circle,#421a20,#160d12 70%);
}

.homepage .community-emblem .eclipse-mark {
  width: 45px;
  height: 45px;
  transform: none;
  box-shadow: 0 0 0 5px #97252126,0 0 29px #df3b2982;
}

@media (max-width:620px) {
  .homepage .home-extras {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 13px;
  }

  .homepage .home-extra {
    grid-template-columns: 74px minmax(0,1fr);
    gap: 12px;
    padding: 8px;
  }

  .homepage .home-extra h3 {
    font-size: 18px;
  }

  .homepage .home-extra p {
    font-size: 14px;
  }

  .homepage .home-extra .home-action {
    font-size: 12px;
  }

  .homepage .community-emblem .eclipse-mark {
    width: 32px;
    height: 32px;
  }
}

.homepage .home-extra .extra-art img {
  height: auto;
  object-fit: contain;
}

.homepage .home-extra a:focus-visible {
  outline-offset: 2px;
}

.homepage .studio-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.homepage .studio-hero-visual picture,
.homepage .tales-visual picture {
  display: block;
  height: 100%;
}

.homepage #watch-read:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.homepage .door .home-action.daily-link {
  color: var(--muted);
}

.homepage .door .home-action.daily-link:hover {
  color: var(--red);
}

.homepage .merch-extra .extra-art {
  isolation: isolate;
  background: radial-gradient(ellipse at 52% 44%, #a19591, #746664 68%, #4e3c40);
}

.homepage .merch-extra .extra-art img {
  mix-blend-mode: darken;
}

@media (max-width: 620px) {
  .homepage .studio-hero-visual {
    height: clamp(160px, 50.8vw, 285px);
  }

  .homepage .studio-hero-image {
    object-position: center;
  }

  .homepage .studio-hero-visual::after {
    background: linear-gradient(180deg, #0b090b0a 0%, #0b090b12 26%, #0b090b7d 59%, #0b090b 100%),
      linear-gradient(90deg, #0b090b42, transparent 65%);
  }

  .homepage .studio-hero-visual .signal-ring {
    opacity: .52;
  }

  .homepage .studio-hero-inner {
    padding-top: 116px;
  }

  .homepage .studio-paths {
    display: grid;
    grid-template-columns: 1fr 1fr 1.12fr;
    gap: 6px;
  }

  .homepage .studio-paths .home-action {
    min-height: 44px;
    padding-inline: 4px;
    font: 700 14px/1.25 Arial, Helvetica, sans-serif;
    letter-spacing: normal;
    text-align: center;
  }
}

@media (max-width: 350px) {
  .homepage .studio-hero-inner {
    padding-top: 100px;
  }

  .homepage .studio-hero h1 {
    font-size: clamp(29px, 11.2vw, 37px);
  }

  .homepage .studio-paths .home-action {
    padding-inline: 2px;
    font-size: 13px;
  }
}
