@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-500.woff2") format("woff2");
}

:root {
  --paper: #f3f1ec;
  --paper-2: #e7e4dc;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #d5d1c8;
  --brass: #8a6232;
  --white: #faf9f6;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 66ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(28, 36, 48, 0.03), transparent 280px),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

a { color: inherit; }

a:hover { color: var(--brass); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1080px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 1.4rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.mark {
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mark span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  color: var(--brass);
  box-shadow: inset 0 -1px 0 var(--brass);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: end;
  padding: 3.2rem 0 2.4rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0.2rem 0 0.8rem; }

h2 { font-size: 1.8rem; margin: 0 0 0.6rem; }

h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }

.kicker {
  margin: 0;
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede, .page-title p { font-size: 1.15rem; max-width: var(--measure); }

.page-title { padding-top: 2.6rem; }

.section { padding: 0.4rem 0 2.6rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.piece, .note {
  display: grid;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.piece { grid-template-columns: 3.2rem 1.4fr 0.8fr 1.6fr; }

.note { grid-template-columns: 12rem 1fr; }

.piece:last-child, .note:last-child { border-bottom: 1px solid var(--line); }

.index {
  font-family: var(--serif);
  color: var(--brass);
}

.piece-name, .note h2 {
  margin: 0;
  font-size: 1.45rem;
}

.meta, .note time { color: var(--muted); font-size: 0.92rem; }

.plate {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink);
  background:
    linear-gradient(160deg, transparent 0 42%, var(--ink) 42% 43%, transparent 43%),
    linear-gradient(90deg, var(--paper-2), var(--white));
  position: relative;
}

.plate::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 18%;
  height: 46%;
  border: 1px solid var(--brass);
}

.plate-wharf { background: linear-gradient(180deg, #d5dde4 0 55%, #1c2430 55% 58%, #e7e4dc 58%); }
.plate-ledger { background: repeating-linear-gradient(90deg, #faf9f6 0 18px, #e7e4dc 18px 19px); }
.plate-room { background: linear-gradient(#faf9f6, #faf9f6) 20% 18% / 60% 64% no-repeat, #243044; }
.plate-press { background: linear-gradient(#1c2430, #1c2430) 0 78% / 100% 8% no-repeat, #f3f1ec; }

.project-hero {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: end;
  padding-top: 2.4rem;
}

.project-hero .plate { max-height: 420px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding-bottom: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.3rem 1.3rem 1.1rem;
}

.prose { max-width: 74ch; }

.prose p { margin: 0 0 1rem; }

.facts {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot strong { color: var(--ink); display: block; margin-bottom: 0.4rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0.15rem 0; }

@media (max-width: 800px) {
  .hero, .project-hero, .split, .foot, .piece, .note {
    grid-template-columns: 1fr;
  }
  .top { align-items: start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .plate { max-height: 280px; }
}
