/* The About page, on top of app.css (its colours, header, buttons and footer). */

/* app.css leaves the font to reel.js; this page has no reel, so it loads the same file (the app reuses the download) */
@font-face { font-family: "Huninn"; src: url("../assets/jf-openhuninn-2.1.ttf") format("truetype"); font-display: swap; }

.about { --dock-h: 0px; }   /* no bottom bar on this page */
.about .brand h1 a { color: inherit; text-decoration: none; }
.ab { max-width: 1180px; margin: 0 auto; padding: 40px 22px 0; }
.ab p { line-height: 1.8; }

/* washi tape across the top of a card, like the photo cards in the reel */
.tape {
  position: absolute; top: -11px; left: 50%; z-index: 1; width: 86px; height: 22px; margin-left: -43px; border-radius: 2px;
  transform: rotate(-3deg); background: var(--tape, #ffd0df) repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.45) 0 5px, transparent 5px 11px);
  box-shadow: 0 1px 2px rgba(44, 132, 198, 0.12);
}

/* ---------------------------------------------------------------- hero */

.ab-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.ab-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 14px 5px 10px; border-radius: 999px;
  background: #fff; color: var(--deep); font-size: 14px; line-height: 1.4 !important; box-shadow: 0 0 0 2px var(--sky-2);
}
.ab-kicker img { width: 27px; height: auto; }
.ab-h1 {
  margin: 0; font-size: clamp(32px, 4.4vw, 50px); font-weight: normal; line-height: 1.25; color: var(--deep); letter-spacing: 1px;
  text-wrap: balance;
  text-shadow: 3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff, 2px 2px #fff, -2px 2px #fff, 2px -2px #fff, -2px -2px #fff,
    0 6px 14px rgba(44, 132, 198, 0.3);
}
.ab-lead { margin: 18px 0 26px; font-size: 17px; max-width: 34em; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ab-hero-art {
  position: relative; display: block; justify-self: center; width: min(100%, 380px); padding: 14px 14px 0; border-radius: 18px;
  background: #fff; color: var(--muted); text-decoration: none; transform: rotate(2.5deg);
  box-shadow: 0 0 0 2px var(--sky-2), 0 22px 50px rgba(20, 70, 120, 0.22); transition: transform 0.25s;
}
.ab-hero-art:hover { transform: rotate(0.5deg) translateY(-4px); }
.ab-hero-art > img:not(.ab-hero-cinna) { width: 100%; height: auto; border-radius: 10px; }
.ab-hero-cap { display: block; padding: 12px 4px 14px; font-size: 14px; text-align: center; }
.ab-hero-cinna {
  position: absolute; left: -78px; top: 36px; width: 150px; height: auto; pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(20, 70, 120, 0.25)); animation: bob 2.6s ease-in-out infinite;
}

/* ---------------------------------------------------------------- sections */

.ab-section { margin-top: 92px; }
.ab-h2 { margin: 0 0 8px; text-align: center; font-size: clamp(25px, 3vw, 32px); font-weight: normal; color: var(--deep); text-wrap: balance; }
.ab-h2::after {   /* a little cloud under the heading */
  content: ""; display: block; width: 46px; height: 28px; margin: 6px auto 0; background: url("../assets/cloud_icon.png") center / contain no-repeat;
}
.ab-sub { margin: 0 auto; max-width: 40em; text-align: center; color: var(--muted); }
.ab-more { margin: 30px 0 0; text-align: center; }

/* the two people */
.ab-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 30px; }
.ab-person {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 2px var(--sky-2), 0 12px 30px rgba(44, 132, 198, 0.14);
}
.ab-person.ig { --tape: #ffd0df; }
.ab-person.gh { --tape: #bfe3f8; }
.ab-person p { margin: 0; flex: 1; }
.ab-person-head { display: flex; align-items: center; gap: 16px; }
.ab-person-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--ring, var(--blue)); }
.ig .ab-avatar { --ring: var(--pink-deep); }
.ab-name { font-weight: normal; font-size: 25px; line-height: 1.2; color: var(--deep); }
.ab-handle { color: var(--pink-deep); text-decoration: none; font-size: 15px; }
.gh .ab-handle { color: var(--blue); }
.ab-handle:hover { text-decoration: underline; }
.ab-person-head small { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ab-chips li { padding: 4px 12px; border-radius: 999px; background: #fff0f5; color: #c95c86; font-size: 13.5px; }
.ab-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 999px;
  color: #fff; font-size: 15.5px; text-decoration: none; transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.ab-cta::after { content: "→"; transition: transform 0.15s; }
.ab-cta:hover { transform: translateY(-1px); }
.ab-cta:hover::after { transform: translateX(3px); }
.ab-cta.ig { background: linear-gradient(180deg, #ffa3c2, var(--pink-deep)); box-shadow: 0 3px 0 #c95c86; }
.ab-cta.gh { background: #24292f; }
.ab-cta.gh:hover { background: #0d1117; }

/* the gallery: polaroids pinned at slightly different angles, newest first. Four or two to a row, so the 4:5
   drawings (2025 on) and the square ones (before) each fill whole rows. */
.ab-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 26px; align-items: start; margin-top: 34px; }
.ab-tile {
  position: relative; display: block; padding: 10px 10px 0; border-radius: 14px;
  background: #fff; color: var(--ink); text-decoration: none; transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 0 0 2px var(--sky-2), 0 10px 24px rgba(44, 132, 198, 0.15); transition: transform 0.2s, box-shadow 0.2s;
}
.ab-tile .tape { width: 64px; height: 18px; margin-left: -32px; top: -9px; }
.ab-tile:hover, .ab-tile:focus-visible { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: 0 0 0 2px var(--blue), 0 16px 32px rgba(44, 132, 198, 0.24); }
.ab-tile img { width: 100%; height: auto; border-radius: 8px; background: var(--sky-1); }
.ab-tile-strip { display: flex; flex-direction: column; gap: 1px; padding: 9px 4px 11px; }
.ab-tile-strip span { font-size: 12px; color: var(--muted); }
.ab-tile-strip b { font-weight: normal; font-size: 15px; line-height: 1.4; }

/* how to make one */
.ab-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: step; }
.ab-steps li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 20px 24px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.85); text-align: center; box-shadow: 0 0 0 2px var(--sky-2); counter-increment: step;
}
.ab-steps li::before {
  content: counter(step); position: absolute; top: 14px; left: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--deep); color: #fff; font-size: 15px; line-height: 28px;
}
.ab-steps img { height: 86px; width: auto; margin-bottom: 6px; filter: drop-shadow(0 6px 8px rgba(44, 132, 198, 0.2)); }
.ab-steps b { font-weight: normal; font-size: 19px; color: var(--deep); }
.ab-steps span { font-size: 14.5px; line-height: 1.7; color: var(--muted); }

.about .credit { margin-top: 110px; }
.about .credit-fine { max-width: 46em; }

@media (max-width: 900px) {
  .ab { padding-top: 26px; }
  .ab-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ab-hero-art { width: min(78%, 340px); }
  .ab-hero-cinna { left: -60px; width: 116px; }
  .ab-people { grid-template-columns: minmax(0, 1fr); }
  .ab-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-section { margin-top: 72px; }
}
@media (max-width: 600px) {
  .ab { padding-left: 16px; padding-right: 16px; }
  .ab-lead { font-size: 16px; }
  .ab-gallery { gap: 22px 14px; }
  .ab-steps { grid-template-columns: minmax(0, 1fr); }
  .ab-tile { padding: 7px 7px 0; }
  .ab-tile-strip b { font-size: 13.5px; }
  .ab-person { padding: 24px 18px 18px; }
  .ab-avatar { width: 64px; height: 64px; }
  .about .top-actions .btn { padding: 7px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero-cinna { animation: none; }
  .ab-tile, .ab-hero-art { transition: none; }
}
