:root {
  /* --main-hl-color: #1c5f20; */
  /* --main-hl-color: dimgray; */
  /* --secondary-hl-color: darkslategrey; */
  /* --tertiary-hl-color: lightgrey; */
  /* Colors, with a modern inspiration */
  /* I don't love dark mode... */
  --main-hl-color: #ff4f00; /* International Aerospace Orange */
  --secondary-hl-color: #0b3d91;
  --tertiary-hl-color: #aeb0b5;
  --bg-color: white;
  /* --text-color: #212121; */
  --text-color: #000000;
  /* Smart font scaling */
  --font-ratio: 1.02; /* The big parameter! */
  --base-size: clamp(1rem, 1.2vh, 1.2rem);
  /* Scales for h's with powers */
  --scale-h6: calc(var(--font-ratio) * var(--base-size));
  --scale-h5: calc(var(--font-ratio) * var(--scale-h6));
  --scale-h4: calc(var(--font-ratio) * var(--scale-h5));
  --scale-h3: calc(var(--font-ratio) * var(--scale-h4));
  --scale-h2: calc(var(--font-ratio) * var(--scale-h3));
  --scale-h1: calc(var(--font-ratio) * var(--scale-h2));
  /* Scales for others using a simpler ratio */
  --scale-nav: calc(1.2 * var(--font-ratio) * var(--base-size));
  --scale-header: calc(1.2 * var(--font-ratio) * var(--base-size));
  --scale-footer: calc(0.8 * var(--font-ratio) * var(--base-size));
}
/* @media (prefers-color-scheme: dark) { */
/* 		:root { */
/* 				--main-hl-color: #b9f6ca; */
/* 				--bg-color: #2f3030; */
/* 				--text-color: #ffffff; */
/* 		} */
/* } */

/* General document properties  */
html {
  background: var(--bg-color);
  color: var(--text-color);
  /* max-width: 48em; */
  max-width: 52em;
  margin: auto;
  font-family:
    system,
    -apple-system,
    '.SFNSText-Regular',
    'San Francisco',
    'Roboto',
    'Segoe UI',
    'Helvetica Neue',
    'Lucida Grande',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 2em 0 2em;
  line-height: 1.4;
  font-size: var(--base-size);
}

/* Semantic HTML definitions */
body {
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  padding: 0.5em 0 0.5em 0;
  margin: 0 0 1em 0;
  font-size: var(--scale-nav);
  border-bottom: 0.125rem solid var(--main-hl-color);
  align-items: center;
}

.nav-left {
  flex: 1;
  font-weight: 600;
  height: var(--scale-nav);
}

.nav-center {
  flex: 0 0 auto;
  margin: 0 1em;
}

nav a {
  text-decoration: none;
  font-weight: 800;
  color: var(--main-hl-color);
  padding: 0.1em;
}

nav a:hover {
  color: var(--secondary-hl-color);
  transform: translateY(-0.125rem);
  text-decoration: none;
}

header {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  font-size: var(--scale-header);
}

footer {
  margin-top: auto;
  font-size: var(--scale-footer);
  padding: 0.5vh 0 0.5vh 0;
  border-top: 0.125rem solid var(--main-hl-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  font-weight: 500;
}

a {
  text-decoration: none;
  color: var(--secondary-hl-color);
  font-weight: 800;
}

a:hover {
  text-decoration: underline;
}

hr {
  color: var(--secondary-hl-color);
}

h1 {
  font-size: var(--scale-h1);
  text-align: left;
  border-bottom: var(--main-hl-color) solid 0.125em;
}

h2 {
  font-size: var(--scale-h2);
  text-align: left;
  border-bottom: var(--main-hl-color) solid 0.125em;
  margin-left: 0.25em;
}

h3 {
  font-size: var(--scale-h3);
  text-align: left;
  border-bottom: var(--main-hl-color) solid 0.03em;
  margin-left: 0.5em;
}

blockquote {
  border-left: var(--main-hl-color) solid 0.125em;
  padding-left: 1em;
  margin-left: 0em;
}

p {
  font-family:
    system,
    -apple-system,
    '.SFNSText-Regular',
    'San Francisco',
    'Roboto',
    'Segoe UI',
    'Helvetica Neue',
    'Lucida Grande',
    sans-serif;
}

/* More specific elements */
.blockwrapper {
  text-align: center;
}

.blocktitle {
  display: inline-block;
  text-transform: uppercase;
  border-top: var(--main-hl-color) solid 0.125em;
  border-bottom: var(--main-hl-color) solid 0.125em;
}

.shortpars p {
  margin: 0.25em 0 0.25em 0;
}

ul {
  list-style-position: inside;
  padding-left: 1em;
}
ol {
  list-style-position: inside;
  padding-left: 1em;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  border: solid lightgrey 1px;
  margin: 1.5em 0em;
}

tr {
  text-align: left;
  padding: 0.25em 0.5em;
  border-left: solid darkgrey 0.5px;
  border-top: solid darkgrey 0.5px;
  border-bottom: solid darkgrey 0.5px;
}
.table-header-row {
  background-color: var(--tertiary-hl-color);
  text-align: left;
  padding: 0.25em 0.5em;
  border: solid darkgrey 1px;
  font-weight: 800;
}

.link-backward {
  color: var(--bg-color);
  background-color: var(--main-hl-color);
  border: solid var(--secondary-hl-color) 0.125em;
  padding: 0.25em;
  font-weight: 800;
  white-space: nowrap;
  width: fit-content;
  &:before {
    content: '← ';
  }
}

.link-forward {
  color: var(--bg-color);
  background-color: var(--secondary-hl-color);
  border: solid var(--tertiary-hl-color) 0.125em;
  padding: 0.25em;
  font-weight: 800;
  white-space: nowrap;
  width: fit-content;
  &:after {
    content: ' → ';
  }
}

.last-updated {
  text-align: center;
}

th {
  padding: 0.25em 0.5em;
  text-align: left;
}

td {
  padding: 0.25em 0.5em;
  text-align: left;
  font-weight: 500;
}

/* Status Component Styles */
.status-component {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.status-bubble {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #6b7280;
  position: relative;
  transition: all 0.3s ease;
}

.status-bubble::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.status-bubble.online {
  background-color: #10b981;
}

.status-bubble.coding {
  background-color: #3b82f6;
}

.status-bubble.meetings {
  background-color: #f59e0b;
}

.status-bubble.offline {
  background-color: #6b7280;
}

.status-text {
  color: var(--text-color);
  font-weight: 500;
  font-size: var(--scale-footer);
}

/* Main page grid layout */
.bio-section {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

/* Mobile first - headshot above text */
.bio-section {
  grid-template-columns: 1fr;
  grid-template-areas: 
    "headshot"
    "content";
}

.headshot {
  border-radius: 50%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.headshot {
  grid-area: headshot;
  width: 100%;
  max-width: 300px; /* adjust as needed */
  justify-self: center;
}

.bio-content {
  grid-area: content;
}

/* Desktop - headshot left, 1/3 width */
@media (min-width: 768px) {
  .bio-section {
    grid-template-columns: 1fr 2fr;
    grid-template-areas: "headshot content";
  }
  
  .headshot {
    justify-self: start;
  }
}
