/* brianshreves.com: dark vCard/resume layout. Hand-written; no framework. */
:root {
  --bg: #17181b;          /* page */
  --panel: #202226;       /* sidebar / cards */
  --panel-2: #2c2d2f;     /* raised */
  --line: #333537;
  --text: #e1e1e1;
  --muted: #a2a2a2;
  --accent: #0b9ce0;
  --accent-ink: #ffffff;
  --sidebar-w: 280px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line);
  z-index: 20;
}
.sidebar__photo { position: relative; height: 320px; flex: none; background: #2f3236; overflow: hidden; }
.sidebar__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ribbon {
  position: absolute; left: 0; right: 0; bottom: 18px; margin: 0 auto; width: 86%;
  padding: 10px 14px; background: var(--accent); color: var(--accent-ink);
  font: 700 18px/1.2 var(--serif); text-transform: uppercase; text-align: center;
  transform: rotate(-4deg); box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.ribbon span { font-weight: 500; }

.nav { display: flex; flex-direction: column; padding: 28px 0; }
.nav a {
  display: flex; align-items: center; gap: 14px; padding: 11px 36px;
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); border-left: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); border-left-color: var(--accent); background: rgba(255,255,255,.03); }
.nav a.is-active svg { color: var(--accent); }

.sidebar__foot { margin-top: auto; padding: 20px 36px 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sidebar__foot p { margin: 12px 0 0; }
.social { display: inline-flex; padding: 6px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.social:hover { color: var(--accent); border-color: var(--accent); }
.login {
  float: right; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.login:hover { color: var(--accent); }

/* ---------- Main + sections ---------- */
.main { margin-left: var(--sidebar-w); min-height: 100vh; }
/* Without JS every section shows as one long page; with JS (html.js) only the active one is visible. */
.section { padding: 72px clamp(24px, 6vw, 88px); max-width: 1100px; animation: rise .45s ease both; }
.js .section:not(.is-active) { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .section, .rotator { animation: none !important; } html { scroll-behavior: auto; } }

.section__title {
  position: relative; display: inline-block; margin-bottom: 44px; padding-bottom: 14px;
  font: 700 clamp(32px, 4vw, 44px)/1.1 var(--serif);
}
.section__title span { color: var(--accent); }
.section__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: var(--accent); }

/* Hero */
.section--hero {
  max-width: none; min-height: 100vh; padding: 0; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(11,156,224,.18), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(11,156,224,.10), transparent 50%),
    linear-gradient(160deg, #1d2024, #121315);
}
.hero { padding: 24px; }
.hero__name { font: 700 clamp(44px, 8vw, 92px)/1 var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.hero__name span { color: var(--accent); }
.hero__role { margin: 22px 0 6px; font-size: clamp(18px, 2.4vw, 24px); }
.hero__role strong { font-weight: 700; color: #fff; border-bottom: 2px solid var(--accent); }
.hero__place { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.rotator { display: inline-block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* About */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.about h3 { margin-bottom: 18px; font: 700 22px/1.3 var(--serif); }
.facts { margin: 0; padding: 26px; background: var(--panel); border: 1px solid var(--line); align-self: start; }
.facts div { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

/* Resume timeline */
.resume { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.resume__heading { margin: 0 0 22px; font: 700 20px/1.2 var(--serif); }
.resume__heading:not(:first-child) { margin-top: 40px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--accent); }
.timeline li { position: relative; padding: 0 0 28px 8px; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 6px; width: 11px; height: 11px;
  border: 2px solid var(--accent); border-radius: 50%; background: var(--bg);
}
.when { display: inline-block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.timeline h4 { font: 700 15px/1.35 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.org { margin: 2px 0 8px; font-size: 13px; font-weight: 500; color: var(--accent); }
.timeline p:last-child { margin-bottom: 0; color: #c8c8c8; font-size: 15px; }

.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { padding: 6px 12px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }

/* What I do */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.card h3 { margin-bottom: 10px; font: 700 19px/1.3 var(--serif); }
.card p { margin: 0; color: #c8c8c8; }

/* Contact */
.contact { max-width: 620px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 13px 22px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.button:hover { filter: brightness(1.1); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--ghost { background: transparent; color: var(--text); border: 1px solid var(--accent); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Mobile ---------- */
.topbar { display: none; }
@media (max-width: 900px) {
  .topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line);
  }
  .topbar__name { font: 700 18px/1 var(--serif); text-transform: uppercase; text-decoration: none; }
  .topbar__name span { color: var(--accent); }
  .topbar__toggle { display: grid; place-items: center; width: 40px; height: 40px; background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
  .topbar__toggle svg { width: 22px; height: 22px; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: min(var(--sidebar-w), 85vw); }
  .sidebar.is-open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .main { margin-left: 0; }
  .section { padding: 44px 16px; }
  .section--hero { min-height: calc(100vh - 65px); }
  .about, .resume { grid-template-columns: 1fr; gap: 32px; }
}
