/* Link-in-bio base styles. Themes override the custom properties below. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1c1f;
  --muted: #55555c;
  --accent: #2f5bd3;
  --on-accent: #ffffff;
  --btn-bg: #ffffff;
  --btn-text: #1c1c1f;
  --btn-border: #d9d8d3;
  --btn-hover: #f0efea;
  --focus: #1c1c1f;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --maxw: 560px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 18px 28px;
}
.card { position: relative; }

/* ---- header ---- */
.hero { text-align: center; padding: 8px 0 24px; }
.hero__logo { display: block; width: 128px; height: 128px; margin: 0 auto 16px; }
.hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -0.01em;
}
.hero__tagline { margin-top: 6px; color: var(--muted); font-size: 1.05rem; }

.notice {
  display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .92rem;
}
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--text); background: var(--btn-bg); border: 1px solid var(--btn-border);
  transition: transform .15s ease, background-color .15s ease;
}
.social .icon { width: 22px; height: 22px; }
.social:hover { background: var(--btn-hover); transform: translateY(-1px); }

/* ---- link buttons ---- */
.link-list { display: grid; gap: 12px; }
.btn {
  display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 12px 14px 12px 16px;
  background: var(--btn-bg); color: var(--btn-text);
  border: 1px solid var(--btn-border); border-radius: var(--radius);
  text-decoration: none; font-weight: 650; font-size: 1.04rem; line-height: 1.25;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; }
.btn__icon .icon { width: 22px; height: 22px; }
.btn__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.btn__title { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.btn__sub { font-weight: 450; font-size: .88rem; color: var(--muted); }
.btn__chev { flex: none; opacity: .7; }
.btn__chev .icon { width: 18px; height: 18px; }
.badge {
  display: inline-block; flex: none;
  padding: 2px 7px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  background: var(--accent); color: var(--on-accent);
}
.btn--featured, .btn--promo { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn--featured .btn__sub, .btn--promo .btn__title { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.btn__sub { color: inherit; opacity: .9; }
.btn--featured .badge, .btn--promo .badge { background: var(--on-accent); color: var(--accent); }
.btn--featured:hover, .btn--promo:hover { background: var(--accent); filter: brightness(1.05); }

/* ---- support resources ---- */
.support { margin-top: 36px; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--btn-border); }
.support__h { font-size: 1.25rem; line-height: 1.3; }
.support__intro { margin-top: 6px; color: var(--muted); }
.support__note { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.support .res-list { display: grid; gap: 14px; margin-top: 18px; }
.res { padding-top: 14px; border-top: 1px solid var(--btn-border); }
.res:first-child { border-top: 0; padding-top: 0; }
.res__name { font-size: 1.02rem; line-height: 1.3; }
.res__desc { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.res__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-text);
  font-weight: 650; font-size: .95rem; text-decoration: none;
}
.chip .icon { width: 18px; height: 18px; }
.chip:hover { background: var(--btn-hover); }
.chip--primary { background: var(--text); color: var(--bg); border-color: transparent; }
.chip--primary:hover { background: var(--text); filter: brightness(1.2); }

/* ---- footer ---- */
.foot { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 32px; }
.foot__note { margin-top: 4px; font-size: .82rem; }

@media (min-width: 768px) {
  .page { padding-top: 56px; }
  .hero__logo { width: 152px; height: 152px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .social:hover { transform: none; }
}

@media (forced-colors: active) {
  .btn, .chip, .social { border: 2px solid ButtonText; }
}

/* ---- theme: agesagoapparel ---- */
/* Ages Ago Apparel: Win95 window on a CRT. Colors from the logo (orange #ff6b1a, black). */
.theme-agesagoapparel {
  --bg: #0d0c10;
  --surface: #c0c0c0;
  --text: #000000;
  --muted: #2a2a2a;
  --accent: #ff6b1a;
  --on-accent: #000000;
  --btn-bg: #c0c0c0;
  --btn-text: #000000;
  --btn-hover: #cfcfcf;
  --focus: #000000;
  --radius: 0;
  --font: Tahoma, Verdana, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --font-display: var(--font-mono);
  --bevel-out: inset -2px -2px 0 #0a0a0a, inset 2px 2px 0 #ffffff, inset -4px -4px 0 #808080, inset 4px 4px 0 #dfdfdf;
  --bevel-in: inset 2px 2px 0 #0a0a0a, inset -2px -2px 0 #ffffff, inset 4px 4px 0 #808080, inset -4px -4px 0 #dfdfdf;
  color: #e9e9e9;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 0%, #2a1a10 0%, #0d0c10 65%);
  background-attachment: fixed;
}
/* pixel grid accent behind the window */
.theme-agesagoapparel::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 107, 26, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 26, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.theme-agesagoapparel .page { position: relative; z-index: 1; padding-top: 28px; }

.theme-agesagoapparel .card {
  background: var(--surface); color: var(--text);
  box-shadow: var(--bevel-out), 8px 8px 0 rgba(0, 0, 0, .55);
  padding: 4px 4px 18px;
}
.theme-agesagoapparel .titlebar {
  display: flex; align-items: center; justify-content: space-between;
  height: 30px; padding: 0 4px 0 10px; margin: 0 0 4px;
  background: linear-gradient(90deg, #ff6b1a, #ff9a57);
  color: #000; font-family: var(--font-mono); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.theme-agesagoapparel .titlebar__btns { display: flex; gap: 3px; }
.theme-agesagoapparel .tb {
  position: relative; width: 22px; height: 20px; background: #c0c0c0; box-shadow: var(--bevel-out);
}
.theme-agesagoapparel .tb--min::after { content: ""; position: absolute; left: 6px; right: 7px; bottom: 5px; height: 2px; background: #000; }
.theme-agesagoapparel .tb--max::after { content: ""; position: absolute; inset: 5px 6px 5px 6px; border: 1.5px solid #000; border-top-width: 3px; }
.theme-agesagoapparel .tb--close::before,
.theme-agesagoapparel .tb--close::after { content: ""; position: absolute; left: 5px; right: 5px; top: 9px; height: 2px; background: #000; transform: rotate(45deg); }
.theme-agesagoapparel .tb--close::after { transform: rotate(-45deg); }

.theme-agesagoapparel .hero { padding: 18px 14px 20px; }
.theme-agesagoapparel .hero__logo {
  width: 150px; height: 150px; padding: 12px;
  background: #ffffff; box-shadow: var(--bevel-in);
  image-rendering: auto;
}
.theme-agesagoapparel .hero__name {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.45rem, 6.4vw, 2rem);
  text-shadow: 3px 3px 0 #ff6b1a;
}
.theme-agesagoapparel .hero__tagline { font-family: var(--font-mono); color: #1a1a1a; font-size: .98rem; }
.theme-agesagoapparel .hero__tagline::after {
  content: "_"; display: inline-block; margin-left: 2px; font-weight: 700;
  animation: aa-blink 1.1s steps(1) infinite;
}
@keyframes aa-blink { 50% { opacity: 0; } }

.theme-agesagoapparel .socials { gap: 8px; }
.theme-agesagoapparel .social {
  width: 48px; height: 48px; border: 0; border-radius: 0; background: #c0c0c0; color: #000;
  box-shadow: var(--bevel-out); transition: none;
}
.theme-agesagoapparel .social:hover { transform: none; background: #cfcfcf; }
.theme-agesagoapparel .social:active { box-shadow: var(--bevel-in); }

.theme-agesagoapparel main { padding: 0 14px; }
.theme-agesagoapparel .link-list { gap: 10px; }
.theme-agesagoapparel .btn {
  border: 0; border-radius: 0; min-height: 60px; background: var(--btn-bg);
  box-shadow: var(--bevel-out); font-weight: 700; transition: none;
}
.theme-agesagoapparel .btn:hover { transform: none; background: var(--btn-hover); }
.theme-agesagoapparel .btn:active { box-shadow: var(--bevel-in); padding: 13px 13px 11px 17px; }
.theme-agesagoapparel .btn__sub { color: #2a2a2a; font-family: var(--font-mono); font-size: .84rem; }
.theme-agesagoapparel .btn__icon {
  width: 36px; height: 36px; background: #000; color: #ff6b1a;
}
.theme-agesagoapparel .btn__chev { opacity: 1; }
.theme-agesagoapparel .badge {
  border-radius: 0; background: #000; color: #ff6b1a; font-family: var(--font-mono); letter-spacing: .04em;
}
.theme-agesagoapparel .btn--featured,
.theme-agesagoapparel .btn--promo { background: #ff6b1a; color: #000; }
.theme-agesagoapparel .btn--featured:hover,
.theme-agesagoapparel .btn--promo:hover { background: #ff7d36; filter: none; }
.theme-agesagoapparel .btn--featured .btn__sub,
.theme-agesagoapparel .btn--promo .btn__sub { color: #000; opacity: 1; }
.theme-agesagoapparel .btn--featured .btn__icon,
.theme-agesagoapparel .btn--promo .btn__icon { background: #000; color: #ff6b1a; }
.theme-agesagoapparel .btn--promo {
  background: repeating-linear-gradient(45deg, #ff6b1a 0 14px, #ff7f3a 14px 28px);
  outline: 2px dashed #000; outline-offset: -8px;
}
.theme-agesagoapparel .btn--promo .btn__label { font-size: 1.08rem; }

.theme-agesagoapparel :focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.theme-agesagoapparel .btn:focus-visible { outline: 3px dotted #000; outline-offset: -9px; }
.theme-agesagoapparel .btn--promo:focus-visible { outline: 3px solid #000; outline-offset: -9px; }
.theme-agesagoapparel .foot :focus-visible,
.theme-agesagoapparel .skip:focus-visible { outline-color: #ff6b1a; }

.theme-agesagoapparel .skip { background: #ff6b1a; color: #000; border-radius: 0; }
.theme-agesagoapparel .foot { color: #bdbdbd; font-family: var(--font-mono); }

@media (min-width: 768px) {
  .theme-agesagoapparel .page { padding-top: 56px; }
  .theme-agesagoapparel .hero__logo { width: 168px; height: 168px; }
  .theme-agesagoapparel main { padding: 0 22px 6px; }
  .theme-agesagoapparel .hero { padding: 24px 22px 22px; }
}

.theme-agesagoapparel .notice {
  display: block; width: fit-content; margin: 14px auto 0; border-radius: 0;
  background: #000; color: #ff6b1a; font-family: var(--font-mono); font-size: .9rem; letter-spacing: .02em;
  padding: 6px 12px; text-transform: uppercase;
}
.theme-agesagoapparel .notice::before { content: "\2605  "; }
.theme-agesagoapparel .notice::after { content: "  \2605"; }
@media (max-width: 480px) {
  .theme-agesagoapparel .page { padding-left: 10px; padding-right: 10px; padding-top: 16px; }
  .theme-agesagoapparel main { padding: 0 10px; }
  .theme-agesagoapparel .hero { padding: 16px 10px 18px; }
  .theme-agesagoapparel .hero__tagline { font-size: .84rem; }
}

.theme-agesagoapparel .notice + .socials { margin-top: 16px; }
