@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

body {
  --stock: #f7f3e8;
  --print: #233e30;
  --pencil: #5a6456;
  --rule: #c9c7b9;
  --book-serif: "Instrument Serif", Georgia, serif;
  --serif: var(--book-serif);
  --chalk: var(--stock);
  --forest: var(--print);
  --margin: clamp(1.15rem, 5.2vw, 6rem);
  color: var(--print);
  background: var(--stock);
}
body ::selection { color: var(--stock); background: #38553e; }
body :focus-visible { outline: 2px solid #82572d; outline-offset: 4px; }

body .site-header {
  min-height: 76px;
  padding-inline: max(var(--margin), calc((100% - 1400px) / 2));
  border-color: var(--rule);
  background: var(--stock);
  backdrop-filter: none;
}
body .brand { gap: .7rem; font-family: var(--book-serif); font-size: 2rem; font-weight: 400; letter-spacing: -.025em; }
body .brand br { display: none; }
body .brand-mark { width: 24px; height: 30px; gap: 2px; }
body .brand-mark i { width: 6px; background: var(--print); }
body .site-nav a { font-size: .82rem; text-transform: none; letter-spacing: .015em; }
body .header-quote { gap: .7rem; padding: .6rem 0; border: 0; font-weight: 500; text-transform: none; letter-spacing: .015em; font-size: .82rem; }
body .header-quote:hover { text-decoration: underline; text-underline-offset: 3px; }
body .site-footer { color: var(--stock); background: var(--print); }
body .site-footer h2 { font-family: var(--book-serif); letter-spacing: -.025em; }

.sample-book, .yard-spread {
  width: min(1400px, calc(100% - 2 * var(--margin)));
  margin-inline: auto;
}
.sample-book {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
  grid-template-areas: "plate title" "plate notes" "index index";
  column-gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.3vw, 3.25rem) clamp(2.75rem, 5vw, 5rem);
}
.sample-plate { margin: 0; }
.sample-plate { grid-area: plate; }
.sample-plate > img {
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  background: #ddd0ba;
}
.sample-plate figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: .65rem;
  color: var(--pencil);
}
.sample-plate figcaption span:first-child { font: italic 1.2rem/1.2 var(--book-serif); }
.sample-plate figcaption span:last-child { font-size: .69rem; letter-spacing: .07em; font-variant-numeric: tabular-nums; }

.sample-title, .yard-heading h2 {
  margin: 0;
  font-family: var(--book-serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .92;
  text-wrap: balance;
}
.sample-title {
  grid-area: title;
  align-self: end;
  padding-top: .12em;
  font-size: clamp(4.75rem, 7.8vw, 6rem);
}
.sample-title em { display: block; }
.sample-title em:empty { display: none; }
.sample-notes { grid-area: notes; }
.sample-description {
  max-width: 32ch;
  margin: clamp(1rem, 1.8vw, 1.65rem) 0 clamp(.9rem, 1.7vw, 1.5rem);
  color: #435143;
  font-family: Georgia, serif;
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
  line-height: 1.45;
}
.sample-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem .9rem;
  max-width: 24rem;
  margin: 0 0 1.25rem;
  padding-block: .85rem;
  border-block: 1px solid var(--rule);
}
.sample-specs dt { font-size: .66rem; letter-spacing: .065em; text-transform: uppercase; color: var(--pencil); }
.sample-specs dd { margin: .08rem 0 0; font-size: .85rem; line-height: 1.25; }
.sample-quote, .catalogue-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--print);
  font-size: .87rem;
  line-height: 1.2;
}
.sample-quote {
  min-height: 42px;
  padding: .66rem 1.05rem;
  background: var(--print);
  color: var(--stock);
}
.sample-quote::after, .catalogue-link::after {
  content: "";
  flex: none;
  width: .77rem;
  height: .77rem;
  background: currentColor;
  clip-path: polygon(10% 5%, 100% 5%, 100% 95%, 87% 95%, 87% 27%, 9% 100%, 0 91%, 76% 17%, 10% 17%);
}
.sample-quote:hover { background: #38553e; }
.catalogue-link { border-bottom: 1px solid currentColor; padding-block: .3rem; }
.catalogue-link:hover { color: #775638; }

.sample-index {
  grid-area: index;
  position: relative;
  min-width: 0;
  margin-top: clamp(1.6rem, 3vw, 2.9rem);
  padding-top: .95rem;
  border-top: 1px solid var(--rule);
}
.sample-index fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sample-index legend { padding: 0; font: 1.4rem/1.2 var(--book-serif); }
.sample-index > .catalogue-link { position: absolute; top: .9rem; right: 0; font-size: .77rem; }
.sample-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.5rem, 1.8vw, 1.8rem); margin-top: .65rem; }
.sample-tab { position: relative; display: block; min-width: 0; cursor: pointer; }
.sample-tab input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sample-tab-face {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, .7vw, .85rem);
  min-height: 48px;
  padding-block: .35rem .55rem;
  border-bottom: 1px solid transparent;
  font-family: var(--book-serif);
  font-size: clamp(1.12rem, 1.8vw, 1.5rem);
  line-height: 1;
}
.sample-tab-face img { width: clamp(38px, 4.1vw, 70px); aspect-ratio: 1.6; height: auto; object-fit: cover; }
.sample-tab input:checked + .sample-tab-face { border-color: var(--print); box-shadow: 0 1px var(--print); }
.sample-tab:hover .sample-tab-face { border-color: var(--pencil); }
.sample-tab input:focus-visible + .sample-tab-face { outline: 2px solid #82572d; outline-offset: 3px; }

.yard-story { padding-block: clamp(3rem, 7.5vw, 7.5rem); border-top: 1px solid var(--rule); background: #eae6d7; }
.yard-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--rule); padding-bottom: clamp(1rem, 2.5vw, 2.5rem); }
.yard-heading h2 { font-size: clamp(3.5rem, 6vw, 6rem); }
.yard-heading a { flex: none; }
.yard-steps {
  display: grid;
  grid-template-columns: 1fr 1.25fr .95fr;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: clamp(1.5rem, 4vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
.yard-steps li:first-child { margin-top: clamp(1rem, 3.5vw, 4rem); }
.yard-steps li:last-child { margin-top: clamp(2rem, 6vw, 7rem); }
.yard-steps img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.yard-steps li:nth-child(2) img { aspect-ratio: 1.2; }
.yard-steps h3 { margin: .8rem 0 .35rem; font: 2rem/1.05 var(--book-serif); }
.yard-steps p { max-width: 42ch; margin: 0; color: #435143; font-size: .94rem; line-height: 1.5; }

@media (min-width: 901px) {
  body .site-nav li:has(a[href$="contact.html"]) { display: none; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .sample-book { padding-top: 1.5rem; }
  .sample-plate > img { max-height: 55vh; }
  .sample-index { margin-top: 1.4rem; }
}
@media (max-width: 900px) {
  body .site-nav.open { top: 76px; height: calc(100vh - 76px); height: calc(100dvh - 76px); }
  .sample-book { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 2rem; }
  .sample-title { font-size: clamp(3.5rem, 8vw, 5rem); }
  .sample-tab-face { justify-content: center; }
}
@media (max-width: 680px) {
  body .site-header { min-height: 62px; }
  body .site-nav.open { top: 62px; height: calc(100vh - 62px); height: calc(100dvh - 62px); }
  body .brand { font-size: 1.75rem; }
  body .brand-mark { width: 19px; height: 24px; }
  body .menu-toggle { width: 42px; height: 42px; }
  .sample-book {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "plate" "index" "notes";
    padding-top: 1.3rem;
  }
  .sample-title { padding: 0 0 .7rem; font-size: clamp(3.3rem, 12vw, 4.75rem); }
  .sample-title em { display: inline; }
  .sample-plate figcaption { padding-top: .45rem; }
  .sample-plate figcaption span:first-child { font-size: 1.08rem; }
  .sample-index { margin-top: .9rem; padding-top: .6rem; }
  .sample-index > .catalogue-link { top: .6rem; }
  .sample-index legend { font-size: 1.25rem; }
  .sample-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .65rem; margin-top: .35rem; }
  .sample-tab-face { justify-content: flex-start; gap: .4rem; min-height: 44px; padding-block: .28rem; font-size: 1.15rem; }
  .sample-tab-face img { width: clamp(31px, 9vw, 48px); aspect-ratio: 1.4; }
  .sample-description { margin-block: 1.25rem .8rem; }
  .sample-specs { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
  .sample-specs dt { font-size: .58rem; }
  .sample-specs dd { font-size: .76rem; }
  .yard-heading { display: block; }
  .yard-heading a { margin-top: .65rem; }
  .yard-steps { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .yard-steps li:first-child, .yard-steps li:last-child { margin-top: 0; }
  .yard-steps img, .yard-steps li:nth-child(2) img { aspect-ratio: 3 / 2; }
}
@media (max-width: 370px) {
  .sample-tab-face img { width: 28px; }
  .sample-tab-face { gap: .22rem; }
  .sample-specs { grid-template-columns: 1fr 1fr; }
}

.story-copy h1 {
  margin: 0;
  font: 400 clamp(3rem, 6vw, 6rem)/.96 var(--book-serif);
  letter-spacing: -.035em;
}

/* Architectural applications introduce the material library. */
.project-edition {
  width: min(1480px, calc(100% - 2 * var(--margin)));
  margin: 0 auto;
  padding-block: clamp(2rem, 4vw, 4.5rem) clamp(2rem, 3.8vw, 4rem);
}
.edition-heading {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 2.6vw, 3rem);
}
.edition-heading h1 {
  margin: 0;
  font: 400 clamp(4rem, 8vw, 8rem)/.95 var(--book-serif);
  letter-spacing: -.04em;
}
.edition-heading h1 em { color: #705039; }
.edition-heading p {
  max-width: 35ch;
  margin: 0 0 .2rem auto;
  font-size: clamp(.95rem, 1.2vw, 1.15rem);
  line-height: 1.55;
}
.project-plates {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr;
  align-items: end;
  gap: clamp(.85rem, 1.5vw, 1.6rem);
}
.project-plate { display: block; min-width: 0; }
.project-photo { width: 100%; object-fit: cover; height: clamp(310px, 31vw, 495px); }
.project-plate:nth-child(2) .project-photo { height: clamp(275px, 27vw, 435px); }
.project-plate:nth-child(3) .project-photo { height: clamp(235px, 23vw, 365px); }
.plate-caption {
  display: flex;
  gap: clamp(.45rem, 1vw, 1.1rem);
  align-items: center;
  padding: .95rem 0;
  border-bottom: 1px solid var(--rule);
}
.plate-caption img { width: clamp(1.7rem, 3.3vw, 3.5rem); height: 2.2rem; object-fit: cover; }
.plate-caption small { display: block; color: var(--pencil); font: .72rem/1.4 Arial,sans-serif; }
.plate-caption strong { display: block; font: 400 clamp(1.45rem, 2.3vw, 2.4rem)/1.15 var(--book-serif); }
.plate-caption i { margin-left: auto; }
.plate-caption i::after {
  display: block; content: ""; width: .8rem; height: .8rem; background: currentColor;
  clip-path: polygon(10% 5%, 100% 5%, 100% 95%, 87% 95%, 87% 27%, 9% 100%, 0 91%, 76% 17%, 10% 17%);
}
.project-plate:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.edition-index {
  display: inline-flex; align-items: center; gap: 1rem; padding-block: .55rem; margin-top: .95rem;
  font-size: .85rem; border-bottom: 1px solid var(--print);
}
#campionario { scroll-margin-top: 76px; border-top: 1px solid var(--rule); }
@media (max-width: 800px) {
  .project-plates { grid-template-columns: 1.35fr 1fr 1fr; }
  .plate-caption img { display:none; }
}
@media (max-width: 640px) {
  .project-edition { padding-top: 1.6rem; }
  .edition-heading { display: block; }
  .edition-heading h1 { font-size: clamp(3.5rem, 11.8vw, 5rem); }
  .edition-heading p { margin: .8rem 0 0; max-width: 40ch; font-size: .94rem; }
  .project-plates { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem .85rem; align-items: start; }
  .project-plate:first-child { grid-column: 1/-1; }
  .project-plate .project-photo { height: auto; aspect-ratio: 1.7; }
  .project-plate:nth-child(n+2) .project-photo { height: auto; aspect-ratio: 1.25; }
  .plate-caption { align-items: center; padding: .55rem 0; }
  .plate-caption img { display: block; width: 26px; height: 32px; }
  .project-plate:first-child .plate-caption img { width: 40px; }
  .plate-caption strong { font-size: 1.32rem; }
  .project-plate:first-child strong { font-size: 1.65rem; }
  .plate-caption small { font-size: .64rem; }
  .plate-caption i { display: none; }
  #campionario { scroll-margin-top: 62px; }
}
