/* /press, the press kit (tools/press-page.mjs).

   Builds on /to/to.css (base), /chrome.css (nav, footer) and /legal.css
   (the page heading and the two-column .blok sections, same skeleton as
   /support). This file only adds what the press kit has on its own: fact
   rows, the boilerplate texts with their copy buttons, the maker, the
   download rows and the asset previews.

   Design source: Paper, page "Website", artboard "Site · /press". */

.press-hero {
  gap: 28px;
  padding-top: clamp(48px, 7.2vw, 104px);
  padding-bottom: clamp(48px, 6.8vw, 96px);
}

.press-hero .paginakop-sub {
  max-width: 640px;
}

/* Fact rows: a fixed label column and the value in full ink, left-aligned,
   because a reader copies these values rather than scanning for a button. */
.press-facts {
  border-bottom: 1px solid var(--hairline);
}

.press-fact {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}

.press-fact dt {
  width: 200px;
  flex-shrink: 0;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.press-fact dd {
  max-width: 560px;
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.press-fact a,
.press-profiles a,
.blok-noot a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(247, 244, 240, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.press-fact a:hover,
.press-profiles a:hover,
.blok-noot a:hover {
  text-decoration-color: var(--text);
}

/* Boilerplate */
.press-texts {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.press-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.press-text-head,
.press-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.press-text-head {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.press-text-head h3 {
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-secondary);
}

.press-short {
  max-width: 680px;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: -0.012em;
}

.press-long,
.press-bio p {
  max-width: 680px;
  font-size: 18px;
  line-height: 29px;
  color: rgba(247, 244, 240, 0.75);
}

/* Copy button: progressive enhancement, unhidden by the page script. The
   ::before stretches the hit area to 44px without moving the label. */
.press-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-secondary);
  transition: color 150ms ease;
}

.press-copy[hidden] {
  display: none;
}

.press-copy::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

.press-copy:hover {
  color: var(--text);
}

.press-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* The maker */
.press-maker {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.press-person {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.press-portrait {
  width: 240px;
  height: 300px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}

.press-bio {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.press-name {
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.015em;
}

.press-bio p {
  max-width: 520px;
}

.press-profiles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 4px;
  font-size: 16px;
  line-height: 22px;
}

/* Download rows: name, format and pixel size, then the link. The orange
   arrow is the one functional accent on each row. */
.press-downloads {
  list-style: none;
  border-bottom: 1px solid var(--hairline);
}

.press-download {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}

.press-download-name {
  width: 200px;
  flex-shrink: 0;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.01em;
}

.press-download-format {
  flex: 1;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}

.press-download a {
  position: relative;
  align-self: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  text-underline-offset: 3px;
}

.press-download a::before {
  content: "";
  position: absolute;
  inset: -10px -8px;
}

.press-download a:hover {
  text-decoration-line: underline;
}

.press-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Assets */
.press-assets {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.press-asset-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.press-tiles {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 16px;
}

.press-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 264px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(247, 244, 240, 0.04);
}

.press-tile-icon img {
  width: 128px;
  height: 128px;
  border-radius: 29px;
}

.press-tile-wordmark img {
  width: 264px;
  height: auto;
}

.press-screens {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.press-screens a {
  display: block;
  border-radius: 14px;
}

.press-screens img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

/* Try it yourself */
.press-try {
  padding-bottom: clamp(64px, 8.3vw, 120px);
}

.press-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 8px;
}

.press-badge p {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-secondary);
}

/* Same breakpoint as .blok in legal.css, where the two columns stack. */
@media (max-width: 900px) {
  .press-fact {
    flex-direction: column;
    gap: 4px;
  }

  .press-fact dt {
    width: auto;
  }

  .press-person {
    flex-direction: column;
    gap: 32px;
  }

  .press-download {
    flex-wrap: wrap;
    gap: 4px 24px;
  }

  .press-download-name {
    width: 100%;
  }

  .press-tiles {
    grid-template-columns: 1fr;
  }

  .press-tile {
    height: 200px;
  }

  .press-tile-wordmark img {
    width: 220px;
  }

  .press-screens {
    grid-template-columns: repeat(2, 1fr);
  }
}
