/* ================================================================
   myzakar.app, 2026-10-22. One stylesheet for every page.
   Field notes on parchment: a serif editorial headline face over a
   humanist UI face, hairline-ruled white cards on an off-white page,
   and one accent family, zaki's mint, used sparingly.
   Shared tokens keep the editorial layouts and mint brand consistent.
   ================================================================ */
:root{
  --canvas:#ffffff;          /* page: white, like the reference */
  --spring:linear(0,.02 2%,.12 5%,.42 10%,.78 16%,.98 21%,1.06 26%,1.08 30%,1.06 35%,1.02 42%,.995 50%,.99 56%,1 70%,1); /* entrance spring, ~8% overshoot */
  --surface:#ffffff;         /* cards, nav */
  --fog:#eaebe5;             /* hover fills */
  --ink:#20241F;             /* headings, body */
  --charcoal:#292929;        /* nav, footer text */
  --carbon:#454745;          /* medium-emphasis text */
  --slate:#6b6b67;           /* secondary text */
  --graphite:#818179;        /* captions */
  --hair:#e3e3e3;            /* hairline rules */
  --stone:#d5d5d2;           /* card and button borders */
  --accent:#96DCC8;          /* zaki mint: decorative surfaces only */
  --cta:#18574A;             /* filled primary action */
  --cta-hover:#103F36;
  --accent-border:#7ABBA9;
  --tint:#E3F2EC;            /* light mint wash */
  --butter:#FCD874;          /* the yellow of the card zaki holds */
  /* bright note colours, from the Material 3 tonal palettes (tones 80-90) */
  --note-yellow:#FFE07A; --note-pink:#FFB8CD; --note-lilac:#D7C8FF; --note-sky:#A8C7FA; --note-mint:#9FE3BC;
  --moss:#2F5847;
  --coral:#E95D3D;
  --link:#006fd6;

  --serif:var(--sans);        /* one rounded family for headlines and text */
  --sans:"Nunito", ui-rounded, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --page:1200px;
  --r-card:8px; --r-card-lg:12px; --r-card-xl:16px; --r-pill:9999px;
  --shadow-nav:rgba(0,0,0,.03) 0 0 36px 0;
  --shadow-float:rgba(0,0,0,.15) 0 8px 48px 0;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--sans);font-size:16px;font-weight:500;line-height:1.5;letter-spacing:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
::selection{background:var(--tint);color:var(--ink)}
a{color:inherit;text-decoration:none}
img,svg,video{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--cta);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:16px;top:-48px;background:var(--surface);border:1px solid var(--stone);padding:8px 14px;border-radius:var(--r-pill);z-index:100}
.skip:focus{top:12px}
.wrap{max-width:var(--page);margin:0 auto;padding:0 24px}
.ic{width:1em;height:1em;fill:currentColor;flex:none}

/* ---------- type ---------- */
h1,h2,h3,.serif{font-family:var(--serif);font-weight:800;letter-spacing:-.02em;margin:0;color:var(--ink);text-wrap:balance}
.display{font-size:clamp(32px,3.4vw,40px);line-height:1.15;letter-spacing:-.015em}
.h-lg{font-size:clamp(36px,4.4vw,48px);line-height:1.11;letter-spacing:-.015em}
.h-md{font-size:36px;line-height:1.25;letter-spacing:-.015em}
.h-sm{font-size:24px;line-height:1.3;letter-spacing:.005em}
p{margin:0}
.lede{font-size:19px;line-height:1.45;color:var(--carbon);max-width:36ch}
.body{font-size:17px;line-height:24px;color:var(--slate);max-width:62ch}
.caption{font-size:13px;line-height:1.4;color:var(--slate)}
.eyebrow{font-size:13px;line-height:1.4;color:var(--slate);margin:0 0 16px}
b,strong{font-weight:700;color:var(--ink)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 20px;border-radius:var(--r-pill);font-size:15px;font-weight:800;letter-spacing:.01em;line-height:1;white-space:nowrap;border:1px solid transparent;transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--cta);color:#fff}
.btn-primary:hover{background:var(--cta-hover)}
.btn-ink{background:var(--ink);color:#fff}
.btn-ink:hover{background:#000}
.btn-white{background:var(--surface);color:var(--ink);border-color:var(--stone)}
.btn-white:hover{background:var(--fog)}
.btn-tint{background:var(--tint);color:var(--ink);border-color:var(--stone);height:34px;padding:0 14px;font-size:14px;font-weight:400}
.btn-tint:hover{border-color:var(--accent-border)}
.btn-lg{height:48px;padding:0 24px;font-size:16px}
.textlink{font-size:15px;color:var(--charcoal)}
.textlink:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ---------- nav ---------- */
.nav{position:sticky;top:0;z-index:50;background:var(--canvas)}
.nav-in{height:72px;display:flex;align-items:center;gap:16px}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:900;font-size:27px;letter-spacing:-.035em}
.brand img{width:38px;height:38px;border-radius:10px}
.brand i{font-style:normal;color:#8B7CF6}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:16px}

/* ---------- cards ---------- */
.card{background:var(--surface);border:1px solid var(--hair);border-radius:var(--r-card-lg)}
.card-paper{background:var(--canvas);border:1px solid var(--hair);border-radius:var(--r-card)}
.pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:var(--r-pill);font-size:13px;font-weight:500;background:var(--tint);border:1px solid var(--accent-border);color:var(--cta)}
.pill .ic{color:var(--accent);width:14px;height:14px}
.tag{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:var(--r-card);font-size:14px;background:var(--surface);border:1px solid var(--stone);color:var(--ink);white-space:nowrap}
.tag.on{background:var(--tint);border-color:var(--accent-border);color:var(--cta)}

/* ---------- article pages (support, legal) ---------- */
.page-head{padding:72px 0 40px}
.page-head .display{font-size:clamp(32px,4vw,44px)}
.page-head .lede{margin-top:16px}
.page-head .updated{display:inline-block;margin-top:20px;font-size:13px;color:var(--slate)}
.page-grid{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:48px;align-items:start;padding-bottom:96px}
.page-art{position:sticky;top:88px}
.page-art img{width:100%;height:auto}
.article{max-width:68ch}
.article section{padding:28px 0;border-top:1px solid var(--hair)}
.article section:first-of-type{border-top:0;padding-top:0}
.article h2{font-size:24px;line-height:1.3;margin-bottom:10px}
.article h3{font-family:var(--sans);font-size:16px;font-weight:600;margin:20px 0 6px}
.article p{color:var(--carbon);margin:0 0 12px;line-height:1.6}
.article p:last-child{margin-bottom:0}
.article ul{color:var(--carbon);margin:0 0 12px;padding-left:20px;line-height:1.6}
.article a{color:var(--link)}
.article a:hover{text-decoration:underline;text-underline-offset:3px}
.article code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;background:var(--fog);padding:1px 6px;border-radius:4px}
.article .num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--tint);color:var(--cta);font-family:var(--sans);font-size:13px;font-weight:600;margin-right:10px;vertical-align:4px}
.tldr{background:var(--surface);border:1px solid var(--hair);border-radius:var(--r-card-lg);padding:24px;margin-bottom:32px}
.tldr h2{font-size:24px;margin-bottom:8px}
.tldr p{color:var(--carbon)}
.note{background:var(--tint);border:1px solid var(--accent-border);border-radius:var(--r-card);padding:16px 20px;color:var(--ink)}
.vdot{color:var(--accent)}
.del-form label{display:block;font-size:14px;font-weight:500;color:var(--ink);margin:16px 0 6px}
.del-row{display:flex;gap:8px;flex-wrap:wrap}
.del-row input{flex:1 1 240px;height:40px;padding:0 14px;border:1px solid var(--stone);border-radius:var(--r-card);background:var(--surface);font:inherit;color:var(--ink);box-shadow:rgba(0,0,0,.03) 0 0 2px 0 inset}
.del-row input::placeholder{color:var(--slate)}
.del-row input:focus{outline:2px solid var(--cta);outline-offset:1px}
.del-note{font-size:14px;color:var(--slate);margin-top:10px}
#deletion-box{background:var(--surface);border:1px solid var(--hair);border-radius:var(--r-card-lg);padding:20px 24px}
@media (max-width:900px){
  .page-grid{grid-template-columns:1fr;gap:32px}
  .page-art{position:static;max-width:360px}
}

/* ---------- footer ---------- */
.foot{background:var(--surface);border-top:1px solid var(--hair);padding:64px 0 0}
.foot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.foot-h{font-family:var(--sans);font-size:15px;font-weight:600;color:var(--ink);margin:0 0 14px}
.foot-col a{display:block;font-size:15px;color:var(--carbon);padding:5px 0}
.foot-col a:hover{color:var(--ink)}
.foot-base{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:40px 0 32px;font-size:13px;color:var(--slate)}
.foot-social{display:flex;gap:14px}
.foot-social a{color:var(--slate)}
.foot-social a:hover{color:var(--ink)}
.foot-social .ic{width:18px;height:18px}
/* the closing frieze: a thin landscape strip that runs right to left */
.foot-art{max-width:1600px;margin:0 auto;padding:32px clamp(16px,3vw,48px) 28px;border-top:1px solid var(--hair)}
.foot-line{text-align:center;font-size:clamp(28px,3.6vw,40px);line-height:1.1;letter-spacing:-.015em;margin:0 0 32px}
.foot-art img{width:100%;height:auto}
@media (max-width:760px){.foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- single-column article pages ---------- */
.article-page{padding-bottom:96px}
.del-status{padding:14px 18px;border-radius:var(--r-card);background:var(--tint);border:1px solid var(--accent-border);color:var(--ink);margin:14px 0}
.del-status.bad{background:#FBEAEA;border-color:#E0B4B4}

/* Closing Zaki illustration stays broad without taking an entire screen. */
.foot-art img{width:100%;height:auto;margin-inline:auto;animation:studio-float 6s ease-in-out infinite}
@keyframes studio-float{50%{transform:translateY(-4px)}}
.motion-paused .foot-art img{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){body:not(.motion-enabled) .foot-art img{animation:none}}

/* pressable buttons: a 3px edge that the button sinks into */
.btn-primary{box-shadow:0 3px 0 #0C3B31}
.btn-ink{box-shadow:0 3px 0 #000}
.btn-white{box-shadow:0 3px 0 var(--stone)}
.btn-primary,.btn-ink,.btn-white{transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .08s ease,box-shadow .08s ease}
.btn-primary:active,.btn-ink:active,.btn-white:active{transform:translateY(3px);box-shadow:0 0 0 transparent}

/* plain header: the page colour, no rule; a hairline appears only after scrolling */
@supports (animation-timeline:scroll()){
  .nav{animation:nav-edge linear both;animation-timeline:scroll(root);animation-range:0 48px}
  @keyframes nav-edge{from{box-shadow:0 1px 0 transparent}to{box-shadow:0 1px 0 var(--hair)}}
}

/* deletion form honeypot: off screen for people and assistive tech, still filled in by form bots */
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media (max-width:520px){.foot-col a{padding:10px 0}} /* 44px touch rows on phones */
/* footer art: one long crowd strip that spans the footer; on phones it is enlarged and cropped */
.foot-art{overflow:hidden}
@media (max-width:640px){.foot-art img{width:210%;max-width:none;margin-left:-95%}} /* phones show the right-hand half, with zaki and the woman in the beanie */
/* footer social link: the icon sits level with the label, the handle stays on one line */
.foot-col a.social{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.foot-col a.social .ic{width:18px;height:18px;color:var(--ink)}
.foot-col a.social span{color:var(--slate)}
@media (max-width:760px){.foot-col a.social span{flex-basis:100%;padding-left:26px;margin-top:-6px}} /* two columns: the handle sits under the label, in line with its text */
