/* ============================================================
   Amaury Gouverneur — personal site stylesheet
   ============================================================ */

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

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #494e52;
  background: #fff;
  line-height: 1.6;
}

a { color: #52adc8; }
a:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   Masthead
   ---------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid #f2f2f4;
}

.masthead__inner {
  max-width: 925px;
  margin: 0 auto;
  padding: 0.6em 1em;
}

.masthead__title {
  font-size: 1.25em;
  font-weight: bold;
  color: #494e52;
  text-decoration: none;
}

.masthead__title:hover {
  color: #2e3235;
  text-decoration: none;
}

/* ----------------------------------------------------------
   Two-column layout
   ---------------------------------------------------------- */

#main {
  max-width: 925px;
  margin: 2em auto;
  padding: 0 1em;
  display: flex;
  align-items: flex-start;
  gap: 2em;
}

/* ----------------------------------------------------------
   Sidebar / author profile
   ---------------------------------------------------------- */

.sidebar {
  width: 200px;
  flex-shrink: 0;
  font-size: 0.75em;
  line-height: 1.5;
}

.author__avatar img {
  display: block;
  width: 100%;
  max-width: 175px;
  border-radius: 50%;
  padding: 5px;
  border: 1px solid #f2f2f4;
}

.author__name {
  margin: 10px 0;
  font-size: 1rem;
}

.author__bio {
  margin: 0 0 20px;
  color: #7a8288;
}

.author__urls {
  list-style: none;
  margin: 0;
  padding: 0;
}

.author__urls li { margin-bottom: 5px; }

.author__urls a,
.author__urls span {
  color: #494e52;
  text-decoration: none;
  display: block;
  padding: 2px 0;
}

.author__urls a:hover { text-decoration: underline; }

.author__urls i {
  width: 1.2em;
  margin-right: 4px;
  color: #7a8288;
}

/* ----------------------------------------------------------
   Page content
   ---------------------------------------------------------- */

.page { flex: 1; min-width: 0; }

.page__content h2 {
  padding-bottom: 0.5em;
  border-bottom: 1px solid #f2f2f4;
}

.page__content h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #f2f2f4;
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page__content p,
.page__content li,
.page__content dl { font-size: 1em; }

.page__content p { margin: 0 0 1.3em; }

.page__content a { text-decoration: underline; }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.page__footer {
  margin-top: 3em;
  padding: 1em;
  border-top: 1px solid #f2f2f4;
  background: #f2f2f4;
  text-align: center;
  font-size: 0.75em;
  color: #7a8288;
}

.page__footer a { color: #7a8288; }

/* ----------------------------------------------------------
   In-page section navigation
   ---------------------------------------------------------- */

.page-nav {
  display: flex;
  gap: 1.5em;
  margin-bottom: 1.8em;
  padding-bottom: 0.6em;
  border-bottom: 1px solid #f2f2f4;
  font-size: 0.875em;
}

.page-nav a {
  color: #7a8288;
  text-decoration: none;
}

.page-nav a:hover {
  color: #494e52;
  text-decoration: none;
}

/* ----------------------------------------------------------
   Publication venue badge and description
   ---------------------------------------------------------- */

.pub-venue {
  font-size: 0.875em;
  font-weight: 600;
  color: #494e52;
}

.pub-desc {
  display: block;
  font-size: 0.875em;
  color: #7a8288;
  margin-top: 0.2em;
}

/* ----------------------------------------------------------
   Wide layout (chess-gpt — no sidebar, full width)
   ---------------------------------------------------------- */

body.page--wide #main { max-width: 1280px; }
body.page--wide .sidebar { display: none; }

/* ----------------------------------------------------------
   Responsive — stack sidebar above content on small screens
   ---------------------------------------------------------- */

@media (max-width: 768px) {
  #main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    gap: 1em;
    align-items: flex-start;
  }

  .author__avatar { flex-shrink: 0; }

  .author__avatar img {
    width: 60px;
    padding: 0;
    border: none;
  }

  .author__urls { display: none; }
}
