* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f4f0e5;
  color: #172f46;
  font:
    17px/1.48 Georgia,
    serif;
}
header,
main {
  max-width: 1430px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6%;
  border-bottom: 1px solid #879399;
}
a {
  color: inherit;
}
nav {
  display: flex;
  gap: 24px;
}
nav a,
.wordmark {
  text-decoration: none;
}
.wordmark {
  font-size: 26px;
}
.cover,
.benchgrid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5vw;
  align-items: center;
}
.cover {
  padding: 6%;
}
.intro h1 {
  font:
    normal clamp(74px, 9vw, 144px) / 0.83 Georgia,
    serif;
  letter-spacing: -0.08em;
  margin: 24px 0;
}
.intro p {
  max-width: 375px;
}
.frontispiece,
.easel {
  margin: 0;
}
.coverpic {
  height: 440px;
  background: #163965;
}
.button,
button {
  display: inline-block;
  padding: 13px 19px;
  border: 1px solid #153751;
  background: #153751;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font:
    600 15px/1.3 Arial,
    sans-serif;
}
.button b {
  margin-left: 20px;
}
.kicker,
label,
legend,
figcaption,
footer,
nav {
  font:
    12px/1.4 Consolas,
    monospace;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
figcaption {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
}
.easel canvas {
  width: 100%;
  height: auto;
  display: block;
}
#bench,
#drawer {
  margin: 0 6%;
  padding: 48px 0;
  border-top: 1px solid #8a9897;
}
h2 {
  font:
    normal clamp(40px, 5vw, 75px) / 1 Georgia,
    serif;
  letter-spacing: -0.055em;
  margin: 0.24em 0 0.5em;
}
.benchgrid {
  grid-template-columns: 1.1fr 0.9fr;
}
.notebook {
  padding: 12px;
}
.notebook label {
  display: block;
}
select {
  display: block;
  padding: 10px;
  background: transparent;
  color: inherit;
  min-width: 180px;
  font: inherit;
}
fieldset {
  border: 0;
  margin: 18px 0;
  padding: 0;
}
legend {
  padding-bottom: 8px;
}
fieldset button,
#collection button {
  background: transparent;
  color: inherit;
  padding: 10px 12px;
  margin: 0 6px 5px 0;
}
fieldset button[aria-pressed="true"] {
  background: #193e65;
  color: white;
}
#note {
  min-height: 1.5em;
}
#collection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
footer {
  padding: 24px 6%;
  border-top: 1px solid #879399;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #a65020;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .cover,
  .benchgrid {
    grid-template-columns: 1fr;
  }
  .coverpic {
    height: 290px;
  }
  .cover {
    padding-top: 34px;
  }
  .notebook {
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@font-face {
  font-family: Instrument;
  src: url(fonts/InstrumentSerif-Regular.ttf);
}
@font-face {
  font-family: Instrument;
  src: url(fonts/InstrumentSerif-Italic.ttf);
  font-style: italic;
}
body {
  background: #f2f0e6;
  color: #152b48;
}
header {
  margin: 0 4.2%;
  max-width: none;
  padding: 17px 0;
  border-color: #52687c;
}
.wordmark,
.intro h1,
h2,
figcaption i {
  font-family: Instrument, Georgia, serif;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 35px;
  line-height: 1;
}
.glyph {
  font: 30px Georgia;
  color: #345983;
}
nav {
  font-size: 13px;
}
nav a {
  text-underline-offset: 5px;
}
nav a:hover {
  text-decoration: underline;
}
#count {
  border: 1px solid #8b9ca3;
  border-radius: 50%;
  padding: 2px 6px;
}
.cover {
  position: relative;
  padding: clamp(32px, 4.7vw, 70px) 5.1% clamp(35px, 5.2vw, 76px);
  grid-template-columns: 0.63fr 1fr;
  gap: 3.5vw;
}
.intro {
  padding-left: 2.6vw;
}
.intro h1 {
  font-size: clamp(94px, 10.8vw, 158px);
  letter-spacing: -0.06em;
  line-height: 0.79;
  margin: 26px 0 28px;
}
.intro h1 i {
  margin-left: 12%;
  font-weight: 400;
}
.intro p {
  max-width: 330px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.36;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: #46586b;
}
.button {
  margin-top: 8px;
  min-height: 48px;
  background: #193453;
}
.button:hover,
button:hover {
  filter: brightness(1.17);
}
.frontispiece {
  width: 100%;
  transform: rotate(0.8deg);
  padding: 13px 13px 1px;
  background: #e7e6db;
  border: 1px solid #bbc0af;
  box-shadow: 4px 6px 0 #d8d9cb;
}
.frontispiece .mat {
  position: relative;
}
.frontispiece .mat:before,
.frontispiece .mat:after {
  content: "";
  position: absolute;
  background: #bebaa3;
  opacity: 0.75;
  width: 47px;
  height: 16px;
  transform: rotate(-25deg);
  z-index: 1;
  left: -10px;
  top: 4px;
}
.frontispiece .mat:after {
  left: auto;
  right: -10px;
  top: auto;
  bottom: 3px;
}
.frontispiece .coverpic {
  display: block;
  width: 100%;
  height: clamp(330px, 34vw, 530px);
  object-fit: cover;
}
.frontispiece figcaption {
  align-items: center;
  font-size: 10px;
}
.frontispiece figcaption i {
  font-size: 20px;
}
.easel {
  border: 1px solid #9aa9a9;
  padding: 10px 10px 0;
  background: #e6eadd;
}
.easel figcaption {
  padding: 10px 3px;
}
.notebook {
  border-left: 1px solid #b7b8a9;
  padding-left: 6%;
}
#bench,
#drawer {
  margin: 0 5%;
}
#drawer {
  min-height: 240px;
}
.origin {
  max-width: 480px;
  color: #4b5d66;
  font-size: 15px;
}
@media (max-width: 700px) {
  header {
    margin: 0 5%;
    padding: 15px 0;
  }
  .wordmark {
    font-size: 27px;
  }
  .glyph {
    font-size: 23px;
  }
  nav {
    gap: 13px;
    font-size: 11px;
  }
  .cover {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 6% 38px;
  }
  .intro {
    padding: 0;
  }
  .intro h1 {
    font-size: clamp(82px, 16vw, 108px);
    margin: 14px 0;
    line-height: 0.9;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 i {
    margin-left: 8px;
  }
  .intro p {
    font-size: 18px;
    max-width: 350px;
    margin: 10px 0;
  }
  .button {
    margin-top: 6px;
  }
  .frontispiece {
    padding: 9px 9px 0;
  }
  .frontispiece .coverpic {
    height: clamp(205px, 54vw, 310px);
  }
  .notebook {
    border: 0;
    padding: 0;
  }
}

#zoom {
  font:
    12px Consolas,
    monospace;
  background: none;
  border-color: #8b9aa6;
  color: #234661;
  padding: 7px 10px;
}
.easel figcaption {
  align-items: center;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.actions button {
  min-height: 44px;
}
#next {
  background: transparent;
  color: #153751;
}
details {
  border-block: 1px solid #a8ada6;
  padding: 8px 0;
  margin-bottom: 14px;
}
summary {
  cursor: pointer;
  font:
    14px/1.4 Consolas,
    monospace;
  padding: 7px 0;
}
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 8px 0;
  font: 15px/1.4 Georgia;
}
dt {
  font-weight: bold;
}
dd {
  margin: 0;
}
.notebook fieldset button {
  min-height: 44px;
}
.notebook #note {
  padding-left: 10px;
  border-left: 2px solid #99aaa8;
}
.notebook #note:empty {
  display: none;
}
@media (max-width: 700px) {
  #bench,
  #drawer {
    scroll-margin-top: 12px;
  }
  .notebook {
    padding-top: 0;
  }
  .benchgrid {
    gap: 16px;
  }
  .easel figcaption {
    font-size: 10px;
  }
  .intro .button {
    font-size: 15px;
  }
}

/* The cover opens as a single exposed cyanotype sheet. */
.cover {
  margin: 0;
  display: block;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 44vw, 690px);
  background: #0d294d;
  padding: 5.3% 6.2% 7.3%;
}
.cover .frontispiece,
.cover .frontispiece .mat,
.cover .frontispiece .coverpic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  transform: none;
  border: 0;
  box-shadow: none;
}
.cover .frontispiece {
  z-index: -2;
  background: #113b70;
}
.cover .frontispiece .coverpic {
  object-fit: cover;
  object-position: center 49%;
}
.cover .mat:before,
.cover .mat:after {
  display: none;
}
.cover:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #082341fa 1%,
    #09264ac9 25%,
    #122f521a 62%
  );
}
.cover .intro {
  color: #fcfae9;
  padding-left: 0;
}
.cover .intro h1 {
  font-size: clamp(100px, 10.8vw, 166px);
  margin: 25px 0 28px;
  line-height: 0.78;
}
.cover .intro h1 i {
  margin-left: 0.25em;
}
.cover .intro .kicker {
  color: #d9e6e8;
}
.cover .intro p {
  max-width: 336px;
  font-size: clamp(18px, 1.45vw, 22px);
  text-shadow: 0 1px 3px #132b4b;
}
.cover .button {
  background: #e9e9d6;
  border-color: #e9e9d6;
  color: #193751;
}
.cover .frontispiece figcaption {
  position: absolute;
  bottom: 20px;
  right: 4%;
  display: flex;
  gap: 16px;
  align-items: center;
  color: #fff9e6;
  background: #102d4cdd;
  border: 1px solid #cddbd36b;
  padding: 5px 12px;
  line-height: 1;
}
.cover .frontispiece figcaption i {
  font-size: 17px;
}
@media (max-width: 700px) {
  .cover {
    min-height: 510px;
    margin: 0;
    padding: 225px 6% 30px;
  }
  .cover:before {
    background: linear-gradient(
      0deg,
      #09294dfa 2%,
      #09294df5 37%,
      #15345811 76%
    );
  }
  .cover .frontispiece .coverpic {
    object-position: 59% 33%;
  }
  .cover .intro .kicker {
    font-size: 10px;
  }
  .cover .intro h1 {
    font-size: clamp(80px, 18vw, 116px);
    margin: 12px 0 15px;
  }
  .cover .intro h1 i {
    margin-left: 5px;
  }
  .cover .intro p {
    font-size: 17px;
    margin: 8px 0 13px;
    max-width: 340px;
  }
  .cover .frontispiece figcaption {
    top: 12px;
    bottom: auto;
    right: 13px;
    background: #122c49cf;
    padding: 5px 8px;
    font-size: 9px;
  }
  .cover .frontispiece figcaption i {
    font-size: 14px;
  }
}
