:root {
  --paper: #f5f1e8;
  --white: #fffdf5;
  --type: #24271f;
  --soft: #66685b;
  --rule: #c9c5b7;
  --ink: #193d38;
  --hot: #ac3f28;
  --pale: #e3e3d2;
  --display: Georgia, 'Times New Roman', serif;
  --ui: system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--type);
  background: var(--paper);
  font: 15px/1.5 var(--ui);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--hot);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.34;
  cursor: default;
}
h1,
h2,
p {
  margin: 0;
}
.container {
  width: min(1192px, calc(100% - 64px));
  margin-inline: auto;
}
.mast {
  background: var(--paper);
}
.mast .container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--type);
}
.brand {
  font: 900 33px/0.9 var(--display);
  letter-spacing: -0.08em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span {
  background: var(--hot);
  color: var(--white);
  border-radius: 50%;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  font: 24px/1 var(--display);
  letter-spacing: 0;
}
.mast nav,
.foot nav,
.project-tools,
.output > div:last-child,
.settings-bottom,
.filters,
.spec,
.proof-head,
.section-title,
.ribbon {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mast nav {
  font-weight: 650;
  font-size: 13px;
  gap: 22px;
}
.mast nav a,
.foot a {
  text-decoration: none;
}
.mast nav a:hover,
.foot a:hover {
  text-decoration: underline;
}
.language {
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 18px;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 32px 0 20px;
  gap: 14px;
}
.intro h1,
.article h1 {
  font: 600 clamp(44px, 5.5vw, 80px)/1 var(--display);
  letter-spacing: -0.07em;
}
.intro p {
  font-size: 16px;
  color: var(--soft);
  margin-top: 11px;
}
.btn,
.linkbtn,
.history,
.press-nav button,
.tabrow button {
  background: none;
  font-weight: 650;
  font-size: 13px;
}
.btn {
  padding: 10px 15px;
  border: 1px solid var(--type);
  border-radius: 3px;
  min-height: 39px;
  background: var(--white);
}
.btn:hover {
  background: var(--pale);
}
.btn.hot {
  background: var(--hot);
  color: white;
  border-color: var(--hot);
  padding-inline: 20px;
}
.btn.hot:hover {
  filter: brightness(0.9);
}
.linkbtn {
  padding: 5px 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-tools {
  gap: 18px;
}
.ribbon {
  justify-content: space-between;
  border-block: 1px solid var(--rule);
  margin-bottom: 14px;
}
.ribbon small {
  color: var(--soft);
  font-size: 12px;
}
.ribbon small:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 100%;
  margin-right: 6px;
}
.press-nav,
.tabrow {
  display: flex;
  gap: 10px;
}
.press-nav button,
.tabrow button {
  padding: 10px 6px;
  border-bottom: 2px solid transparent;
  color: var(--soft);
}
.press-nav button[aria-pressed='true'],
.tabrow button[aria-pressed='true'] {
  color: var(--type);
  border-color: var(--hot);
}
.notice:empty {
  display: none;
}
.notice:not(:empty),
.warning {
  padding: 6px 13px;
  margin-bottom: 9px;
  border-left: 3px solid var(--hot);
  background: var(--white);
  font-size: 13px;
}
.bench {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(295px, 1fr);
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
}
.proofboard {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--white);
  min-width: 0;
}
.proof-head,
.spec {
  padding: 9px 18px;
  justify-content: space-between;
}
.proof-head > span,
.spec span {
  font:
    11px ui-monospace,
    monospace;
  letter-spacing: 0.13em;
}
.history {
  width: 32px;
  height: 28px;
  color: var(--white);
  border: 1px solid #ffffff55;
  margin-left: 4px;
  font-size: 18px;
  line-height: 1;
}
.mat {
  flex: 1;
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, #ffffff0a 21px 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, #ffffff0a 21px 22px);
}
.sheet {
  width: min(82%, 320px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  background: #fffaf0;
  box-shadow:
    4px 5px 0 #152e2955,
    0 9px 19px #101d2033;
}
.sheet i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--rule);
  border-style: solid;
}
.sheet i:nth-child(1) {
  top: 13px;
  left: 13px;
  border-width: 1px 0 0 1px;
}
.sheet i:nth-child(2) {
  top: 13px;
  right: 13px;
  border-width: 1px 1px 0 0;
}
.sheet i:nth-child(3) {
  bottom: 13px;
  left: 13px;
  border-width: 0 0 1px 1px;
}
.sheet i:nth-child(4) {
  bottom: 13px;
  right: 13px;
  border-width: 0 1px 1px 0;
}
.paper {
  width: 84%;
  height: 84%;
  display: grid;
  place-items: center;
  touch-action: none;
}
.paper > svg {
  width: 100%;
  height: 100%;
}
.paper [data-part] {
  cursor: grab;
}
.spec {
  background: #112c29;
}
.spec b {
  font: italic 17px var(--display);
}
.settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 21px 24px;
  background: var(--white);
}
.settings h2,
.section-title h2,
.article h2,
.empty h2 {
  font: 600 28px/1.1 var(--display);
  letter-spacing: -0.045em;
}
.tabrow {
  border-bottom: 1px solid var(--rule);
}
.tabrow button {
  padding: 6px 3px;
}
.fields,
.inputs {
  display: grid;
  gap: 11px;
}
.field span,
legend {
  font-size: 12px;
  font-weight: 650;
  color: var(--soft);
}
.field {
  display: block;
}
.field input,
.field select,
.filters input,
.filters select {
  display: block;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 10px;
  margin-top: 3px;
  font-size: 14px;
}
.inputs .linkbtn,
.fields > .linkbtn {
  justify-self: start;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.settings-bottom {
  margin-top: auto;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 8px;
}
.settings-bottom .btn {
  font-size: 12px;
  padding: 7px 10px;
  min-height: 32px;
}
.output {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pale);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-top: 10px;
  padding: 13px 20px;
}
.output strong {
  display: block;
  font: 600 23px var(--display);
}
.output small,
.sample-card small {
  color: var(--soft);
  font-size: 12px;
}
.picks {
  margin-top: 25px;
}
.section-title {
  justify-content: space-between;
  margin-bottom: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.sample-card,
.shelf-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-align: left;
  overflow: hidden;
  min-width: 0;
}
.sample-card {
  padding: 0 0 11px;
  display: block;
  width: 100%;
}
.sample-card:hover {
  border-color: var(--hot);
}
.tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 142px;
  background: color-mix(in srgb, var(--pale) 65%, var(--white));
}
.sample-card:nth-child(4n + 2) .tile {
  background: #eedfd2;
}
.sample-card:nth-child(4n + 3) .tile {
  background: #dfe5e1;
}
.sample-card:nth-child(4n + 4) .tile {
  background: #e9e0dc;
}
.tile > svg {
  height: 85%;
  width: 78%;
  pointer-events: none;
}
.card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 9px 13px 0;
}
.card-line b,
.shelf-card b {
  font: 600 19px var(--display);
}
.sample-card small,
.shelf-card b,
.shelf-card > .linkbtn {
  margin-inline: 13px;
}
.filters {
  margin: 17px 0;
}
.filters input {
  max-width: 380px;
}
.filters select {
  max-width: 230px;
}
.filters b {
  white-space: nowrap;
  color: var(--soft);
  font-size: 12px;
}
.fields fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.colors {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}
.colors button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch);
}
.colors button[aria-pressed='true'] {
  outline: 1px solid var(--type);
  outline-offset: 3px;
}
.colors input {
  width: 26px;
  height: 24px;
  padding: 0;
  border: 0;
}
.empty,
.article {
  margin: 28px auto;
  border: 1px solid var(--rule);
  background: var(--white);
  padding: clamp(19px, 4vw, 44px);
  max-width: 800px;
}
.empty p,
.article p {
  margin: 13px 0;
}
.article h1 {
  font-size: clamp(36px, 5vw, 56px);
}
.article h2 {
  margin-top: 25px;
  font-size: 24px;
}
.png-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 20px 0 28px;
}
.png-sample img {
  width: min(160px, 100%);
  height: auto;
  background: linear-gradient(110deg, var(--pale) 50%, var(--paper) 50%);
  border: 1px solid var(--rule);
}
.png-sample figcaption { flex: 1 1 220px; }
.png-sample figcaption p { margin: 4px 0 10px; }
.png-sample a { color: var(--ink); font-weight: 650; }
.png-sample small { white-space: nowrap; }
.notes {
  max-width: 810px;
  margin: 27px 0;
}
.notes h2, .notes h3, .article h3 {
  margin: 1.4em 0 .4em;
  line-height: 1.25;
}
.notes p, .article li { line-height: 1.6; }
.notes p {
  margin-top: 8px;
  color: var(--soft);
}
.foot .container {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot nav {
  flex-wrap: wrap;
  font-size: 12px;
}
@media (max-width: 840px) {
  .container {
    width: calc(100% - 34px);
  }
  .bench {
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 1fr);
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .settings {
    padding: 15px;
  }
  .mat {
    min-height: 245px;
    padding: 13px;
  }
  .sheet {
    width: 87%;
  }
}
@media (max-width: 620px) {
  .container {
    width: calc(100% - 24px);
  }
  .mast .container {
    height: 55px;
  }
  .brand {
    font-size: 27px;
  }
  .mast nav {
    gap: 11px;
    font-size: 12px;
  }
  .intro {
    display: block;
    padding: 23px 0 14px;
  }
  .intro p {
    font-size: 14px;
  }
  .project-tools {
    margin-top: 7px;
  }
  .bench {
    grid-template-columns: 1fr;
  }
  .mat {
    min-height: 220px;
    padding: 12px;
  }
  .sheet {
    width: 207px;
  }
  .spec,
  .proof-head {
    padding: 6px 11px;
  }
  .ribbon small {
    font-size: 12px;
  }
  .press-nav {
    gap: 4px;
  }
  .press-nav button {
    padding: 8px 4px;
  }
  .settings {
    gap: 9px;
  }
  .output {
    gap: 8px;
    flex-wrap: wrap;
    padding: 11px;
  }
  .output > div:last-child {
    gap: 6px;
  }
  .output .btn {
    padding: 7px 10px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tile {
    height: 112px;
  }
  .card-line b {
    font-size: 16px;
  }
  .filters {
    flex-wrap: wrap;
    gap: 5px;
  }
  .filters select,
  .filters input {
    width: auto;
    max-width: 100%;
    flex: 1 1 120px;
  }
  .foot .container {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .section-title h2 {
    font-size: 24px;
  }
}
