/* Solarized Light-inspired color palette */
:root {
  --base03: #002b36;
  --base02: #073642;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base1: #93a1a1;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --yellow: #b58900;
  --orange: #cb4b16;
  --red: #dc322f;
  --magenta: #d33682;
  --violet: #6c71c4;
  --blue: #268bd2;
  --cyan: #2aa198;
  --green: #859900;
  --soft-sand: #e7e1d4;
  --desaturated-teal: #4c9aaf;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hidden, .template {
    display: none !important;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--base3);
  color: var(--base00);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Terminal background styling */
.terminal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--soft-sand);
}

.terminal-text {
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
}

.terminal-text-line {
  font-family: 'Source Code Pro', DOS, Monaco, Menlo, Consolas, "Courier New", monospace;
  white-space: nowrap;
  color: var(--base00);
  font-size: 0.9rem;
  opacity: 0.7;
  overflow: hidden;
  position: relative;
}

.terminal-text-line.this-user {
    color: var(--green);
}

.terminal-text-line::before {
  /* content: '> '; */
  color: var(--green);
}

/* Main content */
.content-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.content-card {
  background-color: rgba(253, 246, 227, 0.9);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 650px;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 43, 54, 0.1);
  border: 1px solid var(--base2);
  transition: all 0.3s ease;
}

.content-card-bowelism,
.content-card-user-manual {
  max-width: 850px;
}

h1 {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  color: var(--desaturated-teal);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.bio-section {
  margin-bottom: 2rem;
}

.bio-content {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.bio-text {
  flex: 3;
}

.bio-image {
  flex: 2;
  max-width: 180px;
}

.content-card-user-manual .bio-image {
  padding-left: 1.5rem;
  float: right;
}

.bio-image figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 43, 54, 0.15);
  border: 2px solid var(--base2);
}

.bio-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--base01);
  text-align: center;
  font-style: italic;
  padding: 0.25rem 0.5rem;
  background-color: var(--base2);
  border-radius: 4px;
  width: fit-content;
}

.bio-text p {
  margin-bottom: 1rem;
  color: var(--base01);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--base01);
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: var(--base3);
  border: 1px solid var(--base2);
}

.social-link:hover {
  background-color: var(--base2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 43, 54, 0.1);
}

.link-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.link-icon img {
  height: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .content-card {
    width: 85%;
    padding: 1.75rem;
  }

  .text-row {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .bio-content {
    flex-direction: column-reverse;
    align-items: center;
  }

  .bio-image {
    max-width: 150px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .content-container {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .content-card {
    width: 95%;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .text-row {
    font-size: 0.7rem;
  }
}