.crimson-home {
  --crimson-gold: #dfb978;
  --crimson-rule: #a9824a;
  background: #0b0909;
  color: #f5e6cc;
}
.crimson-home a { color: inherit; }
.crimson-header { position: relative; z-index: 2; }
.crimson-masthead { position: relative; padding: .35rem 10rem .8rem; text-align: center; }
.crimson-brand, .crimson-hero h1 {
  font-family: Baskerville, 'Times New Roman', serif;
  color: #f3d4a2;
  font-weight: 400;
  line-height: .92;
  text-transform: uppercase;
}
.crimson-brand { font-size: clamp(2.35rem, 5.1vw, 5.4rem); text-decoration: none; }
.crimson-masthead p { margin: .45rem 0 0; text-transform: uppercase; letter-spacing: .15em; font-size: clamp(.65rem, 1.28vw, 1rem); }
.crimson-news { position: absolute; right: 2%; bottom: .8rem; background: #3c1015; }
.crimson-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .35rem 1.05rem;
  border: 3px double var(--crimson-gold);
  color: #f5e6cc; text-decoration: none; text-align: center;
  font: 400 .92rem/1.2 Georgia, serif;
}
.crimson-button:hover { background-color: #581920; }
.crimson-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(.9rem, 4vw, 4.3rem); border-block: 1px solid var(--crimson-rule); }
.crimson-nav a, .crimson-menu a { padding: .65rem 0; text-transform: uppercase; text-decoration: none; font-size: .95rem; }
.crimson-nav a:hover, .crimson-nav [aria-current] { color: var(--crimson-gold); text-decoration: underline; text-underline-offset: .35em; }
.crimson-menu { display: none; }
.crimson-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: stretch; isolation: isolate; border-bottom: 3px double var(--crimson-rule);
  background: #100a0b;
}
.crimson-hero figure { margin: 0; min-height: 100%; position: relative; }
.crimson-hero figure img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; }
.crimson-hero-copy { padding: clamp(1.7rem, 3.4vw, 3.8rem) clamp(1rem, 8vw, 8rem) clamp(1.7rem, 4vw, 4rem) clamp(1rem, 4vw, 4rem); text-align: center; background: #100a0b; }
.crimson-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .24em; font-size: clamp(.72rem, 1.3vw, 1rem); }
.crimson-hero h1 { font-size: clamp(3.2rem, 6.8vw, 8rem); letter-spacing: .015em; margin: .12em 0; }
.crimson-hero h1 span { display: block; }
.crimson-tagline { max-width: 38ch; margin: .8rem auto 1.2rem; font-size: clamp(1rem, 1.8vw, 1.4rem); line-height: 1.24; font-style: italic; }
.crimson-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem 1rem; }
.crimson-actions a, .crimson-book-grid .crimson-button { background: #100b0be8; text-transform: uppercase; }
.crimson-actions a:hover, .crimson-book-grid .crimson-button:hover { background: #581920; }
.crimson-books { text-align: center; padding: .7rem 4% 1.4rem; background: #0c0909; }
.crimson-books > h2 { font-weight: 400; text-transform: uppercase; letter-spacing: .25em; font-size: clamp(1.15rem, 2.7vw, 2.6rem); margin: 0 0 .2em; text-shadow: 0 2px 6px #000; }
.crimson-book-grid { width: min(100%, 58rem); margin-inline: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.8rem, 3vw, 3rem); background: #0c0909d1; padding: .35rem .7rem .9rem; }
.crimson-book-grid article { display: flex; flex-direction: column; align-items: center; }
.crimson-cover { display: flex; align-items: end; justify-content: center; width: 100%; min-width: 0; }
.crimson-cover img { display: block; width: 100%; height: clamp(13rem, 27vw, 24rem); object-fit: contain; filter: drop-shadow(0 7px 8px #000); }
.crimson-book-grid h3 { margin: .45rem 0 0; font-weight: 400; font-size: clamp(.95rem, 1.7vw, 1.35rem); line-height: 1.12; text-transform: uppercase; }
.crimson-book-grid p { color: var(--crimson-gold); font-style: italic; margin: .2rem 0 .6rem; }
.crimson-book-grid .crimson-button { margin-top: auto; }
.crimson-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; width: min(97%, 100rem); margin: 1rem auto 0; }
.crimson-features > a { min-height: 13rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; border: 4px double var(--crimson-rule); background: #120b0c; text-decoration: none; }
.crimson-features > a:hover { border-color: var(--crimson-gold); background: #281014; }
.crimson-features img { width: 100%; height: 100%; object-fit: cover; }
.crimson-features > a:nth-child(2) img { object-fit: contain; }
.crimson-features div { align-self: center; text-align: right; padding: .65rem; }
.crimson-features h2 { font-size: clamp(1.05rem, 2vw, 1.65rem); text-transform: uppercase; font-weight: 400; line-height: 1.08; color: var(--crimson-gold); margin: 0; }
.crimson-features p { font-style: italic; line-height: 1.25; }
.crimson-features span { color: var(--crimson-gold); font-size: 1.4rem; }
.crimson-home :focus-visible { outline: 2px solid #f6dbaa; outline-offset: 3px; }
@media (max-width: 850px) {
  .crimson-masthead { padding-inline: 1rem; }
  .crimson-news { position: static; margin-top: .55rem; }
  .crimson-hero-copy { padding-inline: 1rem; }
  .crimson-features > a { grid-template-columns: 1fr; }
  .crimson-features img { height: 8rem; }
}
@media (max-width: 620px) {
  .crimson-nav { display: none; }
  .crimson-menu { display: block; border-block: 1px solid var(--crimson-rule); }
  .crimson-menu summary { padding: .65rem 1rem; cursor: pointer; }
  .crimson-menu nav { position: absolute; width: 100%; display: grid; padding: .35rem 1rem; background: #100b0b; border-bottom: 1px solid var(--crimson-rule); }
  .crimson-hero { grid-template-columns: 1fr; }
  .crimson-hero figure { aspect-ratio: 1.1; }
  .crimson-hero h1 { font-size: clamp(3.1rem, 13vw, 5rem); }
  .crimson-hero-copy { background: #100b0be8; }
  .crimson-book-grid, .crimson-features { grid-template-columns: 1fr; }
  .crimson-book-grid { gap: 1.8rem; }
  .crimson-cover img { max-width: 15rem; height: 20rem; }
  .crimson-features { width: 92%; }
  .crimson-features > a { grid-template-columns: 1fr 1fr; min-height: 9rem; }
  .crimson-features img { height: 100%; min-height: 9rem; }
}

/* Keep the artwork and copy aligned when the source images have different proportions. */
.crimson-features > a { height: clamp(12.5rem, 18vw, 16rem); }
.crimson-features img { min-height: 0; min-width: 0; }
@media (min-width: 621px) and (max-width: 850px) {
  .crimson-features > a { height: auto; grid-template-rows: 8rem 1fr; }
}
@media (max-width: 620px) {
  .crimson-features > a { height: 10rem; }
}

/* Decorative details from the supplied homepage artwork. */
.crimson-masthead {
  background: url(/mockup-art/gilt-corner.webp) left top / auto 100% no-repeat, #0b0909;
}
.crimson-hero-copy {
  background: url(/mockup-art/candle-and-rose.webp) right bottom / auto 100% no-repeat, #100a0b;
  padding-right: clamp(3.25rem, 12vw, 11rem);
}
.crimson-books {
  background: url(/mockup-art/books-and-rose.webp) left bottom / auto 89% no-repeat,
              url(/mockup-art/books-and-thread.webp) right bottom / auto 89% no-repeat, #0c0909;
}
.crimson-book-grid { width: min(76%, 58rem); background: #0c0909; }
.crimson-features > a:nth-child(2) img { object-fit: cover; }
.crimson-letter-backdrop {
  padding: clamp(1.5rem, 5vw, 4.5rem) 0;
  margin-block: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, #10090848, #10090894 50%, #10090828),
    url(/correspondence.webp) center 66% / cover no-repeat, #100908;
}
.crimson-home .dusk-letter {
  margin-block: 0;
  background: #100b0b;
}
.crimson-home .dusk-letter img { max-height: 23rem; object-position: 50% 62%; }
.crimson-home .dusk-home-footer {
  background: url(/mockup-art/velvet.webp) center bottom / 100% auto no-repeat, #0b0909;
  padding-bottom: 4.5rem;
}
@media (max-width: 850px) {
  .crimson-masthead { background-size: auto 55%; }
  .crimson-hero-copy { padding-inline: 1rem; background-image: none; }
  .crimson-books { background-size: 15% auto, 15% auto; }
  .crimson-book-grid { width: 100%; background: transparent; }
}
@media (max-width: 620px) {
  .crimson-masthead { background-size: auto 32%; }
  .crimson-books { background-size: 22% auto, 22% auto; }
}

/* The masthead spans the page, with the ornament clear of the wordmark. */
.crimson-header {
  display: block;
  padding: 0;
  background: #0b0909;
  border-bottom: 0;
}
.crimson-masthead {
  padding: .65rem clamp(7.5rem, 19vw, 16rem) .85rem;
  background-size: min(16%, 13rem) auto;
}
.crimson-masthead p { max-width: none; margin-inline: auto; }
.crimson-nav { gap: 0 clamp(.75rem, 3.5vw, 3.5rem); padding-inline: 1rem; }

/* Keep the image and the tint on separate layers so the artwork reads through. */
.crimson-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 46%;
  background: url(/mockup-art/candle-and-rose.webp) right bottom / auto 100% no-repeat;
  mask-image: linear-gradient(to left, #000 0%, #000 18%, transparent 59%);
}
.crimson-hero-copy {
  background: linear-gradient(90deg, #100a0ba8 0%, #100a0b87 60%, #100a0b17 100%);
  padding-inline: clamp(1rem, 4vw, 4rem);
  text-shadow: 0 2px 5px #080505, 0 0 14px #080505;
}
.crimson-hero-copy .crimson-eyebrow { margin-inline: auto; }

@media (max-width: 850px) {
  .crimson-masthead { padding-inline: 1rem; background-size: min(13%, 7rem) auto; }
  .crimson-hero-copy { padding-inline: 1rem; }
}
@media (max-width: 620px) {
  .crimson-masthead { background-size: min(11%, 3rem) auto; }
  .crimson-hero::before { inset: auto 0 0; height: 52%; }
  .crimson-hero { padding: 0; }
  .crimson-hero-copy { background: linear-gradient(90deg, #100a0bd1, #100a0b89); }
}

/* Keep the same header colours on every page, independent of the page theme. */
.crimson-header {
  --crimson-gold: #dfb978;
  --crimson-rule: #a9824a;
  color: #f5e6cc;
}
.crimson-header a { color: inherit; }
.crimson-header .crimson-nav a:hover,
.crimson-header .crimson-nav [aria-current] { color: var(--crimson-gold); }

/* A single stage behind the covers, with softly blended bookend artwork. */
.crimson-books {
  position: relative;
  isolation: isolate;
  background: linear-gradient(to top, transparent 0, #0c0909 4rem),
              url(/mockup-art/book-table.webp) center bottom / 100% 4rem no-repeat,
              #0c0909;
}
.crimson-books::before,
.crimson-books::after {
  content: "";
  position: absolute;
  inset-block: 2rem 0;
  z-index: -1;
  width: clamp(5rem, 19vw, 17rem);
  background-position: center bottom;
  background-size: cover;
  mask-image: linear-gradient(to right, #000 50%, transparent);
  pointer-events: none;
}
.crimson-books::before { left: 0; background-image: url(/mockup-art/books-and-rose.webp); }
.crimson-books::after {
  right: 0;
  background-image: url(/mockup-art/books-and-thread.webp);
  mask-image: linear-gradient(to left, #000 50%, transparent);
}
.crimson-book-grid { width: min(83%, 62rem); background: transparent; }
.crimson-cover img { object-position: center bottom; }
@media (max-width: 620px) {
  .crimson-books::before, .crimson-books::after {
    inset-block: auto 0;
    height: 15rem;
    width: 23%;
    opacity: .65;
  }
  .crimson-book-grid { width: 100%; }
}

/* Align the tightly cropped 3D cover with the visible edges of the other books. */
.crimson-cover img[src="/beautifully-respectable-3d.png"],
.shelf-cover img[src="/beautifully-respectable-3d.png"] {
  object-position: center bottom;
  padding-block: .35rem 1rem;
}

/* Keep the candlelight movement in the artwork layer, away from the text. */
@media (prefers-reduced-motion: no-preference) {
  .journal-hero::before,
  .contact-hero::before {
    animation: candlelight-shimmer 5.8s ease-in-out 1;
  }
}
@keyframes candlelight-shimmer {
  0%, 100% { filter: brightness(1); }
  23% { filter: brightness(1.06); }
  48% { filter: brightness(.98); }
  65% { filter: brightness(1.09); }
  82% { filter: brightness(1.02); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .crimson-cover img, .shelf-cover img {
    transition: transform 220ms ease-out;
  }
  .crimson-cover:hover img, .shelf-cover:hover img {
    transform: translateY(-3px);
  }
}

/* Frame the masthead with balanced gilt corners and a trace of red velvet. */
.crimson-masthead {
  isolation: isolate;
  background:
    linear-gradient(to bottom, #0b0909 8%, #100b0bef 67%, #160b0dcc),
    url(/mockup-art/velvet.webp) center bottom / 100% auto no-repeat,
    #0b0909;
}
.crimson-masthead::before, .crimson-masthead::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: -1;
  width: clamp(3rem, 13vw, 12rem);
  aspect-ratio: 2.05;
  background: url(/mockup-art/gilt-corner.webp) left top / contain no-repeat;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, #000 68%, transparent);
  pointer-events: none;
}
.crimson-masthead::after {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}
@media (max-width: 480px) {
  .crimson-masthead::before, .crimson-masthead::after {
    width: clamp(2rem, 8vw, 3rem);
  }
}
