/* About page (about.html), loaded after tailwind.css.
   Every entry is one line; its original text opens under it (<details>).
   Prefix ab- so nothing leaks into other pages. */

/* ---------- Skip link and focus (as in case-base.css) ---------- */

.ab-skip {
  position: fixed;
  z-index: var(--z-skip);
  top: 16px;
  left: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font: 600 14px/1.2 var(--font-sans);
  text-decoration: none;
  transform: translateY(-200%);
}

.ab-skip:focus {
  transform: none;
}

/* ---------- Hero ---------- */

.ab-eyebrow {
  margin: 0;
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}

.ab-h1 {
  margin: 0;
  font-weight: var(--weight-semibold);
  font-size: var(--text-h1-page);
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-heading);
  color: var(--color-accent);
  text-wrap: balance;
}

.ab-lead {
  margin: 0;
  max-width: var(--measure-narrow);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  color: var(--color-ink-body);
}

.ab-portrait {
  height: clamp(300px, 38vw, 560px);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ab-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Text ---------- */

.ab-text p {
  margin: 0 0 16px;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink-body);
}

.ab-text p:last-child {
  margin-bottom: 0;
}

/* Blue text links inherit their colour: custom.css sets a[href] to
   color: inherit with a selector a class cannot beat. */
.ab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  font-weight: var(--weight-semibold);
  font-size: var(--text-body);
  color: var(--color-accent);
}

/* ---------- Entries ---------- */

.ab-item {
  border-top: 1px solid var(--color-line);
}

/* In a single list the section rule above already separates. */
.ab-list > .ab-item:first-child {
  border-top: 0;
}

.ab-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 24px;
  padding: 14px 0;
}

summary.ab-row {
  cursor: pointer;
  list-style: none;
}

summary.ab-row::-webkit-details-marker {
  display: none;
}

.ab-year {
  flex: 0 0 112px;
  font-size: var(--text-small);
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
}

.ab-title {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink-body);
}

.ab-title strong {
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease-standard);
}

/* Also on whole detail paragraphs, which .ab-detail p would otherwise colour. */
.ab-meta,
.ab-detail .ab-meta {
  color: var(--color-ink-muted);
}

/* Quiet arrow instead of a plus: grey at rest, blue on hover and open. */
.ab-chevron {
  flex: 0 0 24px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  color: var(--color-ink-muted);
  transition: transform var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}

summary:hover .ab-chevron,
summary:hover .ab-title strong,
details[open] > summary .ab-chevron {
  color: var(--color-accent);
}

details[open] > summary .ab-chevron {
  transform: rotate(180deg);
}

/* The text sits under the title, aligned past the year column. */
.ab-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  padding: 0 0 18px;
}

.ab-detail::before {
  content: "";
  flex: 0 0 112px;
}

.ab-detail > div {
  flex: 1 1 260px;
  min-width: 0;
}

.ab-detail p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: var(--leading-body);
  color: var(--color-ink-body);
}

.ab-detail p:last-child {
  margin-bottom: 0;
}

.ab-detail .ab-links {
  font-size: 16px;
}

.ab-blue {
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
}

.ab-last {
  padding-bottom: 96px;
}

/* Long lists in two columns, one column on narrow screens. */
.ab-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 0 48px;
  align-items: start;
}

.ab-group {
  margin: 32px 0 8px;
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

/* ---------- Award labels ---------- */

/* Original labels, unchanged, on one white surface: red dot asks for a
   white background, the German Design Award for its own colours only. */
.ab-awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 32px 64px;
  margin: 0;
  padding: var(--space-card) clamp(24px, 3.5vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  list-style: none;
}

.ab-awards img {
  display: block;
}

.ab-note {
  margin: 20px 0 32px;
  font-size: var(--text-small);
  color: var(--color-ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .ab-chevron,
  .ab-title strong {
    transition: none;
  }
}
