/* The press kit: legal.css's paper, ink, header and footer, widened to the
   site's 1080px frame. Assets sit in the homepage's light grey modules
   (#f4f4f5, round corners), each with its file type and size under it. */

:root {
  --module: #f4f4f5;
  --module-radius: 24px;
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.press {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

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

.press-hero {
  padding: 24px 0 8px;
}

.press-hero-copy {
  max-width: 680px;
}

.press-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
}

.press-lead {
  margin: 20px 0 0;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 28px;
}

.press-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  gap: 12px;
}

/* Hover only nudges: the ink button lightens a step, the outlined one
   takes the faintest grey. */
.press .button:hover,
.press .button:focus-visible {
  background: #3a3a3a;
}

.button-quiet {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.press .button-quiet:hover,
.press .button-quiet:focus-visible {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}

/* An icon ahead of the label; a check takes its place once the button has
   done its job. */
.button-icon {
  gap: 10px;
  padding: 0 28px 0 24px;
}

.button-icon .icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon .icon-done,
.button-icon.is-done .icon-start {
  display: none;
}

.button-icon.is-done .icon-done {
  display: block;
}

.file-meta {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 20px;
}

.press-hero-figure {
  margin: 40px 0 0;
}

.press-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.press-hero-figure figcaption,
.file-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-size: 15px;
  line-height: 20px;
}

.press-hero-figure figcaption {
  justify-content: center;
  margin-top: 8px;
}

.press-hero-figure figcaption a {
  font-weight: 600;
}

.press-hero-figure figcaption span {
  color: var(--ink-muted);
}

/* Sections --------------------------------------------------------------- */

.press-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--hairline);
}

.press-section:last-child {
  border-bottom: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 38px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-muted);
}

.section-links {
  display: flex;
  gap: 20px;
}

.text-button {
  padding: 0;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  text-decoration: underline;
}

.text-button,
.text-download,
.file-link {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.01em;
}

h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}

/* About: plain reading text in one column, then the facts. */

.about-copy {
  max-width: 720px;
}

/* The description's two actions sit under it as small outlined buttons. */
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 40px;
}

.small-button {
  display: inline-flex;
  height: 40px;
  padding: 0 16px 0 14px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  cursor: pointer;
  font: 600 15px/20px var(--text);
  text-decoration: none;
}

.small-button:hover,
.small-button:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.small-button .icon {
  width: 18px;
  height: 18px;
}

/* The App Store rating under the quotes' heading: 5 marigold stars. */
.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: -12px 0 28px;
  color: var(--ink-muted);
  font-size: 17px;
}

.rating strong {
  color: var(--ink);
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 20px;
  height: 20px;
  fill: #ffc02e;
}

.about-copy p {
  font-size: 18px;
  line-height: 28px;
}

.facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.facts div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.facts dt {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 26px;
}

.facts dd {
  margin: 0;
}

/* What people are saying: 6 quotes in an even 3 by 2 grid of modules,
   each one their own words with the name at the foot. */

.quotes {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 26px 28px 24px;
  background: var(--module);
  border-radius: var(--module-radius);
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-size: 19px;
  line-height: 28px;
}

.quote-by {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 20px;
}

.quote-by a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

/* How it compares: each product in ink, answers under them, split by
   hairlines like the homepage FAQ, all open. */

.faq-list {
  max-width: 820px;
  margin: 0;
}

.faq-list div {
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}

.faq-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.faq-list dt {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 26px;
}

.faq-list dd {
  margin: 0;
}

/* Assets: one section, a group per kind, each with a small head. */

.asset-group + .asset-group {
  margin-top: 56px;
}

.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin-bottom: 20px;
}

.group-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 20px;
}

/* Asset tiles */

.tiles {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 32px 20px;
  list-style: none;
}

.tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.tile p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 20px;
}

.tile .file-link,
.tile .file-links {
  margin-top: 2px;
}

.tile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--module);
  border-radius: var(--module-radius);
  transition: background-color 160ms ease;
}

a.tile-media:hover,
a.tile-media:focus-visible {
  background: #ebebed;
}

.tile-media img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tiles-screens {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 20px;
}

/* Stills and videos alike sit on white inside a hairline, so a video that
   starts playing (its frames are on white) never shows a seam. */
.tiles-screens .tile-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--paper);
}

/* The hairline is drawn over the content, so a video can't paint over it. */
.tiles-screens .tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--hairline);
  pointer-events: none;
}

.tiles-screens a.tile-media:hover,
.tiles-screens a.tile-media:focus-visible {
  background: var(--paper);
}

.tiles-screens video {
  display: block;
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.still-frame img {
  width: auto;
  max-height: 91.7%;
}

/* Only shown with reduced motion, when the recordings don't loop on their
   own: a small black disc in the middle of the phone. */
.play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.8);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background-color 160ms ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.play[hidden] {
  display: none;
}

.play:hover,
.play:focus-visible {
  background: #000000;
  transform: translate(-50%, -50%) scale(1.06);
}

.play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  fill: currentColor;
}

.tiles-art {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tiles-art .tile-media {
  border-radius: 16px;
}

.tiles-logos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.logo-stage {
  aspect-ratio: 16 / 10;
  padding: 24px;
}

.logo-stage.is-dark {
  background: var(--ink);
}

.logo-icon {
  width: 38%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.logo-wordmark {
  width: 58%;
}

.logo-lockup {
  width: 78%;
}

.tiles-team {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tiles-team .tile-media {
  padding: 28px;
}

.tiles-team .tile-media img {
  width: 100%;
}

/* Usage and contact */

.usage {
  max-width: 720px;
  padding-left: 22px;
}

.press-contact {
  text-align: center;
}

.press-contact h2 {
  font-size: 32px;
  line-height: 38px;
}

.press-contact p {
  max-width: 480px;
  margin: 0 auto 28px;
  color: var(--ink-muted);
}

/* Narrower screens -------------------------------------------------------- */

@media (max-width: 900px) {
  .tiles-screens,
  .quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts,
  .tiles-logos {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .press {
    padding: 0 16px 72px;
  }

  /* Four links don't fit beside the wordmark on a phone: they go under it. */
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .press-section {
    padding: 48px 0;
  }

  .section-head h2,
  .press-contact h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .tiles-screens,
  .tiles-art,
  .tiles-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote {
    padding: 22px 22px 20px;
  }


  .facts div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .about-copy p,
  .quote blockquote p {
    font-size: 17px;
    line-height: 26px;
  }

  .press-actions .button {
    flex: 1 1 100%;
  }
}
