/* MedsWork — titration design system */
:root{
  --ink:#1C2B33; --paper:#F7F8F6; --card:#FFFFFF;
  --teal:#20655B; --teal-deep:#164A42; --amber:#C08327;
  --muted:#5C6B70; --line:#DFE5E1; --tint:#ECF1EE; --tint2:#F1F4F0;
  --serif:'Spectral',Georgia,serif; --sans:'Public Sans',system-ui,sans-serif; --mono:'IBM Plex Mono',ui-monospace,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body{font-family:var(--sans);color:var(--ink);background:var(--paper);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible{outline:2px solid var(--amber);outline-offset:3px;border-radius:2px}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}
.narrow{max-width:760px;margin:0 auto;padding:0 24px}

/* header */
header.site{position:sticky;top:0;background:rgba(247,248,246,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.mark{font-family:var(--serif);font-weight:600;font-size:1.25rem;color:var(--ink);letter-spacing:-.01em;display:flex;align-items:center;gap:.55rem}
.mark:hover{text-decoration:none}
.mark .tick{width:22px;height:14px;display:inline-block}
.mark b{color:var(--teal);font-weight:600}
.nav ul{display:flex;gap:1.4rem;list-style:none;align-items:center}
.nav ul a{color:var(--ink);font-size:.92rem;font-weight:500}
.nav ul a[aria-current="page"]{color:var(--teal);border-bottom:2px solid var(--teal);padding-bottom:2px}
.nav .cta-mini{background:var(--teal);color:#fff;padding:.5rem 1rem;border-radius:3px;font-weight:600}
.nav .cta-mini:hover{background:var(--teal-deep);text-decoration:none}
.menu-btn{display:none;background:none;border:1px solid var(--line);border-radius:4px;padding:.4rem .6rem;font-family:var(--mono);font-size:.8rem;cursor:pointer;color:var(--ink)}
@media(max-width:820px){
  .menu-btn{display:block}
  .nav ul{display:none;position:absolute;top:64px;left:0;right:0;background:var(--paper);border-bottom:1px solid var(--line);flex-direction:column;padding:1rem 24px;gap:.9rem;align-items:flex-start}
  .nav ul.open{display:flex}
}

/* dose-scale signature */
.dose-scale{margin:2.6rem 0;display:block;width:100%;max-width:560px}
.divider-scale{border:none;height:26px;margin:3.2rem auto;max-width:340px;background-image:linear-gradient(var(--line),var(--line));background-size:100% 1px;background-position:center;background-repeat:no-repeat;position:relative}
.divider-scale::before{content:"";position:absolute;inset:0;background-image:repeating-linear-gradient(90deg,var(--line) 0 1px,transparent 1px 28px);background-position:center;background-size:100% 10px;background-repeat:no-repeat}
.divider-scale::after{content:"";position:absolute;left:50%;top:2px;width:3px;height:22px;transform:translateX(-50%);background:var(--amber);border-radius:2px}

/* hero */
.hero{padding:5rem 0 4rem;border-bottom:1px solid var(--line)}
.eyebrow{font-family:var(--mono);font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--teal);margin-bottom:1.1rem}
h1{font-family:var(--serif);font-weight:500;font-size:clamp(2.1rem,4.6vw,3.3rem);line-height:1.12;letter-spacing:-.015em;max-width:19ch}
.hero p.lede{font-size:1.16rem;color:var(--muted);max-width:56ch;margin-top:1.4rem}
.hero-actions{display:flex;gap:1rem;margin-top:2.2rem;flex-wrap:wrap}
.btn{display:inline-block;padding:.85rem 1.6rem;border-radius:3px;font-weight:600;font-size:.98rem}
.btn-primary{background:var(--teal);color:#fff}
.btn-primary:hover{background:var(--teal-deep);text-decoration:none}
.btn-ghost{border:1.5px solid var(--ink);color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:var(--paper);text-decoration:none}

/* sections */
section.band{padding:4rem 0}
section.band.tint{background:var(--tint2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
h2{font-family:var(--serif);font-weight:500;font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.2;letter-spacing:-.01em;margin-bottom:1rem;max-width:26ch}
h3{font-family:var(--serif);font-weight:600;font-size:1.18rem;margin:2rem 0 .6rem}
.band p,.prose p{max-width:66ch}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
@media(max-width:820px){.grid2,.grid3{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:1.6rem}
.card h3{margin-top:0}
.card .k{font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--amber);display:block;margin-bottom:.7rem}

/* prose / essays */
.prose{padding:3.4rem 0 4.5rem}
.prose h1{font-size:clamp(1.9rem,4vw,2.7rem);margin-bottom:.4rem}
.prose .dek{font-size:1.12rem;color:var(--muted);max-width:60ch;margin:.8rem 0 0}
.prose .meta{font-family:var(--mono);font-size:.76rem;color:var(--muted);margin-top:1.2rem;letter-spacing:.05em}
.prose h2{margin:2.6rem 0 .8rem;font-size:1.55rem}
.prose h3{font-family:var(--sans);font-weight:700;font-size:1.02rem;margin:1.8rem 0 .4rem}
.prose p{margin-bottom:1.1rem}
.prose ul,.prose ol{margin:0 0 1.1rem 1.3rem;max-width:62ch}
.prose li{margin-bottom:.45rem}
.prose table{border-collapse:collapse;width:100%;margin:1.4rem 0;font-size:.92rem}
.prose th{font-family:var(--mono);font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;text-align:left;color:var(--muted);border-bottom:2px solid var(--ink);padding:.5rem .7rem}
.prose td{border-bottom:1px solid var(--line);padding:.65rem .7rem;vertical-align:top}
.callout{background:var(--tint);border-left:3px solid var(--teal);padding:1.1rem 1.3rem;border-radius:0 6px 6px 0;margin:1.6rem 0;max-width:66ch}
.callout.amber{border-left-color:var(--amber);background:#F6F0E4}
.tier{font-family:var(--mono);font-size:.72rem;background:var(--ink);color:var(--paper);border-radius:3px;padding:.15rem .45rem;letter-spacing:.06em;white-space:nowrap}
.cites{border-top:2px solid var(--ink);margin-top:3rem;padding-top:1.2rem}
.cites h2{font-size:1.05rem;font-family:var(--mono);text-transform:uppercase;letter-spacing:.12em}
.cites ol{font-size:.86rem;color:var(--muted);margin-left:1.2rem}
.cites li{margin-bottom:.5rem}

/* learn index cards */
.essay-list{display:grid;gap:1.2rem;margin-top:2rem}
.essay-card{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:1.5rem 1.7rem;display:block;color:var(--ink);transition:border-color .15s}
.essay-card:hover{border-color:var(--teal);text-decoration:none}
.essay-card .k{font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);display:block;margin-bottom:.5rem}
.essay-card h3{margin:0 0 .4rem;font-size:1.22rem}
.essay-card p{color:var(--muted);font-size:.95rem;max-width:70ch}

/* faq */
details.faq{border-bottom:1px solid var(--line);padding:1.1rem 0}
details.faq summary{font-weight:600;cursor:pointer;font-size:1.02rem;list-style:none;display:flex;justify-content:space-between;gap:1rem}
details.faq summary::after{content:"+";font-family:var(--mono);color:var(--teal);flex-shrink:0}
details.faq[open] summary::after{content:"–"}
details.faq div{padding-top:.7rem;color:var(--muted);max-width:66ch}

/* footer */
footer.site{background:var(--ink);color:#B9C6C9;padding:3.4rem 0 2.4rem;margin-top:0}
footer.site .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2.5rem}
@media(max-width:820px){footer.site .cols{grid-template-columns:1fr}}
footer.site h4{font-family:var(--mono);font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;color:#8FA3A7;margin-bottom:.9rem}
footer.site a{color:#D7E0E1;font-size:.92rem}
footer.site ul{list-style:none}
footer.site li{margin-bottom:.5rem}
footer.site .legal{border-top:1px solid #33454D;margin-top:2.6rem;padding-top:1.4rem;font-size:.8rem;color:#8FA3A7;max-width:none}
footer.site .fmark{font-family:var(--serif);font-size:1.3rem;color:#fff;margin-bottom:.8rem}
footer.site .fmark b{color:#6FBFB0}

/* misc */
.crumb{font-family:var(--mono);font-size:.74rem;color:var(--muted);padding-top:1.6rem}
.crumb a{color:var(--muted)}
.cta-band{background:var(--teal-deep);color:#fff;padding:3.6rem 0}
.cta-band h2{color:#fff}
.cta-band p{color:#CDE2DC;max-width:56ch}
.cta-band .btn-primary{background:var(--amber);margin-top:1.4rem}
.cta-band .btn-primary:hover{background:#A96F1C}
.note{font-size:.85rem;color:var(--muted)}

/* ============================================================
   MedsSuck domain — inverted register: ink field, amber = warning voice
   Shares type system + dose-scale with MedsWork; different mood.
   ============================================================ */
.suck-body{background:var(--ink);color:#E6ECEA}
.suck-body a{color:#6FBFB0}
.suck-body a:focus-visible,.suck-body button:focus-visible{outline-color:var(--amber)}

/* header on dark */
header.site.suck{background:rgba(28,43,51,.94);border-bottom:1px solid #33454D}
header.site.suck .mark{color:#fff}
header.site.suck .mark .tick line{stroke:#fff}
header.site.suck .mark b{color:#fff}
header.site.suck .mark .suck-b{color:var(--amber);font-style:italic}
header.site.suck .nav ul a{color:#D7E0E1}
header.site.suck .nav ul a[aria-current="page"]{color:#6FBFB0;border-bottom-color:#6FBFB0}
header.site.suck .cta-mini{background:var(--amber);color:var(--ink)}
header.site.suck .cta-mini:hover{background:#A96F1C}
header.site.suck .menu-btn{color:#D7E0E1;border-color:#33454D}
@media(max-width:820px){header.site.suck .nav ul{background:var(--ink);border-bottom-color:#33454D}}

/* hero + sections on dark */
.suck-body .hero.suck{border-bottom:1px solid #33454D}
.suck-body .hero.suck h1{color:#fff;font-size:clamp(2.4rem,6vw,4rem);max-width:14ch}
.suck-body .hero.suck .eyebrow{color:var(--amber)}
.suck-body .hero.suck .lede{color:#B9C6C9}
.suck-body .eyebrow{color:var(--amber)}
.suck-body h1,.suck-body h2,.suck-body h3{color:#fff}
.suck-body .band p{color:#C6D0CE}
.suck-body section.band.tint{background:#22333B;border-color:#33454D}
.suck-body .btn-ghost.light{border-color:#E6ECEA;color:#E6ECEA}
.suck-body .btn-ghost.light:hover{background:#E6ECEA;color:var(--ink)}
.suck-body .btn-primary{background:var(--amber);color:var(--ink)}
.suck-body .btn-primary:hover{background:#A96F1C}

/* cards on dark */
.suck-body .card{background:#22333B;border-color:#33454D;color:#C6D0CE}
.suck-body .card h3{color:#fff}
.suck-body .card.suck-card{border-top:3px solid var(--amber)}
.suck-body .card.work-card{border-top:3px solid #6FBFB0}
.suck-body .card .k{color:#8FA3A7}

/* prose on dark */
.suck-body .prose .dek{color:#B9C6C9}
.suck-body .prose .meta{color:#8FA3A7}
.suck-body .prose p{color:#D2DAD8}
.suck-body .prose li{color:#D2DAD8}
.suck-body .crumb,.suck-body .crumb a{color:#8FA3A7}
.suck-body .callout{background:#22333B;border-left-color:#6FBFB0;color:#D2DAD8}
.suck-body .callout.suck{border-left-color:var(--amber)}
.suck-body .callout.amber{background:#2E2416;border-left-color:var(--amber)}
.suck-body .prose th{color:#8FA3A7;border-bottom-color:#E6ECEA}
.suck-body .prose td{border-bottom-color:#33454D}
.suck-body .tier{background:#E6ECEA;color:var(--ink)}
.suck-body .cites{border-top-color:#E6ECEA}
.suck-body .cites h2{color:#fff}
.suck-body .cites li{color:#8FA3A7}
.suck-body .note{color:#8FA3A7}

/* divider variants */
.divider-scale.suck::after{background:var(--amber)}
.suck-body .divider-scale{background-image:linear-gradient(#33454D,#33454D)}
.suck-body .divider-scale::before{background-image:repeating-linear-gradient(90deg,#33454D 0 1px,transparent 1px 28px)}

/* cta band stays teal-deep but works on dark body */
.suck-body .cta-band{background:var(--teal-deep)}

/* footer already dark; tighten suck accent */
footer.site.suck .fmark .suck-b{color:var(--amber);font-style:italic}

/* work wordmark italic-suck reuse guard: none needed */
