/* =========================================
   ABOUT PAGE — RESPONSIVE EDITORIAL LAYOUT
   4 BREAKPOINTS
   ========================================= */

/* 01 — GLOBAL */
body[data-page="about"] {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body[data-page="about"] > .site-header {
  flex-shrink: 0;
}

.about-canvas {
  --bio-width: 504px;
  --page-side: 6vw;
  --column-gap: 8vw;
  --photo-width: 375px;
  --heading-size: 58px;

  flex: 1;
  display: grid;

  width: 100%;
  max-width: 1530px;
  min-width: 0;
  margin-inline: auto;

  padding: 55px var(--page-side) 65px;

  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;

  grid-template-areas:
    "heading portrait"
    "bio portrait"
    "experience contact";

  column-gap: var(--column-gap);

  background: #fff;
  color: #111;

  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: 14px;
  line-height: 1.4;
  /* transform: scale(1.2); */
}

/* 02 — HEADING */
.about-heading-group {
  grid-area: heading;
  position: relative;

  align-self: start;
  justify-self: start;

  width: max-content;
  max-width: 100%;
}

.about-heading {
  margin: 0;

  font-family: var(--font-main, "Xanh Mono", monospace);
  font-size: var(--heading-size);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  white-space: nowrap;
}

/* 03 — BIO: NEVER CHANGE WIDTH */
.about-bio {
  grid-area: bio;
  position: relative;

  align-self: center;
  justify-self: start;

  width: var(--bio-width);
  min-width: var(--bio-width);
  max-width: var(--bio-width);

  margin: 0;
  padding: 0;

  font-size: 16.8px;
  line-height: 1.4;
  top: 30px;
}

.about-bio p,
.about-experience p {
  margin: 0;
  font: inherit;
}

/* 04 — PORTRAIT */
/* .about-portrait {
  grid-area: portrait;
  position: relative;

  align-self: start;
  justify-self: center;

  width: min(100%, var(--photo-width));
  aspect-ratio: 289 / 319;
  min-width: 0;
}

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

.portrait-flourish {
  position: absolute;
  inset: -7%;
  width: 114%;
  height: 114%;
  object-fit: fill;
  pointer-events: none;
} */

.about-portrait {
  grid-area: portrait;
  position: relative;
  align-self: start;
  justify-self: center;

  width: min(100%, var(--photo-width));
  aspect-ratio: 289 / 319;
  min-width: 0;
}

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

.portrait-flourish {
  position: absolute;

  /* Doodle size relative to portrait */
  width: 133%;
  height: auto;
  max-width: none;

  /* Center the doodle over the portrait */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* 05 — EXPERIENCE */
.about-experience {
  grid-area: experience;

  align-self: end;
  justify-self: start;

  min-width: 0;
  /* padding-top: 35px */
  /* padding-top: 40px; */
  padding-top: 70px;
}

.experience-logo {
  display: inline-block;
  vertical-align: bottom;
  line-height: 0;
  text-decoration: none;
}

.experience-logo img {
  display: block;
  height: 2.3em;
  width: auto;
  max-width: 4.5em;
  object-fit: contain;
  object-position: bottom;
}

/* 06 — CONTACT */
.about-contact {
  grid-area: contact;

  align-self: end;
  justify-self: start;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
  padding-top: 35px;

  color: var(--link-color, #a4b51b);
}

.about-contact h2 {
  margin: 0 0 5px;

  font-family: var(--font-main, "Xanh Mono", monospace);
  font-size: var(--type-medium, 18px);
  font-weight: 400;
}

.about-contact a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: inherit;
}

/* 07 — DOODLES: FIXED PIXEL POSITIONING */
.doodle-anchor {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.doodle,
.about-heading-doodle {
  position: absolute;
  display: block;

  height: auto;
  max-width: none;

  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.about-heading-doodle {
  width: 108px;
  top: 100%;
  left: 80%;
}

.doodle-name {
  width: 300px;
  top: -68px;
  left: -15px;
}

.doodle-writes {
  width: 260px;
  top: -24px;
  left: -40px;
}

.doodle-movie {
  width: 330px;
  top: 10px;
  left: -70px;
}

/* 08 — INTERACTIVE TEXT */
.about-bio .interactive-text,
.about-bio .interactive-text .letter,
.about-experience .interactive-text,
.about-experience .interactive-text .letter,
.about-contact a .interactive-text,
.about-contact a .interactive-text .letter {
  font-family: var(--font-body, "Inter Tight", sans-serif);
}

.about-heading .interactive-text,
.about-heading .interactive-text .letter,
.about-contact h2 .interactive-text,
.about-contact h2 .interactive-text .letter {
  font-family: var(--font-main, "Xanh Mono", monospace);
}

/* =========================================
   09 — LARGE DESKTOP: 1440px+
   MacBook Pro 16"
   ========================================= */

@media (min-width: 1440px) {
  .about-canvas {
    --page-side: 8vw;
    --column-gap: 8vw;
    --photo-width: 375px;
    --heading-size: 58px;

    padding-top: 65px;
    padding-bottom: 90px;
  }

  .about-bio {
    align-self: center;
  }

  .about-experience {
    padding-top: 60px;
  }

  .about-contact {
    padding-top: 60px;
  }
}

/* =========================================
   10 — LAPTOP: 1025px–1439px
   MacBook Air
   ========================================= */

@media (min-width: 1025px) and (max-width: 1439px) {
  .about-canvas {
    --page-side: 6vw;
    --column-gap: 6vw;
    --photo-width: 340px;
    --heading-size: 48px;

    padding-top: 45px;
    padding-bottom: 55px;
  }

  .about-bio {
    align-self: center;
  }

  .about-experience,
  .about-contact {
    padding-top: 35px;
  }
}

/* =========================================
   11 — TABLET: 601px–1024px
   Frame 66
   ========================================= */

@media (min-width: 601px) and (max-width: 1024px) {
  .about-canvas {
    --page-side: 6vw;
    --column-gap: 4vw;
    --photo-width: 340px;
    --heading-size: 45px;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    grid-template-rows:
      auto
      auto
      minmax(220px, 1fr) /* More space between bio and portrait */
      auto
      auto;

    /* row-gap: 20px; */

    grid-template-areas:
      "heading heading"
      "bio bio"
      ". ."
      "contact portrait"
      ". experience";

    padding-top: 40px;
    padding-bottom: 55px;
  }

  .about-heading-group {
    align-self: start;
    margin-bottom: 80px;
    /* padding-bottom: 40px; */
  }

  .about-bio {
    align-self: start;
    justify-self: start;
    margin-left: 35px;
    margin-top: 70px;
  }

  .about-portrait {
    align-self: end;
    justify-self: center;
  }

  .about-contact {
    align-self: end;
    justify-self: start;
    padding: 0;
    margin-left: 35px;
  }

  .about-experience {
    align-self: start;
    justify-self: center;
    /* padding-top: 15px; */
    top: 100px;
  }
}

/* =============== for experience logo */

@media (max-width: 1024px) {
  .about-experience {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    width: max-content;
    max-width: none;
  }

  .about-experience p {
    margin: 0;
    white-space: nowrap;
  }

  .experience-logo {
    display: inline-block;
    vertical-align: bottom;
  }
}

/* =========================================
   12 — MOBILE: 600px and below
   iPhone 16
   ========================================= */

@media (max-width: 600px) {
  .about-canvas {
    --page-side: 20px;
    --photo-width: 100%;
    --heading-size: clamp(30px, 7vw, 40px);

    grid-template-columns: minmax(0, 1fr);
    grid-template-rows:
      auto
      auto
      auto
      auto
      minmax(60px, 1fr)
      auto;

    grid-template-areas:
      "heading"
      "bio"
      "portrait"
      "contact"
      "."
      "experience";

    padding: 35px var(--page-side) 25px;
  }

  .about-heading-group {
    justify-self: start;
    margin-bottom: 65px;
  }

  .about-heading {
    white-space: nowrap;
  }

  /* Keep bio composition unchanged */
  .about-bio {
    justify-self: start;
    /* align-self: start; */
    left: -75px;
    top: 36px;

    /* width: 420px;
    min-width: 420px;
    max-width: 420px; */

    width: 504px;
    min-width: 504px;
    max-width: 504px;

    margin: 0 0 125px;

    transform: scale(0.7);
  }

  .about-heading-doodle {
    transform: scale(0.7);
  }

  .about-portrait {
    justify-self: center;
    align-self: start;

    width: min(90%, 340px);
    margin-bottom: 25px;
    transform: scale(0.85);
    /* transform: translate(-50%); */
  }

  .about-contact {
    justify-self: start;
    align-self: start;

    padding: 0;
  }

  .about-experience {
    justify-self: center;
    align-self: end;

    padding: 0;
  }

  .about-experience p {
    white-space: nowrap;
    font-size: 11px;
  }

  .experience-logo img {
    height: 2em;
  }
}

/* 13 — ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  .doodle,
  .about-heading-doodle {
    transition: none;
  }
}

/* =========================================
   PRESS / AWARDS / EDUCATION
   ========================================= */

.about-extras {
  box-sizing: border-box;
  width: 100%;
  max-width: 1530px;
  margin: 0 auto;
  padding: 50px 6vw 70px;

  display: grid;
  grid-template-columns: 48% 25% 15%;
  grid-template-areas:
    "press awards ."
    "press . education";

  column-gap: 6%;
  row-gap: 60px;

  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: 14px;
  line-height: 1.25;
  color: #111;
}

/* COLUMN POSITIONS */

.about-extra-press {
  grid-area: press;
}

.about-extra-awards {
  grid-area: awards;
  padding-top: 50px;
}

.about-extra-education {
  grid-area: education;
  align-self: end;
}

/* TYPOGRAPHY */

.about-extra h2 {
  margin: 0 0 16px;

  font-family: var(--font-main, "Xanh Mono", monospace);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;

  color: var(--link-color, #a4b51b);
}

.about-extra ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-extra li {
  margin: 0 0 18px;
}

.about-extra li:last-child {
  margin-bottom: 0;
}

.about-extra p {
  margin: 0;
  line-height: 1.25;
}

.about-extra a {
  color: var(--link-color, #a4b51b);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

/* PRESS WIDTH */

.about-extra-press ul {
  max-width: 310px;
}

/* =========================================
     LARGE DESKTOP
     ========================================= */

@media (min-width: 1440px) {
  .about-extras {
    padding-inline: 8vw;
  }
}

/* =========================================
     TABLET
     ========================================= */

@media (min-width: 601px) and (max-width: 1024px) {
  .about-extras {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    grid-template-areas:
      "press awards"
      "press education";

    column-gap: 8vw;
    row-gap: 50px;

    padding: 50px 6vw 70px;
  }

  .about-extra-awards {
    padding-top: 0;
  }

  .about-extra-education {
    align-self: end;
  }
}

/* =========================================
     MOBILE
     ========================================= */

@media (max-width: 600px) {
  .about-extras {
    grid-template-columns: minmax(0, 1fr);

    grid-template-areas:
      "press"
      "awards"
      "education";

    row-gap: 50px;

    padding: 40px 20px 70px;
  }

  .about-extra-awards {
    padding-top: 0;
  }

  .about-extra-education {
    align-self: start;
  }

  .about-extra-press ul {
    max-width: 100%;
  }

  .about-extra h2 {
    margin-bottom: 15px;
  }

  .about-extra li {
    margin-bottom: 20px;
  }
}


