/* parkerneeley.net — one stylesheet for the public page and the portal.
   Typeface pairing is deliberate: a transitional serif for headings against the same
   monospace the ParkerOS dashboards use for data, so the portal feels continuous with the
   tools it links to rather than like a separate product. */

:root {
  --paper:     #faf9f7;
  --card:      #ffffff;
  --ink:       #16191d;
  --ink-2:     #4c545e;
  --ink-3:     #78818c;
  --line:      #e3e2de;
  --line-soft: #efeeeb;
  --accent:    #1f5f4f;   /* deep green — reads as land, not as a tech-startup blue */
  --accent-2:  #b4532a;   /* clay, used once per page at most */
  --good:      #1f7a5a;
  --warn:      #8a5a12;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #14161a;
    --card:      #1b1e23;
    --ink:       #eef0f2;
    --ink-2:     #b2b9c2;
    --ink-3:     #838c96;
    --line:      #2b3038;
    --line-soft: #22262c;
    --accent:    #6fbfa3;
    --accent-2:  #e08f68;
    --good:      #6fbfa3;
    --warn:      #d8a55a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding-inline: 22px; padding-block: 0 80px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── masthead ── */
header.top { padding-block: 64px 0; }
.name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 22px;
}
.lede { font-size: 18.5px; color: var(--ink-2); max-width: 60ch; margin: 0; }
.lede strong { color: var(--ink); font-weight: 600; }

.meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
}

/* ── sections ── */
section { margin-top: 56px; }
h2 {
  font-family: var(--serif); font-weight: 600; font-size: 24px;
  letter-spacing: -0.01em; margin: 0 0 6px;
}
.sec-sub { color: var(--ink-3); font-size: 14.5px; margin: 0 0 26px; max-width: 62ch; }

/* ── work entries ── */
.work { border-top: 1px solid var(--line); padding-block: 24px; }
.work:last-of-type { border-bottom: 1px solid var(--line); }
.work h3 {
  font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 0 0 4px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.work .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}
.work p { margin: 0 0 10px; color: var(--ink-2); max-width: 64ch; }
.work p:last-child { margin-bottom: 0; }
.figures {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.figures b { color: var(--ink-2); font-weight: 500; }

/* ── portal cards ── */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px; margin-top: 8px;
}
.app {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 18px 16px; text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.app:hover { border-color: var(--accent); transform: translateY(-1px); color: inherit; }
.app .app-name { font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.app .app-what { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.app .app-host {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.pill.local { background: rgba(31,122,90,0.12); color: var(--good); }
.pill.hosted { background: rgba(31,95,79,0.12); color: var(--accent); }
.pill.soon { background: rgba(138,90,18,0.12); color: var(--warn); }

.note {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 16px 18px; margin-top: 26px;
  font-size: 14px; color: var(--ink-2);
}
.note b { color: var(--ink); }
code {
  font-family: var(--mono); font-size: 0.87em; background: var(--line-soft);
  padding: 1px 5px; border-radius: 3px;
}

footer {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
}
footer a { color: var(--ink-2); }

@media (max-width: 560px) {
  header.top { padding-block: 44px 0; }
  .lede { font-size: 17px; }
}

/* ── screenshots ──────────────────────────────────────────────────────────
   Each work entry can carry one or more framed shots. The frame is a plain
   browser chrome — dots plus the host — so a reader can tell at a glance that
   this is a running application and not a mockup. */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.shot { margin: 0; }

.shot__frame {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.shot__frame:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(0,0,0,0.45);
}

.shot__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.shot__dots { display: flex; gap: 4px; flex: 0 0 auto; }
.shot__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.shot__host {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.shot__frame img {
  display: block; width: 100%; height: auto;
  background: var(--line-soft);
}

.shot figcaption {
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  color: var(--ink-3); margin-top: 9px;
}

/* placeholder state — swapped out once a real capture lands */
.shot--pending .shot__frame { border-style: dashed; }
.shot--pending .shot__frame:hover { transform: none; box-shadow: none; }

/* ── lightbox ──
   Native <dialog>. Without JS the frame stays a plain link to the full image,
   so the shots are still viewable. */
dialog.lb {
  border: 0; padding: 0; background: transparent;
  max-width: min(1400px, 94vw); max-height: 92vh;
}
dialog.lb::backdrop { background: rgba(10,12,14,0.82); }
dialog.lb img {
  display: block; width: 100%; height: auto;
  max-height: 88vh; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--card);
}
dialog.lb .lb__close {
  position: absolute; top: -34px; right: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; color: #dfe3e7;
  padding: 4px 6px;
}
dialog.lb .lb__cap {
  font-family: var(--mono); font-size: 11px; color: #aab2ba;
  margin-top: 10px; text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .shot__frame { transition: none; }
  .shot__frame:hover { transform: none; }
}
