/* ============================================================
   brendanw.com — shared design system (resume look)
   Used by the landing page and all detail pages.
   resume.html keeps its own inline styles (standalone document).
   ============================================================ */

:root {
  --z950: #09090b; --z900: #18181b; --z800: #27272a; --z700: #3f3f46;
  --z600: #52525b; --z500: #71717a; --z400: #a1a1aa; --z300: #d4d4d8;
  --blue: #93c5fd; --link: #1d4ed8; --ink: #27272a; --gray2: #e5e7eb;
  --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--z950); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: #fff; color: #18181b; }

/* ---------- top-right resume button ---------- */
.topbtn { position: fixed; top: 16px; right: 16px; z-index: 40; font-family: var(--sans); font-size: 13px; font-weight: 600; color: #18181b; background: #fff; cursor: pointer; padding: 9px 15px; border-radius: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.topbtn:hover { background: var(--z300); }

/* ---------- hamburger nav (pure-CSS toggle) ---------- */
.navcb { position: absolute; opacity: 0; pointer-events: none; }
.navtoggle { position: fixed; top: 16px; left: 16px; z-index: 46; display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 38px; padding: 0 10px; background: #fff; border-radius: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer; }
.navtoggle span { display: block; height: 2px; background: #18181b; border-radius: 2px; transition: transform .2s, opacity .2s; }
.navcb:checked ~ .navtoggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navcb:checked ~ .navtoggle span:nth-child(2) { opacity: 0; }
.navcb:checked ~ .navtoggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.navpanel { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-width: 84vw; background: var(--z900); z-index: 45; transform: translateX(-100%); transition: transform .24s ease; padding-top: 64px; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.45); }
.navcb:checked ~ .navpanel { transform: translateX(0); }
.navpanel .nbrand { padding: 4px 24px 16px; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.navpanel .nbrand small { display: block; font-weight: 500; font-size: 12px; letter-spacing: .04em; color: var(--z400); text-transform: uppercase; margin-top: 4px; }
.navpanel a { display: flex; align-items: center; gap: 10px; padding: 14px 24px; color: var(--z300); font-size: 16px; font-weight: 500; border-top: 1px solid var(--z800); }
.navpanel a .nn { font-family: var(--sans); font-size: 12px; color: var(--z600); width: 20px; }
.navpanel a:hover { color: #fff; background: var(--z800); }
.navpanel a.active { color: #fff; box-shadow: inset 3px 0 0 var(--blue); }
.navpanel a.active .nn { color: var(--blue); }
.navscrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 44; opacity: 0; pointer-events: none; transition: opacity .2s; }
.navcb:checked ~ .navscrim { opacity: 1; pointer-events: auto; }

.wrap { max-width: 1280px; margin: 0 auto; background: var(--z600); display: flex; }

/* ---------- sidebar ---------- */
.side { width: 34%; min-width: 360px; max-width: 500px; background: var(--z800); color: #fff; }
.photo { height: 380px; background-image: url('/headshot.jpg'); background-size: 200% auto; background-repeat: no-repeat; background-position: 50% 18%; }
.nameblock { padding: 18px 20px; border-top: 1px solid var(--z700); border-bottom: 1px solid var(--z700); background: var(--z900); }
.nameblock h1 { font-size: clamp(40px, 6vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.nameblock h1 a { color: #fff; }
.nameblock h3 { text-transform: uppercase; font-size: 13.5px; font-weight: 500; color: var(--z300); margin-top: 9px; letter-spacing: .04em; }
.nameblock .aka { font-size: 13px; color: var(--z400); margin-top: 7px; }
.nameblock .aka a { color: var(--blue); }

.sec { padding: 20px; }
.sec > h3 { text-transform: uppercase; font-size: 19px; font-weight: 600; margin-bottom: 16px; }

.contact .row { display: flex; gap: 9px; align-items: center; font-size: 14px; margin-bottom: 12px; }
.contact .row:last-child { margin-bottom: 0; }
.contact .ic { background: #fff; color: var(--z800); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact .ic svg { width: 12px; height: 12px; }
.contact a:hover { color: var(--blue); }

.proj h3 { text-transform: uppercase; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.proj .list { margin-top: 14px; }
.proj .item { padding: 14px 0; border-top: 1px solid var(--z700); }
.proj .item:first-child { border-top: none; padding-top: 2px; }
.proj .item h2 { font-weight: 700; font-size: 17px; }
.proj .item h2 a { color: var(--blue); text-decoration: underline; }
.proj .item p { margin: 5px 0 0; font-size: 13.5px; color: var(--z300); }

.mini h3 { text-transform: uppercase; font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.mini .cur { font-size: 13.5px; color: var(--z300); position: relative; padding-left: 16px; margin-bottom: 9px; }
.mini .cur:last-child { margin-bottom: 0; }
.mini .cur::before { content: "\2605"; position: absolute; left: -1px; top: 1px; color: #fff; font-size: 11px; }
.mini .cur b { color: #fff; font-weight: 600; }
.mini .cur span.k { color: var(--z400); }

.sideshark { padding: 4px 20px 26px; }
.sideshark img { width: 100%; display: block; border-radius: 8px; opacity: .95; }

/* ---------- main ---------- */
.main { flex: 1; background: #fff; min-width: 0; }
.pad { padding: 30px 34px; }
.main h1.head { font-weight: 800; font-size: 24px; margin-bottom: 14px; }
.main h1.title { font-weight: 800; font-size: 30px; letter-spacing: -.01em; margin-bottom: 10px; }
.main a { color: #18181b; text-decoration: underline; text-decoration-color: #cfccc0; text-underline-offset: 2px; transition: color .15s; }
.main a:hover { color: var(--link); text-decoration-color: var(--link); }

.block { margin-bottom: 38px; }
.block:last-child { margin-bottom: 0; }
.sumtext { font-size: 15px; line-height: 1.65; color: #2c2c30; margin-bottom: 12px; }
.sumtext:last-of-type { margin-bottom: 0; }
.sumtext b { color: var(--ink); font-weight: 600; }
.lead { font-size: 16.5px; line-height: 1.6; color: #3a3a3f; margin-bottom: 12px; }
.lead b { color: var(--ink); font-weight: 600; }

/* "more →" inline link */
.morelink { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; }
.main a.morelink { color: var(--link); text-decoration: none; }
.main a.morelink:hover { text-decoration: underline; text-decoration-color: var(--link); }

/* figures */
.mfig { margin: 18px 0 2px; }
.mfig + .mfig { margin-top: 14px; }
.mfig img { width: 100%; border-radius: 8px; display: block; }
.mcap { font-size: 12.5px; color: #71717a; margin-top: 8px; }
.mcap a { font-weight: 600; }
.duo { display: flex; gap: 12px; }
.duo a { flex: 1; min-width: 0; }
.duo img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; display: block; }

/* career / timeline */
.exp { display: flex; margin-top: 18px; }
.exp .rail { width: 56px; flex-shrink: 0; position: relative; }
.exp .vline { position: absolute; left: 28px; top: 23px; bottom: 6px; width: 2px; background: #000; }
.exp .jobs { flex: 1; min-width: 0; }
.job { position: relative; padding: 14px 0; }
.job + .job { border-top: 1px solid var(--gray2); }
.dot { position: absolute; left: -31px; top: 20px; width: 8px; height: 8px; border-radius: 9999px; background: #000; }
.job h2 { font-weight: 700; font-size: 19px; display: inline; }
.job h2 a { text-decoration: none; }
.job .co { color: var(--z400); font-size: 15px; }
.job .blurb { font-size: 14px; line-height: 1.55; color: #3a3a3f; margin-top: 7px; }
.job .blurb b { color: var(--ink); font-weight: 600; }

/* gear / software two-up lists */
.gs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px; margin-top: 20px; }
.gs .gcol h4 { text-transform: uppercase; font-size: 12.5px; letter-spacing: .08em; color: #71717a; font-weight: 700; margin-bottom: 11px; }
.gs ul { list-style: none; }
.gs li { font-size: 13.5px; color: #3a3a3f; padding: 4px 0 4px 15px; position: relative; }
.gs li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #18181b; }

/* group label */
.grp { text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: #9a988d; font-weight: 700; margin: 28px 0 2px; }
.grp:first-of-type { margin-top: 22px; }

/* spec table */
.specs { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--gray2); margin-top: 14px; }
.specs dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: #71717a; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--gray2); }
.specs dd { font-size: 14.5px; line-height: 1.5; color: #3a3a3f; padding: 14px 0; border-bottom: 1px solid var(--gray2); }
.specs dd b { color: var(--ink); font-weight: 600; }

/* project / list */
.plist { border-top: 1px solid var(--gray2); margin-top: 14px; }
.pi { display: block; padding: 16px 0 16px 24px; border-bottom: 1px solid var(--gray2); position: relative; }
.pi::before { content: "\00BB"; position: absolute; left: 0; top: 16px; color: var(--link); font-weight: 700; }
.pi .pt { font-weight: 700; font-size: 17px; color: var(--ink); }
.main .pi .pt a { text-decoration: none; color: var(--ink); }
.main .pi .pt a:hover { text-decoration: underline; text-decoration-color: var(--link); color: var(--link); }
.pi .pd { color: #52525b; font-size: 14.5px; line-height: 1.5; margin-top: 3px; }
.pi .pm { font-size: 12.5px; color: #9a988d; margin-top: 8px; display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
.main .pi .pm a { font-weight: 700; color: var(--link); text-decoration: none; }
.main .pi .pm a:hover { text-decoration: underline; }
.pi .pm .live { color: #15803d; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.pi .pm .tech { color: #9a988d; }

/* nav cards (Explore + cross-page) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.main a.card { display: block; border: 1px solid var(--gray2); border-radius: 9px; padding: 16px 17px; text-decoration: none; transition: border-color .15s, background .15s; }
.main a.card:hover { color: inherit; border-color: var(--link); background: #fafafa; }
.card .ct { font-weight: 700; font-size: 16.5px; color: var(--ink); }
.card .ct .ar { color: var(--link); }
.card .cd { font-size: 13.5px; line-height: 1.45; color: #52525b; margin-top: 4px; }
.card .cg { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9a988d; margin-top: 10px; }

.foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--gray2); font-size: 12.5px; color: #9a988d; }
.foot a { color: #6b6a61; }

/* music */
.nowplaying { background: var(--z900); border-radius: 10px; padding: 16px; margin: 16px 0 6px; display: block; }
.nowplaying a { display: block; }
.nowplaying img { width: 100%; max-width: 680px; height: auto; border-radius: 4px; }
.quote { border: 1px solid var(--gray2); border-left: 3px solid #18181b; border-radius: 6px; padding: 14px 16px; background: #fafafa; margin-top: 18px; }
.quote .q { font-size: 14.5px; line-height: 1.55; color: #2c2c30; font-style: italic; }
.quote .a { font-size: 12.5px; color: #71717a; margin-top: 8px; }

@media (max-width: 860px) {
  .wrap { flex-direction: column; }
  .side { width: 100%; min-width: 0; max-width: none; }
  .exp .rail { width: 40px; }
  .exp .vline { left: 18px; }
  .dot { left: -34px; }
}
@media (max-width: 560px) {
  .gs { grid-template-columns: 1fr; gap: 0; }
  .gs .gcol + .gcol { margin-top: 18px; }
  .duo { flex-direction: column; }
  .duo img { height: auto; }
  .cards { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { padding-bottom: 2px; border-bottom: none; }
  .specs dd { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .topbtn, .navtoggle, .navpanel, .navscrim { display: none !important; }
}
