@font-face {
  font-family: "Wrenfold Sans";
  src: url("../fonts/wf-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wrenfold Sans";
  src: url("../fonts/wf-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wrenfold Condensed";
  src: url("../fonts/wf-cond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wrenfold Condensed";
  src: url("../fonts/wf-cond-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* The site is a set of drawing sheets: a warm charcoal sheet, linen linework and text,
   timber amber for dimensions and actions. */
:root {
  --sheet: #1c1a17;
  --panel: #25221e;
  --glass: #2f2b26;
  --linen: #ebe4d6;
  --dim: #b3aa9a;
  --rule: #8b8273;
  --faint: #4d473e;
  --amber: #e0a868;
  --amber-2: #f0c08a;
  --timber: #b98454;
  --timber-pale: #d8b98e;
  --error: #ff9b86;

  --sans: "Wrenfold Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --cond: "Wrenfold Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

  --t-note: 0.875rem;
  --t-small: 0.9375rem;
  --t-body: 1.125rem;
  --t-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-h3: 1.375rem;
  --t-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --t-h1: clamp(2.75rem, 1.6rem + 5.2vw, 6rem);

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;

  --max: 80rem;
  --margin: clamp(0.75rem, 3vw, 2.5rem);
  --gap: clamp(1rem, 2.5vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--sheet);
}

body {
  margin: 0;
  background: var(--sheet);
  color: var(--linen);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
}


img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--cond);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: 0.98;
  letter-spacing: -0.012em;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -0.008em;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.15;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--amber-2);
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--amber);
  color: var(--sheet);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -10rem;
  z-index: 10;
  padding: var(--s3) var(--s4);
  background: var(--amber);
  color: var(--sheet);
  font-weight: 600;
}

.skip:focus {
  top: var(--s4);
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* The annotation voice: condensed capitals for drawing labels, title blocks and schedule heads */
.label,
.tb dt,
.schedule th,
.d-text,
.d-label {
  font-family: var(--cond);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label {
  font-size: var(--t-note);
  line-height: 1.35;
  color: var(--dim);
}

/* Concept banner */
.concept {
  background: var(--amber);
  color: var(--sheet);
  font-size: var(--t-note);
  line-height: 1.45;
}

.concept p {
  padding-block: var(--s2);
}

.concept strong {
  font-weight: 600;
}

/* Header */
.masthead {
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3) var(--s5);
  padding-block: var(--s3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  min-width: 0;
  color: var(--linen);
  text-decoration: none;
}

.brand:hover {
  color: var(--linen);
}

.brand svg {
  width: 2.25rem;
  flex: none;
}

.brand-name {
  display: block;
  min-width: 0;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name span {
  display: block;
  margin-top: 0.3em;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s4);
  border: 1px solid var(--rule);
  font-family: var(--cond);
  font-weight: 500;
  font-size: var(--t-small);
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
}

.menu[open] summary::after {
  transform: translateY(0.15rem) rotate(-135deg);
}

.nav ul {
  list-style: none;
  padding: 0;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--linen);
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--amber);
}

.nav a[aria-current="page"] {
  color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.menu .nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  padding: var(--s2) var(--margin) var(--s5);
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 20px -12px rgb(0 0 0 / 0.6);
}

.menu .nav li + li {
  border-top: 1px solid var(--faint);
}

.menu .nav a[aria-current="page"] {
  box-shadow: none;
}

.actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s2) var(--s5);
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--sheet);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: var(--amber-2);
  border-color: var(--amber-2);
  color: var(--sheet);
  text-decoration: none;
}

.button.plain {
  background: transparent;
  border-color: var(--linen);
  color: var(--linen);
}

.button.plain:hover {
  background: var(--linen);
  color: var(--sheet);
}

.button svg {
  width: 1em;
  flex: none;
}

.desktop-nav {
  display: none;
}

@media (max-width: 30rem) {
  .actions .button {
    padding-inline: var(--s3);
  }

  .actions .tel .word {
    display: none;
  }
}

@media (max-width: 24rem) {
  .actions .button {
    padding-inline: var(--s2);
    font-size: 0.9375rem;
  }

  .brand {
    gap: var(--s2);
  }

  .brand svg {
    width: 1.75rem;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .brand-name span {
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
  }

  .menu summary {
    padding-inline: var(--s3);
  }
}

/* The desktop header needs about 75 rem for the wordmark, menu and both actions on one line */
@media (min-width: 75rem) {
  .masthead .wrap {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
  }

  .menu {
    display: none;
  }

  .desktop-nav {
    display: block;
  }

  .desktop-nav ul {
    display: flex;
    gap: var(--s5);
    justify-content: center;
  }

  .actions {
    grid-column: auto;
    display: flex;
  }
}

@media (min-width: 75rem) and (max-width: 86rem) {
  .actions .tel .word {
    display: none;
  }
}

/* Sheets: framed areas with a title block along the foot */
main {
  display: block;
}

.block {
  padding-block: clamp(var(--s7), 7vw, var(--s9));
}

.sheet {
  border: 1px solid var(--rule);
  background: var(--sheet);
}

.hero {
  padding-block: var(--s5) clamp(var(--s7), 6vw, var(--s9));
}

.sheet-top {
  display: grid;
  gap: var(--s5) var(--gap);
  padding: clamp(var(--s5), 4vw, var(--s7)) clamp(var(--s4), 3vw, var(--s7)) var(--s5);
}

.sheet-top h1 {
  max-width: 18ch;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.55;
  max-width: 36rem;
}

@media (min-width: 64rem) {
  .sheet-top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }

  .sheet-top h1 {
    grid-column: 1 / -1;
  }

  .sheet-top .lede {
    grid-column: 2;
  }
}

.sheet-drawing {
  padding: var(--s4) clamp(var(--s4), 3vw, var(--s7)) var(--s6);
}

.sheet-drawing svg {
  width: 100%;
  overflow: visible;
}

/* Title block: a ruled strip of labelled cells */
.tb {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.tb > div {
  padding: var(--s3) var(--s4) var(--s4);
  border-right: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.tb > div:nth-child(2n) {
  border-right: 0;
}

.tb dt {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--dim);
}

.tb dd {
  margin: var(--s1) 0 0;
  font-size: var(--t-small);
  line-height: 1.45;
}

.tb .big {
  white-space: nowrap;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
}

.tb .wide {
  grid-column: 1 / -1;
  border-right: 0;
}

.tb .cta-cell {
  display: none;
}

@media (min-width: 64rem) {
  .tb {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .tb > div {
    grid-column: span 2;
    border-bottom: 0;
  }

  .tb > div:nth-child(2n) {
    border-right: 1px solid var(--faint);
  }

  .tb > div:last-child {
    border-right: 0;
  }

  .tb .cell-3 {
    grid-column: span 3;
  }

  .tb .cell-4 {
    grid-column: span 4;
  }

  .tb .cell-5 {
    grid-column: span 5;
  }

  .tb .wide {
    grid-column: span 12;
  }

  .tb .cta-cell {
    display: block;
  }

  .tb .cta-cell dd {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-top: var(--s2);
  }
}

/* Drawing line styles (inline SVG uses the page's CSS) */
.drawing svg * {
  vector-effect: non-scaling-stroke;
}

.d-line {
  fill: none;
  stroke: var(--linen);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.d-fine {
  fill: none;
  stroke: var(--dim);
  stroke-width: 0.9;
}

.d-carcase {
  fill: var(--panel);
  stroke: var(--linen);
  stroke-width: 1.4;
}

.d-timber {
  fill: var(--timber);
  stroke: var(--linen);
  stroke-width: 1.4;
}

.d-timber-light {
  fill: var(--timber-pale);
  stroke: var(--linen);
  stroke-width: 1.2;
}

.d-glass {
  fill: var(--glass);
  stroke: var(--linen);
  stroke-width: 1.2;
}

.d-floor {
  stroke: var(--linen);
  stroke-width: 2.5;
}

.d-hatch {
  stroke: var(--dim);
  stroke-width: 0.8;
}

.d-dim {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1;
}

.d-dot {
  fill: var(--amber);
}

.d-text {
  fill: var(--amber);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.d-label {
  fill: var(--linen);
  font-size: 12px;
}

@media (max-width: 63.99rem) {
  .d-text,
  .d-label {
    font-size: 19px;
  }
}

@media (max-width: 39.99rem) {
  .d-text,
  .d-label {
    font-size: 36px;
  }

  .d-small {
    display: none;
  }
}

.page-hero .sheet-drawing svg.plan {
  max-width: 46rem;
  margin-inline: auto;
}

.plan .d-text,
.plan .d-label {
  font-size: 11px;
}

@media (max-width: 39.99rem) {
  .plan .d-text,
  .plan .d-label {
    font-size: 22px;
  }
}

.piece .d-text {
  font-size: 12px;
}

@media (min-width: 40rem) {
  .piece .d-text {
    font-size: 7px;
  }
}

@media (min-width: 56rem) {
  .piece.small .d-text {
    font-size: 8.5px;
  }
}

.piece.wide .frame svg {
  max-width: 44rem;
  margin-inline: auto;
}

/* Section heads */
.head {
  margin-bottom: clamp(var(--s6), 4vw, var(--s7));
  padding-top: var(--s4);
  border-top: 3px solid var(--linen);
}

.head p {
  margin-top: var(--s4);
  max-width: 44rem;
  color: var(--dim);
}

/* Programme: a chained dimension string, drawn like the elevation's dimensions */
.dimstring {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--amber);
  position: relative;
}

.dimstring::after {
  content: "";
  position: absolute;
  left: -0.45rem;
  bottom: -0.45rem;
  width: 0.9rem;
  border-top: 1px solid var(--amber);
  transform: rotate(-45deg);
}

.dimstring li {
  position: relative;
  padding: var(--s4) 0 var(--s5) var(--s5);
}

.dimstring li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0;
  width: 0.9rem;
  border-top: 1px solid var(--amber);
  transform: rotate(-45deg);
}

.dur {
  display: block;
  font-family: var(--cond);
  font-weight: 500;
  font-size: var(--t-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
}

.dimstring .name {
  display: block;
  margin-top: var(--s1);
  font-family: var(--cond);
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.15;
}

@media (min-width: 56rem) {
  .dimstring {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 0;
  }

  .dimstring::after {
    left: auto;
    right: -0.45rem;
    bottom: auto;
    top: 3.3rem;
  }

  .dimstring li {
    padding: 0 var(--s4);
    text-align: center;
  }

  .dimstring li::before {
    left: -0.45rem;
    top: 3.3rem;
  }

  .dur {
    min-height: 3.75rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 var(--s4) var(--s2);
    margin-inline: calc(-1 * var(--s4));
    border-bottom: 1px solid var(--amber);
    box-shadow: inset 1px 0 0 var(--amber);
  }

  .dimstring li:last-child .dur {
    box-shadow: inset 1px 0 0 var(--amber), inset -1px 0 0 var(--amber);
  }

  .dimstring .name {
    margin-top: var(--s3);
  }
}

.dimstring + .note {
  margin-top: var(--s5);
}

.dimstring .step-note {
  display: block;
  margin-top: var(--s2);
  font-size: var(--t-small);
  color: var(--dim);
  text-align: left;
}

.notes-grid .head {
  margin-bottom: 0;
}

.notes-grid .head + .notes {
  margin-top: var(--s5);
}

.dimstring.with-notes .name {
  text-align: left;
}

@media (min-width: 64rem) {
  .schedule tbody th[scope="row"] {
    width: 19rem;
  }
}

@media (min-width: 56rem) {
  .piece-row {
    grid-template-rows: auto auto;
  }

  .piece-row > .piece.small {
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
}

@media (min-width: 48rem) {
  .schedule tbody th[scope="row"] {
    min-width: 15rem;
  }
}

.note {
  font-size: var(--t-note);
  color: var(--dim);
  max-width: 44rem;
}

/* Schedules: real tables, stacked on phones */
.schedule {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule);
}

.schedule caption {
  caption-side: bottom;
  padding-top: var(--s4);
  text-align: left;
  font-size: var(--t-note);
  color: var(--dim);
}

.schedule th,
.schedule td {
  padding: var(--s4) var(--s4) var(--s4) 0;
  border-bottom: 1px solid var(--faint);
  text-align: left;
  vertical-align: top;
}

.schedule thead th {
  padding-block: var(--s3);
  font-size: 0.8125rem;
  color: var(--dim);
  border-bottom-color: var(--rule);
}

.schedule tbody th {
  font-family: var(--cond);
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.schedule tbody th a {
  color: var(--linen);
  text-decoration-color: var(--rule);
}

.schedule tbody th a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

.schedule .mark {
  width: 3.5rem;
  font-family: var(--cond);
  font-weight: 500;
  color: var(--amber);
}

.schedule .latin {
  display: block;
  margin-top: var(--s1);
  font-family: var(--sans);
  font-size: var(--t-note);
  font-weight: 400;
  font-style: italic;
  color: var(--dim);
}

.schedule td {
  font-size: var(--t-small);
}

.chip {
  width: 7.5rem;
}

.chip svg {
  width: 7.5rem;
  border: 1px solid var(--rule);
}

.chip svg *,
.legend svg * {
  vector-effect: non-scaling-stroke;
}

.timbers .chip {
  width: 17rem;
}

.timbers .chip svg {
  width: 100%;
}

@media (max-width: 47.99rem) {
  .schedule thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .schedule,
  .schedule tbody,
  .schedule tr,
  .schedule th,
  .schedule td {
    display: block;
  }

  .schedule tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 var(--s4);
    padding-block: var(--s4);
    border-bottom: 1px solid var(--faint);
  }

  .schedule th,
  .schedule td {
    grid-column: 2;
    padding: 0;
    border: 0;
  }

  .schedule td + td,
  .schedule th + td {
    margin-top: var(--s2);
  }

  .schedule .mark,
  .schedule .chip {
    grid-column: 1;
    grid-row: 1 / span 6;
    width: auto;
  }

  .schedule .chip svg {
    width: 5.5rem;
  }

  .timbers tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .timbers .chip {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: var(--s3);
  }

  .timbers .chip svg {
    width: 100%;
  }

  .timbers th,
  .timbers td {
    grid-column: 1;
  }

  .schedule td[data-head]::before {
    content: attr(data-head) " ";
    font-family: var(--cond);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dim);
  }
}

.after-table {
  margin-top: var(--s5);
}

/* Notes: numbered drawing notes beside a title block */
.notes-grid {
  display: grid;
  gap: var(--s7) var(--gap);
}

@media (min-width: 64rem) {
  .notes-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.notes {
  padding-left: 1.4em;
  max-width: 40rem;
}

h2 + .notes {
  margin-top: var(--s5);
}

.notes strong {
  font-weight: 600;
}

.notes li {
  padding-left: var(--s2);
}

.notes li + li {
  margin-top: var(--s4);
}

.notes li::marker {
  font-family: var(--cond);
  font-weight: 700;
  color: var(--amber);
}

.panel-tb {
  border: 1px solid var(--rule);
  border-top: 0;
}

.panel-tb .tb {
  grid-template-columns: minmax(0, 1fr);
}

.panel-tb .tb > div {
  grid-column: auto;
  border-right: 0;
  border-bottom: 1px solid var(--faint);
}

.panel-tb .tb > div:last-child {
  border-bottom: 0;
}

.prose > * + * {
  margin-top: var(--s4);
}

.prose {
  max-width: 38rem;
}

.prose ul {
  padding-left: 1.1em;
}

.prose li + li {
  margin-top: var(--s2);
}

.two-up {
  display: grid;
  gap: var(--s7) var(--gap);
}

.two-up h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

@media (min-width: 56rem) {
  .two-up {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  border: 1px solid var(--rule);
  padding: clamp(var(--s5), 3vw, var(--s6));
}

/* Sign-off panel in place of a closing band */
.signoff {
  padding-block: clamp(var(--s7), 7vw, var(--s9));
  border-top: 1px solid var(--faint);
}

.signoff .card {
  display: grid;
  gap: var(--s6) var(--gap);
  border-color: var(--amber);
  border-width: 2px;
}

.signoff p {
  max-width: 34rem;
  margin-top: var(--s4);
}

.signoff .cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

@media (min-width: 64rem) {
  .signoff .card {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

/* Page heads */
.page-hero {
  padding-block: var(--s5) clamp(var(--s6), 5vw, var(--s8));
}

.page-hero .sheet-top h1 {
  max-width: 18ch;
}

/* Furniture: pieces drawn at different sizes */
.pieces {
  display: grid;
  gap: clamp(var(--s7), 6vw, var(--s9)) var(--gap);
}

.piece {
  display: grid;
  gap: var(--s5) var(--gap);
}

.piece .tag {
  display: inline-block;
  margin-bottom: var(--s2);
}

.piece h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.piece .prose {
  margin-top: var(--s4);
}

.piece-row {
  display: grid;
  gap: clamp(var(--s7), 6vw, var(--s9)) var(--gap);
}

@media (min-width: 56rem) {
  .piece.large {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }

  .piece-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .piece.wide .piece-text {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--gap);
  }

  .piece.wide .piece-text .prose {
    margin-top: 0;
  }
}

.piece .frame {
  border: 1px solid var(--faint);
  padding: clamp(var(--s4), 2.5vw, var(--s6));
}

.piece.small .frame svg {
  max-width: 30rem;
  margin-inline: auto;
}

/* Contact: a request-for-quote sheet */
.form-sheet {
  border: 1px solid var(--rule);
}

.form-sheet .form-title {
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--rule);
}

.cells {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40rem) {
  .cells {
    grid-template-columns: 1fr 1fr;
  }

  .cells .full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding: var(--s4) var(--s5) var(--s5);
  border-bottom: 1px solid var(--faint);
}

@media (min-width: 40rem) {
  .cells .field:not(.full):nth-child(odd) {
    border-right: 1px solid var(--faint);
  }
}

.field label {
  font-family: var(--cond);
  font-weight: 500;
  font-size: var(--t-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field label .muted {
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: var(--t-note);
}

.hint {
  font-size: var(--t-note);
  color: var(--dim);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3);
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--panel);
  color: var(--linen);
  font: inherit;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--linen) 50%), linear-gradient(135deg, var(--linen) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - 0.8rem) 1.3rem;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber);
}

.field-error {
  display: none;
  font-size: var(--t-note);
  font-weight: 600;
  color: var(--error);
}

.invalid .field-error {
  display: block;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.field [aria-invalid="true"]:focus-visible {
  outline-color: var(--error);
  border-color: var(--error);
}

@media (forced-colors: active) {
  .field [aria-invalid="true"]:not(:focus-visible) {
    outline: 1px solid;
    outline-offset: -2px;
  }
}

.form-foot {
  display: grid;
  gap: var(--s3);
  justify-items: start;
  padding: var(--s5);
}

.form-intro {
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--faint);
  font-size: var(--t-note);
  color: var(--dim);
}

.sent {
  border: 2px solid var(--amber);
  padding: var(--s6);
}

.sent h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.sent p {
  margin-top: var(--s3);
  max-width: 34rem;
}

.sent:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.contact-grid {
  display: grid;
  gap: var(--s7) var(--gap);
}

@media (min-width: 64rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.big-tel,
.tb .big-tel {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
}

.big-tel a {
  color: var(--linen);
  text-decoration-color: var(--amber);
}

.steps {
  padding-left: 1.2em;
}

.steps li + li {
  margin-top: var(--s2);
}

/* Footer: the sheet's bottom strip */
.footer {
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
  line-height: 1.55;
}

.footer .wrap {
  padding-block: var(--s6) var(--s7);
}

.footer .tb {
  border: 1px solid var(--rule);
}

.footer .tb a {
  color: var(--linen);
}

.footer .tb a:hover {
  color: var(--amber);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.lost-links,
.tb .links {
  list-style: none;
  padding: 0;
}

.footer .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer .legal {
  margin-top: var(--s4);
  font-size: var(--t-note);
  color: var(--dim);
}

.footer .legal p + p {
  margin-top: var(--s2);
}

/* 404 */
.lost .prose {
  margin-top: var(--s5);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  :root {
    --sheet: #fff;
    --panel: #fff;
    --glass: #eee;
    --linen: #111;
    --dim: #444;
    --rule: #777;
    --faint: #bbb;
    --amber: #7a4a12;
  }

  .skip,
  .masthead .actions,
  .menu,
  .desktop-nav,
  .tb .cta-cell,
  .signoff .cta,
  .form-foot .button {
    display: none;
  }

  .concept {
    background: none;
    color: #111;
    border-bottom: 1px solid #111;
  }

  .block,
  .signoff {
    padding-block: var(--s6);
  }

  .piece,
  .dimstring li,
  .schedule tr {
    break-inside: avoid;
  }
}

.long {
  display: inline;
}

@media (max-width: 39.99rem) {
  .long {
    display: none;
  }

  .footer .tb {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer .tb > div {
    border-right: 0;
  }
}

.tb dd + dt {
  margin-top: var(--s3);
}

/* Timber legend: a strip of chips on the home page */
.legend {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--gap);
}

.legend svg {
  width: 100%;
  border: 1px solid var(--rule);
}

.legend p {
  margin-top: var(--s3);
  font-size: var(--t-note);
  color: var(--dim);
}

.legend strong {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--linen);
}

@media (min-width: 48rem) {
  .legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .legend {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 63.99rem) {
  .tb .m-full {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

.code {
  display: inline-block;
  min-width: 1.4em;
  margin-right: 0.35em;
  padding: 0 0.2em;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-weight: 500;
  font-size: 0.7em;
  line-height: 1.4;
  text-align: center;
  vertical-align: 0.2em;
}

.pieces > * + * {
  padding-top: clamp(var(--s7), 6vw, var(--s9));
  border-top: 1px solid var(--faint);
}

@media (min-width: 56rem) {
  .piece.large.flip {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .piece.large.flip .frame {
    order: 2;
  }
}

.contact-grid .panel-tb {
  border-top: 0;
}

.tb .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.page-hero + .block {
  padding-top: clamp(var(--s5), 3vw, var(--s7));
}

.d-tag {
  fill: var(--amber);
  stroke: var(--sheet);
  stroke-width: 1.5;
}

.d-text.d-tag-n {
  fill: var(--sheet);
  font-weight: 700;
}
