/* ============================================================
   iKofi v4 — core stylesheet
   Brand: navy icon/text + rooibos orange + warm gold on cream.
   Warm, grounded, editorial. No frameworks, no page-builder.
   ============================================================ */

:root {
  --navy:        #1e3a6e;
  --navy-deep:   #16294e;
  --ink:         #233043;      /* body text */
  --orange:      #e56b1f;      /* rooibos accent */
  --orange-dk:   #c05a1e;
  --gold:        #e8b64c;
  --cream:       #f6f1e7;      /* page background */
  --paper:       #fffdf8;      /* content surfaces */
  --sand:        #efe6d3;
  --seaglass:    #6fa08a;      /* restrained secondary accent */
  --muted:       #7a6a55;
  --line:        #e4d9c6;
  --line-strong: #d3c5ab;
  --shadow:      0 1px 3px rgba(35,32,20,.08);
  --lift:        0 6px 18px rgba(35,32,20,.10);
  --radius:      12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { min-height: 55vh; padding-top: 26px; padding-bottom: 56px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- topbar ------------------------------------------------------ */
.topbar {
  background: var(--paper);
  border-bottom: 3px solid var(--navy);
  position: sticky; top: 0; z-index: 40;
}
.topbar--row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 20px; }
.brand { display: inline-flex; align-items: center; margin-right: 6px; }
.brand img { display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav > a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 8px 11px; border-radius: 8px;
}
.nav > a:hover { background: var(--sand); color: var(--navy); }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-block; text-decoration: none; text-align: center; cursor: pointer;
  font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--sm { font-size: 13.5px; padding: 7px 15px; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dk); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--disabled { background: var(--sand); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { filter: brightness(1.05); }

/* ---------- type --------------------------------------------------------- */
h1, h2, h3 { color: var(--navy-deep); line-height: 1.25; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 34px 0 12px; }
h3 { font-size: 19px; margin: 20px 0 8px; }
p  { margin-bottom: 12px; }
a { color: var(--orange-dk); }
a:hover { color: var(--navy); }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--orange-dk); margin-bottom: 10px;
}
.lede { font-size: 18px; color: var(--muted); max-width: 640px; }

/* ---------- sections / cards --------------------------------------------- */
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head .more { margin-left: auto; font-weight: 600; font-size: 14px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .meta { color: var(--muted); font-size: 13px; }
.card a { text-decoration: none; }

.audience-card { border-top: 4px solid var(--orange); }
.audience-card .glyph { font-size: 26px; color: var(--orange-dk); }
.trust-card { text-align: center; border-top: 4px solid var(--gold); }

.brew-card { display: flex; gap: 14px; align-items: flex-start; }
.brew-card .thumb {
  flex: 0 0 84px; width: 84px; height: 84px; border-radius: 10px; object-fit: cover;
  background: var(--sand);
}
.listing-card .cat { color: var(--orange-dk); font-weight: 700; font-size: 13px; }

/* ---------- hero ---------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 30px; margin-bottom: 8px;
}
.hero h1 { margin-bottom: 10px; }
.hero .tag { color: var(--orange-dk); font-weight: 700; letter-spacing: .4px; }

/* ---------- profile ------------------------------------------------------- */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.avatar {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--navy); background: var(--sand);
}
.split-note {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold);
  padding: 14px 18px; border-radius: 10px; font-size: 14.5px;
}
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tier {
  background: var(--paper); border: 2px solid var(--line-strong); border-radius: 12px;
  padding: 14px; text-align: center;
}
.tier .price { font-size: 24px; font-weight: 800; color: var(--navy); }
.tier .name { font-weight: 700; color: var(--orange-dk); }
.tier .desc { font-size: 12.5px; color: var(--muted); min-height: 34px; }
.tier.is-custom { border-color: var(--gold); }

.stat-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { background: var(--sand); border-radius: 8px; padding: 8px 14px; font-size: 13px; }
.stat b { color: var(--navy); }

/* ---------- forms ---------------------------------------------------------- */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=url], input[type=number], input[type=date], input[type=datetime-local],
select, textarea {
  width: 100%; max-width: 460px; padding: 10px 12px; font: inherit;
  border: 1.5px solid var(--line-strong); border-radius: 9px; background: var(--paper); color: var(--ink);
}
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.checkline input { width: auto; margin-top: 4px; }
.form-error { color: #a02c2c; font-size: 13.5px; margin-top: 4px; }

/* ---------- flash ------------------------------------------------------------ */
.flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; font-size: 14.5px; }
.flash--success { background: #e7f0ea; color: #2e5c43; border: 1px solid #bcd8c7; }
.flash--error   { background: #f8e7e4; color: #8c2f24; border: 1px solid #e5bbb4; }
.flash--info    { background: #eef1f6; color: var(--navy); border: 1px solid #c9d4e6; }

/* ---------- activity feed ------------------------------------------------------ */
.feed-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .when { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.feed-item .heart { color: #c0392b; }

/* ---------- footer --------------------------------------------------------------- */
.footer { background: var(--navy-deep); color: #cfdae9; margin-top: 40px; }
.footer--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 34px 20px 26px; }
@media (max-width: 860px) { .footer--grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer--grid { grid-template-columns: 1fr; } }
.footer h3 { color: #fff; font-family: inherit; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 10px; }
.footer a { display: block; color: #cfdae9; text-decoration: none; font-size: 14px; padding: 3px 0; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer--tag { color: var(--gold); font-weight: 700; margin: 10px 0 6px; }
.footer--fine { font-size: 12px; color: #9fb0c6; }

/* ---------- placeholders / notices --------------------------------------------- */
.notice {
  background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 22px; color: var(--muted);
}
.paused-tip {
  display: inline-block; background: var(--sand); color: var(--muted);
  border: 1.5px dashed var(--line-strong); border-radius: 999px; padding: 9px 18px;
  font-weight: 700; font-size: 14px;
}

/* ---------- utility ------------------------------------------------------------------ */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: 3px 10px;
}
.badge--navy { background: var(--navy); color: #fff; }
.ad-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
