/* Pharmacology Easy — the site is drawn like the app: a comic page.
   Each section is an inked panel, headings sit in yellow narration boxes,
   the masthead carries the app's purple-to-mango gradient with halftone
   dots. Colours are the app's own (lib/shelf/shelf_page.dart and
   lib/comic/highlighted_text.dart). */
:root {
  --ink: #2A2340; --paper: #FFFDF8; --page: #FBF5F7;
  --narration: #FFE27A; --mint: #BDE8CF; --muted: #6A6280;
  --link: #8C2FB5;
  --masthead: linear-gradient(120deg, #6B46D6 0%, #BE4BC0 38%, #F2698E 72%, #FFA659 100%);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #EDE7F6; --paper: #221C30; --page: #17121F;
          --muted: #B3AAC6; --link: #E2A6FF; }
  .panel h2, .tag { color: #2A2340; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink);
       font: 16px/1.6 "Avenir Next", -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration-thickness: 2px; }

.masthead { background: var(--masthead); position: relative; overflow: hidden;
            padding: 2.2rem 1rem 3rem; border-bottom: 4px solid #2A2340; }
.masthead::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.22) 28%, transparent 30%);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(160deg, transparent 20%, #000 90%);
          mask-image: linear-gradient(160deg, transparent 20%, #000 90%); }
.masthead .inner, main, .strip { max-width: 46rem; margin: 0 auto; }
.masthead .home { color: #fff; font-weight: 800; letter-spacing: .02em;
                  text-decoration: none; font-size: .95rem; position: relative; z-index: 1; }
.masthead h1 { color: #fff; font-size: 2.1rem; line-height: 1.15; margin: 1rem 0 .8rem;
               position: relative; z-index: 1; text-shadow: 3px 3px 0 #2A2340; }
.tag { display: inline-block; background: var(--narration); color: var(--ink);
       border: 3px solid #2A2340; box-shadow: 5px 5px 0 #2A2340;
       padding: .35rem .8rem; font-weight: 700; transform: rotate(-1.5deg);
       position: relative; z-index: 1; }

main { padding: 2rem 1rem 1rem; }
.panel { background: var(--paper); border: 3px solid #2A2340; box-shadow: 6px 6px 0 #2A2340;
         border-radius: 6px; padding: 0 1.2rem 1rem; margin: 0 0 2rem; }
.panel h2 { display: inline-block; background: var(--narration); margin: -.9rem 0 .6rem -.4rem;
            padding: .2rem .7rem; border: 3px solid #2A2340; font-size: 1.05rem;
            transform: rotate(-1deg); }
.panel.key { background: var(--mint); color: #2A2340; }
.panel.key a { color: #6B1F8F; }
dl { margin: 0; }
dt { font-weight: 800; margin-top: 1rem; }
dd { margin: .2rem 0 0; }
ol, ul { padding-left: 1.3rem; }
li { margin: .35rem 0; }
.stamp { color: var(--muted); font-size: .88rem; }

.strip { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 1rem 1rem 2.5rem;
         font-size: .92rem; border-top: 3px dashed var(--muted); }
.strip p { flex-basis: 100%; margin: .3rem 0 0; color: var(--muted); }
