/* ============================================================
   aman190202.github.io — after the quiet style of qy.co
   White ground, hairline dividers, small dense text,
   lowercase nav that turns bold when you look at it.
   ============================================================ */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

@media (min-width: 38em) {
  html {
    font-size: 16px;
  }
}

body {
  color: #515151;
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
}

a {
  color: #268bd2;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid #268bd2;
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.1;
  color: #333;
  letter-spacing: -0.025rem;
}

h1 {
  font-size: 1.1rem;
}

h2 {
  font-size: 1rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

strong {
  color: #333;
  font-weight: 600;
}

em {
  font-style: italic;
}

img {
  display: block;
  max-width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 1.5rem auto;
}

/* ── Frame: masthead cell | hairline | content cell ── */

.container {
  padding: 2rem 1.5rem;
  margin-left: 50px;
  display: table;
  border-collapse: separate;
  border-spacing: 0;
}

@media (min-width: 38rem) {
  .container {
    padding: 4rem 0;
  }
}

.masthead {
  width: 150px;
  display: table-cell;
  vertical-align: top;
  padding-left: 1rem;
}

.masthead-title {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.masthead-title a {
  color: #333;
}

.masthead-title a:hover,
.masthead-title a:focus {
  text-decoration: none;
}

.masthead-nav ul {
  list-style: none;
  margin: 0 0 2rem 35px;
  padding: 0;
}

.masthead-nav li {
  margin-bottom: 0.25rem;
}

.masthead-nav a {
  color: #aaa;
  font-weight: 300;
  text-transform: lowercase;
  transition: all 0.2s ease;
}

.masthead-nav a:hover,
.masthead-nav a:focus {
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.masthead-nav a[aria-current="page"] {
  color: #333;
  font-weight: 600;
}

.content {
  display: table-cell;
  vertical-align: top;
  padding-left: 40px;
  border-left: 1px solid #dedfe0;
  font-size: 13px;
  position: relative;
}

/* Homepage: no full-height rule — the hairline spans only the photo */
.content.list {
  border-left: none;
  max-width: 700px;
}

.content.post {
  width: 465px;
  max-width: 650px;
  line-height: 1.7;
}

.page-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.025rem;
  line-height: 1.1;
}

/* ── Homepage hero ── */

.hero-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 80%;
}

.hero-image {
  display: block;
  width: 100%;
}

.content.list .hero-image-wrapper::after {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: #dedfe0;
}

.hero-caption {
  margin: 0.6rem 0 0;
  font-size: 12px;
  font-style: italic;
  color: #999;
}

/* ── Entries (movies, restaurants) — the books-page anatomy ── */

.entry {
  padding: 15px 0;
}

.entry::after {
  content: "";
  display: table;
  clear: both;
}

.entry h3 {
  margin-bottom: 0.5rem;
}

.cover {
  float: left;
  width: 122px;
  height: 180px;
  margin: 0 12px 0 0;
}

img.cover {
  object-fit: cover;
}

/* Text stand-in until a real cover/poster image goes in its place */
.cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: #f6f6f6;
  border: 1px solid #e9e9e9;
  color: #9a9a9a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}

/* ── About: papers & projects ── */

.content.post h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.paper-item,
.project-item {
  margin-bottom: 1.2rem;
}

.item-title {
  font-weight: 600;
  color: #333;
}

.item-title a {
  color: #333;
}

.item-meta {
  font-size: 12px;
  color: #999;
}

.item-venue {
  font-size: 12px;
  font-style: italic;
  color: #268bd2;
}

.colophon {
  margin-top: 2.5rem;
  font-size: 12px;
  font-style: italic;
  color: #999;
}

/* ── Small screens: masthead stacks, nav flows inline ── */

@media (max-width: 850px) {
  .container {
    display: block;
    margin: 0;
    padding: 25px 1rem 2rem;
  }

  .masthead {
    display: block;
    width: 100%;
    padding: 0;
  }

  .masthead-title {
    margin-bottom: 0.7rem;
    line-height: 1.1;
  }

  .masthead-nav {
    font-size: 12px;
  }

  .masthead-nav ul {
    margin: 0 0 0.75rem;
  }

  .masthead-nav li {
    display: inline;
    margin: 0;
  }

  .masthead-nav li::after {
    content: " | ";
    color: #ddd;
  }

  .masthead-nav li:last-child::after {
    content: "";
  }

  .content {
    display: block;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid #dedfe0;
    padding: 1rem 0 0;
  }

  .content.post {
    width: auto;
  }

  .hero-image-wrapper {
    max-width: 100%;
  }

  .content.list .hero-image-wrapper::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
