/* pupmarks.com/share: where share links for pups that are not publicly findable land. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-variable-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-blue: #2d5a87;
  --navy: #1e3a5c;
  --sky: #3d9bdc;
  --ink: #16202e;
  --gold: #f2b33d;
  --app-bg: #f1f4f8;
  --muted: #4a5a6e;
  --line: #d3dce7;
  --paper: #fff;
  --blue: #2d5a87;
  --field-soft: #fff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.share-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--app-bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

body.share-page > .site-language {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.share-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 16px 32px;
}

.share-card {
  width: 100%;
  max-width: 520px;
  padding: 40px 32px 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgb(30 58 92 / 0.1);
  text-align: center;
}

.share-lockup {
  display: block;
  width: 220px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 28px;
}

.share-card h1 {
  font-family: "Barlow Condensed", "Inter", system-ui, sans-serif;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.share-line {
  max-width: 34ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

.share-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Official badges, unmodified: same visible height, Google's transparent padding kept. */
.share-badges a {
  --badge-height: 48px;
  display: inline-flex;
  align-items: center;
  height: var(--badge-height);
  line-height: 0;
}

.share-badges img {
  display: block;
  width: auto;
  height: var(--badge-height);
}

.share-badges .google-play-badge { height: calc(var(--badge-height) * 250 / 192); }
html[lang="en"] .share-badges .google-play-badge { height: calc(var(--badge-height) * 250 / 168); }

.share-open {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.share-open a,
.share-footer a {
  color: var(--brand-blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.share-open a:focus-visible,
.share-footer a:focus-visible,
.share-badges a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 8px;
}

.share-footer {
  padding: 0 16px 28px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.share-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.share-footer p { margin: 0; }

@media (max-width: 480px) {
  .share-main { align-items: flex-start; padding-top: 80px; }
  .share-card { padding: 32px 20px 28px; border-radius: 24px; }
  .share-lockup { width: 190px; margin-bottom: 24px; }
  .share-badges a { --badge-height: 44px; }
}
