/* ==========================================================================
   Cuore Tech, cuoretech.services
   System B, the logo-derived print system, carried to the web.
   Built for a page whose real destination is a board packet.
   ========================================================================== */

:root {
  /* Ground. Three steps of one cream, warmed off the grey axis toward yellow. */
  --paper-0: #faf7f2;
  --paper-1: #f1ede3;
  --paper-2: #e8e2d4;
  --ink-band: #1c1917;

  /* Ink. Warm near-black, never pure. */
  --ink: #1c1b19;
  --ink-2: #57534e;
  --ink-on-dark: #faf7f2;
  --ink-2-on-dark: #d6d3d1;

  /* One accent that carries weight, rationed. */
  --oxblood: #7c2d33;

  /* Structure only. Barred from every text declaration. */
  --gold: #b08a4f;
  --gold-soft: #c9ab77;
  --rule: #e3ddd2;
  --rule-strong: #c4bba6;

  /* Type */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Source Serif 4", Charter, Georgia, serif;
  --label: "DM Sans", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --smallcaps: "Alegreya SC", "Playfair Display", Georgia, serif;

  /* Measure governs everything. */
  --measure: min(64ch, 640px);
  --figure-width: min(96ch, 820px);
  --margin-col: 88px;
  --gutter: 24px;
  --section-y: 96px;
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--paper-0);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paper grain. Texture, never icon. Stops the cream reading as screen white. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.030;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 120ms linear, text-decoration-color 120ms linear; }
}

a:hover { text-decoration-color: var(--oxblood); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ink-on-dark);
  padding: 12px 18px;
  font-family: var(--label);
  font-size: 14px;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout. One continuous margin rule runs the length of the document.
   -------------------------------------------------------------------------- */

.sheet {
  position: relative;
  z-index: 1;
  max-width: calc(var(--margin-col) + var(--figure-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band {
  position: relative;
  background-color: var(--paper-0);
}

.band-1 { background-color: var(--paper-1); }
.band-2 { background-color: var(--paper-2); }

.band-dark {
  background-color: var(--ink-band);
  color: var(--ink-2-on-dark);
}
.band-dark h2 { color: var(--ink-on-dark); }
.band-dark a { color: var(--ink-on-dark); text-decoration-color: var(--gold-soft); }

.block {
  padding-block: var(--section-y);
  padding-left: var(--margin-col);
  border-left: 1px solid var(--rule);
  position: relative;
}

.band-dark .block { border-left-color: rgba(250, 247, 242, 0.16); }

/* The hung index and eyebrow sit in the margin column, left of the rule. */
.marginalia {
  position: absolute;
  left: 0;
  top: var(--section-y);
  width: calc(var(--margin-col) - 20px);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.band-dark .marginalia { color: var(--ink-2-on-dark); }

/* --------------------------------------------------------------------------
   Type scale. Hierarchy from size and family, never from weight.
   -------------------------------------------------------------------------- */

h1 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
  max-width: 20ch;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.em { font-style: italic; }

.lede {
  font-size: 21px;
  line-height: 1.5;
  margin-top: 28px;
}

.fine {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.band-dark .fine { color: var(--ink-2-on-dark); }

/* --------------------------------------------------------------------------
   The question. The largest text on the page.
   -------------------------------------------------------------------------- */

.question {
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0;
}

.question-answer {
  margin-top: 32px;
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   Figure One. The page's argument as an object.
   It breaks the text measure, which is what makes it read as a figure
   rather than a callout box. The gap at the hinge is the argument.
   -------------------------------------------------------------------------- */

.figure {
  margin: 52px 0 0;
  max-width: var(--figure-width);
}

.figure-label {
  font-family: var(--smallcaps);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--oxblood);
  margin: 0 0 14px;
}

.figure-body {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.figure-panel {
  padding: 30px 32px 32px;
}

.figure-panel-decided {
  background-color: var(--paper-0);
  border-top: 2px solid var(--oxblood);
  margin-top: -1px;
}

.figure-panel-built {
  background-color: var(--paper-2);
}

.figure-panel-label {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
  max-width: none;
}

.figure-panel-text {
  font-size: 20px;
  line-height: 1.42;
  margin: 0;
  max-width: 46ch;
}

/* The hinge. The space is the point: the order is what separates the halves. */
.figure-hinge {
  height: 0;
  border-top: 1px dashed var(--gold);
  margin: 0 32px;
}

.figure-caption {
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 14px 0 0;
  max-width: var(--measure);
}

/* Figure Two. Two offerings set side by side so they are actually comparable,
   split by the vertical hairline System B uses between two peers. */
.figure-wide { max-width: var(--figure-width); }

.columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 32px;
  border-top: 2px solid var(--gold);
  padding-top: 26px;
}

.columns-divider { background-color: var(--rule-strong); }

.column-index {
  font-family: var(--smallcaps);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--oxblood);
  margin: 0 0 8px;
}

.column-title {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 14px;
  max-width: none;
}

.column-lede {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 0.9em;
  max-width: none;
}

.column .ledger { margin-top: 22px; max-width: none; border-top-width: 1px; }
.column .ledger-row { padding: 13px 0; grid-template-columns: 32px 1fr; gap: 12px; }
.column .ledger-text { font-size: 15px; line-height: 1.45; }

/* --------------------------------------------------------------------------
   The ledger. Offerings as ruled registers with hung indices.
   -------------------------------------------------------------------------- */

.ledger {
  margin: 32px 0 0;
  border-top: 2px solid var(--gold);
  max-width: var(--measure);
}

.ledger-heading {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 14px 0 10px;
  margin: 0;
}

.ledger-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-strong);
  align-items: baseline;
}

.ledger-index {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.ledger-text { margin: 0; font-size: 17px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   The gold notch rule. A hairline broken by one rotated lozenge.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Method entries and founders
   -------------------------------------------------------------------------- */

.entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--rule-strong);
  max-width: var(--measure);
}

.entry:last-of-type { border-bottom: 1px solid var(--rule-strong); }

.entry-refusal {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 0.6em;
}

.founder {
  max-width: var(--measure);
  padding-top: 26px;
  border-top: 2px solid var(--gold);
  margin-top: 44px;
}

.founder-name {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.founder-role {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 20px;
}

.disclosure {
  margin-top: 44px;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule-strong);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   Masthead and colophon
   -------------------------------------------------------------------------- */

.masthead {
  padding-block: 40px 0;
  padding-left: var(--margin-col);
  border-left: 1px solid var(--rule);
  position: relative;
}

.masthead-name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
}

.masthead-parent {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 6px 0 0;
}

/* Contents. A document tells you how long it is before you start reading. */
.contents { margin-top: 30px; }

.contents-label {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 10px;
}

.contents-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
  border-top: 1px solid var(--rule);
}

.contents-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.contents-index {
  font-family: var(--label);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.contents-list a {
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contents-list a:hover { border-bottom-color: var(--gold-soft); }

.colophon {
  padding-block: 44px;
  padding-left: var(--margin-col);
  border-left: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   Responsive. The margin column collapses; the rule persists.
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root { --margin-col: 20px; --section-y: 64px; }

  .marginalia {
    position: static;
    width: auto;
    margin-bottom: 14px;
  }

  .contents-list li { grid-template-columns: 34px 1fr; gap: 12px; }

  .block, .masthead, .colophon { padding-left: var(--margin-col); }

  .ledger-row, .entry { grid-template-columns: 34px 1fr; gap: 12px; }
  .figure-panel { padding: 22px 20px 24px; }
  .figure-panel-text { font-size: 18px; }
  .figure-hinge { margin: 0 20px; }
  .columns { grid-template-columns: 1fr; gap: 0; }
  .columns-divider { height: 1px; margin: 30px 0; }
}

@media (max-width: 480px) {
  :root { --section-y: 48px; }
  body { font-size: 17px; }
  .lede { font-size: 19px; }
}

/* --------------------------------------------------------------------------
   Print. The page's real destination.
   -------------------------------------------------------------------------- */

@media print {
  @page { margin: 15mm; }

  :root { --section-y: 22pt; --measure: 100%; }

  body::before { display: none; }

  body {
    background: #fff;
    color: #000;
    font-size: 9.6pt;
    line-height: 1.38;
  }

  .block, .masthead, .colophon { padding-block: 22pt; }
  h1 { font-size: 19pt; line-height: 1.12; max-width: none; }
  h2 { font-size: 14pt; line-height: 1.15; margin-bottom: 10pt; max-width: none; }
  h3 { font-size: 11.5pt; margin-bottom: 4pt; }
  .question { font-size: 19pt; line-height: 1.14; max-width: none; }
  .lede { font-size: 11pt; line-height: 1.32; margin-top: 12pt; }
  .fine { font-size: 8.6pt; line-height: 1.32; }
  .question-answer { margin-top: 12pt; }
  p { margin-bottom: 0.55em; max-width: none; }
  .ledger { margin-top: 12pt; }
  .ledger-row, .entry { padding: 7pt 0; }
  .ledger-text { font-size: 9.2pt; line-height: 1.32; }
  .founder { margin-top: 16pt; padding-top: 10pt; }
  .founder-name { font-size: 13pt; }
  .founder-role { margin-bottom: 8pt; }
  .figure { margin-top: 14pt; }
  .disclosure { margin-top: 16pt; padding-top: 9pt; }

  .band, .band-1, .band-2 { background: #fff; }

  .band-dark {
    background: #fff;
    color: #000;
    border: 1pt solid #000;
  }
  .band-dark h2, .band-dark a, .band-dark .fine, .band-dark .marginalia { color: #000; }

  .block, .masthead, .colophon { border-left: none; padding-left: 0; }

  .marginalia { position: static; width: auto; margin-bottom: 8pt; color: #000; }

  .ledger { border-top: 1.5pt solid #000; }
  .ledger-row, .entry { border-top: 0.5pt solid #000; }
  .founder { border-top: 1.5pt solid #000; }
  .figure-body { border-top: 0.5pt solid #000; border-bottom: 0.5pt solid #000; }
  .figure-panel { padding: 9pt 11pt; background: #fff; }
  .figure-panel-decided { border-top: 1.5pt solid #000; }
  .figure-panel-text { font-size: 10pt; line-height: 1.32; }
  .figure-hinge { border-top: 0.5pt dashed #000; margin: 0 11pt; }
  .figure-label, .figure-caption, .column-index { color: #000; }
  .diagnostic { border-top: 1.5pt solid #000; }
  .diagnostic-label, .diagnostic-text { color: #000; }
  .diagnostic-row { border-top: 0.5pt solid #000; padding: 6pt 0; }
  .action { border: 0.5pt solid #000; border-left: 2pt solid #000; padding: 9pt 11pt; margin-top: 12pt; }
  .action-label { font-size: 12pt; }
  .action-note { color: #000; }
  .columns { grid-template-columns: 1fr 1px 1fr; gap: 0 14pt; border-top: 1.5pt solid #000; padding-top: 10pt; }
  .columns-divider { background: #000; }
  .column-title { font-size: 11.5pt; }
  .column-lede { font-size: 9.2pt; line-height: 1.32; }
  

  .figure-label, .column-index { color: #000; }

  .skip-link { display: none; }
  .contents-list a { text-decoration: none; }
  .contents-list a[href^="#"]::after { content: none; }

  .print-id { display: block !important; }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    color: #000;
  }

  .entry, .ledger-row, .founder, .disclosure, .figure { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}

.print-id { display: none; }

/* --------------------------------------------------------------------------
   The diagnostic and the one action. The page's only call to act.
   -------------------------------------------------------------------------- */

.diagnostic {
  margin: 34px 0 0;
  max-width: var(--measure);
  border-top: 2px solid var(--gold);
}

.diagnostic-label {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2-on-dark);
  padding: 14px 0 10px;
  margin: 0;
}

.diagnostic-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid rgba(250, 247, 242, 0.18);
  align-items: baseline;
}

.diagnostic-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-on-dark);
  max-width: none;
}

.band-dark .diagnostic-row .ledger-index { color: var(--ink-2-on-dark); }

.band-dark .action,
.band-dark .action:hover,
.band-dark .action .action-label { color: var(--ink); }
.band-dark .action .action-note { color: var(--ink-2); }

.action {
  display: block;
  margin-top: 38px;
  max-width: var(--measure);
  padding: 22px 26px;
  background-color: var(--paper-0);
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid var(--oxblood);
}

.action-label {
  display: block;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.action-note {
  display: block;
  margin-top: 7px;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.action:hover { border-left-color: var(--gold); }
.action:focus-visible { outline: 2px solid var(--paper-0); outline-offset: 3px; }
