/* Quillamore: a calligrapher's copybook. Ruled practice leaf with a red margin line, a cover label for a masthead,
   slant guides behind the first screen and the brand written large in copperplate (the one bold thing). */
:root {
  --qlx-paper: #f6f8fa;
  --qlx-rule: #c8d6e5;
  --qlx-margin: #d4655a;
  --qlx-ink: #23294a;
  --qlx-ink-soft: #4f5775;
  --qlx-red: #b23a2e;
  --qlx-cover: #3f5878;
  --qlx-cover-deep: #2e4360;
  --qlx-label: #fbfbf7;
  --qlx-line: 32px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.qlx-book { margin: 0; background: var(--qlx-cover); color: var(--qlx-ink); font: 400 17.5px/var(--qlx-line) "Newsreader", Georgia, serif; }
a { color: var(--qlx-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--qlx-ink); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
img { max-width: 100%; height: auto; }
.qlx-draft { background: #f4d9a6; color: #4a3510; font-size: 14px; line-height: 1.4; text-align: center; padding: 6px 16px; }

/* ---- the cover with its label */
.qlx-cover { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 22px 24px 18px;
  background: var(--qlx-cover) repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 9px); }
.qlx-label { grid-column: 2; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 26px 10px 16px; background: var(--qlx-label); border: 1.5px solid #1f2b3d; border-radius: 14px; box-shadow: inset 0 0 0 4px var(--qlx-label), inset 0 0 0 5px #93a3b8;
  color: var(--qlx-ink); text-decoration: none; }
.qlx-label img { grid-row: 1 / 3; }
.qlx-label-name { font-family: "Pinyon Script", cursive; font-size: 40px; line-height: 1.05; }
.qlx-label-line { font-size: 12.5px; line-height: 1.3; letter-spacing: .06em; color: var(--qlx-ink-soft); }
.qlx-contents { grid-column: 1 / -1; grid-row: 2; }
.qlx-contents ol { list-style: lower-alpha inside; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin: 6px 0 0; padding: 0; color: #c9d5e4; font-size: 15px; }
.qlx-contents a { color: #f2f5f9; text-decoration: none; border-bottom: 1px solid transparent; }
.qlx-contents a:hover, .qlx-contents a[aria-current="page"] { border-bottom-color: #f2c8c2; }
.qlx-copylink { grid-column: 3; grid-row: 1; justify-self: end; color: #fff; font-size: 15px; text-decoration: none; padding: 4px 12px; border: 1px solid #a9bbd1; border-radius: 20px; }
.qlx-copylink:hover { background: #fff; color: var(--qlx-ink); }

/* ---- the ruled leaf */
.qlx-leaf { position: relative; max-width: 1120px; margin: 0 auto; padding: var(--qlx-line) 40px calc(var(--qlx-line) * 2) 104px;
  background-color: var(--qlx-paper);
  background-image: linear-gradient(90deg, transparent 72px, var(--qlx-margin) 72px, var(--qlx-margin) 73.5px, transparent 73.5px),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--qlx-line) - 1px), var(--qlx-rule) calc(var(--qlx-line) - 1px) var(--qlx-line));
  box-shadow: 0 0 0 1px #2b3c55, 0 18px 40px rgba(10, 20, 40, .35); }
.qlx-leaf h1 { font-size: 40px; line-height: calc(var(--qlx-line) * 1.5); margin: 0 0 var(--qlx-line); }
.qlx-leaf h2 { font-size: 25px; line-height: var(--qlx-line); margin: var(--qlx-line) 0 calc(var(--qlx-line) / 2); }
.qlx-leaf p { margin: 0 0 var(--qlx-line); }

/* ---- THE ONE BOLD THING: the brand written across the slant guides */
.qlx-exercise { position: relative; padding: var(--qlx-line) 0 0; }
.qlx-guides { position: absolute; inset: 0 -40px 0 -32px; pointer-events: none;
  background: repeating-linear-gradient(55deg, transparent 0 46px, rgba(178, 58, 46, .13) 46px 47px); }
.qlx-exercise > * { position: relative; }
.qlx-exercise-no { font-style: italic; color: var(--qlx-ink-soft); }
.qlx-exercise h1 { margin: 0; }
.qlx-hand { display: block; font-family: "Pinyon Script", cursive; font-weight: 400; font-size: clamp(72px, 14vw, 176px);
  line-height: calc(var(--qlx-line) * 5); color: var(--qlx-ink); letter-spacing: .01em; }
.qlx-exercise-say { display: block; max-width: 30ch; font-size: 27px; line-height: calc(var(--qlx-line) * 1.5); font-weight: 400; margin-bottom: var(--qlx-line); }
.qlx-exercise-claim { max-width: 62ch; }
.qlx-exercise-go { display: flex; flex-wrap: wrap; gap: 10px 14px; }

/* ---- pens (buttons) */
.qlx-pen { display: inline-block; font: 600 16px/1.2 "Newsreader", Georgia, serif; padding: 9px 18px; border: 1.5px solid var(--qlx-ink); border-radius: 22px;
  background: var(--qlx-ink); color: #fff; text-decoration: none; cursor: pointer; }
.qlx-pen:hover { background: var(--qlx-red); border-color: var(--qlx-red); color: #fff; }
.qlx-pen-ghost { background: transparent; color: var(--qlx-ink); }
.qlx-pen-small { padding: 6px 14px; font-size: 15px; }
.qlx-pen-send { width: 100%; padding: 13px 18px; font-size: 19px; margin-top: 8px; }
.qlx-pen:disabled { opacity: .45; cursor: not-allowed; background: var(--qlx-ink); border-color: var(--qlx-ink); }

/* ---- practice lines (the three boxes) */
.qlx-line-list { list-style: none; margin: 0 0 var(--qlx-line); padding: 0; }
.qlx-line { display: grid; grid-template-columns: 130px 1fr auto auto; gap: 0 18px; align-items: end; min-height: calc(var(--qlx-line) * 3);
  padding: calc(var(--qlx-line) / 2) 0; border-bottom: 2px solid var(--qlx-rule); }
.qlx-line-margin { font-family: "Pinyon Script", cursive; font-size: 30px; line-height: var(--qlx-line); color: var(--qlx-red); margin-left: -2px; }
.qlx-line-body { display: flex; flex-direction: column; line-height: var(--qlx-line); }
.qlx-strokes { display: flex; gap: 7px; height: 26px; align-items: flex-end; }
.qlx-strokes i { display: block; width: 4px; height: 24px; background: var(--qlx-ink); border-radius: 2px 2px 1px 1px; transform: skewX(-20deg); }
.qlx-line-what { font-weight: 600; }
.qlx-line-each { font-size: 15px; color: var(--qlx-ink-soft); }
.qlx-line-sum { font-size: 30px; font-weight: 600; line-height: var(--qlx-line); }
.qlx-boxed { font-style: italic; color: var(--qlx-ink-soft); }

/* ---- the note in the margin (Auto Ship) */
.qlx-margin-note { position: relative; margin: var(--qlx-line) 0; padding: calc(var(--qlx-line) / 2) 20px; border: 2px solid var(--qlx-red); border-radius: 4px;
  background: rgba(255, 255, 255, .7); transform: rotate(-.6deg); }
.qlx-margin-note h2 { margin-top: 0; color: var(--qlx-red); font-family: "Pinyon Script", cursive; font-weight: 400; font-size: 34px; line-height: 1.3; }
.qlx-addenda p { max-width: 70ch; }

/* ---- copybooks (eBooks) */
.qlx-book-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.qlx-book-item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
.qlx-book-item img { display: block; width: 140px; border-radius: 3px; box-shadow: 3px 4px 0 rgba(35, 41, 74, .25); }
.qlx-book-item h3 { margin: 0; font-size: 22px; line-height: var(--qlx-line); }
.qlx-book-item p { margin: 0 0 6px; line-height: 1.5; }
.qlx-book-no { font-style: italic; color: var(--qlx-red); }
.qlx-book-sub { font-style: italic; color: var(--qlx-ink-soft); }
.qlx-book-price { font-weight: 600; }

/* ---- inner pages */
.qlx-page-narrow { max-width: 760px; }
.qlx-runhead { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--qlx-ink-soft); }
.qlx-intro { font-size: 20px; max-width: 60ch; }
.qlx-wide { overflow-x: auto; margin-bottom: var(--qlx-line); }
.qlx-sums { width: 100%; min-width: 520px; border-collapse: collapse; background: rgba(255, 255, 255, .8); line-height: 1.45; font-size: 16px; }
.qlx-sums th { text-align: left; font-weight: 600; border-bottom: 2px solid var(--qlx-ink); padding: 6px 8px; }
.qlx-sums td { border-bottom: 1px solid var(--qlx-rule); padding: 7px 8px; vertical-align: top; }
.qlx-rush-line { padding: 4px 12px; border-left: 3px solid var(--qlx-red); background: rgba(178, 58, 46, .06); }
.qlx-operator { font-size: 15px; color: var(--qlx-ink-soft); font-style: italic; }
.qlx-address-book { display: grid; grid-template-columns: 170px 1fr; margin: 0 0 var(--qlx-line); }
.qlx-address-book dt { font-style: italic; color: var(--qlx-ink-soft); }
.qlx-address-book dd { margin: 0; }
.qlx-address-book dd span { display: block; font-size: 15px; color: var(--qlx-ink-soft); line-height: 1.5; }
.qlx-legal { overflow-wrap: anywhere; line-height: 1.6; }
.qlx-legal p { margin: 0 0 14px; }
.qlx-legal h2 { font-size: 21px; }
.qlx-opt { margin-bottom: var(--qlx-line); }

/* ---- exemplars (products) */
.qlx-exemplar { margin: 0 0 calc(var(--qlx-line) * 2); }
.qlx-ex-head h2 { font-family: "Pinyon Script", cursive; font-weight: 400; font-size: 46px; line-height: calc(var(--qlx-line) * 2); margin: 0; }
.qlx-ex-no { margin: 0 !important; font-style: italic; color: var(--qlx-red); }
.qlx-ex-sub { font-size: 20px; margin: 0 0 var(--qlx-line) !important; }
.qlx-ex-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; }
.qlx-ex-dl { margin: var(--qlx-line) 0; }
.qlx-ex-dl dt { font-style: italic; color: var(--qlx-ink-soft); }
.qlx-ex-dl dd { margin: 0; }
.qlx-claims { margin: 0 0 var(--qlx-line); padding-left: 20px; }
.qlx-small { font-size: 14.5px; line-height: 1.5; color: var(--qlx-ink-soft); margin-top: 14px; }
.qlx-small p { margin: 0 0 8px; }

/* the written label card that stands in for a bottle */
.qlx-card { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 320px; padding: 22px 20px 18px; background: #fff;
  border: 1.5px solid var(--qlx-ink); border-radius: 50% 50% 10px 10px / 18% 18% 10px 10px; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #9fb1c4; line-height: 1.35; }
.qlx-card-brand { font-family: "Pinyon Script", cursive; font-size: 30px; line-height: 1.4; color: var(--qlx-red); }
.qlx-card-name { font-size: 22px; font-weight: 600; margin-top: 4px; }
.qlx-card-sub { font-style: italic; font-size: 15px; }
.qlx-card-size { font-size: 15px; margin-top: 6px; }
.qlx-card-rule { width: 60%; height: 1px; background: var(--qlx-ink); margin: 10px 0; }
.qlx-card-kind { font-size: 12px; letter-spacing: .04em; color: var(--qlx-ink-soft); word-break: break-word; }

/* supplement facts */
.qlx-facts { background: #fff; color: #111; border: 2px solid #111; padding: 10px 12px; font: 13.5px/1.4 Arial, Helvetica, sans-serif; }
.qlx-facts-h { margin: 0; font: 800 24px/1.2 Arial, Helvetica, sans-serif; border-bottom: 1px solid #111; }
.qlx-facts .qlx-facts-serve { margin: 4px 0; padding-bottom: 4px; border-bottom: 7px solid #111; }
.qlx-facts table { width: 100%; border-collapse: collapse; }
.qlx-facts th { text-align: left; font-size: 11.5px; border-bottom: 3px solid #111; padding: 3px 2px; }
.qlx-facts td { border-bottom: 1px solid #777; padding: 4px 2px; vertical-align: top; }
.qlx-facts td + td, .qlx-facts th + th { text-align: right; white-space: nowrap; padding-left: 8px; }
.qlx-facts .qlx-facts-dag, .qlx-facts .qlx-facts-other { margin: 6px 0 0; font-size: 12.5px; }

/* ---- the fair copy (checkout) */
.qlx-fair { max-width: 860px; }
.qlx-copied { list-style: none; margin: 0 0 var(--qlx-line); padding: 0; border-top: 2px solid var(--qlx-ink); }
.qlx-copied-line { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--qlx-rule); line-height: 1.4; }
.qlx-copied-name { font-weight: 600; }
.qlx-copied-name small { display: block; font-weight: 400; font-size: 14.5px; color: var(--qlx-ink-soft); }
.qlx-copied-sum { font-weight: 600; white-space: nowrap; }
.qlx-erase { border: 0; background: none; padding: 0; color: var(--qlx-red); font: inherit; font-size: 14px; font-weight: 400; text-decoration: underline; cursor: pointer; }
.qlx-count { display: inline-flex; gap: 8px; align-items: center; }
.qlx-count button { width: 30px; height: 30px; border: 1.5px solid var(--qlx-ink); border-radius: 50%; background: #fff; font: inherit; cursor: pointer; line-height: 1; }
.qlx-note { font-style: italic; color: var(--qlx-ink-soft); }
.qlx-sum-table { width: 100%; border-collapse: collapse; margin: 0 0 var(--qlx-line); background: #fff; border: 1.5px solid var(--qlx-ink); line-height: 1.45; }
.qlx-sum-table caption { text-align: left; font-style: italic; color: var(--qlx-ink-soft); padding-bottom: 4px; }
.qlx-sum-table td { padding: 6px 12px; }
.qlx-sum-table td + td { text-align: right; white-space: nowrap; }
.qlx-sum-rule td { border-top: 1px dashed var(--qlx-rule); }
.qlx-sum-total td { border-top: 2px solid var(--qlx-ink); font-weight: 600; font-size: 19px; }
.qlx-addition { margin: 0 0 var(--qlx-line); padding: 12px 16px; background: #fff; border: 1.5px solid #9fb1c4; border-radius: 6px; line-height: 1.5; }
.qlx-addition p { margin: 0 0 8px; }
.qlx-addition-h { font-style: italic; color: var(--qlx-red); }
.qlx-tick { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; margin: 8px 0; }
.qlx-tick input { width: 19px; height: 19px; margin-top: 4px; flex: none; accent-color: var(--qlx-red); }
.qlx-tick-auth { font-size: 15px; }
.qlx-fs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; min-width: 0; margin: 0 0 18px; padding: 10px 16px 16px;
  background: rgba(255, 255, 255, .85); border: 1.5px solid #9fb1c4; border-radius: 6px; line-height: 1.4; }
.qlx-fs legend { font-family: "Pinyon Script", cursive; font-size: 28px; line-height: 1.3; padding: 0 6px; }
.qlx-fs label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; min-width: 0; }
.qlx-fs input, .qlx-coupon input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1.5px solid #8ea4bd; border-radius: 4px; background: #fff; width: 100%; min-width: 0; }
.qlx-full { grid-column: 1 / -1; }
.qlx-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 !important; font-size: 15px; }
.qlx-inkpot { min-height: 150px; padding: 6px; background: #eef3f8; border: 1.5px dashed #8ea4bd; border-radius: 6px; }
.qlx-inkpot iframe { width: 100%; border: 0; }
.qlx-inkpot-say { font-size: 14px; color: var(--qlx-ink-soft); margin: 0 !important; }
.qlx-coupon { margin: 0 0 18px; line-height: 1.4; }
.qlx-coupon-row { display: flex; gap: 8px; margin-top: 4px; }
.qlx-charge { font-weight: 600; line-height: 1.5; }
.qlx-status { line-height: 1.5; min-height: 1.5em; }
.qlx-dl { list-style: none; padding: 0; }

/* ---- the back cover */
.qlx-backcover { max-width: 1120px; margin: 0 auto; padding: 34px 24px 40px; color: #e8edf4; line-height: 1.5; font-size: 15px; text-align: center; }
.qlx-belongs { display: inline-block; text-align: left; max-width: 640px; padding: 14px 22px 16px; background: var(--qlx-label); color: var(--qlx-ink);
  border: 1.5px solid #1f2b3d; border-radius: 14px; box-shadow: inset 0 0 0 4px var(--qlx-label), inset 0 0 0 5px #93a3b8; }
.qlx-belongs-cap { margin: 0 0 6px; font-family: "Pinyon Script", cursive; font-size: 26px; line-height: 1.2; color: var(--qlx-red); }
.qlx-belongs address { display: flex; flex-direction: column; font-style: normal; }
.qlx-belongs-who { font-weight: 600; font-size: 17px; }
.qlx-belongs-c { margin-top: 6px; font-size: 13.5px; color: var(--qlx-ink-soft); }
.qlx-back-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 20px 0 8px; padding: 0; }
.qlx-backcover a { color: #fff; }
.qlx-backcover .qlx-belongs a { color: var(--qlx-red); }
.qlx-back-right { margin: 6px 0; }
.qlx-back-fda { max-width: 760px; margin: 14px auto 0; font-size: 13px; color: #c3cfde; }

/* ---- Dzeno's art, once it is in: the logo pasted on the cover label, bottles and boxes tipped onto the leaf */
.qlm-label-art { grid-template-columns: auto; grid-template-rows: auto auto; justify-items: center; row-gap: 4px; padding: 12px 24px 10px; }
.qlm-label-art .qlm-cover-logo { grid-row: auto; display: block; width: 210px; height: auto; }
.qlm-exercise-shown { padding-right: 300px; min-height: 520px; }
.qlm-exercise-shown .qlx-hand { font-size: clamp(64px, 10.5vw, 138px); }
.qlm-hero-bottle { position: absolute !important; right: 0; top: calc(var(--qlx-line) * 1.5); width: 260px; height: auto;
  filter: drop-shadow(4px 6px 0 rgba(35, 41, 74, .14)); transform: rotate(2deg); }
.qlx-line.qlm-line-shown { grid-template-columns: 130px 200px 1fr auto auto; align-items: center; }
.qlm-line-plate { display: block; }
.qlm-box-pic { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #c9d2de; border-radius: 3px; }
.qlm-auto-pic { float: right; width: 240px; height: auto; margin: 0 0 10px 18px; background: #fff; border: 1px solid #e3b5ae; border-radius: 3px; }
.qlx-margin-note::after { content: ""; display: block; clear: both; }
.qlm-ex-bottle { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto var(--qlx-line); }

@media (max-width: 860px) {
  .qlx-line { grid-template-columns: 1fr auto; }
  .qlx-line-margin { grid-column: 1 / -1; }
  .qlx-line .qlx-pen { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
  .qlx-ex-cols, .qlx-book-list { grid-template-columns: 1fr; }
  .qlx-line.qlm-line-shown { grid-template-columns: 1fr auto; }
  .qlm-line-plate { grid-column: 1 / -1; max-width: 360px; margin: 6px 0 10px; }
  .qlm-exercise-shown { padding-right: 0; min-height: 0; }
  .qlm-hero-bottle { position: relative !important; top: 0; display: block; width: 190px; margin: 0 auto var(--qlx-line); }
}
@media (max-width: 640px) {
  :root { --qlx-line: 28px; }
  body.qlx-book { font-size: 16px; }
  .qlx-cover { grid-template-columns: 1fr; padding: 14px 16px 12px; justify-items: center; }
  .qlx-label, .qlx-copylink { grid-column: 1; grid-row: auto; justify-self: center; }
  .qlx-label-name { font-size: 32px; }
  .qlx-contents { grid-row: auto; }
  .qlx-contents ol { gap: 0 14px; font-size: 14px; }
  .qlx-leaf { padding: var(--qlx-line) 16px calc(var(--qlx-line) * 2) 40px;
    background-image: linear-gradient(90deg, transparent 26px, var(--qlx-margin) 26px, var(--qlx-margin) 27.5px, transparent 27.5px),
      repeating-linear-gradient(180deg, transparent 0 calc(var(--qlx-line) - 1px), var(--qlx-rule) calc(var(--qlx-line) - 1px) var(--qlx-line)); }
  .qlx-guides { inset: 0 -16px 0 -14px; }
  .qlx-hand { line-height: calc(var(--qlx-line) * 3.5); }
  .qlx-exercise-say { font-size: 22px; }
  .qlx-leaf h1 { font-size: 32px; }
  .qlx-book-item { grid-template-columns: 96px 1fr; }
  .qlx-book-item img { width: 96px; }
  .qlx-fs { grid-template-columns: 1fr; }
  .qlx-address-book { grid-template-columns: 1fr; }
  .qlx-copied-line { grid-template-columns: 1fr auto; }
  .qlx-copied-sum { grid-column: 2; }
  .qlx-backcover { padding: 26px 16px 32px; }
  .qlm-label-art .qlm-cover-logo { width: 170px; }
  .qlm-auto-pic { float: none; display: block; width: 100%; max-width: 320px; margin: 0 0 10px; }
}
