@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IM+Fell+English+SC&family=IBM+Plex+Mono:wght@500;600&display=swap");

:root {
  --paper: #efe2c9;
  --paper-light: #f8efd9;
  --paper-dark: #d7c3a2;
  --ink: #191816;
  --ink-soft: rgba(25, 24, 22, 0.72);
  --blue: #0e558a;
  --red: #c43c35;
  --gold: #e4a412;
  --rule: 4px;
  --space: 24px;
  --dash-block: 10px;
  --dash-gap: 5px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(25, 24, 22, 0.045) 1px, transparent 1px),
    linear-gradient(var(--paper-light), var(--paper));
  background-size: 84px 84px, auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(25, 24, 22, 0.16) 0.7px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.28) 0.8px, transparent 1.1px);
  background-position: 0 0, 18px 20px;
  background-size: 34px 34px, 42px 42px;
  mix-blend-mode: multiply;
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 12px 28px;
  border-bottom: var(--rule) solid var(--ink);
  background: rgba(248, 239, 217, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.site-header nav {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  font-family: "IM Fell English SC", serif;
  font-size: 30px;
  line-height: 1;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.site-header a {
  text-underline-offset: 5px;
}

.site-header a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(60px, 0.35fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 54px;
  padding: 120px 32px 86px;
  border-bottom: var(--rule) solid var(--ink);
}

.folio-number {
  grid-column: 1 / -1;
  grid-row: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}

.eyebrow,
.running-head {
  margin: 0 0 14px;
  font-family: "IM Fell English SC", serif;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  max-width: 12ch;
  font-weight: 500;
  line-height: 0.95;
}

h1 {
  margin-bottom: 24px;
  font-size: 118px;
}

h2 {
  margin-bottom: 24px;
  font-size: 82px;
}

h3 {
  margin-bottom: 12px;
  font-size: 31px;
  line-height: 1.05;
}

p {
  max-width: 64ch;
}

.hero {
  min-height: calc(100vh - 72px);
  align-items: center;
  padding-top: 64px;
}

.hero-copy {
  grid-column: 2;
}

.hero-copy > p:last-of-type {
  max-width: 42ch;
  font-size: 25px;
  color: var(--ink-soft);
}

.hero-figure {
  grid-column: 3;
  padding: 0;
  border: var(--rule) solid var(--ink);
  background: var(--paper-light);
  overflow: hidden;
}

.hero-proof-svg {
  width: 100%;
  min-height: 500px;
}

.hero-main-circle {
  fill: none;
  stroke-width: 3.4;
}

.hero-solid {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.hero-dash {
  fill: none;
  stroke-dasharray: 10 5;
  stroke-linecap: butt;
  stroke-linejoin: round;
  stroke-width: 10;
}

.small-dash {
  stroke-width: 10;
}

.vertical-dash {
  stroke-width: 10;
}

.plate-paper {
  fill: var(--paper-light);
}

.plate-stains {
  fill: rgba(196, 60, 53, 0.05);
}

.plate-faint {
  fill: none;
  stroke: rgba(25, 24, 22, 0.12);
  stroke-width: 4;
}

.hero-page-text {
  fill: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: normal;
  font-weight: 500;
}

.initial-outer {
  fill: var(--ink);
}

.initial-inner {
  fill: none;
  stroke: var(--paper-light);
  stroke-width: 2;
}

.initial-letter {
  fill: var(--paper-light);
  font-family: "IM Fell English SC", serif;
  font-size: 54px;
  font-style: normal;
  alignment-baseline: middle;
  dominant-baseline: middle;
  text-anchor: middle;
}

.article-lead {
  font-size: 19px;
  font-weight: 600;
}

.article-copy {
  font-size: 16px;
  font-style: normal;
  letter-spacing: 0;
}

.text-rule {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3;
}

.text-rule-long {
  stroke-width: 3.2;
}

.hero-caption,
.part-label {
  fill: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-style: italic;
}

.part-label {
  font-family: "IM Fell English SC", serif;
  font-style: normal;
  letter-spacing: 0;
}

.command-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  background: var(--paper-light);
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 600;
}

.repo-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.repo-link:hover,
.repo-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.blue-line,
.red-line,
.gold-line,
.proof-line {
  display: inline-block;
  width: 76px;
  height: 5px;
  vertical-align: middle;
  background: currentColor;
}

.blue-line,
.proof-line.blue {
  color: var(--blue);
}

.red-line,
.proof-line.red {
  color: var(--red);
}

.gold-line,
.proof-line.gold {
  color: var(--gold);
}

.proof-line.black {
  color: var(--ink);
}

.dashed,
.proof-line.dashed {
  width: 70px;
  height: var(--dash-block);
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 var(--dash-block),
    transparent var(--dash-block) calc(var(--dash-block) + var(--dash-gap))
  );
}

.stroke-blue {
  stroke: var(--blue);
}

.stroke-red {
  stroke: var(--red);
}

.stroke-gold {
  stroke: var(--gold);
}

.stroke-black {
  stroke: var(--ink);
}

.heavy {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.dash {
  fill: none;
  stroke-dasharray: 10 5;
  stroke-linecap: butt;
  stroke-linejoin: round;
  stroke-width: 10;
}

.fill-gold {
  fill: var(--gold);
}

.fill-blue {
  fill: var(--blue);
}

.fill-red {
  fill: var(--red);
}

.fill-black {
  fill: var(--ink);
}

.section-title {
  grid-column: 2;
}

.principles,
.poster-sheet,
.token-layout,
.card-grid,
.app-shell,
.type-specimen,
form,
.breakpoints,
.install > div {
  grid-column: 3;
}

.hero-copy,
.hero-figure,
.section-title,
.dropcap-card,
.principles,
.poster-sheet,
.token-layout,
.card-grid,
.app-shell,
.type-specimen,
form,
.breakpoints,
.install > div {
  grid-row: 2;
}

figure {
  margin: 0;
}

figcaption {
  font-style: italic;
  color: var(--ink-soft);
}

.editorial {
  align-items: start;
}

.dropcap-card {
  grid-column: 2;
  padding-right: 20px;
  font-size: 28px;
  line-height: 1.35;
}

.dropcap {
  float: left;
  display: flex;
  width: 74px;
  height: 74px;
  margin: 8px 16px 0 0;
  align-items: center;
  justify-content: center;
  border: 4px double var(--paper-light);
  outline: 4px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  font-family: "IM Fell English SC", serif;
  font-size: 66px;
  line-height: 0.82;
  padding-top: 7px;
}

.principles {
  padding: 26px;
  border: 3px solid var(--ink);
  background: rgba(248, 239, 217, 0.62);
}

.principles ul {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.principles li {
  display: flex;
  gap: 16px;
  align-items: center;
}

.angle-chip {
  width: 42px;
  height: 42px;
  border-radius: 100% 0 0;
  transform: rotate(45deg);
}

.angle-chip.gold {
  background: var(--gold);
}

.poster-sheet {
  padding: 52px;
  border: 5px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 16px 16px 0 var(--paper-dark);
}

.poster-sheet h2 {
  max-width: 14ch;
}

.poster-sheet text {
  fill: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
}

.poster-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.poster-meta span {
  border-top: 5px solid var(--ink);
  padding-top: 10px;
  overflow-wrap: anywhere;
}

.token-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.specimen-table {
  border-top: 4px solid var(--ink);
}

.row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(92px, 0.55fr) minmax(180px, 1.4fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 3px solid var(--ink);
}

.row.heading {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.palette {
  display: grid;
  grid-template-columns: 1fr;
  border: 4px solid var(--ink);
}

.swatch {
  display: flex;
  align-items: end;
  min-height: 86px;
  padding: 12px;
  color: var(--paper-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.swatch.blue {
  background: var(--blue);
}

.swatch.red {
  background: var(--red);
}

.swatch.gold {
  background: var(--gold);
  color: var(--ink);
}

.swatch.black {
  background: var(--ink);
}

.swatch.cream {
  background: var(--paper-light);
  color: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

.proof-card {
  min-height: 260px;
  padding: 22px;
  border: 4px solid var(--ink);
  background: rgba(248, 239, 217, 0.68);
  overflow-wrap: break-word;
}

.proof-card .prop {
  margin-right: 16px;
}

.prop {
  display: inline-grid;
  min-width: 62px;
  height: 44px;
  padding: 0 8px;
  margin-bottom: 36px;
  place-items: center;
  border: 3px solid var(--ink);
  color: var(--blue);
  font-family: "IM Fell English SC", serif;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.card-angle-chip {
  display: inline-block;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  vertical-align: bottom;
  border-radius: 100% 0 0;
  background: var(--gold);
  transform: rotate(45deg);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  min-height: 520px;
  border: 5px solid var(--ink);
  background: var(--paper-light);
}

.app-shell aside {
  padding: 22px;
  border-right: 4px solid var(--ink);
}

.app-shell aside h2 {
  max-width: none;
  margin-bottom: 46px;
  font-size: 58px;
  line-height: 0.95;
  overflow-wrap: normal;
}

.app-shell aside button,
.toolbar button,
form button,
.command-line button {
  min-height: 44px;
  border: 3px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.app-shell aside button,
.toolbar button,
form button {
  width: 100%;
}

.command-line button {
  width: auto;
  min-width: 80px;
  padding: 0 14px;
  background: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.app-shell aside button {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.app-shell aside button.active {
  background: var(--blue);
  color: var(--paper-light);
}

.app-content {
  padding: 22px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.toolbar button {
  max-width: 190px;
  background: var(--gold);
}

.proposition-list {
  display: grid;
  gap: 14px;
  padding-top: 20px;
}

.proposition-list a {
  display: grid;
  grid-template-columns: 74px minmax(116px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 3px solid var(--ink);
}

.proposition-list a span:last-child {
  overflow-wrap: break-word;
}

.mini-diagram {
  width: 52px;
  height: 52px;
}

.mini-diagram.circle {
  border: 5px solid var(--blue);
  border-radius: 50%;
}

.mini-diagram.triangle {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(130deg, var(--red) 0 35%, var(--gold) 35% 70%, var(--blue) 70%);
}

.mini-diagram.wedge {
  border-radius: 100% 0 0;
  background: var(--gold);
  transform: rotate(45deg);
}

.type-specimen {
  display: grid;
  gap: 22px;
}

.type-specimen > div {
  padding-bottom: 18px;
  border-bottom: 4px solid var(--ink);
}

.type-specimen span {
  display: block;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.display-sample,
.heading-sample {
  margin: 0;
  line-height: 0.95;
}

.display-sample {
  font-size: 76px;
}

.heading-sample {
  font-size: 46px;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 44px;
  border: 5px solid var(--ink);
  background: var(--paper-light);
}

form > div,
form label:nth-of-type(3),
form .check,
form button {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-bottom-color: var(--red);
}

.check {
  display: flex;
  gap: 12px;
  align-items: start;
  text-transform: none;
}

.check input {
  width: 24px;
  height: 24px;
  accent-color: var(--blue);
}

form button {
  background: var(--ink);
  color: var(--paper-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.breakpoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.breakpoints article {
  position: relative;
  min-height: 190px;
  padding: 20px;
  background: rgba(248, 239, 217, 0.54);
}

.breakpoints article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--ink) 0 var(--dash-block), transparent var(--dash-block) 100%),
    linear-gradient(90deg, var(--ink) 0 var(--dash-block), transparent var(--dash-block) 100%),
    linear-gradient(180deg, var(--ink) 0 var(--dash-block), transparent var(--dash-block) 100%),
    linear-gradient(180deg, var(--ink) 0 var(--dash-block), transparent var(--dash-block) 100%);
  background-position: top left, bottom left, top left, top right;
  background-repeat: round no-repeat, round no-repeat, no-repeat round, no-repeat round;
  background-size:
    calc(var(--dash-block) + var(--dash-gap)) var(--rule),
    calc(var(--dash-block) + var(--dash-gap)) var(--rule),
    var(--rule) calc(var(--dash-block) + var(--dash-gap)),
    var(--rule) calc(var(--dash-block) + var(--dash-gap));
}

.breakpoints code {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
}

.install {
  min-height: 65vh;
  align-items: center;
}

.install > div:not(.folio-number) {
  grid-column: 2 / 4;
  width: min(100%, 760px);
}

.command-line.large {
  width: fit-content;
  justify-content: space-between;
  gap: 28px;
  padding: 18px;
}

.command-line.large button {
  width: auto;
  min-width: 80px;
  padding: 0 14px;
  background: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.closing {
  margin-top: 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-header nav {
    justify-content: start;
  }

  .section {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 28px;
  }

  .hero-copy,
  .hero-figure,
  .section-title,
  .dropcap-card,
  .principles,
  .poster-sheet,
  .token-layout,
  .card-grid,
  .app-shell,
  .type-specimen,
  form,
  .breakpoints,
  .install > div {
    grid-column: 2;
    grid-row: auto;
  }

  .card-grid,
  .breakpoints,
  .token-layout {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell aside {
    border-right: 0;
    border-bottom: 4px solid var(--ink);
  }

  .poster-sheet,
  form {
    padding: 34px;
  }

  h1 {
    font-size: 84px;
  }

  h2 {
    font-size: 64px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .site-header {
    position: static;
    padding: 14px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 58px 18px;
  }

  .folio-number,
  .hero-copy,
  .hero-figure,
  .section-title,
  .dropcap-card,
  .principles,
  .poster-sheet,
  .token-layout,
  .card-grid,
  .app-shell,
  .type-specimen,
  form,
  .breakpoints,
  .install > div {
    grid-column: 1;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 44px;
  }

  .hero-copy > p:last-of-type,
  .dropcap-card {
    font-size: 22px;
  }

  .row,
  .proposition-list a,
  form {
    grid-template-columns: 1fr;
  }

  form label {
    grid-column: 1;
  }

  .poster-meta {
    grid-template-columns: 1fr;
  }

  .command-line {
    width: 100%;
  }

  .poster-sheet,
  form {
    padding: 24px;
  }
}
