/* Press page: on top of ../styles.css (tokens, gradient, footer).
   Calm and scannable: one left-aligned column, glass cards for facts, no fidgets. */

.press main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 calc(var(--safe-right) + var(--gutter)) 0 calc(var(--safe-left) + var(--gutter));
}

/* 1. Header: a compact row */
.press-intro { padding-top: calc(var(--safe-top) + 64px); }
.press-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.press-home { display: block; flex: none; border-radius: 23%; }
.press-app-icon {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 23%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), 0 8px 18px rgba(8, 12, 26, 0.35);
}
.press-intro h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Sections: plain, left-aligned, modest spacing */
.press-section { margin-top: 40px; }
.press-intro + .press-section { margin-top: 32px; }
.press-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}
.press-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
}
.press-note {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-quiet);
}
.press-note a, .press-card a, .press-points a, .press-shot-name a, .press-clip a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

/* Glass cards, like the main page's "Why I made this app" card */
.press-card {
  padding: 24px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 18px 40px rgba(8, 12, 26, 0.28);
}
.press-card-title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}
.press-card-text {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
}
.press-contact-again { margin: 18px 0 0; }

/* Facts: a definition list, label over value on phones, side by side wider */
.press-facts { margin: 0; }
.press-facts > div {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.press-facts > div:first-child { border-top: 0; padding-top: 0; }
.press-facts dt {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-quiet);
}
.press-facts dd {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}
/* 3. On iPhone Duo */
.press-duo {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.press-duo li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-soft);
}
.press-duo-more { margin-top: 14px; }
.press-duo strong {
  display: block;
  font-size: 17px;
  color: var(--text);
}

/* Media placeholders and frames */
.press-media {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 28px rgba(6, 10, 22, 0.45);
}
/* A fine light edge drawn above the image, so dark captures stand off the
   dark page */
.press-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
  z-index: 2;
}
.press-media video, .press-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* the frame matches the image: nothing is ever cut */
}
/* PLACEHOLDER label, behind the video or in place of the image */
.press-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-quiet);
}
.ratio-iphone { aspect-ratio: 1320 / 2868; } /* the clips (1206 × 2622) are the same shape */
.ratio-ipad { aspect-ratio: 2064 / 2752; }
.ratio-mac { aspect-ratio: 2297 / 1449; }
/* The Duo's displays: placeholders until the real captures give the exact sizes */
.ratio-duo-inner { aspect-ratio: 2853 / 2007; }
.ratio-duo-outer { aspect-ratio: 1398 / 2034; }

.press-clips { margin-top: 20px; display: grid; gap: 16px; }
.press-clip { margin: 0; }
.press-clip figcaption, .press-shot-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-quiet);
}

/* 6. What it does */
.press-points {
  margin: 0;
  padding: 0 0 0 1.1em;
  display: grid;
  gap: 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* 5. The story */
.press-story p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
}
.press-story .press-attribution {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-quiet);
}

/* 7. Icons: one column on phones, two on wider screens; preview above the
   caption so each caption sits on one line. */
.press-icons { display: grid; gap: 22px; }
.press-icon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}
/* The same optical size: the Mac art has the macOS grid's built-in padding
   (its body is 824 of 1024), so its preview is drawn larger to match. */
.press-icon-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 107px;
  height: 107px;
}
.press-icon img.icon-square { width: 88px; height: 88px; border-radius: 23%; }
.press-icon img.icon-mac { width: 107px; height: 107px; }
.press-icon strong { display: block; color: var(--text); font-size: 16px; white-space: nowrap; }

/* 8. Screenshots */
.press-group { margin-top: 32px; }
.press-group .press-text { margin-top: 8px; }
.press-group h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.press-shots { display: grid; gap: 14px; margin-top: 14px; }
.shots-phone { grid-template-columns: repeat(2, 1fr); }
.shots-tablet { grid-template-columns: repeat(2, 1fr); }
.shots-wide { grid-template-columns: 1fr; }
/* Duo: wide (inner), tall (outer), wide (inner). Phones: the two wide ones
   stacked on the left, the tall one spanning both rows on the right; wider:
   one row. The column widths follow the shapes (inner 2853 x 2007 = 1.4215,
   outer 1398 x 2034 = 0.6873), so the tiles stand even. On phones the tall
   one is as high as two wide ones: 2 / 1.4215 x 0.6873 = 0.967 of their width. */
.shots-duo { grid-template-columns: 1fr 0.967fr; }
.shots-duo .duo-b { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.shots-duo .duo-c { grid-column: 1; grid-row: 2; }
.press-shot { display: block; text-decoration: none; }

.press .footer { margin-top: 40px; }

@media (min-width: 700px) {
  .press-intro { padding-top: calc(var(--safe-top) + 104px); }
  .press-intro h1 { font-size: 34px; }
  .press-intro + .press-section { margin-top: 40px; }
  .press-section { margin-top: 48px; }
  .press-card { padding: 32px 36px; border-radius: 32px; }
  /* Label column of fixed width; each label on the baseline of its value's
     first line. */
  .press-facts > div { display: grid; grid-template-columns: 128px 1fr; column-gap: 16px; align-items: baseline; }
  .press-facts dd { margin: 0; }
  .press-duo { grid-template-columns: 1fr 1fr; gap: 18px 28px; }
  .press-clips { grid-template-columns: repeat(3, 1fr); }
  .press-icons { grid-template-columns: 1fr 1fr; }
  .shots-phone { grid-template-columns: repeat(4, 1fr); }
  .shots-tablet { grid-template-columns: repeat(3, 1fr); }
  .shots-wide { grid-template-columns: repeat(2, 1fr); }
  .shots-three { grid-template-columns: repeat(3, 1fr); }
  /* Widths in proportion to each shape, so all three stand the same height. */
  .shots-duo { grid-template-columns: 1.4215fr 0.6873fr 1.4215fr; }
  .shots-duo .duo-b, .shots-duo .duo-c { grid-column: auto; grid-row: auto; }
}
