/* jrcharles.org resume site — simple, fast, and readable */

:root{
  --bg: #ffffff;
  --panel: #f6f7f9;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --link: #0f62fe;
  --button: #111827;
  --buttonText: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

:root[data-theme="dark"]{
  --bg: #0b0c10;
  --panel: #111318;
  --text: #f3f4f6;
  --muted: #c7cbd1;
  --border: #252a33;
  --link: #7aa7ff;
  --button: #f3f4f6;
  --buttonText: #0b0c10;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}


:root[data-theme="dark"] .site-header{ background: rgba(11,12,16,0.92); }
*{ box-sizing: border-box; }
html,body{ height:100%; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.skip-link:focus{ left: 10px; z-index: 1000; }

.site-header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 12px;
}

.brand{
  display:flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.avatar{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

h1{
  margin:0;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.subtitle{
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 550;
}

.meta{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
}
.dot{ opacity: 0.75; }

.header-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover{
  text-decoration: none;
  filter: brightness(0.98);
}
.button.primary{
  background: var(--button);
  color: var(--buttonText);
  border-color: var(--button);
}
.button.ghost{
  background: transparent;
}

.site-nav{
  border-top: 1px solid var(--border);
}
.nav-inner{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0 12px;
  font-weight: 650;
}
.nav-inner a{
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
}
.nav-inner a:hover{
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}

main{
  padding: 22px 0 60px;
}

.section{
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type{ border-bottom: none; }

h2{
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 12px; }
p:last-child{ margin-bottom: 0; }

.callouts{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.callout{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px;
}
.callout-title{
  font-weight: 800;
  margin-bottom: 6px;
}
.callout-body{ color: var(--muted); font-size: 0.98rem; }

.subhead{
  margin: 14px 0 8px;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chips{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-weight: 650;
  font-size: 0.95rem;
}

.entries{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.entry{
  padding: 14px 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: none;
}

.entry-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.entry-title{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}
.entry-meta{
  color: var(--muted);
  font-weight: 750;
}

.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.bullets li{
  margin: 6px 0;
}

.education{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.edu-item{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px 14px;
}
.edu-degree{
  font-weight: 900;
}
.edu-school{
  color: var(--muted);
  margin-top: 6px;
}

.contact-card{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px 14px;
  display:grid;
  gap: 10px;
}

.contact-row{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: baseline;
}
.label{
  color: var(--muted);
  font-weight: 800;
}
.value{
  font-weight: 700;
}

.fineprint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
code{
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.site-footer{
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 820px){
  .header-inner{
    flex-direction: column;
    align-items: stretch;
  }
  .header-actions{ justify-content: flex-start; }
  .callouts{ grid-template-columns: 1fr; }
  .education{ grid-template-columns: 1fr; }
  .contact-row{ grid-template-columns: 90px 1fr; }
}

/* Print-friendly: hide sticky header/nav/buttons */
@media print{
  .site-header, #themeToggle, .header-actions, .site-nav, .skip-link{ display:none !important; }
  body{ background: #fff; color:#000; }
  .entry, .edu-item, .callout, .contact-card{ box-shadow:none; }
  a{ color:#000; text-decoration: none; }
}
