/* =========================================================
   About page only. The amber color comes from
   <body class="personal"> plus the tokens in style.css.
   ========================================================= */

.about {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 96px;
  align-items: start;
}

/* ---------- Stories ---------- */
.story { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.story:last-child { border-bottom: none; margin-bottom: 0; }
.story h2 { font-size: 24px; margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; }
.story .num { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 13px; color: var(--accent); }
.story p { color: var(--muted); margin: 0 0 14px; max-width: 62ch; font-size: 17px; }
.story a { color: var(--accent); }

.photo { margin: 0 0 20px; }
.photo img { width: 100%; max-height: 360px; object-fit: cover; display: block; border-radius: 4px; border: 1px solid var(--line); }
.photo figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Side column ----------
   position: sticky keeps it in view while the stories scroll past. */
.side { position: sticky; top: 104px; }

.facts { display: grid; gap: 12px; margin-bottom: 32px; }
.fact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.fact .big { font-size: 28px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; min-width: 80px; }
.fact .small { color: var(--muted); font-size: 14px; }

.side .label { margin: 0 0 12px; }
.chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 999px;
  background: var(--panel);
}

.to-favs { display: block; margin-top: 10px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }
.to-favs:hover { text-decoration: underline; }

/* ---------- Places drop-downs ---------- */
.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 48px;
}
.drop {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.drop summary {
  list-style: none;                 /* hide the browser's default triangle */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
}
.drop summary::-webkit-details-marker { display: none; }
.drop-title { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 18px; }
.drop-count {
  font-size: 12px;
  font-weight: 600;
  color: #1a0d08;
  background: var(--accent);
  border-radius: 999px;
  padding: 1px 9px;
}
/* our own arrow, which turns when the drop-down is open */
.drop summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.drop[open] summary::after { transform: rotate(-135deg); }
.drop summary:hover .drop-title { color: var(--accent); }

/* Places I've lived: a short vertical timeline */
.lived { list-style: none; margin: 0; padding: 4px 22px 20px 44px; position: relative; }
.lived::before {                     /* the line */
  content: ""; position: absolute; left: 28px; top: 10px; bottom: 26px;
  width: 2px; background: var(--line);
}
.lived li { position: relative; padding: 8px 0; display: flex; flex-direction: column; }
.lived li::before {                  /* the dot */
  content: ""; position: absolute; left: -21px; top: 15px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.lived li.current::before { background: var(--accent); }
.where { font-weight: 600; }
.why { color: var(--muted); font-size: 14px; }
.now-tag {
  margin-left: 6px; font-size: 11px; font-weight: 600; color: #1a0d08;
  background: var(--accent); padding: 1px 7px; border-radius: 3px; vertical-align: 2px;
}

/* Places visited */
.drop-intro { margin: 0; padding: 0 22px 10px; color: var(--muted); font-size: 14px; }
.visited { list-style: none; margin: 0; padding: 0 22px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.visited li { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.visited .aside { color: var(--muted); }

/* ---------- Best lifts ----------
   Spans both columns of the places grid ("1 / -1" = first line to last). */
.lifts-drop { grid-column: 1 / -1; }
.lifts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 22px 22px;
}
.lift {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.lift-name { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-family: "Space Grotesk", system-ui, sans-serif; }
.lift-num { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--accent); }
.lift-num .unit { font-size: 16px; font-weight: 500; color: var(--muted); }
.lift-reps { color: var(--text); font-size: 15px; }
.lift-note { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- Semester abroad gallery ----------
   "columns: 3" pours the photos into three columns like a newspaper.
   Each photo keeps its own shape, and "break-inside: avoid" stops a
   photo and its caption from being split across two columns. */
.gallery-section { padding-bottom: 96px; border-top: 1px solid var(--line); padding-top: 48px; }
.gallery-section .label { margin: 0 0 6px; }
.gallery-intro { color: var(--muted); margin: 0 0 20px; }
.gallery { columns: 3; column-gap: 16px; }
.gallery figure { margin: 0 0 20px; break-inside: avoid; }
.gallery img {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
  .side { position: static; order: -1; }   /* facts and hobbies move above the stories */
  .story h2 { font-size: 20px; }
  .story p { font-size: 16px; }
  .gallery { columns: 2; column-gap: 12px; }
  .places { grid-template-columns: 1fr; padding-bottom: 32px; }
  .lifts { grid-template-columns: 1fr 1fr; padding: 0 16px 16px; }
  .lift-num { font-size: 28px; }
  .gallery-section { padding-top: 32px; padding-bottom: 64px; }
}
