:root {
  --red: #e60000;
  --red-dark: #b90000;
  --black: #050505;
  --surface: #111111;
  --white: #ffffff;
  --muted: rgba(255,255,255,.62);
  --border: rgba(255,255,255,.14);
  --gold: #c9a84f;
  --display: Impact, "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); }
body { min-height: 100%; margin: 0; color: var(--white); font-family: var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }

.links-page {
  background:
    radial-gradient(circle at 50% -15%, rgba(230,0,0,.19), transparent 35%),
    linear-gradient(rgba(5,5,5,.9), rgba(5,5,5,.98)),
    url("../assets/gallery/pc-detailing-work-07.jpeg") center 35% / cover fixed;
}

.links-shell { width: min(calc(100% - 28px), 560px); margin: 0 auto; padding: 34px 0 24px; }
.links-card { overflow: hidden; border: 1px solid var(--border); background: rgba(5,5,5,.92); box-shadow: 0 28px 90px rgba(0,0,0,.48); }
.links-visual { position: relative; height: 260px; overflow: hidden; background: #111; }
.links-cover { width: 100%; height: 100%; object-fit: cover; object-position: 52% 48%; filter: saturate(.92) contrast(1.08) brightness(.78); transform: scale(1.015); }
.links-visual-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.24) 48%, rgba(5,5,5,.92)); }
.links-logo { position: absolute; left: 50%; bottom: 26px; width: min(58%, 270px); height: auto; transform: translateX(-50%); filter: drop-shadow(0 8px 22px rgba(0,0,0,.65)); }

.links-content { padding: 28px; }
.links-content h1 { margin: 0; font-family: var(--display); font-size: clamp(34px, 8vw, 46px); line-height: 1; letter-spacing: .015em; text-align: center; text-transform: uppercase; }
.links-content > p { max-width: 430px; margin: 13px auto 27px; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: center; }
.link-list { display: grid; gap: 11px; }
.link-button { min-height: 76px; display: grid; grid-template-columns: 46px 1fr 20px; align-items: center; gap: 14px; padding: 12px 17px; border: 1px solid var(--border); background: var(--surface); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.link-button:hover { transform: translateY(-2px); border-color: rgba(230,0,0,.7); background: #181818; }
.link-button-primary { border-color: var(--red); background: var(--red); }
.link-button-primary:hover { border-color: var(--red-dark); background: var(--red-dark); }
.link-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.link-icon img, .link-arrow { filter: invert(1); }
.link-icon img { width: 23px; height: 23px; }
.link-button > span:nth-child(2) { min-width: 0; }
.link-button strong, .link-button small { display: block; }
.link-button strong { font-family: "Arial Narrow", Arial, sans-serif; font-size: 15px; letter-spacing: .035em; text-transform: uppercase; }
.link-button small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.link-button-primary small { color: rgba(255,255,255,.76); }
.link-arrow { width: 18px; height: 18px; opacity: .65; transition: transform 180ms ease, opacity 180ms ease; }
.link-button:hover .link-arrow { opacity: 1; transform: translateX(3px); }
.links-content address { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 12px; font-style: normal; text-align: center; }
.links-content address img { width: 17px; height: 17px; flex: 0 0 auto; filter: invert(1); opacity: .65; }

.links-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px 0; color: rgba(255,255,255,.35); font-size: 10px; }
.links-footer span:last-child { color: var(--gold); letter-spacing: .07em; }

@media (max-width: 520px) {
  .links-shell { padding-top: 14px; }
  .links-visual { height: 220px; }
  .links-content { padding: 24px 18px; }
  .links-content h1 { font-size: 36px; }
  .link-button { min-height: 72px; grid-template-columns: 42px 1fr 18px; gap: 12px; padding-inline: 13px; }
  .link-icon { width: 42px; height: 42px; }
  .link-button small { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
