/* =====================================================================
   ABOUT PAGE
   One centred column that scrolls normally. The sticky header lives in
   page-header.css (shared with the gallery).
   (about.css is left alone: the project pages still use it.)
   ===================================================================== */

/* ---------- column ---------- */

.about-main {
  box-sizing: border-box;
  width: min(780px, 100% - 2 * var(--gutter));
  margin: clamp(20px, 5vh, 56px) auto max(48px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-card,
.about-contact {
  box-sizing: border-box;
  padding: clamp(22px, 4vw, 40px);
  background-color: var(--dark-accent);
  border-radius: 12px;
}

.about-heading {
  margin: 0 0 0.75em;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--light-primary);
}
.about-heading.small {
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
  margin-bottom: 1em;
}

.about-card p {
  max-width: 62ch;
  margin: 0 0 1em;
  font-size: clamp(15px, 1.25vw + 8px, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--light-secondary);
}
.about-card p:last-child { margin-bottom: 0; }

.about-card a {
  font-weight: 500;
  color: var(--light-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.about-card a:hover { text-decoration-thickness: 2px; }

/* ---------- contact ---------- */

.about-contact .email {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: clamp(15px, 1.4vw + 8px, 20px);
  font-weight: 500;
  color: var(--light-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1.1em;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--light-primary);
  background-color: var(--dark-primary);
  border: 2px solid var(--light-primary);
  border-radius: 5px;
  transition: background-color 0.2s ease;
}
.socials a:hover { background-color: var(--dark-secondary); }
.socials i { font-size: 1.15em; }

.about-main a:focus-visible {
  outline: 2px solid var(--light-primary);
  outline-offset: 3px;
}

/* ---------- phones & portrait tablets ---------- */

@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {

  .about-main { margin-top: 16px; gap: 8px; }


  .socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .socials a { justify-content: center; width: 100%; box-sizing: border-box; }
}
