/* Paper field. Load after 07-issue.css. */

/* Paper field. Charcoal plate rules stay above; these beat them. */

body:has(main.hero) {
  background-color: #f8f5ed;
  background-image: url("/grain.svg");
  color: #16130e;
  color-scheme: light;
}

body:has(main.hero) .site-header {
  position: relative;
  z-index: 1;
  background-color: transparent;
}

main.hero .room {
  position: relative;
  overflow: visible;
}

main.hero .silk-field {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(-1 * (clamp(5rem, 13vh, 7.6rem) + clamp(0.85rem, 2vh, 1.35rem) + clamp(0.55rem, 1.4vh, 0.85rem) + clamp(0.65rem, 2vh, 2.25rem) + 0.45rem));
  pointer-events: none;
  background-color: #f8f5ed;
  background-image: url("/grain.svg");
  background-size: 220px 220px;
  background-repeat: repeat;
  background-blend-mode: soft-light;
}

main.hero .silk-wash,
main.hero .silk {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main.hero .silk-wash {
  opacity: 0.7;
  background:
    radial-gradient(120% 80% at 78% 12%, #fbeee8 0%, transparent 58%),
    radial-gradient(90% 70% at 8% 96%, #e6dbc8 0%, transparent 62%);
}

main.hero .wall.field-fade {
  position: relative;
  z-index: 1;
  width: min(26rem, 38vw);
  max-width: 100%;
  justify-self: end;
  background-color: transparent;
}

main.hero .card {
  position: relative;
  z-index: 2;
  background-color: transparent;
}

body:has(main.hero) .page-index summary {
  color: var(--quiet);
}

body:has(main.hero) .page-index details[open] summary {
  color: var(--accent);
}

body:has(main.hero) .site-nav a.connect,
body:has(main.hero) .site-nav a.connect[aria-current="page"] {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: #16130e;
  border-bottom-color: color-mix(in srgb, #16130e 42%, transparent);
}

body:has(main.hero) .site-nav a.connect:hover,
body:has(main.hero) .site-nav a.connect:focus-visible,
body:has(main.hero) .site-nav a.connect[aria-current="page"]:hover,
body:has(main.hero) .site-nav a.connect[aria-current="page"]:focus-visible {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--accent);
}

main.hero .card .kicker {
  color: var(--quiet);
}

main.hero .card .display {
  color: #16130e;
}

main.hero .way {
  color: #16130e;
}

main.hero .way-name {
  color: #16130e;
}

main.hero .way-name::after {
  color: var(--quiet);
}

main.hero .way-line {
  color: var(--quiet);
}

main.hero .way:hover .way-line,
main.hero .way:focus-visible .way-line {
  color: #16130e;
}

main.hero .chapter-rail + .hero-ways {
  border-top-color: color-mix(in srgb, #16130e 22%, transparent);
}

main.hero .chapter-rail {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  clip-path: none;
  border-top: 0;
  border-bottom: 0;
}

main.hero .wall.field-fade img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(36rem, 64vh);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  clip-path: none;
  box-shadow: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 6%, rgba(0, 0, 0, 0.62) 16%, #000 28%, #000 72%, rgba(0, 0, 0, 0.5) 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 5%, #000 16%, #000 74%, rgba(0, 0, 0, 0.4) 88%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 6%, rgba(0, 0, 0, 0.62) 16%, #000 28%, #000 72%, rgba(0, 0, 0, 0.5) 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 5%, #000 16%, #000 74%, rgba(0, 0, 0, 0.4) 88%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (min-width: 801px) {
  main.hero .wall.field-fade {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  main.hero .card {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 800px) {
  main.hero .silk-field {
    top: calc(-1 * (clamp(3.35rem, 16vw, 7.6rem) + clamp(0.85rem, 2vh, 1.35rem) + clamp(0.55rem, 1.4vh, 0.85rem) + clamp(0.65rem, 2vh, 2.25rem) + 0.4rem));
  }

  main.hero .wall.field-fade {
    order: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.35rem;
    justify-self: stretch;
  }

  main.hero .card {
    order: 2;
  }

  main.hero .wall.field-fade img {
    width: 100%;
    max-width: 100%;
    height: min(19rem, 46vh);
    max-height: min(19rem, 46vh);
    object-fit: cover;
    object-position: center 20%;
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, #000 6%, #000 78%, transparent 98%),
      linear-gradient(90deg, transparent 0%, #000 5%, #000 90%, transparent 97%);
    mask-image:
      linear-gradient(180deg, transparent 0%, #000 6%, #000 78%, transparent 98%),
      linear-gradient(90deg, transparent 0%, #000 5%, #000 90%, transparent 97%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

@media (max-width: 720px) {
  main.hero .silk-field {
    top: calc(-1 * (clamp(3.35rem, 14vw, 4.15rem) + clamp(0.85rem, 2vh, 1.35rem) + clamp(0.55rem, 1.4vh, 0.85rem) + clamp(0.65rem, 2vh, 2.25rem) + 0.35rem));
  }
}

