:root {
  --paper: #fbfbf7;
  --ink: #0b0b0b;
  --muted: #5d5d57;
  --rule: #0b0b0b;
  --soft-rule: #c8c8c0;
  --panel: #ffffff;
  --success: #eff7ed;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(var(--soft-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-rule) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.sheet {
  min-height: calc(100vh - 56px);
  background: rgba(251, 251, 247, 0.96);
  border: 2px solid var(--rule);
  box-shadow: 10px 10px 0 var(--ink);
}

.topbar,
.manual-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 2px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
}

.manual-footer {
  border-top: 2px solid var(--rule);
  border-bottom: 0;
}

.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.brand {
  font-size: clamp(1.3rem, 3.2vw, 2.5rem);
  letter-spacing: 0;
  line-height: 0.95;
}

.manual-code {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 520px;
  border-bottom: 2px solid var(--rule);
}

.hero-copy {
  padding: clamp(28px, 5vw, 64px);
  border-right: 2px solid var(--rule);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--ink);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.copy-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.button:hover,
.copy-button:hover,
.button:focus-visible,
.copy-button:focus-visible {
  outline: 0;
  background: var(--ink);
  color: var(--paper);
}

.copy-button.copied {
  background: var(--success);
  color: var(--ink);
}

.diagram {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
}

.diagram-header,
.diagram-note {
  padding: 16px 18px;
  border-bottom: 2px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 900;
}

.diagram-note {
  border-top: 2px solid var(--rule);
  border-bottom: 0;
}

.assembly-drawing {
  position: relative;
  min-height: 350px;
  overflow: hidden;
}

.assembly-drawing::before,
.assembly-drawing::after {
  content: "";
  position: absolute;
  border: 2px solid var(--ink);
  background: transparent;
}

.assembly-drawing::before {
  width: 58%;
  aspect-ratio: 1;
  top: 14%;
  left: 18%;
  transform: rotate(45deg);
}

.assembly-drawing::after {
  width: 46%;
  aspect-ratio: 1;
  right: 12%;
  bottom: 16%;
  border-radius: 50%;
}

.part {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 50%;
  font-weight: 950;
}

.part-a {
  top: 13%;
  left: 12%;
}

.part-b {
  top: 38%;
  right: 12%;
}

.part-c {
  bottom: 12%;
  left: 25%;
}

.arrow {
  position: absolute;
  width: 35%;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
}

.arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: rotate(45deg);
}

.arrow-one {
  top: 30%;
  left: 28%;
  transform: rotate(18deg);
}

.arrow-two {
  bottom: 28%;
  left: 18%;
  transform: rotate(-24deg);
}

.sections {
  display: grid;
}

.manual-section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom: 2px solid var(--rule);
}

.section-number {
  padding: 24px 20px;
  border-right: 2px solid var(--rule);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.8;
  font-weight: 950;
}

.section-body {
  padding: 28px clamp(22px, 5vw, 56px);
}

.section-body h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  font-size: 1.1rem;
  font-weight: 650;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 2px solid var(--rule);
}

.part-card {
  min-height: 180px;
  padding: 18px;
  border-right: 2px solid var(--rule);
  background: var(--panel);
}

.part-card:last-child {
  border-right: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  border: 2px solid var(--rule);
  background: var(--panel);
}

.project-card {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 320px;
  padding: 18px;
  border-right: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
}

.project-card:nth-child(2n),
.project-card:last-child {
  border-right: 0;
}

.project-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.project-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 900;
}

.project-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--rule);
  border-radius: 50%;
  letter-spacing: 0;
}

.project-category {
  justify-self: end;
  padding: 6px 8px;
  border: 2px solid var(--rule);
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.project-line {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rule);
  font-weight: 850;
}

.project-link,
.project-status {
  align-self: end;
  justify-self: start;
  margin-top: 22px;
  padding: 10px 12px;
  border: 2px solid var(--rule);
  background: var(--panel);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 900;
}

.project-link:hover,
.project-link:focus-visible {
  outline: 0;
  background: var(--ink);
  color: var(--paper);
}

.project-status {
  background: repeating-linear-gradient(
    -45deg,
    var(--panel),
    var(--panel) 8px,
    var(--paper) 8px,
    var(--paper) 16px
  );
}

.part-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 900;
}

.warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  max-width: 760px;
  margin-top: 22px;
  padding: 16px;
  border: 2px solid var(--rule);
  background: var(--panel);
}

.warning-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--rule);
  border-radius: 50%;
  font-weight: 950;
}

.policy-page .sheet {
  min-height: auto;
}

.policy-hero {
  padding: clamp(30px, 6vw, 72px);
  border-bottom: 2px solid var(--rule);
}

.policy-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 8vw, 7rem);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.stamp {
  padding: 8px 10px;
  border: 2px solid var(--rule);
  background: var(--panel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 900;
}

.policy-content {
  padding: clamp(24px, 5vw, 56px);
}

.policy-block {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 2px solid var(--rule);
}

.policy-block:first-child {
  padding-top: 0;
}

.policy-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.policy-block h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.policy-block p,
.policy-block li {
  color: #20201d;
}

.policy-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

@media (max-width: 780px) {
  .page {
    width: min(100% - 18px, 1120px);
    padding: 9px 0 26px;
  }

  .sheet {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .topbar,
  .manual-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 2px solid var(--rule);
  }

  .assembly-drawing {
    min-height: 300px;
  }

  .manual-section,
  .policy-block {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-number {
    border-right: 0;
    border-bottom: 2px solid var(--rule);
  }

  .parts-grid {
    grid-template-columns: 1fr;
  }

  .part-card,
  .project-card {
    border-right: 0;
    border-bottom: 2px solid var(--rule);
  }

  .project-card:nth-last-child(-n + 2) {
    border-bottom: 2px solid var(--rule);
  }

  .part-card:last-child,
  .project-card:last-child {
    border-bottom: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
