:root {
  color-scheme: light;
  --ink: #28221d;
  --ink-soft: #6c5d50;
  --paper: #f0e2c8;
  --paper-light: #fff8e9;
  --orange: #bc4a20;
  --orange-dark: #7e2b15;
  --gold: #d6a245;
  --green: #345b4a;
  --grey: #454a4c;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    repeating-linear-gradient(-10deg, rgba(255,255,255,.035) 0 2px, transparent 2px 13px),
    radial-gradient(circle at 15% 8%, #62686a 0, transparent 34rem),
    var(--grey);
}
a { color: inherit; }
.ci-page-shell { width: min(1160px, calc(100% - 34px)); margin: 0 auto; padding: 78px 0 62px; }
.ci-file {
  position: relative;
  overflow: hidden;
  border: 6px solid #171411;
  border-radius: 8px 28px 28px 8px;
  background:
    radial-gradient(circle at 87% 9%, rgba(188,74,32,.1), transparent 20rem),
    repeating-linear-gradient(-9deg, rgba(60,47,37,.038) 0 2px, transparent 2px 11px),
    var(--paper);
  box-shadow: 0 14px 0 rgba(23,20,17,.92), 0 30px 70px rgba(0,0,0,.34);
}
.ci-file::after { content:""; position:absolute; inset:13px; pointer-events:none; border:1px solid rgba(40,34,29,.22); }
.ci-file-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 6vw, 64px);
  border-bottom: 6px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 86% 50%, rgba(255,232,151,.52) 0 4%, rgba(255,187,69,.16) 4.5% 13%, transparent 31%),
    repeating-conic-gradient(from -7deg at 86% 50%, rgba(255,221,119,.34) 0deg 6deg, rgba(126,43,21,.08) 6deg 12deg, transparent 12deg 18deg),
    linear-gradient(105deg, #8e2d18 0%, var(--orange) 43%, #d87920 100%);
  color: #fff5df;
  text-shadow: 0 2px 0 rgba(62,20,12,.34);
}
.ci-file-head::after {
  content: "";
  position: absolute;
  right: clamp(28px, 7vw, 88px);
  top: 50%;
  z-index: -1;
  width: clamp(150px, 26vw, 310px);
  aspect-ratio: 1;
  border: 2px solid rgba(255,239,188,.28);
  border-radius: 50%;
  transform: translate(38%, -50%);
  box-shadow: 0 0 0 9px rgba(126,43,21,.10), 0 0 0 19px rgba(255,221,119,.10);
}
.ci-file-head > * { position: relative; z-index: 1; }
.ci-file-kicker { margin: 0 0 10px; font-size: .65rem; font-weight: 1000; letter-spacing: .23em; text-transform: uppercase; }
.ci-file-title { margin: 0; font-family: Impact, "Arial Black", Arial, sans-serif; font-size: clamp(3.2rem, 9vw, 7.7rem); font-weight: 1000; line-height: .8; letter-spacing: .015em; text-transform: uppercase; }
.ci-file-deck { max-width: 62ch; margin: 18px 0 0; font-size: clamp(.92rem, 1.7vw, 1.08rem); font-weight: 800; line-height: 1.5; }
.ci-file-stamp {
  min-width: 150px;
  padding: 13px 15px;
  border: 4px solid #fff1d0;
  color: #fff1d0;
  font: 1000 .7rem/1.25 "Courier New", monospace;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-5deg);
}
.ci-file-body { position: relative; z-index: 1; padding: clamp(24px, 5vw, 58px); }
.ci-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.ci-tab, .ci-action {
  min-height: 46px;
  padding: 11px 16px;
  border: 3px solid var(--ink);
  border-radius: 5px;
  background: #d4c4aa;
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  font: 1000 .72rem/1 Arial, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.ci-tab[aria-selected="true"], .ci-action.primary { background: var(--gold); }
.ci-tab:hover, .ci-action:hover { transform: translateY(-1px); }
.ci-tab:focus-visible, .ci-action:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.ci-panel[hidden] { display: none; }
.ci-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 25px); }
.ci-card {
  grid-column: span 6;
  padding: clamp(19px, 3vw, 30px);
  border: 4px solid var(--ink);
  border-radius: 7px 18px 18px 7px;
  background: rgba(255,255,255,.33);
  box-shadow: 0 7px 0 rgba(40,34,29,.92);
}
.ci-card.wide { grid-column: 1 / -1; }
.ci-card.accent { background: var(--ink); color: #fff4df; }
.ci-card-number { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-bottom: 13px; border: 3px solid currentColor; border-radius: 50%; font-size: .7rem; font-weight: 1000; }
.ci-card h2, .ci-card h3 { margin: 0; font-family: Impact, "Arial Black", Arial, sans-serif; font-weight: 1000; letter-spacing: .02em; line-height: .95; text-transform: uppercase; }
.ci-card h2 { font-size: clamp(2rem, 4.8vw, 4rem); }
.ci-card h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.ci-card p { margin: 13px 0 0; color: var(--ink-soft); font-weight: 750; line-height: 1.55; }
.ci-card.accent p { color: rgba(255,244,223,.76); }
.ci-card .ci-action { display: inline-flex; align-items: center; margin-top: 20px; }
.ci-ledger { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 23px; border: 4px solid var(--ink); background: var(--paper-light); }
.ci-ledger > div { min-height: 104px; padding: 17px; border-right: 2px solid rgba(40,34,29,.35); }
.ci-ledger > div:last-child { border-right: 0; }
.ci-ledger span { display: block; color: var(--ink-soft); font: 1000 .6rem/1.25 "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; }
.ci-ledger strong { display: block; margin-top: 11px; font-family: Impact, "Arial Black", Arial, sans-serif; font-size: clamp(1.55rem, 3.2vw, 2.7rem); line-height: .9; }
.ci-notice { margin: 0 0 24px; padding: 15px 18px; border-left: 7px solid var(--orange); background: rgba(255,255,255,.37); color: var(--ink-soft); font: 800 .82rem/1.45 "Courier New", monospace; }
.ci-section-title { margin: 2px 0 19px; font-family: Impact, "Arial Black", Arial, sans-serif; font-size: clamp(2rem, 5vw, 4.1rem); line-height: .9; text-transform: uppercase; }
.ci-prose { max-width: 78ch; }
.ci-prose h2 { margin: 35px 0 10px; font-family: Impact, "Arial Black", Arial, sans-serif; font-size: clamp(1.55rem, 3.2vw, 2.35rem); text-transform: uppercase; }
.ci-prose h2:first-child { margin-top: 0; }
.ci-prose p, .ci-prose li { color: var(--ink-soft); font-weight: 750; line-height: 1.65; }
.ci-prose a { color: var(--orange-dark); font-weight: 1000; }
.ci-prose ul { padding-left: 1.2rem; }
.ci-index { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 24px 0 32px; }
.ci-index a { padding: 16px; border: 3px solid var(--ink); background: rgba(255,255,255,.28); color: var(--ink); font-size: .75rem; font-weight: 1000; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.ci-index a:hover { background: rgba(214,162,69,.28); }
.ci-page-foot { display: flex; justify-content: space-between; gap: 18px; margin-top: 25px; color: rgba(255,255,255,.75); font: 800 .7rem/1.4 "Courier New", monospace; }

@media (max-width: 760px) {
  .ci-page-shell { width: min(100% - 22px, 1160px); padding-top: 68px; }
  .ci-file-head { grid-template-columns: 1fr; align-items: start; padding: 28px 22px; }
  .ci-file-stamp { width: max-content; min-width: 0; }
  .ci-file-body { padding: 22px 17px 29px; }
  .ci-card { grid-column: 1 / -1; }
  .ci-ledger { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ci-ledger > div:nth-child(2) { border-right: 0; }
  .ci-ledger > div:nth-child(-n+2) { border-bottom: 2px solid rgba(40,34,29,.35); }
  .ci-index { grid-template-columns: 1fr; }
  .ci-page-foot { flex-direction: column; }
}
