@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  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;
}
:root {
  color-scheme: light;
  --paper: #f3efe6;
  --ink: #262720;
  --muted: #575950;
  --line: #b5b3a7;
  --red: #c34726;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: url("assets/paper.png") repeat; opacity: .30;
}
::selection { background: #edb096; color: #211e1a; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
[hidden] { display: none !important; }
.frame { width: min(91.2%, 1512px); margin-inline: auto; }
.mono, .project-field {
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .095em; line-height: 1.4; text-transform: uppercase;
}
.site-header {
  display: flex; align-items: center; gap: 22px; padding: 16px 0 15px;
  border-bottom: 1px solid var(--ink);
}
.wordmark {
  font: italic 400 2.7rem/.95 var(--serif); letter-spacing: -.115em;
  text-decoration: none; padding-right: .1em;
}
.wordmark span, h1 span, h2 span { color: var(--red); }
.mast-label { border-left: 1px solid var(--line); padding-left: 21px; letter-spacing: .11em; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.site-header nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
  font-size: .94rem; font-weight: 500; text-decoration: none;
}
.site-header nav a:hover, .back:hover { color: var(--red); }
.site-header nav [aria-current]::before {
  content: ""; background: var(--red); width: 6px; height: 6px; border-radius: 50%;
}
.skip {
  position: fixed; top: .5rem; left: .5rem; transform: translateY(-160%);
  z-index: 10; padding: .7rem 1rem; color: white; background: var(--ink);
}
.skip:focus { transform: none; }
.hero {
  display: grid; grid-template-columns: 1fr .95fr; align-items: start; gap: 3%;
  padding-block: clamp(42px, 4vw, 72px) clamp(40px, 4vw, 74px);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 {
  margin: 18px 0 22px -.035em; font-size: clamp(5.5rem, 8.97vw, 10rem);
  line-height: .86; letter-spacing: -.048em;
}
h1 em { font-weight: 400; }
.hero-copy h1 {
  font-size: clamp(4.5rem, 8.25vw, 8.25rem);
  line-height: 1;
  /* Match the top of the capital J to the disc's inset in the cover. */
  margin-top: calc(.5% - .12em);
  margin-bottom: 0;
}
.browse {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 11px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 10px 16px; text-decoration: none; font-size: .91rem; font-weight: 500;
  min-height: 43px; transition: background-color .15s, border-color .15s;
}
.browse:hover { background: #a5381d; border-color: #a5381d; }
.grid-icon {
  display: block; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) left top,
    linear-gradient(currentColor, currentColor) right top,
    linear-gradient(currentColor, currentColor) left bottom,
    linear-gradient(currentColor, currentColor) right bottom;
  background-size: 5.5px 5.5px; background-repeat: no-repeat;
}
.list-icon {
  width: 15px; height: 13px; display: block;
  background: repeating-linear-gradient(to bottom,currentColor 0 2px,transparent 2px 5px);
}
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; }
.cover { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.index { border-top: 3px double var(--ink); padding-bottom: clamp(50px, 6vw, 98px); }
.index-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  padding: 25px 0 24px;
}
h2 { font-size: clamp(3rem, 4.35vw, 5.25rem); line-height: 1; letter-spacing: -.045em; }
.tools, .filter-set, .view-set { display: flex; align-items: center; gap: 3px; }
.tools { gap: 20px; }
.tools button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  min-height: 38px; border-radius: 2px;
}
.filter-set button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  font-size: .9rem; font-weight: 500;
}
.filter-set small { font: .73rem var(--mono); opacity: .83; }
.filter-set button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-set button:hover:not([aria-pressed="true"]), .view-set button:hover { background: #e2dfd4; }
.view-set { border-left: 1px solid var(--line); padding-left: 14px; gap: 2px; }
.view-set button { width: 34px; display: grid; place-items: center; color: var(--muted); }
.view-set button[aria-pressed="true"] { color: var(--ink); background: #e0ddd2; }
.projects {
  padding: 0; margin: 0; list-style: none; display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px clamp(15px, 2.05vw, 36px);
}
.project { position: relative; min-width: 0; border-bottom: 1px solid var(--line); padding-block-end: 23px; }
.plate {
  aspect-ratio: 2.12; position: relative; overflow: hidden; isolation: isolate;
  display: grid; place-items: center;
  background: var(--plate-paper); border: 1px solid rgb(25 29 17 / .19);
}
.plate-pattern { position: absolute; z-index: -1; pointer-events: none; inset: 0; }
.plate-pattern::before {
  content: ""; position: absolute; width: 71%; aspect-ratio: 1;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 8px, var(--plate-ink) 8px 9px, transparent 9px 11px);
  opacity: .53;
}
.project:nth-child(3n+2) .plate-pattern::before {
  border-radius: 0; width: 75%; height: 160%; transform: translate(-50%,-50%) rotate(-30deg);
  background: repeating-linear-gradient(90deg, transparent 0 8px, var(--plate-ink) 8px 9px);
  mask-image: linear-gradient(90deg,transparent,#000 22% 78%,transparent);
}
.project:nth-child(3n) .plate-pattern::before {
  width: 53%; background: var(--plate-ink); opacity: .47;
  mask-image: radial-gradient(circle,black 1px,transparent 1.5px);
  mask-size: 4px 4px;
}
.plate img {
  width: 72%; height: 77%; position: absolute; inset: 0; margin: auto;
  object-fit: contain; mix-blend-mode: multiply;
  transition: transform .25s ease;
}
.project:has(.project-link:hover) .plate img,
.project:has(.project-link:focus-visible) .plate img { transform: scale(1.045) rotate(-1deg); }
.project-copy { padding-top: 15px; }
.project-field { font-size: .75rem; color: #50534a; line-height: 1.5; letter-spacing: .055em; }
.field-divider { margin-inline: 7px; opacity: .63; }
h3 { font-size: clamp(2.05rem, 2.85vw, 3.35rem); line-height: 1.12; letter-spacing: -.03em; margin: 4px 0 6px; }
.project-link { text-decoration: underline; text-decoration-color: #aaa99c; text-decoration-thickness: 1px; text-underline-offset: .13em; }
.project-link::after { content: ""; position: absolute; inset: 0; }
.project-link:hover, .project-link:focus-visible { color: #92391f; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.project-link:focus-visible { outline: none; }
.project-link:focus-visible::after { outline: 2px solid var(--red); outline-offset: 4px; }
.project-copy p { font-size: 1rem; color: #44473e; line-height: 1.5; max-width: 48ch; }
.projects[data-layout="list"] { display: block; border-top: 1px solid var(--line); }
.projects[data-layout="list"] .project { display: grid; grid-template-columns: clamp(82px,10vw,155px) 1fr; align-items: center; gap: 24px; padding: 15px 0; }
.projects[data-layout="list"] .project-copy { display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 28px; align-items: center; padding: 0; }
.projects[data-layout="list"] .project-field { grid-area: 1 / 1; }
.projects[data-layout="list"] h3 { grid-area: 2 / 1; margin-block: 2px 0; font-size: clamp(1.8rem, 2.35vw, 2.8rem); }
.projects[data-layout="list"] .project-copy p { grid-area: 1 / 2 / 3; }
.about { background: #2a2d26; color: var(--paper); }
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8%; align-items: start; padding-block: clamp(46px,6.5vw,100px); }
.about h2 em { color: #f1a780; }
.about p { max-width: 47ch; font-size: clamp(1.06rem,1.45vw,1.45rem); line-height: 1.6; }
footer { display: flex; align-items: center; gap: 18px; padding-block: 25px; font-size: .93rem; }
footer .wordmark { font-size: 2.2rem; }
.back { margin-left: auto; text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1700px) { .hero { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .88fr; gap: 1%; }
  h1 { font-size: clamp(4.65rem, 9.8vw, 6.8rem); }
  .tools { gap: 10px; }
  .filter-set button { padding-inline: 8px; }
  .projects { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .frame { width: 90%; }
  .site-header { padding-block: 10px; gap: 14px; }
  .mast-label { font-size: .71rem; letter-spacing: .05em; padding-left: 12px; }
  .site-header nav { gap: 17px; }
  .site-header nav a { font-size: .875rem; }
  .wordmark { font-size: 2.3rem; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 31px 25px; }
  .hero-copy { position: relative; z-index: 1; }
  h1 { font-size: clamp(4.8rem,16vw,6.8rem); margin: 14px 0 17px; }
  .hero-copy h1 { margin-top: 4px; font-size: clamp(4.25rem, 15vw, 4.5rem); }
  .browse { margin-top: 17px; }
  .hero-art { width: min(100%, 420px); justify-self: end; aspect-ratio: 2.12; }
  .cover { width: auto; height: 100%; max-width: 100%; position: absolute; right: 4%; }
  .index-header { align-items: start; flex-direction: column; padding: 22px 0 15px; gap: 14px; }
  h2 { font-size: 3.05rem; }
  .tools { width: 100%; justify-content: space-between; gap: 4px; }
  .view-set { padding-left: 6px; gap: 0; }
  .view-set button { width: 32px; }
  .filter-set { gap: 1px; }
  .filter-set button { gap: 4px; min-height: 40px; padding-inline: 8px; }
  .projects { grid-template-columns: 1fr; gap: 23px; }
  .plate { aspect-ratio: 2.15; }
  .project { padding-bottom: 18px; }
  .project-copy { padding-top: 12px; }
  .projects[data-layout="list"] .project { grid-template-columns: 70px 1fr; gap: 13px; }
  .projects[data-layout="list"] .plate { aspect-ratio: 1; }
  .projects[data-layout="list"] .project-copy { display: block; }
  .projects[data-layout="list"] .project-copy p { margin-top: 5px; font-size: .95rem; }
  .about-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 370px) {
  .mast-label { display: none; }
  .view-set { padding-left: 2px; }
  .view-set button { width: 28px; }
  .filter-set button { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media (max-width: 490px) { .site-header .mast-label { display: none; } }
