:root {
  --background: #abd0e7;  /* pastel sky blue */
  --foreground: #02213a;  /* deep blue text */
  --accent: #5c4800;      /* darker brown accent */
}

/* --- Minimal Terminal base so theme variables take effect --- */
html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: "JetBrains Mono","Fira Code",monospace;
  line-height: 1.6;
  margin: 0;
  padding: 1.5rem;
}

a {
  color: var(--foreground);
  text-decoration: none;
  border: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-shadow: 0 0 4px rgba(148,105,5,0.4);
}

hr {
  border: 0;
  border-top: 2px solid var(--accent);
  margin: 1.5rem 0;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 800;
  margin: 0 0 .5rem 0;
}

h1 { font-size: 2.2rem; }
footer { opacity: .85; }

/* --- Center the main content --- */
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

main.container {
  max-width: 720px;
  width: 90%;
  margin: 0 auto;
}

/* --- Portal directory layout --- */
.links {
  font-family: "JetBrains Mono", monospace;
  text-align: left;
  margin-top: 1rem;
  padding-left: 1rem;
}

/* Generic link style */
.links a {
  display: block;
  padding: 0.25rem 0;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

/* Hover effect */
.links a:hover {
  color: var(--accent);
  transform: translateX(6px);
}

/* Optional top-level label */
.links-label {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

/* --- Keeps spacing consistent between links --- */
.link-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.6;
}

/* --- Latest RSS Feeds styling --- */
.latest {
  margin-top: 2rem;
}

.latest h3 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.latest p {
  margin: 0.25rem 0;
}

.latest small {
  opacity: 0.75;
}

/* --- Terminal-style top navigation menu --- */
.terminal-menu {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: left;
  margin-left: 0.5rem;
}

.terminal-menu a {
  color: var(--foreground);
  text-decoration: none;
  padding: 0 0.25rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.terminal-menu a:hover {
  color: var(--accent);
  text-shadow: 0 0 4px rgba(148,105,5,0.4);
  text-decoration: underline;
}

/* --- Intro paragraph styling --- */
.intro {
  font-family: var(--font-family-monospace);
  font-size: 0.98rem;
  line-height: 1.9;
  opacity: 1;              /* full readability */
  color: var(--foreground); /* ensures sync with your darker text */
  font-weight: 500;         /* makes paragraphs easier to read */
  margin: 1rem 0 1.5rem 0;
  text-align: left;
}

.prompt {
  font-family: var(--font-family-monospace);
  color: var(--accent);
  font-weight: 600;           /* makes it bolder but still subtle */
  letter-spacing: 0.3px;      /* adds definition */
  opacity: 0.95;              /* stronger readability */
  margin: 0.5rem 0;
  text-align: left;
}



/* --- Improved readability and spacing adjustments --- */

/* General body text */
body, p, li {
  color: var(--foreground);
  font-weight: 500;
}

/* Latest blog links */
.latest a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

.latest a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer readability and spacing */
footer {
  opacity: 0.95;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

/* Optional divider before footer */
.section-divider {
  border: 0;
  border-top: 2px solid var(--accent);
  opacity: 0.8;
  width: 100%;
  margin: 2rem 0 1.5rem 0;
}

/* Optional: spacing for contact icons */
.fa-brands, .fa-solid {
  margin-right: 0.4rem;
  font-size: 1rem;
  vertical-align: middle;
}

/* Optional: make contact links slightly larger */
.contact-links a {
  display: inline-block;
  margin-bottom: 0.3rem;
  text-decoration: none;
  color: var(--foreground);
}

.contact-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 4px rgba(92, 64, 0, 0.3);
}
/* Centered footer links (Changelog / Privacy Notice) */
.footer-links {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 4px rgba(92, 64, 0, 0.3);
}

/* Footer container for centered layout */
.footer-container {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-container a {
  color: var(--foreground);
  text-decoration: none;
}

.footer-container a:hover {
  color: var(--accent);
  text-shadow: 0 0 4px rgba(92, 64, 0, 0.3);
}

/* ---------- Responsive tweaks for Portal by Adrianne ---------- */

/* Fluid type scale */
h1 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
body, p, li { font-size: clamp(0.975rem, 1.2vw, 1.05rem); line-height: 1.75; }

/* Comfy content width */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem);
}

/* Media that scales nicely */
img, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Navigation: flexible, wrap on small screens */
.terminal-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0.35rem 0 1rem;
}

/* Tap targets & rhythm */
.terminal-menu a {
  display: inline-block;
  padding: 0.25rem 0.1rem;
  line-height: 1.4;
  text-decoration: none;
}

/* Visual separators on wider screens (insert dots via CSS, not HTML) */
@media (min-width: 641px) {
  .terminal-menu a + a::before {
    content: "·";
    opacity: 0.8;
    margin: 0 0.4rem;
  }
}

/* On smaller screens, remove separators & add bigger gaps */
@media (max-width: 640px) {
  .terminal-menu {
    gap: 0.5rem 0.75rem;
  }
}

/* Improve readability of the “prompt” line when it wraps */
.prompt {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Prevent horizontal scroll explosions from code blocks */
pre, code, kbd, samp {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Footer spacing on mobile */
@media (max-width: 640px) {
  .footer-container { padding: 0 0.5rem; }
}
/* --- Credential Badges layout --- */
.badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.badge-row img {
  width: 140px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.badge-row img:hover {
  transform: scale(1.05);
}