/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4 */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; overflow-x: clip; }
html { background: var(--color-page); }
body { color: var(--color-ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

.page-shell {
  min-height: 100svh;
  padding: clamp(28px, 5vw, 64px) 18px 36px;
  background: var(--color-page);
}

.links-page { width: min(100%, 560px); margin-inline: auto; }
.profile { text-align: center; margin-bottom: 42px; }
.profile__eyebrow {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--color-green-line);
  border-radius: 999px;
  background: var(--color-green-light);
  color: var(--color-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.profile__logo { display: block; width: 144px; height: 144px; object-fit: contain; margin: 22px auto 12px; }
h1 { margin: 0; font-size: clamp(27px, 6vw, 34px); line-height: 1.1; letter-spacing: -.045em; font-weight: 800; overflow-wrap: anywhere; }
.profile p { max-width: 36ch; margin: 11px auto 0; color: var(--color-muted); font-size: 15px; line-height: 1.55; }

.link-group + .link-group { margin-top: 30px; }
.link-group h2 { margin: 0 0 12px; color: var(--color-green); font-size: 12px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  margin-top: 10px;
  padding: 15px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  box-shadow: 0 2px 0 var(--color-border);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.link-card:hover { transform: translateY(-2px); border-color: var(--color-green-line); box-shadow: 0 5px 0 var(--color-border); }
.link-card:active { transform: translateY(0); box-shadow: 0 1px 0 var(--color-border); }
.link-card--featured { background: var(--color-green); border-color: var(--color-green); color: var(--color-surface); box-shadow: 0 3px 0 var(--color-green-line); }
.link-card--featured:hover { border-color: var(--color-green); box-shadow: 0 6px 0 var(--color-green-line); }
.link-card--featured:active { box-shadow: 0 1px 0 var(--color-green-line); }
.link-card__icon { flex: 0 0 44px; display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--color-green-light); color: var(--color-green); }
.link-card--featured .link-card__icon { background: var(--color-green-light); }
.link-card__icon svg, .social-link__icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-card__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.link-card__text strong { font-size: 15px; line-height: 1.2; font-weight: 750; }
.link-card__text > span { color: var(--color-muted); font-size: 12px; line-height: 1.35; }
.link-card--featured .link-card__text > span { color: var(--color-green-light); }
.link-card__arrow { flex: 0 0 auto; font-size: 20px; line-height: 1; }

.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform .16s ease, border-color .16s ease;
}
.social-link:hover { transform: translateY(-2px); border-color: var(--color-green-line); }
.social-link:active { transform: translateY(0); }
.social-link__icon { display: grid; place-items: center; color: var(--color-green); }
.social-link__dot { fill: currentColor; stroke: none; }
.social-link > span:last-child { margin-left: auto; font-size: 17px; font-weight: 500; }

.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 12px; }
.page-footer a { color: var(--color-green); font-weight: 700; text-decoration-color: var(--color-green-line); text-underline-offset: 3px; white-space: nowrap; }
.page-footer a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

@media (max-width: 390px) {
  .page-shell { padding-inline: 14px; }
  .profile { margin-bottom: 34px; }
  .profile__logo { width: 128px; height: 128px; }
  .link-card { gap: 12px; padding-inline: 13px; }
  .link-card__icon { flex-basis: 40px; height: 40px; }
  .social-link { gap: 7px; padding-inline: 10px; }
  .page-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .link-card, .social-link { transition: none; }
}
