@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4eee2;
  --ink: #2f251f;
  --muted: #65574a;
  --rule: #b49e86;
  --dark: #30231c;
  --light: #fcf0db;
  --gold: #f2ca86;
  --pine: #233e39;
  --pale-pine: #dce6d9;
  --gutter: clamp(1rem, 4.8vw, 4.5rem);
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --serif: Newsreader, Georgia, serif;
  --number: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.57 var(--sans);
}
h1, h2, h3, p, figure, ol { margin: 0; }
h2 {
  font: 400 clamp(2.9rem, 6.4vw, 6rem)/.94 var(--serif);
  letter-spacing: -.049em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px #234a88;
}
main:focus { outline: none; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(80rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.label {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.4;
  text-transform: uppercase;
}
.editorial { font: 400 clamp(1.32rem, 2.4vw, 1.92rem)/1.22 var(--serif); }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  z-index: 5;
  inset: .65rem auto auto var(--gutter);
  background: white;
  padding: .65rem .9rem;
  color: var(--ink);
  font-weight: 700;
}
.button, .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  line-height: 1.3;
}
.button {
  padding: .83rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
}
.button-gold { background: var(--gold); color: var(--dark); }
.button-gold:hover { background: #ffdea5; }
.button-dark { background: var(--dark); color: white; }
.button-dark:hover { background: #583f2e; }
.button:active { transform: translateY(1px); }
.text-link { text-decoration-thickness: 1px; text-underline-offset: .23em; }
.text-link:hover { text-decoration-thickness: 2px; }

.masthead-inner {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.identity { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .85rem; }
.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: clamp(1.3rem, 2.35vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.054em;
  text-decoration: none;
  font-weight: 700;
}
.identity span { color: var(--muted); font-size: .87rem; }
.masthead nav { display: flex; gap: clamp(.45rem, 1.6vw, 1.6rem); }
.masthead nav a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  white-space: nowrap;
}
.masthead a:hover { text-decoration: underline; text-underline-offset: .24em; }

.opening-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .74fr);
  grid-template-areas: "label art" "title art" "copy art";
  grid-template-rows: auto auto 1fr;
  background: var(--dark);
  color: var(--light);
  padding-left: clamp(1.5rem, 4.55vw, 4.5rem);
  column-gap: clamp(1rem, 4vw, 4rem);
}
.opening-label {
  grid-area: label;
  color: var(--gold);
  border-bottom: 1px solid #88674b;
  padding: 2rem 0 .75rem;
}
.opening h1 { grid-area: title; }
.address-number {
  display: block;
  color: var(--gold);
  font: 700 clamp(9rem, 23vw, 21.5rem)/.86 var(--number);
  letter-spacing: .008em;
  margin: .055em 0 0 -.025em;
}
.featured-title {
  display: block;
  font-size: clamp(2.35rem, 5.15vw, 4.65rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.067em;
  padding-top: .14em;
}
.opening-copy { grid-area: copy; padding: 1rem 0 2.3rem; }
.featured-subtitle { font: 400 clamp(1.42rem, 2.5vw, 2.15rem)/1.1 var(--serif); }
.opening-copy > p:nth-child(2) { max-width: 35ch; margin: .7rem 0 1.2rem; color: #ebdcc6; }
.cover-bay {
  grid-area: art;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .95rem;
  padding: clamp(1.3rem, 4vw, 3.7rem);
  background: #49362a;
  border-left: 1px solid #806248;
}
.cover-bay img {
  width: min(100%, 22rem);
  outline: 1px solid #c7af80;
  box-shadow: 8px 8px 0 #30231c;
}
.cover-bay figcaption {
  display: flex;
  justify-content: space-between;
  width: min(100%, 22rem);
  gap: .25rem;
  padding-top: .55rem;
  border-top: 1px solid #a7825d;
  color: #f1dec3;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .065em;
}

.address {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  column-gap: 8%;
  padding-block: clamp(3.7rem, 8vw, 7.4rem);
}
.address-heading .label { color: var(--muted); }
.address-heading h2 { margin: .28em 0 .25em; }
.address-heading .editorial { max-width: 24ch; }
.account { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.account li {
  position: relative;
  border-top: 1px solid var(--rule);
  padding: clamp(.85rem, 1.8vw, 1.35rem) 0;
}
.account li:nth-child(2) { padding-inline-start: 8%; }
.account li:nth-child(3) { padding-inline-start: 16%; }
.account li h3 { font-size: clamp(1.18rem, 2.3vw, 1.56rem); letter-spacing: -.037em; }
.account li p { margin-top: .2rem; max-width: 48ch; }
.address-account > a { margin-top: .5rem; }

.lyric-section { background: #e9deca; border-block: 1px solid #baaa92; padding-block: clamp(3.1rem, 6vw, 5.8rem); }
.lyric-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .9rem 2rem; }
.lyric-heading > p { font: 400 clamp(1.35rem, 2.4vw, 1.95rem)/1.14 var(--serif); }
.lyric-heading > p span { display: block; margin-top: .38rem; font: 600 .875rem/1.4 var(--sans); color: #5b4b3e; }
.editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.1rem; border-block: 1px solid #a18c75; }
.edition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5rem, .66fr); align-items: center; gap: clamp(.9rem, 2.3vw, 2.3rem); padding: clamp(1.2rem, 2.8vw, 2.6rem) clamp(1rem, 2.8vw, 2.6rem); }
.edition:nth-child(odd) { border-inline-end: 1px solid #a18c75; }
.edition:nth-child(n + 3) { border-top: 1px solid #a18c75; }
.edition h3 { display: flex; align-items: baseline; gap: .18em; font-size: clamp(1.75rem, 3vw, 3rem); line-height: .9; letter-spacing: -.065em; }
.edition h3 span { font: 700 clamp(3.6rem, 7vw, 6rem)/.85 var(--number); color: #734332; }
.edition p { margin-top: .7rem; max-width: 30ch; }
.edition a { margin-top: .5rem; }
.edition img { width: min(100%, 12rem); justify-self: end; outline: 1px solid #a89172; }

.architecture-section { background: var(--pine); color: #f1f4e9; padding-block: clamp(3.2rem, 7vw, 6.4rem); }
.architecture-heading { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: .95rem 8%; }
.architecture-heading .label { color: #c5d9c4; margin-bottom: 1.2rem; }
.architecture-heading .editorial { max-width: 25ch; }
.architecture-books { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: 2.7rem 5.5%; margin-top: clamp(2rem, 5vw, 4.7rem); }
.lapidus-plate {
  display: grid;
  grid-template-columns: minmax(5rem, .73fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1rem, 2.1vw, 1.8rem);
  border-block: 1px solid #8aab9c;
  padding-block: 1rem;
}
.lapidus-plate img { width: min(100%, 13.5rem); align-self: center; outline: 1px solid #8aab9c; }
.joy-plate img { width: min(100%, 16.4rem); }
.plate-copy .label { color: #c5d9c4; }
.plate-copy h3 { font-size: clamp(1.26rem, 2.35vw, 2.15rem); line-height: 1.03; letter-spacing: -.045em; margin: .45rem 0 .55rem; }
.plate-copy h3 span { display: block; color: #deeadb; margin-top: .18rem; font: 400 .83em/1.11 var(--serif); letter-spacing: normal; }
.plate-copy a { margin-top: .4rem; }

.about {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
  padding-block: clamp(3.2rem, 8vw, 7.3rem);
}
.author-figure { grid-area: 1 / 1; width: min(100%, 30rem); container-type: inline-size; }
.about-copy { grid-area: 1 / 2; }
.nameplate, .author-photo {
  width: 100%;
  aspect-ratio: 1.06;
}
.nameplate {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--pale-pine);
  color: var(--pine);
  border: 1px solid #819e90;
  border-left: clamp(.75rem, 2.8vw, 2.5rem) solid #819e90;
  padding: 6% 8%;
}
.plate-place, .plate-role {
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .06em;
  color: var(--pine);
}
.plate-place { border-bottom: 1px solid #64877a; padding-bottom: .4rem; }
.plate-role { border-top: 1px solid #64877a; padding-top: .4rem; }
.plate-name {
  font: 700 clamp(3rem, 19cqi, 6.5rem)/.83 var(--number);
  letter-spacing: -.018em;
  text-transform: uppercase;
}
.author-photo { object-fit: cover; object-position: 50% 40%; }
.author-figure figcaption { color: var(--muted); font-size: .875rem; padding-top: .48rem; }
.author-photo ~ figcaption { display: none; }
.about-copy .label { color: var(--muted); }
.about-copy h2 { margin: .24em 0 .31em; font-size: clamp(2.5rem, 5.8vw, 5.6rem); }
.about-copy p:not(.label) { max-width: 55ch; margin-bottom: .85rem; }
.about-copy a { margin-top: .25rem; }

.closing { background: var(--gold); border-block: 1px solid #c39e62; }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.1rem 2rem; padding-block: clamp(1.8rem, 5.3vw, 4.65rem); }
.closing h2 { font: 700 clamp(2.15rem, 5.3vw, 4.4rem)/1 var(--sans); letter-spacing: -.068em; }
.closing p { margin-top: .4rem; }
.closing .button { justify-self: start; }
.foot { display: flex; min-height: 4.25rem; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; font-size: .875rem; }
.foot span { font-weight: 700; }

@media (max-width: 940px) {
  .edition { padding-inline: 1rem; }
  .architecture-books { grid-template-columns: 1fr 1fr; gap: 1.7rem; }
  .lapidus-plate { grid-template-columns: minmax(0, .67fr) 1fr; }
}

@media (max-width: 720px) {
  .masthead-inner { display: block; min-height: 0; padding-top: .45rem; }
  .identity { justify-content: space-between; }
  .masthead nav { justify-content: space-between; gap: .2rem; border-top: 1px solid var(--rule); margin-top: .2rem; }
  .masthead nav a { font-size: .86rem; }
  .opening-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
    grid-template-areas: "label art" "title art" "copy copy";
    grid-template-rows: auto 1fr auto;
    column-gap: .75rem;
    padding: .95rem .95rem 0;
  }
  .opening-label { align-self: end; padding: .5rem 0 .34rem; font-size: .78rem; }
  .opening h1 { align-self: center; padding-bottom: .25rem; }
  .address-number { font-size: clamp(4.8rem, 23.5vw, 10.5rem); margin-top: .08em; }
  .featured-title { font-size: clamp(1.17rem, 6.5vw, 3.6rem); line-height: 1; letter-spacing: -.055em; }
  .opening-copy { padding: .9rem 0 1.1rem; border-top: 1px solid #88674b; margin-top: .85rem; }
  .opening-copy > p:nth-child(2) { margin: .46rem 0 .8rem; }
  .cover-bay { gap: .55rem; padding: .42rem .42rem .32rem; border: 1px solid #806248; align-self: center; }
  .cover-bay img { width: min(100%, 12rem); box-shadow: none; }
  .cover-bay figcaption { width: min(100%, 12rem); justify-content: end; font-size: .7rem; padding-top: .23rem; }
  .cover-bay figcaption span:first-child { display: none; }
  .address { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .account li:nth-child(2) { padding-inline-start: 4%; }
  .account li:nth-child(3) { padding-inline-start: 8%; }
  .editions { grid-template-columns: 1fr; margin-top: 1rem; }
  .edition { grid-template-columns: minmax(0, 1fr) minmax(5rem, .55fr); padding-inline: 0; }
  .edition:nth-child(odd) { border-inline-end: 0; }
  .edition + .edition { border-top: 1px solid #a18c75; }
  .edition img { max-width: 8.5rem; }
  .architecture-heading, .architecture-books { grid-template-columns: minmax(0, 1fr); }
  .architecture-heading .label { margin-bottom: .7rem; }
  .architecture-books { gap: 1.25rem; }
  .lapidus-plate { grid-template-columns: minmax(0, .6fr) 1fr; }
  .lapidus-plate img { width: min(100%, 10rem); }
  .about { grid-template-columns: 1fr; gap: 1.35rem; }
  .about-copy { grid-area: auto; }
  .author-figure { grid-area: auto; width: min(100%, 24rem); }
  .closing-inner { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .identity span { font-size: .75rem; }
  .masthead nav a { font-size: .8rem; }
  .cover-bay figcaption { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
}
