.representation {
  --value-gold: #dfc69e;
  --value-gap: clamp(1rem, 2.25vw, 2.75rem);
  background: #080808;
  color: var(--paper);
  word-break: keep-all;
  scroll-margin-top: var(--header-height);
}
.value-overview {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(3.5rem, 7vw, 8rem) var(--gutter);
  border-top: 1px solid #312d28;
}
.value-overview-inner, .value-details {
  width: 100%;
  max-width: 92rem;
  margin-inline: auto;
}
#value-title {
  margin: 0 0 clamp(1.8rem, 3.1vw, 3.65rem);
  font-size: clamp(3.35rem, 7.6vw, 8.75rem);
  font-weight: 480;
  line-height: .94;
  letter-spacing: -.075em;
}
#value-title span { color: var(--value-gold); }
.value-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--value-gap);
}
.value-link {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: clamp(.9rem, 1.55vw, 1.75rem);
  border-radius: .4rem;
  text-align: center;
}
.value-disc, .value-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #302d2b;
}
.value-disc { position: relative; overflow: hidden; }
.value-disc img, .value-art { height: auto; object-fit: cover; }
.value-disc img { display: block; width: 100%; }
.value-disc::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid #fff1;
  border-radius: inherit;
  pointer-events: none;
}
.value-caption {
  font-size: clamp(1rem, 1.45vw, 1.62rem);
  font-weight: 480;
  line-height: 1.42;
  letter-spacing: -.04em;
}
.value-link:is(:hover, :focus-visible) .value-caption { color: var(--value-gold); }
.value-link:is(:hover, :focus-visible) .value-disc::after { border-color: var(--value-gold); }
.value-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 4vw, 5rem);
  width: calc(100% - 2 * var(--gutter));
  border-top: 1px solid #3a352f;
}
.value-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 5rem);
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(3rem, 6vw, 7rem);
  scroll-margin-top: var(--header-height);
}
.value-chapter + .value-chapter { border-top: 1px solid #34312c; }
.value-chapter:focus { outline: none; }
.value-copy { max-width: 38rem; }
.value-topic { color: var(--value-gold); font-size: clamp(.9rem, 1.15vw, 1.15rem); font-weight: 570; }
.value-topic a {
  margin-right: .6rem;
  padding-right: .65rem;
  border-right: 1px solid #645746;
  letter-spacing: .045em;
}
.value-topic a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
.value-copy h3 {
  margin: 1.05rem 0 1.35rem;
  font-size: clamp(1.95rem, 3.05vw, 3.8rem);
  font-weight: 515;
  line-height: 1.26;
  letter-spacing: -.055em;
}
.value-copy h3 ~ p { color: #cbc7bf; font-size: clamp(1rem, 1.22vw, 1.22rem); line-height: 1.75; }
.value-copy p + p { margin-top: .9em; }
.value-actions { display: flex; align-items: center; gap: clamp(1.2rem, 2.1vw, 2rem); flex-wrap: wrap; margin-top: 1.5rem; }
.value-actions a { display: inline-flex; min-height: 44px; align-items: center; gap: .7rem; }
.value-actions a:first-child { color: var(--value-gold); border-bottom: 1px solid #82705b; font-weight: 550; }
.value-actions a:last-child { color: #c0bab2; font-size: .88rem; }
.value-actions a:is(:hover, :focus-visible) { color: #fff; }
#guide-open, .guide-inline > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid #7d6e59;
  border-radius: .4rem;
  background: transparent;
  color: #ebd7b7;
  cursor: pointer;
}
#guide-open:is(:hover, :focus-visible), .guide-inline > summary:hover { background: #28231c; }
.guide-inline { margin-top: 1rem; }
.guide-inline > .guide-reader { margin-top: 1rem; }
.guide-inline .guide-sheet + .guide-sheet { margin-top: 1.5rem; }
html:has(.guide-dialog[open]) { overflow: hidden; }
.guide-dialog {
  width: min(44rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 1px solid #675b4a;
  border-radius: .8rem;
  overflow: hidden;
  background: #171615;
  color: var(--paper);
}
.guide-dialog::backdrop { background: #000c; }
.guide-reader { --reader-gold: #dfc69e; background: #171615; color: var(--paper); }
.guide-dialog .guide-reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(53rem, calc(100dvh - 1.7rem));
}
.guide-heading, .guide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem clamp(.85rem, 3vw, 1.6rem);
}
.guide-heading { border-bottom: 1px solid #3e3933; }
.guide-heading h4 { margin: 0; font-size: clamp(1rem, 3vw, 1.25rem); font-weight: 580; line-height: 1.4; }
.guide-range { margin-top: .2rem; color: #c9bdab; font-size: .85rem; line-height: 1.4; }
.guide-reader button {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid #655c4f;
  border-radius: .4rem;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.guide-reader button:is(:hover, :focus-visible):not([aria-disabled="true"]), .guide-reader button[aria-pressed="true"] { border-color: var(--reader-gold); color: var(--reader-gold); }
.guide-reader .guide-close { border-color: transparent; font-size: 1.6rem; line-height: 1; }
.guide-viewport { padding: .9rem; }
.guide-dialog .guide-viewport { min-width: 0; overflow: auto; overscroll-behavior: contain; }
.guide-viewport:focus-visible { outline-offset: -2px; }
.guide-sheet { width: min(100%, 29rem); margin: 0 auto; }
.guide-sheet figcaption { margin: 0 0 .75rem; font-size: .9rem; line-height: 1.5; color: #d6cbbd; }
.guide-sheet img { display: block; width: 100%; height: auto; }
.guide-reader.is-zoomed .guide-sheet { width: max(100%, 48rem); }
.guide-controls { border-top: 1px solid #3e3933; }
.guide-pagination { display: flex; align-items: center; gap: .45rem; }
.guide-count { min-width: 4.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.guide-reader button[aria-disabled="true"] { color: #8f8a84; border-color: #49443e; cursor: default; }
.value-art { max-width: 29rem; justify-self: end; }
.value-rail {
  position: sticky;
  top: calc(50svh + var(--header-height) / 2 - 5.5rem);
  align-self: start;
  display: grid;
  justify-items: end;
  margin-top: max(2rem, calc((100svh - var(--header-height)) / 2 - 5.5rem));
}
.value-rail a { display: flex; align-items: center; gap: .65rem; min-height: 44px; color: #b2aca5; font-size: .94rem; }
.value-rail a::after { width: .42rem; height: .42rem; content: ""; border: 1px solid currentColor; border-radius: 50%; }
.value-rail a:is(:hover, :focus-visible, [aria-current]) { color: var(--value-gold); }
.value-rail a[aria-current]::after { background: currentColor; }

@media (max-width: 64rem) {
  .value-details { display: block; }
  .value-rail { display: none; }
}
@media (max-width: 48rem) {
  .value-index { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
  .value-overview-inner { max-width: 36rem; }
  .value-overview { padding-block: 3rem; }
  .value-caption { font-size: clamp(.92rem, 2.7vw, 1.2rem); }
  .value-chapter { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2rem; }
  .value-art { grid-row: 1; width: min(50%, 13rem); justify-self: start; }
  .value-copy h3 { font-size: clamp(1.75rem, 5.3vw, 2.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .value-disc img { transition: transform .5s ease; }
  .value-link:is(:hover, :focus-visible) .value-disc img { transform: scale(1.045); }
}
@media (min-width: 64.01rem) and (prefers-reduced-motion: no-preference) {
  .value-index.is-entering .value-link { animation: value-fan-out .85s cubic-bezier(.2,.72,.23,1) both; }
  .value-link:nth-child(1) { --start-x: calc(150% + var(--value-gap) * 1.5); }
  .value-link:nth-child(2) { --start-x: calc(50% + var(--value-gap) * .5); }
  .value-link:nth-child(3) { --start-x: calc(-50% - var(--value-gap) * .5); }
  .value-link:nth-child(4) { --start-x: calc(-150% - var(--value-gap) * 1.5); }
  @keyframes value-fan-out {
    from { opacity: 0; transform: translateX(var(--start-x)) scale(.84); }
    to { opacity: 1; transform: none; }
  }
}
