/* ==========================================================================
   About Me — editorial long-form treatment.

   Aesthetic direction: a contemplative literary essay. Asymmetric photo
   on the left (sticky as the reader scrolls), generously-spaced prose on
   the right with hairline ornaments echoing the homepage section-line.
   Drop cap on the lead. H2 ornaments mark each chapter break. Closing
   CTA box mirrors the pillar guide.
   ========================================================================== */

* {
  box-sizing: border-box;
}

main {
  padding-top: var(--header-height);
  background: var(--color-7-white);
}

#about-me {
  background: var(--color-7-white);
}

/* Two-column layout. align-items: stretch makes the left column as tall
   as the right column's prose, which gives the sticky photo something to
   stick within. (The previous about-me.js script that explicitly set the
   image height to match the right column has been disabled — pages now
   load no-js.js. Without that script, stretch is safe.) */
.container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: start;
}

.left-column {
  flex: 1;
  width: 50%;
}

.right-column {
  flex: 1;
  padding: 4em clamp(1.5em, 5vw, 5em) 5em;
  max-width: 760px;
}

/* Sticky photo — figure sticks to the top of the viewport as the reader
   scrolls; image inside renders at natural aspect ratio. */
.about-me-figure {
  margin: 0;
  position: sticky;
  top: var(--header-height);
}
.about-me-pic {
  display: block;
  width: 100%;
  height: auto;
}

.alt-header {
  display: none;
}

/* ──────────────────────────────────────────────────────────────────
   Typography
   ────────────────────────────────────────────────────────────────── */

h1 {
  color: var(--color-3-grey);
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

/* Visible byline — replaces the previously-hidden #charles-lobo anchor.
   Editorial subhead with letter-spaced caps and a hairline rule beneath. */
.about__byline {
  font-size: var(--font-size-tiny);
  color: var(--color-4-dark-green);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 2.4em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--color-4-dark-green);
  border-color: rgba(114, 130, 127, 0.5);
  line-height: 1.6;
}

p {
  font-size: 1.0625rem; /* ~17px — slight upshift from base for editorial feel */
  line-height: 1.72;
  margin: 0 0 1.1em;
  color: var(--color-12-dark-green);
}

.right-column a {
  color: var(--color-8-deep-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.right-column a:hover {
  color: var(--color-16-another-green);
}

strong {
  color: var(--color-3-grey);
  font-weight: 500;
}

/* Drop cap — printerly opening on the first paragraph after the byline */
.about__byline + p::first-letter {
  font-size: 4em;
  float: left;
  line-height: 0.88;
  font-weight: 300;
  color: var(--color-8-deep-green);
  margin: 0.05em 0.1em 0 0;
  letter-spacing: -0.03em;
}

/* H2 — chapter break with hairline ornament above */
h2 {
  position: relative;
  margin: 3.4em 0 0.9em;
  padding-top: 1.6em;
  font-size: var(--font-size-larger);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--color-3-grey);
}
h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4em;
  height: 1px;
  background: var(--color-4-dark-green);
  opacity: 0.55;
}

/* H3 — sub-section. Smaller, tighter, no rule. */
h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-3-grey);
  margin: 2em 0 0.5em;
  line-height: 1.3;
}

/* Lists — gentle indent, list-style restraint */
ul, ol {
  margin: 0 0 1.2em 0.4em;
  padding-left: 1.2em;
  line-height: 1.7;
  color: var(--color-12-dark-green);
}
li {
  margin-bottom: 0.4em;
  font-size: 1.0625rem;
}

/* ──────────────────────────────────────────────────────────────────
   Closing CTA — uses the shared .cta-box from base.css
   ────────────────────────────────────────────────────────────────── */
.about-cta {
  margin-top: 4em;
  width: 100%;
  display: block;
}

/* ──────────────────────────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .left-column {
    display: none;
  }
  .right-column {
    padding: 1.6em 1.4em 3em;
    max-width: 100%;
  }
  .alt-header {
    display: block;
    margin: 0 -1.4em 2.4em;
  }
  .alt-header img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    object-position: center 25%;
  }
  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .about__byline {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    margin-bottom: 1.8em;
    padding-bottom: 1em;
  }
  .about__byline + p::first-letter {
    font-size: 3.4em;
  }
  h2 {
    margin-top: 2.6em;
    padding-top: 1.2em;
  }
}

/* ──────────────────────────────────────────────────────────────────
   Header — same as other pages (fixed top)
   ────────────────────────────────────────────────────────────────── */

#header {
  position: fixed;
  height: var(--header-height);
  width: 100%;
  background: rgba(255, 255, 255);
  box-shadow: 0 1px 0 0 #eee, 0 0 1px 0 #eee;
  color: var(--color-9-grey);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.header__icon-cont {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#logo-icon {
  display: inline-block;
  height: 32px;
  margin-left: 1em;
  margin-right: 0.5em;
}
#header a {
  color: var(--color-9-grey);
  cursor: pointer;
  text-decoration: none;
}
#header a:hover {
  color: var(--color-11-red);
}
.header__nav {
  padding-right: 1em;
}
.header__nav a {
  display: inline-block;
  margin-right: 1em;
}
.header__nav img {
  height: 0.7em;
  position: relative;
  top: -4px;
  left: -1px;
  opacity: 0.5;
}
#header a:hover img {
  opacity: 0.8;
}
.header__nav img.star1-1 {
  height: 0.6em;
  top: +4px;
  left: -2px;
}

/* ──────────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────────── */

#footer {
  background: var(--color-8-deep-green);
  color: var(--color-9-grey);
  text-align: center;
  font-size: var(--font-size-small);
  padding: 1.4em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}
.map {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.loc {
  display: block;
  text-align: left;
  margin-left: 1em;
}
.social-media a {
  display: flex;
  flex-direction: row;
  color: var(--color-8-grey);
  align-items: center;
  line-height: 1em;
  font-size: 1em;
  text-decoration: none;
}
.social-media img {
  width: 23px;
  display: inline-block;
  margin-right: 4px;
}
