/* ============================================================
   iamshanemarks — shared styles for subpages (portfolio, journal)
   matches home.css: poppins, white page, grey rounded panels,
   pill nav, text-selection highlights.
   ============================================================ */

:root {
  --bg: #f1f1f1;
  --mist: #e6e6e6;
  --ink: #161616;
  --ink-2: #4a4a4a;
  --muted: #7d7d7d;
  --muted-2: #b5b5b5;
  --line: #ececec;
  --card: #ffffff;
  --blue: #1a73e8;
  --blue-soft: #d6e6ff;
  --yellow: #ffd400;
  --yellow-soft: #fff4b8;
  --radius: 26px;
  --radius-sm: 18px;
  --shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 22px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.tb-brand { font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.tb-brand span { color: var(--muted); font-weight: 400; }
.tb-nav { display: flex; gap: 8px; }
.tb-nav a {
  font-size: 13px; padding: 7px 18px; border-radius: 999px; white-space: nowrap;
  background: #ececec; color: #6d6d6d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.tb-nav a:hover { background: #e0e0e0; color: var(--ink); transform: translateY(-1px); }
.tb-nav a[aria-current="page"] { background: var(--blue); color: #fff; box-shadow: none; }
.tb-cta {
  font-size: 13px; font-weight: 500; padding: 8px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; white-space: nowrap; transition: transform .2s var(--ease);
}
.tb-cta:hover { transform: translateY(-1px); }

/* ---------- back link (both pages) ---------- */
.pf-backlink, .jr-backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: #fff; color: var(--ink-2);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s var(--ease), color .2s;
}
.pf-backlink svg, .jr-backlink svg { width: 15px; height: 15px; }
.pf-backlink:hover, .jr-backlink:hover { transform: translateX(-2px); color: var(--ink); }

/* ---------- pill label ---------- */
.pill-label, .section-head .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: lowercase;
  color: #fff; background: var(--blue); padding: 4px 14px; border-radius: 999px; position: relative;
}
.pill-label::after, .section-head .eyebrow::after {
  content: ""; position: absolute; right: -2px; bottom: -3px; width: 11px; height: 9px;
  background: var(--blue); clip-path: polygon(0 0, 100% 100%, 30% 40%);
}

/* ---------- selection highlight ---------- */
.sel {
  position: relative; display: inline-block; padding: 0 .1em;
  --c: var(--blue); --bg: var(--blue-soft);
  background: linear-gradient(var(--bg), var(--bg)) no-repeat left / 0% 100%;
  transition: background-size .9s var(--ease) .2s;
}
.sel.yellow { --c: #f2b600; --bg: var(--yellow-soft); }
.sel::before, .sel::after {
  content: ""; position: absolute; width: 3px; top: .06em; bottom: .02em;
  background: var(--c); border-radius: 2px; opacity: 0; transition: opacity .3s .2s;
}
.sel::before { left: -2px; }
.sel::after { right: -2px; transition-delay: 1.05s; }
.sel > i {
  position: absolute; width: .18em; height: .18em; min-width: 9px; min-height: 9px;
  border-radius: 50%; background: var(--c); opacity: 0; transition: opacity .3s .2s;
}
.sel > i:first-child { left: -2px; top: 0; transform: translate(-40%, -60%); }
.sel > i:last-child { right: -2px; bottom: 0; transform: translate(40%, 60%); transition-delay: 1.05s; }
.sel.in, .in .sel { background-size: 100% 100%; }
.sel.in::before, .sel.in::after, .sel.in > i,
.in .sel::before, .in .sel::after, .in .sel > i { opacity: 1; }

/* ---------- shared sections + buttons ---------- */
.os-section, .section { padding: 70px 0; }
.os-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn-os {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; padding: 13px 26px; border-radius: 999px;
  background: var(--ink); color: #fff; transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-os svg { width: 17px; height: 17px; }
.btn-os:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.4); }
.btn-os.light { background: #fff; color: var(--ink); box-shadow: 0 2px 12px rgba(0,0,0,.08); }

/* ---------- footer ---------- */
.foot {
  margin: 60px 14px 14px; padding: 22px 28px; border-radius: 20px; background: var(--bg);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .tb-brand span { display: none; }
  .tb-cta { display: none; }
  .topbar { padding: 0 14px; gap: 10px; }
  .tb-nav { overflow-x: auto; scrollbar-width: none; gap: 6px; padding-right: 24px; -webkit-mask-image: linear-gradient(to left, transparent, #000 28px); mask-image: linear-gradient(to left, transparent, #000 28px); }
  .tb-nav::-webkit-scrollbar { display: none; }
  .tb-nav a { padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 600px) {
  .foot { flex-direction: column; align-items: flex-start; margin: 40px 8px 8px; }
  .os-cta { flex-direction: column; align-items: stretch; }
  .os-cta .btn-os { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .sel { background-size: 100% 100%; }
  .sel::before, .sel::after, .sel > i { opacity: 1; }
}
