/* Peptimake — drafting-sheet theme. Hand-written for this site only. */
:root {
  --paper: #f7f6f1;
  --paper-2: #efeee7;
  --paper-3: #e4e3da;
  --ink: #16181d;
  --ink-2: #3f434b;
  --ink-3: #6b707a;
  --rule: #d3d1c6;
  --rule-2: #b3b1a4;
  --indigo: #2d2a78;
  --indigo-2: #413ca8;
  --indigo-wash: #e9e8f6;
  --indigo-line: #c6c4e4;
  --chart: #cfe36a;
  --chart-ink: #35400a;
  --chart-wash: #f2f7da;
  --ok: #2b6e4f;
  --warn: #8f5a10;
  --warn-wash: #f8f0dd;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 70ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--indigo-2); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
h2 { font-size: clamp(23px, 2.8vw, 32px); font-weight: 750; }
h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 700; }
p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .25em 0; }
strong { font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: .92em; }
hr.hairline { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }
.frame { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--indigo); }
.topbar-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.wordmark { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; margin-right: auto; }
.wordmark-main { font-family: var(--mono); font-weight: 700; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; }
.wordmark-main span { color: var(--indigo); }
.wordmark-sub { font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.navrail-links { display: flex; gap: .2rem; flex-wrap: wrap; }
.navrail-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: .45rem .5rem; border-radius: 3px; white-space: nowrap; }
.navrail-links a:hover, .navrail-links a[aria-current="page"] { background: var(--indigo-wash); color: var(--indigo); }
.rfq-pill { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; color: var(--chart-ink); background: var(--chart); border: 1.5px solid var(--chart-ink); border-radius: 999px; padding: .5rem .9rem; text-decoration: none; white-space: nowrap; }
.rfq-pill:hover { background: #dcef85; color: var(--chart-ink); }
.nav-fold { display: none; position: relative; }
.nav-fold summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding: .45rem .7rem; border: 1px solid var(--rule-2); border-radius: 3px; }
.nav-fold summary::-webkit-details-marker { display: none; }
.nav-fold[open] summary { background: var(--indigo-wash); }
.nav-fold-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--rule-2); border-top: 2px solid var(--indigo); min-width: 240px; padding: .4rem; display: grid; box-shadow: 0 12px 30px rgba(22, 24, 29, .12); }
.nav-fold-menu a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; padding: .6rem .7rem; border-bottom: 1px dashed var(--rule); }
.nav-fold-menu a:last-child { border-bottom: 0; }
@media (max-width: 1200px) {
  .navrail-links { display: none; }
  .nav-fold { display: block; }
  .rfq-pill { padding: .45rem .7rem; }
}

/* masthead */
.masthead { position: relative; border-bottom: 1px solid var(--rule); background-color: var(--paper-2); background-image: linear-gradient(to right, rgba(45, 42, 120, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(45, 42, 120, .07) 1px, transparent 1px); background-size: 28px 28px; }
.masthead-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2.4rem, 6vw, 5rem) 0; align-items: start; }
.stamp { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); border: 1.5px solid var(--indigo); padding: .25rem .55rem; border-radius: 2px; margin-bottom: 1rem; background: var(--paper); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: var(--measure); }
.act-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.act { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 15px; text-decoration: none; padding: .75rem 1.15rem; border-radius: 4px; border: 1.5px solid var(--indigo); line-height: 1.2; }
.act-solid { background: var(--indigo); color: #fff; }
.act-solid:hover { background: var(--indigo-2); color: #fff; }
.act-line { background: transparent; color: var(--indigo); }
.act-line:hover { background: var(--indigo-wash); }
.act-wa { background: var(--chart); color: var(--chart-ink); border-color: var(--chart-ink); }
.act-wa:hover { background: #dcef85; color: var(--chart-ink); }
.masthead-sheet { background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--indigo-line); }
.sheet-head { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: .6rem .9rem; border-bottom: 1.5px solid var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.sheet-head span:last-child { color: var(--ink-3); }
.numeral-row { display: grid; grid-template-columns: 1fr 1fr; }
.numeral { padding: .9rem; border-right: 1px dashed var(--rule-2); border-bottom: 1px dashed var(--rule-2); }
.numeral:nth-child(2n) { border-right: 0; }
.numeral:nth-last-child(-n+2) { border-bottom: 0; }
.numeral-value { font-family: var(--mono); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: var(--indigo); line-height: 1.05; }
.numeral-value small { font-size: .55em; font-weight: 600; color: var(--ink-2); }
.numeral-label { font-size: 13.5px; font-weight: 700; margin-top: .25rem; }
.numeral-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; margin-top: .15rem; }
.sheet-foot { font-size: 12.5px; color: var(--ink-3); padding: .6rem .9rem; border-top: 1.5px solid var(--ink); background: var(--chart-wash); }
@media (max-width: 860px) { .masthead-grid { grid-template-columns: 1fr; } }

/* breadcrumbs */
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-3); padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--indigo); }
.crumbs li { list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule-2); }
.crumbs ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }

/* sections */
.section-block { padding: clamp(2rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--rule); }
.section-block:last-of-type { border-bottom: 0; }
.section-block.tint { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; margin-bottom: 1.4rem; }
.section-index { font-family: var(--mono); font-size: 13px; color: var(--indigo); border-bottom: 2px solid var(--indigo); padding-bottom: .2rem; letter-spacing: .1em; }
.section-head h2 { margin: 0; }
.prose { max-width: var(--measure); }
.prose h3 { margin-top: 1.6em; }
.prose table { width: 100%; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 860px) { .two-col, .three-col { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--rule-2); border-top: 3px solid var(--indigo); padding: 1.1rem 1.2rem; }
.panel-title { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); margin: 0 0 .6rem; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel-list { padding-left: 1.1em; }
.callout { border-left: 4px solid var(--indigo); background: var(--indigo-wash); padding: .9rem 1.1rem; margin: 1.4rem 0; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }
.callout-boundary { border-left-color: var(--warn); background: var(--warn-wash); }
.callout-boundary .panel-title { color: var(--warn); }
.muted-note { color: var(--ink-3); font-size: 14.5px; }

/* spec sheet rows */
.sheet { border: 1px solid var(--rule-2); background: var(--paper); margin: 1.2rem 0; }
.sheet .sheet-head { border-bottom: 1px solid var(--rule-2); }
.sheet-row { display: grid; grid-template-columns: minmax(150px, 1fr) 2.2fr; gap: 1rem; padding: .65rem .9rem; border-bottom: 1px dashed var(--rule); font-size: 15.5px; }
.sheet-row:last-child { border-bottom: 0; }
.sheet-key { font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; padding-top: .15rem; }
.sheet-val p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .sheet-row { grid-template-columns: 1fr; gap: .2rem; } }

/* flow steps with input / output / owner */
.flowline { list-style: none; margin: 1.5rem 0; padding: 0; position: relative; }
.flowline::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; border-left: 2px solid var(--indigo-line); }
.flow-node { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding: 0 0 1.8rem; }
.flow-node-index { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 2px solid var(--indigo); color: var(--indigo); font-family: var(--mono); font-weight: 700; font-size: 14px; display: grid; place-items: center; z-index: 1; }
.flow-node-title { margin: .35rem 0 .4rem; }
.flow-node-body { max-width: var(--measure); }
.io-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-2); background: var(--paper); margin: .8rem 0 0; }
.io-cell { padding: .7rem .85rem; border-right: 1px solid var(--rule-2); font-size: 14.5px; }
.io-cell:last-child { border-right: 0; }
.io-key { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); display: block; margin-bottom: .25rem; }
.io-val p:last-child { margin-bottom: 0; }
.owner-chip { display: inline-block; font-family: var(--mono); font-size: 12px; background: var(--chart-wash); border: 1px solid var(--chart-ink); color: var(--chart-ink); padding: .1rem .45rem; border-radius: 3px; }
@media (max-width: 700px) { .io-table { grid-template-columns: 1fr; } .io-cell { border-right: 0; border-bottom: 1px solid var(--rule-2); } .io-cell:last-child { border-bottom: 0; } }

.flow-photo { float: right; width: min(42%, 240px); margin: 0 0 .6rem 1rem; }
.flow-photo .shot-frame { aspect-ratio: 4 / 3; }
.flow-node-body::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) { .flow-photo { float: none; width: 100%; margin: 0 0 .8rem; } }
.shot-frame { display: block; }
.shot-frame img { object-position: center; }
.schematic { border: 1.5px dashed var(--rule-2); background: var(--paper); padding: .8rem; }
.schematic svg { width: 100%; height: auto; display: block; }
.schematic-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: .5rem 0 0; }

/* deliverables and document tags */
.deliverables { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.deliverable { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: .8rem 1rem; border: 1px solid var(--rule-2); background: var(--paper); }
.doc-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--indigo); color: #fff; padding: .25rem .5rem; border-radius: 2px; white-space: nowrap; margin-top: .2rem; }
.deliverable p { margin: 0; font-size: 15.5px; }
.deliverable strong { display: block; }

/* data tables */
.datatable { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.2rem 0; background: var(--paper); }
.datatable th, .datatable td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.datatable th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); border-bottom: 2px solid var(--indigo); }
.datatable-wrap { overflow-x: auto; }

/* guides */
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-card { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); padding: 1.1rem 1.2rem; position: relative; }
.guide-card:hover { border-color: var(--indigo); color: var(--ink); }
.guide-card .stamp { margin-bottom: .6rem; }
.guide-card h3 { margin-bottom: .4rem; }
.guide-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }
.toc { border: 1px solid var(--rule-2); background: var(--paper-2); padding: .9rem 1.1rem; margin: 1.4rem 0; max-width: var(--measure); }
.toc ol { margin: .4rem 0 0; padding-left: 1.3em; font-size: 15px; }
.toc-title { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }
.article-meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 1rem; }

/* FAQ */
.qa-list { display: grid; gap: 1rem; max-width: var(--measure); }
.qa-item { border: 1px solid var(--rule-2); background: var(--paper); padding: 1rem 1.2rem; }
.qa-q { margin: 0 0 .5rem; font-size: 17.5px; }
.qa-q::before { content: "Q"; font-family: var(--mono); color: var(--indigo); margin-right: .6rem; font-weight: 700; }
.qa-a p:last-child { margin-bottom: 0; }

/* order photo gallery */
.gallery-step { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); gap: clamp(1rem, 3vw, 2.5rem); padding: 1.8rem 0; border-top: 1px dashed var(--rule-2); }
.gallery-step:first-of-type { border-top: 0; }
.gallery-step-head .stamp { margin-bottom: .5rem; }
.gallery-step-head p { font-size: 15.5px; color: var(--ink-2); }
.gallery-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.shot { margin: 0; }
.shot-frame { aspect-ratio: 4 / 3; background: var(--paper-3); border: 1px solid var(--rule-2); overflow: hidden; display: grid; place-items: center; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
.shot-pending { aspect-ratio: 4 / 3; border: 1.5px dashed var(--rule-2); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(45, 42, 120, .05) 10px 11px); display: grid; place-items: center; text-align: center; padding: 1rem; }
.shot-pending span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.shot-caption { font-size: 13.5px; color: var(--ink-2); margin-top: .4rem; line-height: 1.4; }
@media (max-width: 760px) { .gallery-step { grid-template-columns: 1fr; } }

/* RFQ block */
.rfq-block { background: var(--indigo); color: #fff; }
.rfq-block-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem) 0; align-items: center; }
.rfq-block h2 { color: #fff; margin-bottom: .4rem; }
.rfq-block p { color: #d8d7ee; max-width: 60ch; }
.rfq-block .stamp { color: var(--chart); border-color: var(--chart); background: transparent; }
.rfq-steps { font-size: 15px; color: #e4e3f3; padding-left: 1.2em; margin: 0; }
.rfq-steps li { margin: .35rem 0; }
.rfq-actions { display: grid; gap: .7rem; justify-items: start; }
.rfq-actions .act-line { color: #fff; border-color: #fff; }
.rfq-actions .act-line:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 760px) { .rfq-block-inner { grid-template-columns: 1fr; } }

/* footer */
.basefoot { border-top: 2px solid var(--ink); background: var(--paper-2); font-size: 14.5px; color: var(--ink-2); }
.basefoot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 2.4rem 0 1.6rem; }
.basefoot-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); margin-bottom: .6rem; }
.basefoot-col ul { list-style: none; padding: 0; margin: 0; }
.basefoot-col li { margin: .25rem 0; }
.basefoot-col a { color: var(--ink-2); }
.basefoot-legal { border-top: 1px solid var(--rule-2); padding: 1rem 0 1.6rem; font-size: 13px; color: var(--ink-3); }
.basefoot-legal p { margin: .3rem 0; max-width: 100ch; }
.ruo-line { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-2); }
@media (max-width: 760px) { .basefoot-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* contact sheet */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.contact-card { border: 1px solid var(--rule-2); background: var(--paper); padding: 1.2rem; }
.contact-card h3 { margin-bottom: .3rem; }
.contact-card p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.ref-link { font-family: var(--mono); font-size: 13.5px; }
.anchor-list { columns: 2; column-gap: 2rem; padding-left: 1.2em; font-size: 15px; }
@media (max-width: 700px) { .anchor-list { columns: 1; } }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.compare .panel { border-top-color: var(--rule-2); }
.compare .panel.pick { border-top-color: var(--chart-ink); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
