:root {
  --cream: #f3ebdd;
  --paper: #fbf6ee;
  --ink: #24170f;
  --chestnut: #6e341c;
  --chestnut-deep: #4a2114;
  --tan: #c6a36a;
  --ruby: #7a2230;
  --line: rgba(36, 23, 15, 0.16);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --wrap: min(72rem, calc(100vw - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at top, rgba(255, 252, 247, 0.85), transparent 46%),
    linear-gradient(180deg, rgba(110, 52, 28, 0.05), transparent 14rem);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
}

body::before {
  content: "";
  display: block;
  height: 0.55rem;
  background: linear-gradient(
    90deg,
    var(--chestnut) 0 38%,
    var(--ruby) 38% 54%,
    var(--tan) 54% 70%,
    #1a120e 70% 100%
  );
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--chestnut-deep);
  text-underline-offset: 0.16em;
}

a:visited {
  color: var(--chestnut-deep);
}

a:hover {
  color: var(--ruby);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ruby);
  outline-offset: 3px;
}

::selection {
  background: #e7c7a4;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ruby);
}

.site-header {
  padding: 0.35rem 0 0.2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark span {
  font-style: italic;
  font-weight: 500;
  color: var(--chestnut);
}

.wordmark img {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

.nav-wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.nav-wide a,
.nav-small a,
.footer-nav a {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}

.nav-wide a[aria-current="page"],
.nav-small a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--ruby);
  box-shadow: inset 0 -2px 0 var(--ruby);
}

.nav-wide a:hover,
.nav-small a:hover,
.footer-nav a:hover {
  color: var(--ruby);
}

.nav-small {
  display: none;
  position: relative;
}

.nav-small summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 560;
  padding: 0.4rem 0.15rem;
}

.nav-small summary::-webkit-details-marker {
  display: none;
}

.nav-small summary::after {
  content: " +";
  color: var(--chestnut);
}

.nav-small[open] summary::after {
  content: " –";
}

.nav-small nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 4;
  min-width: 13rem;
  padding: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(36, 23, 15, 0.1);
}

.nav-small a {
  display: block;
  padding: 0.65rem 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1.5rem 2rem;
  align-items: end;
  padding: 2.2rem 0 2.6rem;
}

.hero > * {
  min-width: 0;
}

.hero h1 {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--serif);
  font-weight: 620;
  font-size: clamp(2.5rem, 9vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--chestnut-deep);
  text-wrap: balance;
}

.hero h1 .h-em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--ruby);
}

.hero h1 span {
  display: block;
}

.dek {
  max-width: 38rem;
  font-size: 1.35rem;
  line-height: 1.45;
}

.hero-links {
  margin-top: 1.15rem;
}

.hero-links a {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.facts {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.facts li {
  font-size: 1rem;
  line-height: 1.35;
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.2rem;
  color: var(--chestnut-deep);
}

.hero-art {
  background: radial-gradient(ellipse at 50% 58%, #e7d3b0 0%, rgba(231, 211, 176, 0) 70%);
}

.hero-art img {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  margin-inline: auto;
}

.hero-stage {
  display: grid;
  background: #2a1810;
  color: #f7f1e6;
}

.hero-visual,
.hero-stage .hero {
  grid-area: 1 / 1;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1024 / 388;
  min-height: 100%;
  background: #2a1810;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 46%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(26, 14, 9, 0.84) 0%,
    rgba(26, 14, 9, 0.72) 30%,
    rgba(26, 14, 9, 0.34) 48%,
    rgba(26, 14, 9, 0.06) 64%,
    rgba(26, 14, 9, 0.14) 100%
  );
}

.hero-stage .hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-block: 1.35rem;
}

.hero-stage .hero-copy {
  max-width: 31rem;
}

.hero-stage .eyebrow {
  color: #e7c7a4;
}

.hero-stage .hero h1 {
  color: #fbf6ee;
  font-size: clamp(2.4rem, 5.1vw, 4.7rem);
  text-shadow: 0 1px 2px rgba(20, 10, 6, 0.35);
}

.hero-stage .hero h1 .h-em {
  color: #f0c9a0;
}

.hero-stage .dek {
  color: #f7f1e6;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  max-width: 28rem;
  text-shadow: 0 1px 2px rgba(20, 10, 6, 0.35);
}

.hero-stage .hero a,
.hero-stage .hero a:visited {
  color: #fbf6ee;
}

.hero-stage .hero a:hover {
  color: #f0c9a0;
}

.hero-stage .hero a:focus-visible {
  outline-color: #f0c9a0;
}

.glance {
  padding: 1.45rem 0 0.35rem;
}

.glance .facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.75rem;
  margin-top: 0;
  padding-top: 0.15rem;
  border-top: 0;
}

.colorband {
  background: var(--chestnut-deep);
  color: var(--cream);
  padding: 2.1rem 0 2.3rem;
}

.colorband h2 {
  font-family: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.color-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.15rem;
}

.color-list li,
.palette dt {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  min-width: 0;
}

.chip {
  display: block;
  width: 3.1rem;
  height: 0.62rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.chip-blenheim {
  background: linear-gradient(90deg, #f7f1e6 0 48%, #6e341c 48% 100%);
}

.chip-tri {
  background: linear-gradient(90deg, #f7f1e6 0 33%, #1a120e 33% 66%, #c6a36a 66% 100%);
}

.chip-ruby {
  background: #8c2e38;
}

.chip-bt {
  background: linear-gradient(90deg, #1a120e 0 64%, #c6a36a 64% 100%);
}

.wall {
  padding: 2.6rem 0 3.4rem;
}

.wall-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  margin-bottom: 1.3rem;
}

.wall-head h2,
.gallery-page h1,
.prose h1 {
  font-family: var(--serif);
  font-weight: 620;
  letter-spacing: -0.03em;
  color: var(--chestnut-deep);
  text-wrap: balance;
}

.wall-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.wall-head p,
.more {
  max-width: 24rem;
}

.more a,
.next a {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.frames,
.salon {
  display: grid;
  gap: 1.35rem;
  align-items: end;
}

.frames.is-empty,
.frames.is-live[data-count="3"] {
  grid-template-columns: 1.05fr 0.9fr 0.95fr;
}

.frames.is-live[data-count="2"] {
  grid-template-columns: 1fr 1fr;
}

.frames.is-live[data-count="1"] {
  grid-template-columns: minmax(0, 22rem);
}

.frames.is-empty figure:nth-child(1) {
  transform: rotate(-1.1deg);
}

.frames.is-empty figure:nth-child(2) {
  transform: rotate(0.9deg);
  margin-bottom: 0.85rem;
}

.frames.is-empty figure:nth-child(3) {
  transform: rotate(-0.35deg);
}

.frame {
  margin: 0;
  background: #fffdf9;
  padding: 0.7rem 0.7rem 0.85rem;
  border: 1px solid rgba(36, 23, 15, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 28px rgba(36, 23, 15, 0.1);
}

.frame img,
.mat {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: #efe4d4;
  border: 1px solid rgba(74, 33, 20, 0.14);
}

.mat {
  background-image: url("../images/mark.svg");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: 22%;
}

.frame figcaption {
  padding-top: 0.65rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--chestnut-deep);
}

.frame-title,
.frame-caption {
  display: block;
}

.frame-caption {
  margin-top: 0.2rem;
  font-family: var(--text);
  font-style: italic;
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--ink);
}

.gallery-page {
  padding: 2.2rem 0 3.6rem;
}

.gallery-page h1 {
  margin: 0.3rem 0 0.75rem;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.92;
}

.gallery-page .dek {
  margin-bottom: 1.8rem;
}

.salon.is-empty {
  grid-template-columns: 0.8fr 1.25fr 0.8fr;
  align-items: end;
}

.salon.is-empty .frame-a {
  grid-column: 2;
  grid-row: 1;
}

.salon.is-empty .frame-b {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  transform: rotate(-1.4deg);
}

.salon.is-empty .frame-c {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  transform: rotate(1.1deg);
}

.salon.is-live {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.salon.is-live figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.prose {
  width: min(40rem, var(--wrap));
  margin-inline: auto;
  padding: 2.3rem 0 3.8rem;
}

.prose h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  line-height: 0.95;
}

.prose .dek {
  margin-bottom: 1.4rem;
}

.prose h2 {
  margin: 2.3rem 0 0.55rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--chestnut-deep);
}

.prose p,
.prose dd {
  font-size: 1.15rem;
  line-height: 1.65;
}

.prose p + p,
.prose dd + dd {
  margin-top: 0.85rem;
}

.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.15rem 0 0.15rem 1.05rem;
  border-left: 3px solid var(--ruby);
}

.prose blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--chestnut-deep);
}

.palette {
  margin-top: 0.4rem;
}

.palette div {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 0.35rem 1.25rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.palette div:last-child {
  border-bottom: 1px solid var(--line);
}

.palette dt {
  font-size: 1.35rem;
  color: var(--chestnut-deep);
}

.palette .chip {
  box-shadow: inset 0 0 0 1px rgba(36, 23, 15, 0.2);
}

.note {
  margin-top: 2.2rem;
  padding: 1.15rem 1.2rem 1.3rem;
  background: rgba(110, 52, 28, 0.06);
  border-left: 3px solid var(--tan);
}

.note h2 {
  margin-top: 0;
}

.note h3 {
  margin: 1rem 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--chestnut-deep);
}

.next {
  margin-top: 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: rgba(255, 252, 247, 0.45);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.footer-inner p {
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

@media (max-width: 860px) {
  .wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav-wide {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem 0.9rem;
  }

  .nav-small {
    display: none;
  }

  .hero,
  .glance .facts,
  .color-list,
  .frames.is-empty,
  .frames.is-live,
  .frames.is-live[data-count="1"],
  .frames.is-live[data-count="2"],
  .frames.is-live[data-count="3"],
  .salon.is-empty,
  .salon.is-live {
    grid-template-columns: 1fr;
  }

  .salon.is-empty .frame-a,
  .salon.is-empty .frame-b,
  .salon.is-empty .frame-c,
  .salon.is-live figure:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .frames.is-empty figure,
  .salon.is-empty figure {
    transform: none;
    margin-bottom: 0;
  }

  .hero-art {
    order: -1;
    max-width: 20rem;
    margin-inline: auto;
  }

  .hero-stage {
    display: block;
  }

  .hero-visual {
    aspect-ratio: 1024 / 388;
    min-height: 0;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(26, 14, 9, 0.08) 0%,
      rgba(26, 14, 9, 0) 28%,
      rgba(60, 36, 24, 0.28) 100%
    );
  }

  .hero-stage .hero {
    display: block;
    padding: 1.35rem 0 1.7rem;
    background: #3c2418;
  }

  .hero-stage .hero h1,
  .hero-stage .dek {
    text-shadow: none;
  }

  .hero-bg {
    object-position: 50% 46%;
  }

  .wall-head,
  .palette div,
  .footer-inner {
    display: block;
  }

  .wall-head p,
  .palette dd,
  .footer-nav {
    margin-top: 0.45rem;
  }

  .color-list {
    grid-template-columns: 1fr 1fr;
  }

  .color-list li {
    font-size: 1.2rem;
  }

  .dek {
    font-size: 1.12rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .frames.is-empty figure,
  .salon.is-empty figure {
    transform: none;
  }
}

@media print {
  body::before,
  .skip,
  .nav-wide,
  .nav-small,
  .footer-nav {
    display: none;
  }

  body,
  .colorband {
    background: white;
    color: black;
  }
}
