@font-face {
  font-family: Instrument;
  src: url("../assets/projects/fonts/instrument-serif.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("../assets/projects/fonts/instrument-serif-italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #f5f3ec;
  --ink: #232720;
  --muted: #5c6158;
  --line: #c9c9bc;
  --blue: #283d64;
  --cream: #f8efdc;
  --serif: Instrument, Georgia, serif;
  --mono: "Courier New", monospace;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #b86b25; outline-offset: 4px; }
::selection { background: #dee2ae; color: #1c241c; }
.shell { width: min(1192px, 90%); margin-inline: auto; }
.mast, .mast nav, .section-title, .index-title, .next { display: flex; align-items: center; justify-content: space-between; }
.mast { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { font-size: 25px; font-weight: 720; letter-spacing: -.065em; text-decoration: none; }
.mast nav { gap: clamp(14px, 2.6vw, 38px); font-size: 14px; }
.mast nav a, .back, .index-links a { text-decoration: none; }
.mast nav a { padding-block: 12px; }
.mast nav [aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.mast nav a:hover, .back:hover { text-decoration: underline; }
.arrow { font: normal .9em Arial,sans-serif; }
.skip { position: absolute; left: 8px; top: -100px; padding: 12px; background: white; z-index: 4; }
.skip:focus { top: 8px; }
.index-title { align-items: end; gap: 30px; padding-block: clamp(42px,5.8vw,84px) clamp(26px,3.8vw,56px); }
h1, h2, h3, .dek, .feature-sub { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(74px,8.6vw,134px); line-height: .95; letter-spacing: -.04em; }
h1 em { font-weight: 400; }
.index-links { width: 200px; padding-bottom: 2px; font-size: 13px; }
.index-links a { display: flex; justify-content: space-between; padding-block: 7px; }
.index-links a + a { border-top: 1px solid var(--line); }
.index-links span { font-family: var(--mono); color: var(--muted); }
.index-links a:hover { color: var(--blue); text-decoration: underline; }
.meta, .plate-caption { font: 500 11px/1.4 var(--mono); letter-spacing: .085em; text-transform: uppercase; }
.feature { display: grid; grid-template-columns: 1fr 1fr; text-decoration: none; background: var(--blue); color: var(--cream); }
.feature-copy { padding: clamp(30px,4vw,58px); display: flex; flex-direction: column; align-items: start; justify-content: center; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d4c183; margin-right: 10px; }
.feature h2 { font-size: clamp(90px,9vw,146px); line-height: .95; letter-spacing: -.055em; margin-top: clamp(25px,3vw,42px); }
.feature-sub { font-style: italic; font-size: clamp(28px,3vw,44px); line-height: 1.12; margin-block: 6px 18px; }
.synopsis { max-width: 42ch; font-size: 15px; line-height: 1.6; color: #e0e2de; }
.read { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #b1b7b5; padding-bottom: 5px; margin-top: 32px; }
.plate { position: relative; isolation: isolate; overflow: hidden; background: #d9d8cd; }
.plate-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate-caption { position: absolute; bottom: 12px; left: 14px; color: #272b24; font-size: 9px; }
.anatomy { background: #243858; color: var(--cream); display: grid; place-items: center; min-height: 290px; }
.anatomy::before, .anatomy::after { content: ""; position: absolute; border: 1px solid #78889966; pointer-events: none; }
.anatomy::before { inset: 6%; }
.anatomy::after { height: 80%; aspect-ratio: 1; border-radius: 50%; z-index: -1; }
.anatomy .plate-image { position: absolute; width: 70%; height: 82%; object-fit: contain; }
.anatomy .plate-caption { left: 8%; bottom: 8%; color: #eee3c9; font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); }
.section-title { border-top: 1px solid var(--line); margin-top: clamp(56px,6vw,92px); padding: 23px 0 28px; align-items: baseline; gap: 16px; }
.section-title h2 { font-size: clamp(36px,4.2vw,60px); line-height: 1; letter-spacing: -.035em; }
.section-title .meta, .card .meta, .article .meta, .detail-head .meta { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 42px 24px; }
.card { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.card .plate { aspect-ratio: 810/420; }
.card-text { padding-top: 18px; }
.card h3 { display: flex; align-items: center; justify-content: space-between; font-size: clamp(34px,3.3vw,48px); letter-spacing: -.035em; margin: 6px 0; }
.card h3 .arrow { font-size: 21px; }
.card p, .prose p, figcaption { color: var(--muted); line-height: 1.6; }
.card p { font-size: 15px; max-width: 42ch; }
.back { display: inline-block; margin: 30px 0; font-size: 14px; }
.detail-head { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: stretch; gap: 36px; padding-block: 15px 42px; }
.detail-head > div:first-child { align-self: center; }
.detail-head h1 { margin-block: 18px 10px; }
.detail-head .plate { width: 100%; min-width: 0; min-height: 230px; aspect-ratio: 1.85; }
.dek { font-size: clamp(27px,3.1vw,44px); font-style: italic; line-height: 1.15; }
.article { display: grid; grid-template-columns: 1fr 2.2fr; border-top: 1px solid var(--line); padding-top: 38px; gap: 30px; }
aside ul { list-style: none; padding: 0; margin: 12px 0 24px; }
aside li, .source { font-size: 14px; line-height: 1.7; }
.source { display: block; width: fit-content; margin-bottom: 9px; }
.prose { max-width: 670px; }
.prose section + section { margin-top: 34px; }
.prose h2 { font-size: clamp(31px,3.4vw,46px); letter-spacing: -.025em; margin-bottom: 10px; line-height: 1.1; }
.prose p { font-size: 17px; color: #41463f; }
.flow { list-style-position: inside; display: grid; grid-template-columns: repeat(2,1fr); padding: 0; border-top: 1px solid var(--line); }
.flow li { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.flow li::marker { color: var(--muted); font-family: var(--mono); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gallery figure:first-child { grid-column: 1/-1; }
.gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
figcaption { margin-top: 12px; font-size: 14px; max-width: 74ch; }
.next { border-block: 1px solid var(--line); padding: 22px 0; margin-top: 60px; text-decoration: none; gap: 20px; }
.next span:last-child { font: 34px var(--serif); }
.shell + .portfolio-footer { margin-top: 64px; }
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-copy { padding: 30px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 36px); }
  .mast { min-height: 62px; }
  .index-title { display: block; padding-block: 38px 22px; }
  .index-links { display: flex; width: auto; gap: 22px; margin-top: 18px; }
  .index-links a { gap: 7px; align-items: baseline; }
  .index-links a + a { border: 0; }
  .feature, .detail-head, .article, .gallery { grid-template-columns: 1fr; }
  .feature .anatomy { grid-row: 1; min-height: 205px; }
  .feature-copy { padding: 25px; }
  .feature h2 { margin-top: 16px; font-size: 78px; }
  .feature-sub { margin-bottom: 11px; }
  .read { margin-top: 19px; }
  .grid { grid-template-columns: 1fr; gap: 30px; }
  .section-title { margin-top: 46px; padding: 20px 0; }
  .detail-head { gap: 22px; padding-bottom: 24px; }
  .detail-head h1 { font-size: clamp(62px,14vw,88px); }
  .detail-head .plate { min-height: 0; }
  .article { padding-top: 20px; }
  aside { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  aside ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 12px; }
  .gallery figure:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .feature-sub, .dek { animation: text-arrive 540ms cubic-bezier(.2,.7,.2,1) both; }
  .feature .plate, .detail-head .plate { animation: uncover 620ms cubic-bezier(.2,.7,.2,1) both; }
  .plate-image, .card h3 .arrow, .read span {
    transition: transform 460ms cubic-bezier(.2,.7,.2,1);
  }
  @keyframes text-arrive {
    from { opacity: .4; filter: blur(3px); transform: translateY(5px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
  }
  @keyframes uncover {
    from { clip-path: inset(0 0 7% 0); }
    to { clip-path: inset(0); }
  }
  @media (hover: hover) and (pointer: fine) {
    :is(.card, .feature):hover .plate-image { transform: scale(1.045); }
    .card:hover h3 .arrow { transform: translate(2px,-2px); }
    .feature:hover .read span { transform: translateX(5px); }
    .card:hover .card-text .meta { animation: text-arrive 420ms both; }
  }
}
