/* Folio — stacked numbered leaves of one record. Not a diary. */
:root {
  --ink: #322a22; --wine: #722; --vellum: #fffaf2; --paper: #f3efe6; --rule: #d2c8b8;
  --disp: "Instrument Serif", Georgia, serif;
  --ui: "Fira Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 16.5px; line-height: 1.6; }
a { color: var(--wine); }
.iv-skip { position: absolute; left: -999px; }
.iv-skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 3; }
.iv-hold { max-width: 880px; margin: 0 auto; padding: 0 18px; }
.iv-band { border-bottom: 1px solid var(--ink); background: var(--vellum); }
.iv-brand { font-family: var(--disp); font-size: 1.85rem; color: var(--ink); text-decoration: none; display: block; padding-top: 18px; }
.iv-where { margin: 0; font-size: 0.82rem; }
.iv-nav { display: flex; gap: 18px; padding: 10px 0 16px; }
.iv-nav a { color: var(--ink); }
.iv-leaf { display: none; float: right; margin-top: 16px; font: inherit; background: var(--wine); color: #fff; border: 0; padding: 8px 12px; }
.iv-quire { display: none; background: #e8e0d2; padding: 8px 18px 14px; }
.iv-quire[hidden] { display: none; }
.iv-quire a { display: block; padding: 8px 0; color: var(--ink); }
h1, h2, h3 { font-family: var(--disp); line-height: 1.2; }
h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
.iv-block { padding: 38px 0; }
.iv-quirelist { list-style: none; margin: 20px 0; padding: 0; position: relative; }
.iv-leafcard { background: var(--vellum); border: 1px solid var(--ink); padding: 22px 24px 28px; margin: 0 0 -12px; box-shadow: 4px 6px 0 #cfc6b6; }
.iv-leafcard:nth-child(2) { margin-left: 18px; }
.iv-leafcard:nth-child(3) { margin-left: 36px; }
.iv-pg { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); margin: 0 0 6px; }
.iv-aside { background: #fff; border-top: 4px solid var(--wine); padding: 14px 16px; }
.iv-prices { width: 100%; border-collapse: collapse; }
.iv-prices th, .iv-prices td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.iv-form { background: var(--vellum); padding: 18px; border: 1px solid var(--ink); }
.iv-f { margin-bottom: 12px; }
.iv-l { display: block; font-weight: 600; }
.iv-in { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--ink); }
.iv-tick { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 0.88rem; margin: 10px 0; }
.iv-btn { background: var(--wine); color: #fff; border: 0; font: inherit; font-weight: 600; padding: 12px 16px; cursor: pointer; width: 100%; }
.iv-note { font-weight: 600; }
.iv-note.is-bad { color: #8e2418; }
.iv-bound { background: #e8e0d2; padding: 16px; }
.iv-foot { background: #322a22; color: #efe8dc; padding: 28px 0; font-size: 0.9rem; }
.iv-foot a { color: #fff; }
.iv-pair { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
@media (max-width: 800px) {
  .iv-nav { display: none; }
  .iv-leaf { display: inline-block; }
  .iv-quire { display: block; }
  .iv-pair { grid-template-columns: 1fr; }
  .iv-leafcard:nth-child(2), .iv-leafcard:nth-child(3) { margin-left: 0; }
}
