/* ─────────────────────────────────────────
   shibasheikh.in — CSS
   Font: Helvetica Neue (macOS/iOS system) → Figtree (Google Fonts fallback)
   Layout: named-area CSS grid, white bg, minimal professional
───────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Tokens ── */
:root {
  --white:       #ffffff;
  --black:       #111111;
  --gray-label:  #888888;
  --gray-body:   #222222;
  --pad:         48px;   /* consistent horizontal margin used everywhere */
  --col-gap:     48px;   /* gap between left and right columns */
  --font: 'Helvetica Neue', Helvetica, 'Figtree', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─────────────────────────────────────────
   HEADER / NAV
───────────────────────────────────────── */
header {
  padding: 24px var(--pad) 24px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icons a {
  color: var(--black);
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.nav-icons a:hover { opacity: 0.5; }

/* ─────────────────────────────────────────
   PAGE GRID
   Named areas let us place each element
   independently — no nesting needed.

   Columns: [pad] [left-col] [gap] [right-col] [pad]
   We use padding on the outer grid for the
   horizontal margins, and the two content
   columns are equal width.
───────────────────────────────────────── */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows:
    auto   /* row 1: hero + photo     */
    auto   /* row 2: subhead + creds  */
    auto   /* row 3: body-para        */
    auto;  /* row 4: closing          */
  grid-template-areas:
    "hero    photo"
    "sub     creds"
    "bodpara bodpara-empty"
    "closing closing";
  column-gap: var(--col-gap);
  padding-left: var(--pad);
  padding-bottom: 0;
}

/* ── AREA: hero heading ── */
.hero-heading {
  grid-area: hero;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--black);
  padding-top: 44px;
  padding-right: var(--col-gap);
  padding-bottom: 40px;
  align-self: start;
}

.hero-heading a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.hero-heading a:hover { opacity: 0.55; }

/* ── AREA: photo ── */
.photo-wrap {
  grid-area: photo;
  /* No top or bottom padding — photo fills the cell flush */
  padding-right: var(--pad);
  overflow: hidden;
  background: #fff;
}

.cover-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ── AREA: subheading ── */
.subheading {
  grid-area: sub;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--black);
  padding-top: 28px;
  padding-right: var(--col-gap);
  padding-bottom: 36px;
  align-self: start;
}

/* ── AREA: credentials ── */
.credentials {
  grid-area: creds;
  padding-top: 28px;
  padding-right: var(--pad);
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: start;
}

.cred-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cred-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gray-label);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cred-line {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-body);
}

/* ── AREA: body paragraph ── */
.body-para {
  grid-area: bodpara;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--gray-body);
  padding-right: var(--col-gap);
  padding-bottom: 72px;
  /* Constrain to left half — naturally handled by grid area */
  max-width: 100%;
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The right cell in row 3 is intentionally empty (bodpara-empty) */

/* ── AREA: closing ── */
.closing {
  grid-area: closing;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--black);
  padding-right: calc(50% + var(--col-gap) / 2);
  padding-bottom: 80px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid #e5e5e5;
  padding: 22px var(--pad);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-label);
  letter-spacing: 0.01em;
}

/* ─────────────────────────────────────────
   RESPONSIVE — tablet
───────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --pad: 28px; --col-gap: 28px; }

  .page-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "photo"
      "sub"
      "creds"
      "bodpara"
      "closing";
    padding-left: 0;
    column-gap: 0;
  }

  .hero-heading {
    padding: 36px var(--pad) 32px;
  }

  .photo-wrap {
    padding-right: 0;
    height: 380px;
  }

  .subheading {
    padding: 28px var(--pad) 28px;
  }

  .credentials {
    padding: 0 var(--pad) 36px;
  }

  .body-para {
    padding: 0 var(--pad) 48px;
  }

  .closing {
    padding: 0 var(--pad) 60px;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — mobile
───────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --pad: 20px; }

  .photo-wrap { height: 300px; }

  .hero-heading {
    font-size: 1.75rem;
    padding-bottom: 28px;
  }
}
