/* ==========================================================================
   Zina Nyarko — simple single-column personal site
   ========================================================================== */

:root {
  --bg: #F4F0E8;
  --card: #FFFDF9;
  --ink: #16130F;
  --ink-soft: #4B443B;
  --muted: #857A6D;
  --line: rgba(22, 19, 15, .12);
  --line-strong: rgba(22, 19, 15, .24);
  --accent: #E8561C;
  --accent-soft: rgba(232, 86, 28, .12);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --col: 720px;
  --gutter: 20px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); box-shadow: 0 8px 20px -10px rgba(22,19,15,.5); }
.btn--primary:hover { --b-bg: var(--accent); --b-bd: var(--accent); }
.btn--ghost { --b-bg: var(--card); }
.btn--ghost:hover { --b-bd: var(--ink); }
.btn--ink { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 14.5px; }
.btn--lg { padding: 17px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Floating nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -16px rgba(22,19,15,.3);
}
.nav__mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--serif); font-style: italic; font-size: 16px;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.nav__link { padding: 9px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav__link:hover { background: var(--accent-soft); color: var(--ink); }
.nav .btn { margin-left: 4px; }
@media (max-width: 420px) {
  .nav { gap: 0; padding: 5px; max-width: calc(100% - 16px); }
  .nav__mark { width: 34px; height: 34px; font-size: 14px; }
  .nav__link { padding: 8px 10px; font-size: 14px; }
  .nav .btn--sm { padding: 9px 13px; font-size: 14px; }
}
@media (max-width: 340px) { .nav__link[href="#about"] { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 110px var(--gutter) 88px;
  overflow: hidden;
}
/* ribbed-glass backdrop */
.hero::before {
  content: ""; position: absolute; inset: 0 0 25% 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 50% 30%, rgba(232,86,28,.22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, transparent 2px 18px, rgba(22,19,15,.035) 18px 20px, transparent 20px 36px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
          mask-image: linear-gradient(#000 55%, transparent);
}

.hero__photo { margin: 0 auto; width: min(300px, 70vw); position: relative; }
.hero__photo img, .hero__fallback {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 28px 28px;
}
.hero__photo img + .hero__fallback { display: none; }
.hero__fallback {
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #F07A45, var(--accent) 45%, #9E3A10);
  color: #fff; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(80px, 20vw, 120px); letter-spacing: -.04em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  box-shadow: inset 0 -40px 60px -30px rgba(0,0,0,.25);
}

.hero__name {
  margin: 28px 0 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(52px, 11vw, 96px); line-height: 1; letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
}
.hero__name span { color: var(--accent); }

.hero__stats { list-style: none; padding: 0; margin: 26px auto 0; display: flex; justify-content: center; gap: clamp(24px, 6vw, 56px); }
.hero__stats li { display: grid; gap: 2px; }
.hero__stats strong { font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.hero__stats span { font-size: 14px; color: var(--muted); }

.hero__tagline {
  margin: 44px auto 0; max-width: 18ch;
  font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.02em;
  font-variation-settings: "opsz" 72;
}
.hero__sub { margin: 16px auto 0; max-width: 34em; font-size: 18px; color: var(--ink-soft); }
.hero__ctas { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding: 72px var(--gutter); }
.section__title {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6vw, 56px); line-height: 1.05; letter-spacing: -.03em;
}
.section__lede { margin: 12px 0 32px; font-size: 19px; color: var(--ink-soft); }

/* Rows (What I'm up to / Recognition) */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; gap: 6px;
  padding: 24px 44px 24px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: padding .3s var(--ease), background .3s;
}
.row:hover { padding-left: 14px; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.row__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.row__stat { font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.row__title { font-size: 20px; font-weight: 600; }
.row__meta { font-size: 14px; color: var(--muted); }
.row__desc { color: var(--ink-soft); font-size: 16px; }
.row__arrow { position: absolute; right: 8px; top: 26px; color: var(--accent); font-size: 18px; transition: transform .3s var(--ease); }
.row:hover .row__arrow { transform: translate(2px, -2px); }

/* Free resources (links to Kit landing pages) */
.freebie {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 24px 48px -36px rgba(22,19,15,.45);
}
.freebie + .freebie { margin-top: 16px; }
.freebie.is-featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 24px 48px -36px rgba(22,19,15,.45); }
.freebie__tag { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.freebie__title { margin: 10px 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 36px); line-height: 1.08; letter-spacing: -.02em; }
.freebie__desc { margin: 0 0 22px; color: var(--ink-soft); }
.freebie__list { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 4px; }
.freebie__list li {
  counter-increment: p; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--bg);
}
.freebie__list li::before {
  content: counter(p); grid-row: span 2; align-self: center;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
}
.freebie__list strong { font-size: 15px; line-height: 1.3; }
.freebie__list span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.freebie--compact { grid-template-columns: 1fr auto; gap: 20px; }
.freebie--compact .freebie__desc { margin-bottom: 0; }
.more { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.freebie > * { min-width: 0; }
.freebie .btn { white-space: normal; text-align: center; }
@media (max-width: 680px) { .freebie, .freebie--compact { grid-template-columns: minmax(0, 1fr); } .freebie--compact .btn { justify-self: start; } }

/* About */
.about__lead {
  margin: 0 0 28px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 42px); line-height: 1.15; letter-spacing: -.02em;
}
.about__body p { font-size: 19px; line-height: 1.65; margin: 0 0 20px; color: var(--ink-soft); }
.focus { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.focus li { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.focus strong { font-size: 15.5px; }
.focus span { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 640px) { .focus { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span, .chips legend { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #C0341D; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: 14.5px; min-height: 1.3em; color: var(--ink-soft); }
.form__status:empty { display: none; }
.form__status.is-error { color: #B42E17; }
.form__status.is-ok { color: #1F7A48; }
.fine { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14.5px; transition: background .2s, color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Closer ---------- */
.closer { text-align: center; padding: 88px var(--gutter) 96px; }
.closer h2 { margin: 0 0 24px; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 56px); letter-spacing: -.03em; line-height: 1.05; }
.closer__alt { margin: 28px 0 0; color: var(--muted); }
.closer__alt a { color: var(--ink); font-weight: 500; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer {
  max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--muted);
}
.footer__name { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.footer__name span { color: var(--accent); }
.footer__links { display: flex; gap: 18px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Modal ---------- */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(22,19,15,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal {
  width: min(440px, calc(100% - 24px)); max-height: calc(100svh - 24px);
  background: var(--card); border-radius: 24px; padding: 32px 28px 26px;
  box-shadow: 0 40px 80px -30px rgba(22,19,15,.5);
}
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.modal__close:hover { background: var(--ink); color: #fff; }
.modal__eyebrow { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.modal__title { margin: 0 0 8px; padding-right: 36px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.modal__desc { margin: 0 0 20px; color: var(--ink-soft); }
.modal__check { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent); color: #fff; font-size: 24px; font-weight: 700; animation: pop .5s var(--ease); }
.form__status a { color: inherit; font-weight: 600; }

/* ---------- Motion ---------- */
.rise { animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; }
}

/* ---------- Simple pages (privacy, 404) ---------- */
.page { max-width: 680px; margin: 0 auto; padding: 120px var(--gutter) 96px; }
.page h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 8vw, 72px); line-height: 1; letter-spacing: -.035em; margin: 0 0 28px; }
.page h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 36px 0 8px; }
.page p, .page li { color: var(--ink-soft); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
