/* Microdosing & Me — calm frame, wild art.
   Design language: warm cream paper, near-black ink, big editorial type.
   All colour comes from the illustrations; the site itself stays quiet. */

:root{
  --paper:#FAF5EA;
  --paper-2:#F4EDDD;
  --ink:#1B221F;
  --ink-soft:#5A645D;
  --line:#E4DAC6;
  /* accents sampled from the illustrations */
  --mint:#3FC9A3;
  --coral:#FF6E86;
  --gold:#F1B430;
  --lilac:#A97DEE;
  --sky:#4FBEE0;

  --maxw:1180px;
  --measure:64ch;
  --radius:14px;
  --shadow:0 18px 40px -22px rgba(27,34,31,.45);
  --shadow-sm:0 8px 22px -16px rgba(27,34,31,.5);
  --ease:cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Newsreader",Georgia,serif;
  font-optical-sizing:auto;
  font-size:clamp(1.05rem,.6rem + .8vw,1.2rem);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
::selection{background:var(--gold);color:var(--ink)}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 clamp(1.2rem,4vw,2.75rem)}

/* ---------- display type ---------- */
h1,h2,h3,.wordmark,.eyebrow{
  font-family:"Fraunces",Georgia,serif;
  font-optical-sizing:auto;
  font-weight:560;
  letter-spacing:-.015em;
  line-height:1.06;
  font-variation-settings:"SOFT" 30,"WONK" 0;
}
.eyebrow{
  font-size:.82rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-soft);
}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:20;
  background:color-mix(in srgb,var(--paper) 86%,transparent);
  backdrop-filter:saturate(1.1) blur(9px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.wordmark{font-size:1.22rem;font-weight:600;letter-spacing:-.02em;display:flex;align-items:center;gap:.5rem}
.wordmark .dot{width:.62rem;height:.62rem;border-radius:50%;
  background:conic-gradient(from 210deg,var(--coral),var(--gold),var(--mint),var(--sky),var(--lilac),var(--coral))}
.nav{display:flex;gap:1.5rem;font-family:"Fraunces",serif;font-size:.98rem}
.nav a{color:var(--ink-soft);transition:color .2s var(--ease)}
.nav a:hover{color:var(--ink)}

/* ---------- hero ---------- */
.hero{padding:clamp(3.5rem,8vw,7rem) 0 clamp(2rem,5vw,3.5rem)}
.hero .eyebrow{margin-bottom:1.4rem}
.hero h1{
  font-size:clamp(2.6rem,2rem + 4vw,5.2rem);
  font-weight:540;max-width:16ch;margin:0 0 1.5rem;
}
.hero p.lede{
  font-size:clamp(1.2rem,1rem + .6vw,1.5rem);
  color:var(--ink-soft);max-width:52ch;margin:0;line-height:1.55;
}
.hero .byline{margin-top:1.9rem;font-size:.95rem;color:var(--ink-soft);
  display:flex;align-items:center;gap:.6rem}
.hero .byline .rule{width:34px;height:1px;background:var(--ink-soft);opacity:.5}

.hero-art{margin:clamp(2.5rem,6vw,4.5rem) 0 0}
.hero-art img{width:100%;border-radius:var(--radius);box-shadow:var(--shadow)}

/* ---------- collection ---------- */
.collection{padding:clamp(3rem,7vw,5.5rem) 0}
.collection-head{display:flex;align-items:baseline;justify-content:space-between;
  gap:1rem;margin-bottom:2.4rem;border-bottom:1px solid var(--line);padding-bottom:1.1rem}
.collection-head h2{font-size:clamp(1.7rem,1.2rem + 1.4vw,2.4rem);margin:0}
.collection-head .count{color:var(--ink-soft);font-family:"Fraunces",serif;font-size:1rem}

.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(1.8rem,3.5vw,3.2rem)}
.card{display:flex;flex-direction:column;position:relative}
.card a.cover{display:block;border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-sm);background:var(--paper-2);
  transform:translateY(0);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.card a.cover:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.card .cover img{aspect-ratio:3/2;object-fit:cover;width:100%}
.card .meta{display:flex;align-items:center;gap:.7rem;margin:1.15rem 0 .5rem;
  font-family:"Fraunces",serif;font-size:.82rem;letter-spacing:.02em;color:var(--ink-soft)}
.card .tag{font-size:.72rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  padding:.2rem .55rem;border-radius:999px;color:var(--ink);background:var(--accent,var(--mint));
  filter:saturate(.9)}
.card .tag.ghost{background:transparent;border:1px solid var(--line);color:var(--ink-soft)}
.card h3{font-size:clamp(1.35rem,1.1rem + .7vw,1.7rem);margin:.1rem 0 .55rem;font-weight:560}
.card h3 a{background-image:linear-gradient(var(--accent,var(--mint)),var(--accent,var(--mint)));
  background-size:0% 2px;background-repeat:no-repeat;background-position:0 100%;
  transition:background-size .35s var(--ease);padding-bottom:2px}
.card:hover h3 a{background-size:100% 2px}
.card p.dek{color:var(--ink-soft);margin:0;font-size:1.02rem;line-height:1.6;max-width:44ch}

/* first card can span full width as a feature */
.grid .card.feature{grid-column:1 / -1;display:grid;grid-template-columns:1.1fr 1fr;
  gap:clamp(1.6rem,3vw,3rem);align-items:center}
.grid .card.feature .cover img{aspect-ratio:4/3}
.grid .card.feature h3{font-size:clamp(1.8rem,1.3rem + 1.6vw,2.6rem)}
.grid .card.feature p.dek{font-size:1.12rem;max-width:48ch}

/* ---------- article ---------- */
.article{padding:clamp(2.5rem,5vw,4rem) 0 2rem}
.article-head{max-width:var(--measure);margin:0 auto clamp(2rem,4vw,3rem)}
.article-head .eyebrow{display:flex;align-items:center;gap:.6rem;margin-bottom:1.2rem}
.article-head .eyebrow .swatch{width:26px;height:6px;border-radius:3px;background:var(--accent,var(--mint))}
.article-head h1{font-size:clamp(2.1rem,1.5rem + 3vw,3.7rem);margin:0 0 1.3rem;font-weight:540}
.article-head .meta{color:var(--ink-soft);font-family:"Fraunces",serif;font-size:.95rem;
  display:flex;flex-wrap:wrap;gap:.5rem .9rem}
.article-hero{margin:0 auto clamp(2.2rem,5vw,3.4rem);max-width:var(--maxw)}
.article-hero img{width:100%;border-radius:var(--radius);box-shadow:var(--shadow)}

.prose{max-width:var(--measure);margin:0 auto}
.prose p{margin:0 0 1.5rem}
.prose p.lead:first-of-type,.prose > p:first-child{font-size:1.28rem;line-height:1.6}
.prose h2{font-size:clamp(1.5rem,1.2rem + 1vw,2rem);margin:2.8rem 0 1rem;font-weight:560}
.prose h3{font-size:1.3rem;margin:2.2rem 0 .8rem;font-weight:600}
.prose strong{font-weight:640}
.prose em{font-style:italic}
.prose a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--mint);
  text-underline-offset:3px;text-decoration-thickness:2px}
.prose blockquote{margin:2rem 0;padding:.2rem 0 .2rem 1.6rem;
  border-left:4px solid var(--accent,var(--coral));
  font-family:"Fraunces",serif;font-size:1.5rem;line-height:1.35;font-weight:500;font-style:italic}
.prose ul{padding-left:1.2rem;margin:0 0 1.5rem}
.prose li{margin:.4rem 0}
.prose figure,.prose .figure{margin:2.6rem 0}
.prose figure img,.prose .figure img{width:100%;border-radius:var(--radius);box-shadow:var(--shadow-sm)}
/* let images breathe wider than the text measure on large screens */
@media(min-width:900px){
  .prose figure,.prose .figure{width:min(84ch,112%);margin-left:50%;transform:translateX(-50%)}
}

.notice{max-width:var(--measure);margin:2rem auto;padding:1.4rem 1.6rem;border-radius:var(--radius);
  background:var(--paper-2);border:1px solid var(--line);color:var(--ink-soft);font-size:1rem;line-height:1.6}
.notice strong{color:var(--ink)}

.article-foot{max-width:var(--measure);margin:clamp(2.5rem,5vw,4rem) auto 0;
  padding-top:1.6rem;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:1rem}
.backlink{font-family:"Fraunces",serif;color:var(--ink-soft);transition:color .2s var(--ease)}
.backlink:hover{color:var(--ink)}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);margin-top:clamp(3rem,7vw,6rem);
  padding:clamp(2.5rem,5vw,3.5rem) 0}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:center;justify-content:space-between}
.site-footer .wordmark{font-size:1.05rem}
.site-footer small{color:var(--ink-soft);font-family:"Fraunces",serif}

/* ---------- responsive ---------- */
@media(max-width:760px){
  .grid{grid-template-columns:1fr}
  .grid .card.feature{grid-template-columns:1fr}
  .nav{display:none}
}

/* ---------- gentle, minimal motion ---------- */
@media(prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(14px);animation:rise .8s var(--ease) forwards}
  .reveal:nth-child(2){animation-delay:.06s}
  .reveal:nth-child(3){animation-delay:.12s}
  .reveal:nth-child(4){animation-delay:.18s}
  @keyframes rise{to{opacity:1;transform:none}}
}
