/* ==========================================================
   Custom styles for annienobear.github.io

   Layered on top of hugo-theme-console (terminal-0.7.4.min.css
   + console.css). Loaded from layouts/_default/baseof.html
   (every theme-rendered page) and layouts/index.html (the
   homepage, which is a full template override).

   Design intent: keep the terminal chrome in monospace, but
   set running prose in a text face at a readable measure.
   ========================================================== */


/* ---------- 1. Page width and gutters ---------------------
   The theme ships --page-width: 60em. The homepage template
   overrode .container to 1800px, which is wider than a laptop
   viewport, so content ran edge to edge on 20px of padding.  */

:root {
  --page-width: 1120px;
  --rule: #e3e6e8;
  --muted: #6b7075;
}

body.terminal {
  /* terminal.css sets display:table-cell on body, which makes
     horizontal centring of .container unreliable. */
  display: block;
}

.container,
.container-fluid {
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}


/* ---------- 2. Typography --------------------------------- */

body.terminal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The terminal identity stays monospace. */
.terminal-nav,
.terminal-nav a,
.terminal-logo,
.terminal-logo *,
.terminal-prompt,
.terminal-menu,
.terminal-menu a,
h1, h2, h3, h4, h5, h6,
.date,
.venue,
.badge,
.link-badges,
.contact-links,
.award-badge,
code, pre, kbd, samp {
  font-family: "Menlo", "Monaco", "Lucida Console", "Liberation Mono",
               "DejaVu Sans Mono", monospace;
}

/* terminal.css styles `.terminal strong` with its own font-size,
   font-style, font-family and color, so bolding an author name
   also made it monospace, upright, larger and darker than the
   co-authors around it. Bold should only ever change weight. */
.terminal strong,
.terminal b {
  font-size: inherit;
  font-style: inherit;
  font-family: inherit;
  color: inherit;
  font-weight: 700;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem;  margin: 2.3rem 0 0.9rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1rem;    margin: 1.4rem 0 0.35rem; }

p  { margin: 0 0 1.05rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem 0; }

/* Comfortable measure for running text. Scoped so it does not
   squeeze the nav, the badge rows or table cells. */
.container > p,
.container > ul:not(.contact-links),
.container > ol,
.container > blockquote {
  max-width: 68ch;
}

a  { text-decoration-thickness: 1px; text-underline-offset: 2px; }


/* ---------- 3. Contact / profile links -------------------- */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}
.contact-links a { font-weight: 600; white-space: nowrap; }


/* ---------- 4. Homepage two-column ------------------------ */

.two-col {
  display: flex;
  gap: 52px;
  align-items: flex-start;
  margin-top: 1.4rem;
}
.col-left  { flex: 1.4 1 0; min-width: 0; }
.col-right { flex: 1 1 0;   min-width: 0; }

/* The intro row uses the same grid as the content below it, so the
   page has one column edge all the way down instead of a capped
   paragraph with dead space beside it. */
.two-col.intro { margin-top: 0; margin-bottom: 2.4rem; }
.two-col.intro h1 { margin-top: 2.3rem; }
.two-col.intro p  { margin-bottom: 0; }

@media (max-width: 860px) {
  .two-col { flex-direction: column; gap: 30px; }
  .col-left, .col-right { flex: 1 1 auto; width: 100%; }
}


/* ---------- 5. Publication entries ------------------------ */

.posts-list .post { margin-bottom: 1.9rem; }

.pub-title { max-width: none; margin: 0 0 4px; line-height: 1.3; }
.pub-title a          { text-decoration: none; }
.pub-title a:hover    { text-decoration: underline; }

.date    { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.authors { font-size: 0.9rem; }
.venue   { font-size: 0.82rem; }
.desc    { font-size: 0.94rem; }

.link-badges { margin: 10px 0 0 !important; }
.link-badges .badge {
  margin-right: 12px;
  font-size: 0.78rem;
  text-decoration: none;
}
.link-badges .badge:hover { text-decoration: underline; }

/* The original gold (#FFD700) was close to invisible on white. */
.award-badge {
  color: #96700a;
  font-size: 0.84rem;
  font-weight: 700;
  margin: 5px 0;
}
.award-badge::before { content: "🏆 "; }


/* ---------- 6. Media cards -------------------------------- */

.cards { display: grid; gap: 15px; }
.media-card {
  border-left: 2px solid var(--rule);
  padding-left: 13px;
}
.media-card .headline { margin: 0 0 3px; font-size: 0.94rem; line-height: 1.45; }
.media-card .meta     { margin: 0; font-size: 0.83rem; color: var(--muted); }


/* ---------- 7. Footer ------------------------------------- */

.footer {
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
  color: var(--muted);
}


/* ---------- 8. Small screens ------------------------------ */

@media (max-width: 560px) {
  body.terminal { font-size: 15.5px; }
  h1 { font-size: 1.35rem; }
  .two-col { gap: 26px; }
}
