/*
  Styles for /print, the printable cards and QR codes page. Separate from
  style.css for the same reason share.css is: the main stylesheet stays about the
  marketing pages. Everything is a class, since the CSP's `style-src 'self'`
  ignores inline styles.
*/

.kit {
  margin-top: 2.75rem;
}

.kit h2 {
  margin-bottom: 0.35rem;
}

.kit > p {
  margin-top: 0;
}

/* The neutral stage the artwork sits on, matching /share. */
.preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.75rem 1.25rem;
  margin: 1.25rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    repeating-linear-gradient(45deg, oklch(0.5 0.01 260 / 0.04) 0 8px, transparent 8px 16px),
    var(--surface);
}

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

.preview figure {
  margin: 0;
  flex: 1 1 15rem;
  max-width: 20rem;
}

.preview.square figure {
  flex-basis: 10rem;
  max-width: 13rem;
}

.preview figure img {
  border-radius: 0.4rem;
  box-shadow: var(--shadow), 0 4px 14px oklch(0.21 0.015 260 / 0.12);
}

.preview figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* The QR code is drawn black on transparent, so give it a white plate in dark
   mode or it disappears. */
.preview.qr img {
  width: 12rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 0.6rem;
}

/* Print-shop vs at-home, side by side, stacked on a phone. */
.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.way {
  padding: 1.25rem 1.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.way h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.way p {
  margin: 0 0 0.75rem;
}

.dl .btn {
  font-size: 0.95rem;
  text-align: center;
  justify-content: center;
}

.tips {
  padding-inline-start: 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tips li + li {
  margin-top: 0.3rem;
}

.more,
.how {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* Square sizes table. */
.files {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.files th,
.files td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: start;
}

.files thead th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.files tbody th span {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* QR download list: one row per file, the whole row is the link. */
.downloads {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.downloads a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.downloads a:hover {
  border-color: var(--accent);
}

.downloads b {
  color: var(--accent);
}

.downloads span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Share-image gallery. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.gallery.two {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gallery figcaption b {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

/* Section jump links, same as /share. */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.jump a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.jump a:hover {
  text-decoration: underline;
}
