/* ---------------------------------------------------------------------------
   Drop-in replacement for the Barron template's stylesheet.css.
   Same class names, so index.html needs no changes.

   Two knobs to tune first:
     --accent      your green
     --font-body   swap the serif stack for a sans one if you change your mind
   --------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600&display=swap');

:root {
  --accent:      #2f7d5c;
  --accent-dark: #235f46;
  --ink:         #1a1a18;
  --ink-soft:    #43433d;
  --ink-muted:   #6b6b63;
  --rule:        #e4e2da;

  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Base ---------------------------------------------------------------- */

body {
  margin: 0;
  padding: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, td, th, tr, p, a, li {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}

strong {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

/* --- Links -------------------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-bottom-color: transparent;
}

/* --- Headings ----------------------------------------------------------- */

.name {
  padding-top: 24px;
  margin: 0 0 .5em;
  font-family: var(--font-body);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pronouns {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-muted);
  vertical-align: middle;
}

/* --- Tab navigation ------------------------------------------------------ */

.tabs {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.tabs a {
  font-size: 15px;
  padding-bottom: 2px;
}

.tabs a.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

h2 {
  margin: 2.25em 0 .85em;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  padding-bottom: .35em;
  border-bottom: 1px solid var(--rule);
}

/* Paper titles now carry real hierarchy instead of matching body size */
.papertitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* Author lines and venue lines sit back a step */
.papertitle + br + em,
em {
  color: var(--ink-muted);
  font-style: normal;
}

/* --- Thumbnails --------------------------------------------------------- */

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
}

img {
  border-radius: 3px;
}

/* --- Misc --------------------------------------------------------------- */

span.highlight {
  background-color: #f2f6ee;
  padding: 0 2px;
}

.colored-box {
  color: var(--ink);
  padding: 20px;
  display: inline-block;
  border-radius: 10px;
}

/* --- Small screens ------------------------------------------------------ */

@media (max-width: 640px) {
  body, td, th, tr, p, a, li { font-size: 16px; }
  .name { font-size: 28px; }
  h2 { font-size: 20px; }
  .one, .two { width: 120px; height: 120px; }
  .tabs { justify-content: flex-start; gap: 16px; }
}
