@font-face {
  font-family: "Newsreader";
  src: url("newsreader-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("newsreader-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f2;
  --surface: #fffefa;
  --ink: #211e1a;
  --soft: #55504a;
  --edge: #d8d1c6;
  --accent: #a43225;
  --accent-hover: #83271c;
  --dark: #211e1a;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 490; line-height: 1.07; letter-spacing: -.038em; }
h1 { font-size: clamp(2.8rem, 6.25vw, 5.2rem); }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.8rem, 2.75vw, 2.5rem); }
p { color: var(--soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
.wrap { width: min(100% - 4rem, 73rem); margin-inline: auto; }
.skip {
  position: absolute; z-index: 10; transform: translateY(-180%); top: 1rem; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
}
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--edge); }
.header-inner { min-height: 5.4rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.8rem; }
.brand {
  font: 520 clamp(2rem, 3vw, 2.6rem)/1.04 var(--serif); letter-spacing: -.04em;
  color: #181818; width: fit-content; text-decoration: none; white-space: nowrap;
}
.brand em { font-weight: inherit; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.45rem); }
.main-nav a, .language, .footer a:not(.brand) { font-size: .9rem; font-weight: 570; text-decoration: none; }
.main-nav a { position: relative; padding: .45rem 0; }
.main-nav a[aria-current]::after { position: absolute; content: ""; background: currentColor; height: 1px; left: 0; right: 0; bottom: .15rem; }
.main-nav a:hover, .language:hover { color: var(--accent); }
.language {
  justify-self: end; display: grid; place-items: center; min-height: 2.65rem;
  padding: .38rem .8rem; border: 1px solid var(--edge); border-radius: 2rem; white-space: nowrap;
}
.language:hover { border-color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6.15rem); align-items: center; padding-block: clamp(3rem, 6vw, 6rem); }
.hero h1 { font-size: clamp(3.1rem, 5.35vw, 4.85rem); line-height: .99; }
.hero h1 em { display: block; text-wrap: balance; color: var(--accent); font-weight: inherit; }
.eyebrow { margin-bottom: 1.25rem; color: var(--accent); font-size: .865rem; font-weight: 650; letter-spacing: .02em; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.6; }
.hero .lead { max-width: 34rem; margin-block: 1.55rem 1.8rem; }
.hero-illustration { background: #d84732; overflow: hidden; min-width: 0; }
.hero-illustration img { inline-size: 100%; block-size: auto; aspect-ratio: 1 / 1; }
.actions { display: flex; align-items: center; gap: 1.15rem 1.45rem; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.95rem;
  border: 1px solid transparent; font-weight: 620; font-size: .94rem; line-height: 1.2;
  color: inherit; text-align: center; text-decoration: none; padding: .7rem 1.1rem;
}
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); border-radius: .22rem; }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-primary:disabled { cursor: wait; opacity: .66; }
.button-text { padding-inline: 0; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #8b7e72; }
.button-text:hover { color: var(--accent); text-decoration-color: currentColor; }

.portfolio-section { padding-block: 4rem 5rem; border-block: 1px solid var(--edge); background: #f3eee5; }
.platform-section { padding-block: 4.5rem 5.35rem; }
.section-heading {
  display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: end; justify-content: space-between; margin-bottom: 2rem;
}
.section-heading p { margin-top: .7rem; max-width: 39rem; }
.section-heading .button { min-height: 2rem; padding-block: .25rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.project-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--edge); position: relative; min-width: 0;
}
.project-card:hover { border-color: #ab897d; }
.project-card:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.project-card a { text-decoration: none; }
.project-card a:hover { color: var(--accent); }
.project-card a::after { content: ""; position: absolute; inset: 0; }
.project-copy { min-height: 17.25rem; padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; align-items: start; }
.card-platform { font-size: .875rem; color: var(--accent); font-weight: 650; margin-bottom: .45rem; }
.project-descriptor { font-weight: 600; font-size: .94rem; color: var(--ink); margin-block: .35rem .55rem; }
.project-blurb { margin-bottom: 1.15rem; line-height: 1.55; }
.status { color: #4b433c; font-size: .875rem; line-height: 1.3; border: 1px solid var(--edge); border-radius: .2rem; padding: .29rem .54rem; background: #f7f3eb; }
.project-card .status { margin-top: auto; }
.card-art { position: relative; display: block; min-height: 8rem; overflow: hidden; border-bottom: 1px solid var(--edge); }
.card-art i { position: absolute; display: block; }
.field { background: #dbe3d7; color: #435b46; }
.field i { width: 26%; height: 78%; top: 11%; left: 26%; border: 1px solid currentColor; background: #f0f2eb; transform: skewY(-12deg) rotate(-4deg); }
.field i:nth-child(2) { transform: translateX(24%) skewY(-12deg) rotate(-4deg); background: #e2eadf; }
.field i:nth-child(3) { transform: translateX(48%) skewY(-12deg) rotate(-4deg); background: #ccd9c9; }
.field i:nth-child(4) {
  height: 1.9rem; width: 27%; top: 50%; left: 41%; margin-top: -.95rem;
  transform: skewY(-12deg) rotate(-4deg); 
  background: repeating-linear-gradient(180deg, #687e6a 0 1px, transparent 1px 7px);
  border: 0; 
}
.budget { background: #efdcc5; color: #90452d; }
.budget i { width: 14%; height: 31%; bottom: 22%; left: 22%; border: 1px solid currentColor; background: #d69372; }
.budget i:nth-child(2) { height: 43%; left: 36%; background: #dca987; }
.budget i:nth-child(3) { height: 55%; left: 50%; background: #ecd0a9; }
.budget i:nth-child(4) { height: 61%; left: 64%; background: repeating-linear-gradient(135deg, #90452d55 0 1px, transparent 1px 7px); }
.repeat { background: #e0dce7; color: #534669; }
.repeat i { width: 37%; height: 55%; top: 16%; left: 23%; border: 1px solid currentColor; background: #eae5ef; transform: rotate(-9deg); }
.repeat i:nth-child(2) { top: 26%; left: 39%; background: #ccc1db; transform: rotate(8deg); }
.repeat i:nth-child(3), .repeat i:nth-child(4) {
  width: 24%; height: 20%; top: 40%; left: 45%; transform: rotate(8deg);
  background: repeating-linear-gradient(180deg, #69577e 0 1px, transparent 1px 7px); border: 0;
}
.repeat i:nth-child(4) { width: 12%; height: 1px; top: 63%; left: 45%; }

.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.platform-card { display: flex; gap: 1rem; align-items: start; background: var(--surface); border: 1px solid var(--edge); padding: 1.25rem; }
.platform-card h3 { font-size: 2.45rem; }
.platform-card p { margin: .3rem 0 .7rem; line-height: 1.5; }
.platform-card .status { display: inline-block; }
.platform-symbol {
  min-width: 2.75rem; height: 2.75rem; border: 1px solid var(--accent); color: var(--accent); display: grid;
  place-items: center; font: 400 2rem/.9 var(--serif); border-radius: 50%;
}
.platform-research { border-color: var(--edge); color: var(--soft); }

.listing { padding-block: 4.5rem 5.5rem; }
.page-intro { margin-bottom: 2.75rem; max-width: 52rem; }
.page-intro h1 { line-height: .94; }
.page-intro .lead { margin-top: 1.3rem; max-width: 42rem; }
.editorial { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 3rem; padding-block: 4.5rem; }
.editorial .page-intro { margin-bottom: 1.25rem; }
.editorial .actions { margin-top: 1.65rem; }
.about-art { width: 100%; height: auto; aspect-ratio: 1; }
.detail { padding-block: 2.7rem 5rem; }
.back { display: inline-block; margin-bottom: 2rem; font-size: .96rem; text-underline-offset: .25em; }
.back:hover { color: var(--accent); }
.detail-heading { margin-bottom: 2.3rem; }
.detail-subtitle { color: var(--soft); font-size: clamp(1.95rem, 4vw, 3rem); margin-top: .35rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); gap: 2.75rem; align-items: start; }
.detail-main p, .prose-page p { max-width: 45rem; font-size: 1.05rem; }
.detail-main section, .prose-page section { margin-top: 1.9rem; }
.detail-main h2, .prose-page h2 { font-size: 2.45rem; margin-bottom: .6rem; }
.project-figure { margin-bottom: 1.65rem; }
.project-figure img { width: 100%; height: auto; object-fit: contain; border: 1px solid var(--edge); }
figcaption { color: var(--soft); font-size: .875rem; margin-top: .42rem; }
.project-facts { padding: 1.2rem; background: #f3eee5; border: 1px solid var(--edge); }
.project-facts h2 { font-size: 2.15rem; }
.project-facts dl { margin-top: .8rem; font-size: .94rem; }
.project-facts dl div { display: flex; flex-wrap: wrap; gap: 0 .8rem; justify-content: space-between; border-bottom: 1px solid var(--edge); padding: .5rem 0; }
.project-facts dt { color: var(--soft); }
.project-facts dd { font-weight: 620; }
.project-facts .button { margin-top: .4rem; }

.prose-page { padding-block: 4.5rem 5.5rem; }
.prose-page h1 { font-size: clamp(2.7rem, 6vw, 4.55rem); }
.support-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; padding-block: 4.6rem; }
.support-layout h1 { font-size: clamp(2.85rem, 5.25vw, 4.8rem); }
.support-layout .page-intro { margin-bottom: 1.35rem; }
.support-hint { max-width: 30rem; }
.support-card { background: var(--surface); border: 1px solid var(--edge); padding: 1.5rem; }
.support-card fieldset { border: 0; padding: 0; min-width: 0; margin: 0; }
.support-card label { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; font-size: .94rem; font-weight: 620; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.support-card input, .support-card select, .support-card textarea { width: 100%; min-width: 0; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #aaa096; border-radius: .15rem; padding: .58rem .65rem; }
.support-card input, .support-card select { min-height: 2.75rem; }
.support-card textarea { resize: vertical; }
.honeypot { position: absolute; overflow: hidden; clip-path: inset(100%); inline-size: 1px; block-size: 1px; }
.form-status:not(:empty) { margin-top: .9rem; }
.form-status[data-state="error"] { color: #87281f; }
.form-status[data-state="success"] { color: #255935; font-weight: 630; }

.footer { background: var(--dark); color: #fffdf7; }
.footer-inner { padding-block: 3rem 2rem; display: grid; grid-template-columns: 1fr auto; justify-content: space-between; align-items: end; gap: 1.4rem; }
.footer-inner .brand { font-size: 3rem; color: #fff; }
.footer-inner p { color: #ddd4ca; margin-top: .7rem; }
.footer-inner nav { display: flex; gap: 1.45rem; flex-wrap: wrap; }
.footer a:hover { text-decoration: underline; text-underline-offset: .28em; }
.footer a:focus-visible { outline-color: #fffdf7; }
.footer-bottom { border-top: 1px solid #675d54; padding-block: 1rem; display: flex; justify-content: space-between; gap: 1rem; color: #e4dcd2; font-size: .875rem; }

@media (max-width: 58rem) {
  .wrap { width: min(100% - 3rem, 73rem); }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(2.6rem, 5.9vw, 4rem); }
  .project-grid { gap: .75rem; }
  .project-copy { padding-inline: 1rem; }
  .support-layout, .detail-grid { gap: 1.6rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-top: .8rem; }
  .header-inner .brand { font-size: 2.1rem; }
  .language { grid-area: 1 / 2; }
  .main-nav { grid-column: 1 / -1; min-height: 2.8rem; justify-content: space-between; gap: .35rem; }
  .main-nav a { font-size: .87rem; }
  .hero, .editorial, .detail-grid, .support-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 2.25rem; gap: 1.65rem; }
  .hero h1 { font-size: clamp(2.55rem, 8.85vw, 3.7rem); }
  .hero .lead { margin-block: 1.2rem 1.35rem; }
  .hero-illustration img { aspect-ratio: 6 / 5; }
  .eyebrow { margin-bottom: .95rem; }
  .portfolio-section, .platform-section, .listing, .prose-page, .editorial, .support-layout { padding-block: 2.85rem 3.1rem; }
  .section-heading { margin-bottom: 1.35rem; gap: .5rem; }
  .page-intro { margin-bottom: 1.9rem; }
  .project-grid, .platform-grid { grid-template-columns: 1fr; }
  .project-grid { gap: 1rem; }
  .project-copy { min-height: auto; }
  .card-art { min-height: 7rem; }
  .detail { padding-block: 2rem 3.1rem; }
  .detail-heading { margin-bottom: 1.55rem; }
  .support-card { padding: 1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; padding-top: 2.25rem; }
  .footer-inner .brand { font-size: 2.6rem; }
}
