/* Fortune Johnson — light editorial portfolio & Content Studio */

:root {
  --paper: #faf8f4;
  --card: #ffffff;
  --ink: #1c1b18;
  --muted: #6f6a60;
  --faint: #a39d90;
  --line: #e7e1d5;
  --accent: #1d6b52;
  --accent-deep: #14503c;
  --accent-soft: #e8f1ec;
  --planned-bg: #f3eee2;
  --planned-ink: #8a7a4f;
  --venture-bg: #f0eaf3;
  --venture-ink: #6d5a80;
  --concept-bg: #e9eef3;
  --concept-ink: #4f6478;
  --danger: #a33a2e;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(28, 27, 24, .05), 0 10px 30px -18px rgba(28, 27, 24, .25);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; }
.wordmark { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.wordmark:hover { text-decoration: none; color: var(--accent-deep); }
.wordmark .dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { font-size: .92rem; color: var(--muted); padding: 4px 2px; }
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link.active { color: var(--accent-deep); }
.nav-cta { margin-left: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent-deep); color: #fdfcf9; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-danger { background: #fff; color: var(--danger); border-color: #e6c9c4; }
.btn-danger:hover { background: #fbf1ef; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 640px; height: 640px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  z-index: -1; pointer-events: none;
}
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.hero-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(2.7rem, 6.2vw, 4.3rem); line-height: 1.04; margin: 0 0 18px; max-width: 13ch;
}
.hero-role { font-size: 1.06rem; color: var(--muted); margin: 0 0 22px; max-width: 58ch; }
.hero-role strong { color: var(--ink); font-weight: 600; }
.hero-lede { font-size: 1.13rem; color: var(--ink); margin: 0 0 34px; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stat-row { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 64px; }
.stat { min-width: 120px; }
.stat-num { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--accent-deep); line-height: 1.1; }
.stat-label { font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.section-title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.section-sub { color: var(--muted); max-width: 52ch; margin: 10px 0 0; }
.section-more { font-size: .92rem; font-weight: 600; white-space: nowrap; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8d1c2; text-decoration: none; }
.card-media { aspect-ratio: 16 / 10; background: var(--accent-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-media.empty { display: flex; align-items: center; justify-content: center; }
.card-media .monogram { font-family: var(--serif); font-size: 2.2rem; color: #c4d6cc; font-weight: 600; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.25; margin: 0; color: var(--ink); }
.card:hover .card-title { color: var(--accent-deep); }
.card-summary { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.chip {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep);
}
.chip-muted { background: #f1efe9; color: var(--muted); }
.chip-planned { background: var(--planned-bg); color: var(--planned-ink); }
.chip-venture { background: var(--venture-bg); color: var(--venture-ink); }
.chip-concept { background: var(--concept-bg); color: var(--concept-ink); }
.card-link { font-size: .88rem; font-weight: 600; color: var(--accent-deep); }
.card-featured .card-media::after {
  content: "Featured"; position: absolute; margin: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(250, 248, 244, .94); color: var(--accent-deep); font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.card-featured .card-media { position: relative; }

/* ---------- Roadmap / planned ---------- */
.planned-list { display: grid; gap: 14px; }
.planned-item {
  display: flex; gap: 18px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.planned-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.planned-item .thumb { width: 96px; height: 64px; border-radius: 8px; overflow: hidden; flex: none; background: var(--planned-bg); }
.planned-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.planned-item .thumb.empty { display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: #cfc4a4; font-size: 1.2rem; }
.planned-item .pi-body { flex: 1; min-width: 0; }
.planned-item .pi-title { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.planned-item:hover .pi-title { color: var(--accent-deep); }
.planned-item .pi-sub { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.planned-group { font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin: 26px 0 12px; }
.planned-group:first-child { margin-top: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-cap { padding: 12px 14px; font-size: .88rem; color: var(--muted); }
.gallery-cap strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }

/* ---------- Posts & events ---------- */
.post-list { display: grid; gap: 18px; max-width: 780px; }
.post-row {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; transition: transform .15s ease, box-shadow .15s ease;
}
.post-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.post-row .pr-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.post-row:hover .pr-title { color: var(--accent-deep); }
.post-row .pr-excerpt { color: var(--muted); margin: 0 0 8px; }
.event-row { display: flex; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; align-items: flex-start; }
.date-block { flex: none; width: 74px; text-align: center; background: var(--accent-soft); border-radius: 12px; padding: 10px 6px; }
.date-block .day { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--accent-deep); line-height: 1.1; }
.date-block .mon { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.date-block.tbd { display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; line-height: 1.4; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 4px; }
.event-meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.event-body p { margin: 0 0 8px; }

/* ---------- Detail pages ---------- */
.detail-hero { padding: 64px 0 8px; }
.back-link { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.back-link:hover { color: var(--accent-deep); }
.detail-title { font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 16px; max-width: 20ch; }
.detail-lede { font-size: 1.16rem; color: var(--ink); max-width: 62ch; margin: 0 0 18px; }
.detail-media { border-radius: var(--radius); overflow: hidden; margin: 34px 0 0; border: 1px solid var(--line); }
.detail-media img { width: 100%; max-height: 520px; object-fit: cover; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-item { font-size: .9rem; color: var(--muted); }
.meta-item strong { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 3px; }
.body-blocks { max-width: 720px; margin: 44px 0; }
.body-block { margin-bottom: 30px; }
.block-label { font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.block-text { margin: 0; font-size: 1.05rem; }
.detail-foot { padding: 10px 0 80px; }

/* ---------- Listing pages ---------- */
.listing-head { padding: 72px 0 34px; }
.listing-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin: 0 0 10px; }
.empty-note { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 38px; text-align: center; color: var(--muted); }
.error-wrap { text-align: center; padding: 120px 24px 140px; }
.error-code { font-family: var(--serif); font-size: 5rem; font-weight: 600; color: var(--accent-soft); -webkit-text-stroke: 1.5px var(--accent); line-height: 1; }
.error-msg { color: var(--muted); max-width: 44ch; margin: 18px auto 30px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 100px; border-top: 1px solid var(--line); background: #f5f2ea; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.foot-brand .wordmark { font-size: 1.4rem; }
.foot-blurb { color: var(--muted); font-size: .95rem; max-width: 38ch; margin-top: 10px; }
.foot-h { font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.foot-links { display: grid; gap: 9px; font-size: .95rem; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.social-pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.social-pill:hover { color: var(--accent-deep); border-color: var(--faint); text-decoration: none; }
.foot-base { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--faint); }

/* ---------- Admin: shared ---------- */
.admin-body { background: #f6f4ee; min-height: 100vh; }
.admin-top { background: #14231d; color: #f2efe7; position: sticky; top: 0; z-index: 50; }
.admin-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; flex-wrap: wrap; }
.admin-brand { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: #fdfcf9; }
.admin-brand:hover { text-decoration: none; color: #fff; }
.admin-brand .dot { color: #57b894; }
.admin-nav { display: flex; gap: 3px 16px; flex-wrap: wrap; align-items: center; }
.admin-nav a { color: #b9c4bd; font-size: .88rem; font-weight: 500; padding: 4px 0; }
.admin-nav a:hover { color: #fff; text-decoration: none; }
.admin-nav a.active { color: #57b894; }
.admin-nav .signout { color: #d8a49b; background: none; border: 1px solid #3d5147; border-radius: 999px; padding: 5px 13px; font-size: .82rem; cursor: pointer; }
.admin-nav .signout:hover { color: #fff; border-color: #d8a49b; }
.admin-main { max-width: 1080px; margin: 0 auto; padding: 36px 24px 90px; }
.admin-h1 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 0 0 6px; }
.admin-sub { color: var(--muted); margin: 0 0 28px; }

.flash { border-radius: 12px; padding: 13px 18px; margin: 0 0 22px; font-size: .93rem; font-weight: 500; border: 1px solid; }
.flash-success { background: #e9f3ec; color: #1d5c40; border-color: #cde5d5; }
.flash-error { background: #faecea; color: #8c352a; border-color: #eed3cf; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 26px; }
.panel-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0 0 4px; }
.panel-sub { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }

.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.count-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: transform .15s ease, box-shadow .15s ease; }
.count-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.count-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--accent-deep); line-height: 1.15; }
.count-label { font-size: .84rem; color: var(--muted); margin-top: 2px; }

.item-list { display: grid; gap: 10px; }
.item-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.item-row .ir-title { font-weight: 600; font-size: .97rem; flex: 1; min-width: 200px; }
.item-row .ir-meta { color: var(--muted); font-size: .82rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status-dot.on { background: #2c8a5f; }
.status-dot.off { background: #d4cfc2; }
.ir-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: #fdfcf9; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 13px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.tall { min-height: 220px; }
.field .hint { font-size: .8rem; color: var(--faint); }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink); }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.actions-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; grid-column: 1 / -1; margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--faint); grid-column: 1 / -1; margin: -6px 0 0; }
.login-wrap { max-width: 420px; margin: 9vh auto 0; padding: 0 24px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 34px 30px; box-shadow: var(--shadow); }
.login-card h1 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 4px; }
.login-card .sub { color: var(--muted); font-size: .92rem; margin: 0 0 22px; }
.login-card .field { margin-bottom: 16px; }
.login-foot { text-align: center; margin-top: 18px; font-size: .86rem; color: var(--faint); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .planned-item:hover, .post-row:hover, .btn { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .planned-item { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .stat-row { gap: 26px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { justify-content: flex-start; }
  .event-row { flex-direction: column; }
  .hero-actions .btn { flex: 1; text-align: center; }
}
