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

html {
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family:
    'Source Sans Pro',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-weight: 300;
  color: #4472a8;
  background: #ffffff;
}

body:not(.home-section-1) {
  padding-bottom: 3rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* --- Home: centered block --- */
body.home-section-1 {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-section-1 > div {
  padding: 2rem 1.5rem;
}

/* Unlisted page (not linked from site nav) */
body.indira-page.home-section-1 {
  text-align: center;
}

.love-note {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  line-height: 1.65;
  font-weight: 300;
  color: #4472a8;
}

.love-note p {
  margin: 0;
}

.header {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* --- Site header + nav (inner pages + home list) --- */
.section-1 {
  text-align: center;
  padding: 2.5rem 1.5rem 0;
}

.section-1 .header {
  margin-bottom: 0;
}

/* Wrapper: center the ul; ul carries the horizontal flex nav */
div.section-2 {
  text-align: center;
  margin: 0 0 2rem;
  padding: 0 1.5rem;
}

ul.section-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 400;
}

ul.section-2 > li {
  list-style: none;
}

ul.section-2 a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: rgba(68, 114, 168, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* Inner pages: shared content column (Work, Talks, About) */
.page-content {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a5f8f;
}

/* --- Work page (project entries) --- */
.company-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: #4472a8;
  font-style: italic;
  text-align: center;
}

.company-title:first-child {
  margin-top: 0;
}

.project-description {
  margin-bottom: 2.5rem;
}

.project-description .project-description {
  margin-bottom: 0;
  margin-top: 1.5rem;
}

.project-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: #4472a8;
}

.project-title u {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.project-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.25rem 2rem;
  align-items: start;
  margin-top: 0.5rem;
}

.project-container > .project-detailed-description:only-child {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .project-container {
    grid-template-columns: 1fr;
  }
}

.project-title-and-photo {
  min-width: 0;
}

.project-title-and-photo a {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}

.project-title-and-photo img {
  width: 100%;
  display: block;
}

.project-title-and-photo a.project-image-frame {
  width: 100%;
  height: clamp(170px, 24vw, 220px);
}

.project-title-and-photo img.project-image-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.project-detailed-description p {
  margin: 0 0 1rem;
}

.project-detailed-description p:last-child {
  margin-bottom: 0;
}

.project-detailed-description a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* --- Talks --- */
.writing-info h2 {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: #4472a8;
}

.writing-info h2 u {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.writing-info p {
  margin: 0 0 1.15rem;
}

.writing-info a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* --- About --- */
.about-more-info-section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: #4472a8;
}

.about-more-info-section h2 u {
  text-decoration: underline;
  text-decoration-color: rgba(68, 114, 168, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.about-more-info-section > div:first-child p {
  margin: 0 0 1rem;
}

.about-more-info-section > div:first-child p:last-child {
  margin-bottom: 0;
}

.about-more-info-section a {
  text-decoration: underline;
  text-decoration-color: rgba(68, 114, 168, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.about-me-links {
  margin-top: 2.5rem;
}

.about-me-links h2 {
  margin-bottom: 0.75rem;
}

.about-me-links span {
  display: inline-block;
  margin-right: 1.25rem;
  margin-bottom: 0.5rem;
}

.about-me-links span:last-child {
  margin-right: 0;
}

/* --- Writings (static pages) --- */
.writings-tags-page .writings-lede {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a5f8f;
}

.writings-tags-page .writings-lede a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.writings-index .writings-browse-tags {
  margin: 2rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a5f8f;
}

.writings-index .writings-browse-tags a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.writings-item {
  margin: 0 0 1.35rem;
  padding: 0;
  line-height: 1.55;
}

.writings-item-title {
  display: inline;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.writings-item-date {
  margin-left: 0.5rem;
  font-size: 0.95rem;
  color: #5a7aa3;
  white-space: nowrap;
}

.writings-item-tags {
  display: block;
  margin-top: 0.35rem;
}

.tag-pill {
  display: inline-block;
  margin: 0 0.4rem 0.25rem 0;
  padding: 0.1rem 0.45rem;
  font-size: 0.88rem;
  border: 1px solid #8fa8c9;
  border-radius: 4px;
  text-decoration: none !important;
}

.tag-pill:hover {
  background: rgba(68, 114, 168, 0.08);
  text-decoration: none !important;
}

.post-kicker {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.post-kicker a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.post-article .post-title {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 400;
  color: #4472a8;
  line-height: 1.25;
}

.post-meta {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #5a7aa3;
}

.post-tags {
  margin: 0 0 1.5rem;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a5f8f;
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.post-body h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #4472a8;
}

.post-body hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #c5d4e8;
}

.post-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.post-body li {
  margin-bottom: 0.35rem;
}

.post-body pre {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  background: #f4f7fb;
  border: 1px solid #d6e1ed;
  border-radius: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.post-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.92em;
  color: #2c4a6e;
}

.post-body pre code {
  font-size: 0.88rem;
  line-height: 1.55;
}

.tag-section {
  margin: 0 0 2rem;
}

.tag-heading {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 400;
  color: #4472a8;
}

.tag-post-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: #3a5f8f;
}

.tag-post-list li {
  margin-bottom: 0.5rem;
}

.tag-post-list a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
