:root {
  color-scheme: dark;
  --background: #0a0d11;
  --surface: #11161c;
  --surface-hover: #192028;
  --gold: #d2b477;
  --text: #f4f1e9;
  --muted: #aab0b8;
  --border: #2b3037;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--background); color: var(--text); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; width: min(100%, 43rem); margin-inline: auto; border-inline: 1px solid #d2b47710; pointer-events: none; }
.link-page { width: min(100% - 2.5rem, 30rem); margin-inline: auto; padding-block: 2.5rem 2rem; }
.profile { text-align: center; margin-bottom: 1.8rem; }

.brand-seal {
  position: relative;
  width: 6.75rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  background: #0a0b0a;
  box-shadow: 0 0 0 1px #d2b4774a, 0 0 0 7px var(--background), 0 0 0 8px #d2b47724;
}

.brand-seal img { display: block; position: absolute; width: 114%; max-width: none; height: auto; left: -7%; top: -5%; }
.eyebrow { margin: 0 0 .6rem; color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .21em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.intro { margin: .65rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.links { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: #d2b47735;
}

.link-card--featured { background: var(--gold); border-color: var(--gold); color: #11151b; }
.link-icon { display: grid; place-items: center; flex: 0 0 1.5rem; color: var(--gold); }
.link-card--featured .link-icon { color: inherit; }
svg { display: block; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-dot { fill: currentColor; stroke: none; }
.external-icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin-left: auto; }
.link-copy { display: grid; min-width: 0; gap: .35rem; }
.link-title { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.link-detail { color: var(--muted); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.link-card--featured .link-detail { color: #32302a; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.link-card--featured:focus-visible { outline-color: var(--text); }

@media (hover: hover) {
  .link-card:hover { background: var(--surface-hover); border-color: #82704e; transform: translateY(-2px); }
  .link-card--featured:hover { background: #e3c78e; border-color: #e3c78e; }
  .footer a:hover { color: var(--gold); }
}

.footer { margin-top: 1.75rem; text-align: center; }
.footer-rule { display: block; width: 2rem; height: 1px; margin-inline: auto; background: #9a8050; }
.footer p { margin: 1rem 0 .65rem; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.footer a { display: inline-block; padding: .35rem; color: var(--muted); font-size: .875rem; text-underline-offset: .25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 360px) {
  .link-page { width: calc(100% - 2rem); padding-top: 2rem; }
  .link-card { gap: .8rem; padding-inline: 1rem; }
  .external-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .link-card { transition: none; }
  .link-card:hover { transform: none; }
}
