@font-face {
  font-family: Barlow Condensed;
  src: url('./assets/barlow-condensed-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url('./assets/dm-sans-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url('./assets/dm-sans-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --night: #15110f;
  --ink: #221a16;
  --paper: #f1e9db;
  --soft-paper: #fbf5eb;
  --ember: #ec6248;
  --dark-ember: #9d3929;
  --muted-on-dark: #c9bdb0;
  --muted-on-light: #64554b;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --serif: Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--night); color: var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
p, h1, h2, h3, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 5px; }
main section[id] { scroll-margin-top: 1.25rem; }
::selection { color: var(--night); background: #f68e79; }

.shell { width: min(100% - clamp(2.5rem, 10vw, 10rem), 76rem); margin-inline: auto; }

.skip-link {
  position: fixed; z-index: 5; top: 1rem; left: 1rem;
  padding: .8rem 1.1rem; background: var(--soft-paper); color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.sr-only {
  clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden;
  position: absolute; white-space: nowrap;
}

.site-header {
  position: relative; z-index: 1;
  background: #161210;
  border-bottom: 1px solid #eee0cb25;
}

.header-row {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  text-decoration: none;
  font: 800 1.45rem/.9 var(--display);
  letter-spacing: .035em;
  white-space: nowrap;
  justify-self: start;
}

.title-accent { color: var(--ember); }
.main-nav { display: flex; gap: clamp(1rem, 3.5vw, 3.1rem); }

.main-nav a, .footer-row > a:last-child {
  padding-block: .65rem;
  color: var(--muted-on-dark);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover, .footer-row > a:last-child:hover { color: var(--paper); }

.bag-button {
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: .65rem;
  padding: 0 .75rem;
  background: transparent;
  border: 1px solid #eee0cb40;
  border-radius: 2px;
  font-size: .875rem;
  font-weight: 600;
}
.bag-button:hover { border-color: var(--paper); }

.bag-count {
  display: grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #f1e9db17;
  color: var(--paper);
  font-size: .78rem;
}

.bag-icon {
  display: inline-block;
  position: relative;
  width: .9rem;
  height: .85rem;
  border: 1.3px solid currentColor;
  border-radius: 1px 1px 2px 2px;
  margin-top: .19rem;
}
.bag-icon::before {
  content: '';
  position: absolute;
  top: -.33rem; left: .18rem; right: .18rem;
  height: .36rem;
  border: 1.3px solid currentColor;
  border-bottom: 0;
  border-radius: 1rem 1rem 0 0;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #171210;
  background-image:
    linear-gradient(90deg, #15110f 0%, #15110fee 31%, #15110f70 61%, #15110f30 100%),
    linear-gradient(0deg, #15110f 0%, transparent 25%),
    url('./assets/night-street.webp');
  background-position: center, center, 57% 53%;
  background-size: cover;
}

.hero-grid {
  min-height: clamp(37rem, 52vw, 45rem);
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 4.5rem;
}

.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  color: var(--dark-ember);
  font-size: .8rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .17em;
}

.author-line {
  color: var(--paper);
  display: flex;
  gap: .65rem;
  align-items: center;
  margin-bottom: 1.1rem;
}
.author-line span { width: 1.6rem; height: 2px; background: var(--ember); }

.hero h1 {
  color: var(--paper);
  font: 800 clamp(6.9rem, 11.25vw, 10.7rem)/.78 var(--display);
  letter-spacing: -.036em;
}
.hero h1 > span { display: block; }
.hero h1 > span:first-child { white-space: nowrap; }
.hero h1 > span + span { margin-top: .07em; }

.hero-deck {
  max-width: 28rem;
  color: #e2d5c7;
  margin-top: 1.65rem;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.63;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .67rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.25;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button-primary { background: var(--ember); color: #21120f; }
.button-primary:hover { background: #f88b73; }
.button-outline { border-color: #f1e9db74; background: transparent; color: var(--paper); }
.button-outline:hover { background: #f1e9db14; border-color: var(--paper); }
.button-dark { background: var(--ink); color: var(--soft-paper); }
.button-dark:hover { background: #553023; }

.hero-visual {
  min-width: 0;
  display: grid;
  justify-items: center;
  perspective: 1000px;
  padding-block: 1.3rem;
}
.hero-book {
  position: relative;
  isolation: isolate;
  width: clamp(14rem, 25vw, 22rem);
  transform: rotateZ(6deg) rotateY(-12deg);
  transform-style: preserve-3d;
}
.hero-book img {
  position: relative;
  aspect-ratio: 913 / 1408;
  object-fit: cover;
  border-radius: 2px 3px 3px 2px;
  box-shadow: inset 0 0 0 1px #d5c2a948, 0 2.4rem 4.8rem #000a, -.8rem .9rem 2.8rem #0007;
}

.paper-edge {
  position: absolute;
  inset: .3rem -.9rem .22rem 45%;
  transform: translateZ(-13px) skewY(-3deg);
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(0deg, #b6a38e, #c1ad95 1px, #836d58 2px, #bdab97 3px);
  border-right: 3px solid #2a1914;
  box-shadow: .22rem .32rem 1rem #0007;
}

.light-section { color-scheme: light; background: var(--paper); color: var(--ink); }
.light-section h2, .excerpt-heading h2, .reactions-heading h2, .faq h2 {
  font: 800 clamp(3rem, 5.8vw, 5.4rem)/.9 var(--display);
  letter-spacing: -.022em;
}

.story { padding-block: clamp(4rem, 8vw, 7.5rem); }

.story-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.story-copy h2 { margin-top: .6rem; margin-bottom: 1.45rem; }
.story-copy > p:not(.eyebrow) {
  color: var(--muted-on-light);
  max-width: 32rem;
  line-height: 1.72;
}
.story-copy > p + p { margin-top: .9rem; }

.story-figure { position: relative; color: #f2e6d5; background: #30231b; overflow: hidden; }
.story-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-figure::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, #1e1411b0);
  pointer-events: none;
}
.story-figure figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 1.4rem 1.15rem;
  font: italic clamp(1rem, 1.8vw, 1.4rem)/1.3 var(--serif);
}

.excerpt-section {
  background: #231713;
  background-image: radial-gradient(ellipse at 82% 112%, #542d20, transparent 62%);
  padding-block: clamp(3.2rem, 7vw, 6rem);
}
.excerpt-grid { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(1.8rem, 6vw, 5.5rem); }
.excerpt-heading .eyebrow { color: var(--ember); }
.excerpt-heading h2 { margin-top: .45rem; }
.excerpt-heading > p:not(.eyebrow) { color: var(--muted-on-dark); margin-top: .65rem; }
.excerpt-heading .button { margin-top: 1.45rem; }
.excerpt-preview {
  padding: .4rem 0 .4rem clamp(1.15rem, 3.2vw, 2.5rem);
  border-left: 1px solid #ec62488c;
  font: normal clamp(1.06rem, 2vw, 1.55rem)/1.6 var(--serif);
  color: #f0e4d4;
}
.excerpt-preview p + p { margin-top: 1rem; }

.editions { padding-block: clamp(4rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem); }
.editions-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 2rem; }
.editions-heading h2 { margin-top: .4rem; }
.preview-note { color: var(--muted-on-light); font-size: .875rem; line-height: 1.5; }

.edition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.edition-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 13.25rem 1fr;
  background: var(--soft-paper);
  border: 1px solid #3b28252a;
}
.edition-visual {
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 1.7rem 1rem;
  background: radial-gradient(ellipse at 68% 75%, #a27053, #714836 55%, #4e3429);
}
.digital-visual { background: radial-gradient(ellipse at 45% 65%, #62554c, #392d27 62%, #261e1a); }
.edition-book {
  position: relative;
  width: min(100%, 7.1rem);
  transform: rotate(-6deg);
  box-shadow: .5rem .8rem 1.4rem #21110a75;
}
.edition-book img { border-radius: 1px 2px 2px 1px; }

.reader-device {
  width: min(100%, 7.25rem);
  padding: .47rem .38rem .72rem;
  border: 1px solid #535054;
  border-radius: .52rem;
  background: #131315;
  transform: rotate(5deg);
  box-shadow: .5rem .8rem 1.4rem #15110f99;
}
.reader-device img { border-radius: 2px; }

.edition-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  grid-template-rows: auto auto 1fr auto auto;
  padding: clamp(1rem, 3vw, 1.8rem);
}
.edition-copy .eyebrow { font-size: .72rem; }
.edition-copy h3 { font: 800 clamp(2rem, 4vw, 4rem)/.92 var(--display); margin-top: .2rem; }
.edition-details { color: var(--muted-on-light); font-size: .9rem; line-height: 1.45; margin-top: .63rem; }
.edition-copy .price { font-weight: 600; margin-top: .85rem; font-size: 1.05rem; }
.edition-copy .button { margin-top: .7rem; min-height: 2.65rem; }

.audio-visual {
  background: radial-gradient(ellipse at 56% 45%, #733e34, #3c2420 68%, #251b19);
}
.audio-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .53rem;
  width: min(100%, 10.15rem);
}
.audio-art img {
  min-width: 0;
  width: min(76%, 6.65rem);
  box-shadow: .35rem .53rem 1.1rem #1008068c;
  border-radius: 2px;
}
.audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .17rem;
  color: #f6ab96;
}
.audio-wave i { display: block; width: 2px; height: .64rem; border-radius: 2px; background: currentColor; }
.audio-wave i:nth-child(2), .audio-wave i:nth-child(4) { height: 1.15rem; }
.audio-wave i:nth-child(3) { height: 1.7rem; }

.reader-reactions {
  padding-block: clamp(3rem, 6vw, 5.3rem);
  background: #211613;
  background-image: radial-gradient(ellipse at 86% 112%, #552e22, transparent 63%);
}
.reactions-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: clamp(1.3rem, 3vw, 2.1rem);
}
.reactions-heading p { color: var(--muted-on-dark); font-size: .94rem; }
.reaction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.reaction-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 9.4rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid #f1e9db30;
  border-radius: 2px;
  background: #f1e9db08;
}
.reaction-card h3 { font: 800 clamp(1.45rem, 2.4vw, 2rem)/1 var(--display); }
.reaction-symbol {
  position: relative;
  width: 2.6rem;
  height: 1.9rem;
  color: #eba995;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.reaction-message-symbol::after {
  content: '';
  position: absolute;
  bottom: -.32rem;
  left: .45rem;
  width: .47rem;
  height: .47rem;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  background: #30241f;
  transform: skewY(-35deg);
}
.reaction-message-symbol span, .reaction-post-symbol span {
  position: absolute;
  left: .46rem;
  top: .52rem;
  width: 1.42rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 .42rem currentColor;
}
.reaction-post-symbol { border-radius: 1px; }
.reaction-post-symbol span { top: .46rem; box-shadow: 0 .42rem currentColor, 0 .84rem currentColor; }


.faq { padding-bottom: clamp(3rem, 8vw, 6rem); }
.faq-grid { border-top: 1px solid #3b28252a; padding-top: 2.6rem; display: grid; grid-template-columns: .75fr 1.25fr; gap: 1.5rem; }
.faq h2 { font-size: clamp(2.7rem, 4.5vw, 4.4rem); }
.faq-list details { border-bottom: 1px solid #3b28252a; }
.faq-list details:first-child { border-top: 1px solid #3b28252a; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 3.4rem;
  padding: .7rem 0;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: 400 1.35rem/1 var(--sans); color: var(--dark-ember); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { color: var(--muted-on-light); margin: 0 1.25rem 1rem 0; max-width: 31rem; line-height: 1.6; }
.footer-row { min-height: 6.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-row p { color: var(--muted-on-dark); font-size: .875rem; }

dialog {
  color-scheme: light;
  color: var(--ink);
  background: var(--soft-paper);
  border: 0;
  box-shadow: 0 1rem 4rem #0007;
  padding: 0;
}
dialog::backdrop { background: #100a09b8; backdrop-filter: blur(3px); }
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid #3b28252a;
}
.close-button {
  min-width: 2.6rem; min-height: 2.6rem; padding: 0 .45rem;
  background: transparent; border: 1px solid #3b282544;
  font-size: 1.65rem; line-height: 1;
}
.close-button:hover { background: #e8d9c6; }

.reading-dialog { width: min(43rem, calc(100% - 2rem)); max-height: 87dvh; }
.reading-dialog .dialog-top { position: sticky; top: 0; background: var(--soft-paper); }
.reading-text { padding: clamp(1.4rem, 5vw, 3.4rem); max-width: 65ch; margin-inline: auto; }
.reading-text h2 { font: 800 4.1rem/.95 var(--display); margin-bottom: 1.6rem; }
.reading-text p:not(.eyebrow) { font: 400 1.05rem/1.75 var(--serif); margin-block: .95rem; }

.bag-dialog {
  position: fixed; inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 28.5rem);
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
}
.bag-dialog[open] { display: flex; flex-direction: column; }
.bag-dialog h2 { font: 800 2.75rem/.9 var(--display); }
.bag-content { padding: 1.25rem 1.35rem; flex: 1; overflow-y: auto; }
.bag-content > .button { margin-top: 1rem; }
.bag-items { padding: 0; margin: 0; list-style: none; }
.bag-line {
  display: grid; grid-template-columns: 3.65rem 1fr auto; gap: .9rem;
  padding-block: .75rem 1rem; align-items: start;
  border-bottom: 1px solid #3b28252a;
}
.bag-line h3 { font-weight: 600; font-size: 1.05rem; }
.line-price { margin-top: .3rem; font-weight: 600; }
.quantity { display: flex; align-items: center; gap: .55rem; margin-top: .63rem; }
.quantity button {
  background: transparent; border: 1px solid #3b282544; min-width: 2.45rem; min-height: 2.45rem;
  font-size: 1rem;
}
.quantity button:hover { background: #e8d9c6; }
.quantity button:disabled { opacity: .4; cursor: default; }
.remove { background: transparent; border: 0; padding: .55rem 0; text-decoration: underline; font-size: .875rem; color: var(--muted-on-light); }
.bag-bottom { padding: 1rem 1.35rem 1.5rem; border-top: 1px solid #3b28252a; }
.subtotal { display: flex; justify-content: space-between; gap: 1rem; }
.bag-bottom .preview-note { margin: .3rem 0 .85rem; }
.bag-bottom .button { width: 100%; }
.checkout-status { margin-top: .8rem; padding: .85rem; border-left: 2px solid var(--dark-ember); color: var(--ink); background: #efe3d3; font-size: .9rem; line-height: 1.5; }

@media (max-width: 65rem) {
  .hero h1 { font-size: clamp(5.8rem, 11.3vw, 8rem); }
  .hero-grid { min-height: 36rem; }
  .story-grid { gap: clamp(1.75rem, 4.5vw, 3rem); }
}

@media (max-width: 48rem) {
  .shell { width: calc(100% - 2.5rem); }
  .header-row { min-height: 4.2rem; gap: .7rem; }
  .main-nav { gap: .8rem; }
  .main-nav a { font-size: .84rem; }
  .hero-grid { padding-block: 3.5rem 2.75rem; min-height: auto; }
  .hero h1 { font-size: clamp(4.2rem, 12vw, 6.9rem); }
  .hero-book { width: clamp(10rem, 29vw, 16rem); }
  .story-grid, .excerpt-grid { grid-template-columns: 1fr; }
  .story-figure img { aspect-ratio: 16/10; }
  .desktop-break { display: none; }
  .edition-grid { gap: .65rem; }
  .edition-card { grid-template-rows: 12.1rem 1fr; }
  .edition-book, .reader-device { width: min(100%, 6.65rem); }
  .faq-grid { gap: 1rem; }
  .reaction-grid { gap: .55rem; }
  .reaction-card { padding: .9rem; }
}

@media (max-width: 35rem) {
  .shell { width: calc(100% - 2rem); }
  .header-row { grid-template-columns: 1fr auto; min-height: 3.85rem; }
  .main-nav { display: none; }
  .hero {
    background-image: linear-gradient(180deg, #15110fe8 0%, #15110faf 46%, #15110f26 69%, #15110f8c 100%), url('./assets/night-street.webp');
    background-position: center, 68% center;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; padding-block: 3.25rem 2rem; }
  .hero h1 { font-size: clamp(4.1rem, 19.4vw, 7rem); }
  .hero-deck { margin-top: 1.35rem; }
  .hero-actions { margin-top: 1.2rem; gap: .5rem; }
  .hero-actions .button { padding: .65rem .78rem; font-size: .875rem; }
  .hero-visual { padding: 1.1rem 1rem .6rem 0; }
  .hero-book { width: clamp(11rem, 51vw, 15rem); }
  .editions-heading, .footer-row { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .edition-grid { grid-template-columns: 1fr; gap: .8rem; }
  .edition-card { grid-template: auto / .92fr 1.08fr; min-height: 14rem; }
  .edition-visual { min-height: 0; padding: 1.2rem .8rem; }
  .edition-book, .reader-device { width: min(95%, 7.1rem); }
  .edition-copy { align-content: center; grid-template-rows: none; }
  .edition-copy h3 { font-size: 2.55rem; }
  .reactions-heading { flex-direction: column; align-items: start; gap: .5rem; }
  .reaction-grid { grid-template-columns: 1fr; }
  .reaction-card { flex-direction: row; justify-content: start; align-items: center; gap: .9rem; min-height: 4.35rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-row { padding-block: 1.5rem; }
  .footer-row > a:last-child { padding-block: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.conversations {
  padding-block: clamp(3.8rem, 8vw, 6.5rem);
  background: #e9dfd0;
}

.conversations-heading { margin-bottom: clamp(1.5rem, 4vw, 2.6rem); }
.conversations-heading h2 { margin-top: .55rem; }

.conversations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.conversation-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--soft-paper);
  border: 1px solid #3b28252a;
  border-radius: .3rem;
  padding: clamp(1.15rem, 3vw, 2.1rem);
}

.conversation-meta {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.conversation-meta strong { font-weight: 600; }
.conversation-meta small {
  display: block;
  margin-top: .17rem;
  color: var(--muted-on-light);
  font-size: .87rem;
  line-height: 1.35;
}

.conversation-initial {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dark-ember);
  background: #ead9cc;
  font: 800 1.35rem/1 var(--display);
}

.message-thread {
  width: 100%;
  display: grid;
  gap: .85rem;
  margin: 1.3rem 0 0;
  padding: 1.05rem 0 0;
  border-top: 1px solid #3b282520;
  list-style: none;
}

.message { max-width: min(86%, 19rem); }
.message > span {
  display: block;
  color: var(--muted-on-light);
  font-size: .83rem;
  margin-bottom: .23rem;
  padding-inline: .2rem;
}

.message p {
  padding: .55rem .72rem;
  border-radius: .72rem;
  font-size: .96rem;
  line-height: 1.5;
}

.message-damian { justify-self: end; }
.message-damian > span { text-align: right; }
.message-damian p { background: #813b2d; color: var(--soft-paper); border-bottom-right-radius: .2rem; }
.message-emily { justify-self: start; }
.message-emily p { background: #ebe0d2; color: var(--ink); border-bottom-left-radius: .2rem; }

.passage-card { background: #261b17; color: var(--paper); }
.passage-card .conversation-meta small { color: var(--muted-on-dark); }
.passage-card .conversation-initial { color: #ff977e; background: #f1e9db1c; }

.passage-card blockquote {
  margin-block: 1.45rem 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1e9db26;
  max-width: 24ch;
  font: 400 clamp(1.2rem, 2.15vw, 1.8rem)/1.5 var(--serif);
}

.conversation-link {
  align-self: flex-start;
  margin-top: auto;
  padding-block: .4rem;
  color: #f6a48e;
  font-size: .93rem;
  font-weight: 600;
  text-underline-offset: .21em;
}

.conversation-link:hover { color: var(--paper); }

@media (max-width: 43rem) {
  .conversations-grid { grid-template-columns: 1fr; gap: .7rem; }
  .message { max-width: 88%; }
}

@media (max-width: 43rem) {
  .main-nav .look-nav { display: none; }
}

.look-inside {
  padding-block: clamp(3.75rem, 7vw, 6.5rem) 0;
}
.look-inside h2 {
  margin-bottom: clamp(1.3rem, 3vw, 2.25rem);
}
.look-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(11.5rem, 21vw, 16rem);
  grid-template-areas: 'panels tabs';
  align-items: start;
  gap: clamp(.75rem, 2.3vw, 1.65rem);
}
.look-tabs {
  grid-area: tabs;
  display: grid;
  gap: .48rem;
}
.look-tabs button {
  padding: .92rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  text-align: left;
  background: var(--soft-paper);
  border: 1px solid #3b28252a;
  border-radius: 2px;
  color: var(--ink);
}
.look-tabs button:hover { border-color: var(--dark-ember); }
.look-tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--soft-paper);
}
.look-panels { grid-area: panels; min-width: 0; }
.look-panel {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: clamp(1rem, 3vw, 2.45rem);
  isolation: isolate;
  overflow: hidden;
  position: relative;
  color: var(--paper);
  background: radial-gradient(ellipse at 57% 82%, #513027, #2c1c17 54%, #1d1512 100%);
  border-radius: 2px;
}
.look-stage-model { perspective: 1050px; }
.look-model {
  --thickness: clamp(1rem, 2.04vw, 1.58rem);
  width: clamp(10rem, 20vw, 15.5rem);
  aspect-ratio: 396 / 612;
  margin-block: .6rem;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateZ(-5deg) rotateY(24deg);
  transition: transform .6s ease;
}
.look-model[data-side="spine"] { transform: rotateY(90deg); }
.look-model[data-side="back"] { transform: rotateX(6deg) rotateZ(5deg) rotateY(156deg); }
.look-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  backface-visibility: hidden;
  box-shadow: 0 .75rem 1.9rem #10080485;
}
.look-face-front { transform: translateZ(calc(var(--thickness) / 2)); }
.look-face-back { transform: rotateY(180deg) translateZ(calc(var(--thickness) / 2)); }
.look-paper-edge, .look-spine {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: var(--thickness);
  backface-visibility: hidden;
}
.look-paper-edge {
  left: 100%;
  background: repeating-linear-gradient(#ddc2a3 0 1px, #a9957f 1px 2px, #bba187 2px 3px);
  transform-origin: left center;
  transform: translateZ(calc(var(--thickness) / 2)) rotateY(90deg);
}
.look-spine {
  right: 100%;
  height: calc(100% - 2px);
  object-fit: fill;
  transform-origin: right center;
  transform: translateZ(calc(var(--thickness) / 2)) rotateY(-90deg);
}
.look-spine-art {
  width: auto;
  height: clamp(18rem, 38vw, 28rem);
  box-shadow: 0 .6rem 1.65rem #1008049a;
}
.look-single-page {
  width: min(100%, 15.8rem);
  box-shadow: 0 .6rem 1.65rem #1008049a;
}
.look-spread {
  display: grid;
  width: min(100%, 33rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-shadow: 0 .6rem 1.65rem #1008049a;
}
.look-spread img { width: 100%; }
.look-spread img:first-child { border-right: 1px solid #d8cbbd; }
.look-control {
  min-height: 2.45rem;
  border-color: #f1e9db52;
  background: #171210;
  color: var(--paper);
  font-size: .87rem;
}
.look-control:hover { border-color: var(--paper); }
.look-book-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}
.look-book-controls .look-control { padding-inline: .75rem; }
.look-book-controls .look-control[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}
.look-dialog { width: min(64rem, calc(100% - 2rem)); max-height: 92dvh; }
.look-dialog .dialog-top { position: sticky; top: 0; background: var(--soft-paper); }
.look-dialog .dialog-top h2 { font: 800 1.8rem/1 var(--display); }
.look-dialog-pages {
  display: flex;
  align-items: start;
  justify-content: center;
  padding: .9rem;
  background: #d8ccbd;
}
.look-dialog-pages img { width: min(100%, 37.5rem); min-width: 0; }
.look-dialog-pages .look-spine-art { width: auto; height: min(72dvh, 50rem); }
.look-dialog-pages:has(img:nth-child(2)) img { width: 50%; }
@media (max-width: 40rem) {
  .look-layout {
    grid-template-columns: 1fr;
    grid-template-areas: 'tabs' 'panels';
  }
  .look-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .look-tabs button { min-height: 2.75rem; padding: .65rem .75rem; }
  .look-single-page { width: min(100%, 12rem); }
  .look-dialog-pages:has(img:nth-child(2)) { flex-direction: column; gap: .55rem; }
  .look-dialog-pages:has(img:nth-child(2)) img { width: 100%; }
}
