/* Todak — Marlin cut. Fixed LinkStack markup; no font or script dependency added. */
:root {
  color-scheme: dark;
  --td-ink: #080d14;
  --td-panel: #151e2b;
  --td-text: #f4f2eb;
  --td-muted: #b9c5d4;
  --td-line: #52637b;
  --td-blue: #8fcbff;
  --td-copper: #eab08a;
}
html { min-height: 100%; font-size: 16px; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  background-color: var(--td-ink);
  color: var(--td-text);
  font: 400 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Independent of body background-image, including the inline !important upload rule.
   Even a white photo is reduced to #21262c. Nothing interactive is under the scrim. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(8, 13, 20, .90);
  pointer-events: none;
}
body::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 650px;
  pointer-events: none;
  mask-image: linear-gradient(#000 65%, transparent);
  background:
    linear-gradient(123deg, transparent 45.8%, #8fcbff35 46%, #19324c40 46.15%, transparent 62%),
    linear-gradient(123deg, transparent 61.8%, #eab08a2e 62%, transparent 62.2%),
    linear-gradient(90deg, #4b1977, #2b0081) top / 100% 3px no-repeat;
}
/* Decorative remnants in a mirrored page from another theme. No user content. */
.background-container, canvas.background { display: none; }
body > .container {
  position: relative;
  width: min(100% - 40px, 580px);
  margin: 0 auto;
  padding: 0;
}
.row, .column { width: 100%; min-width: 0; }
.column {
  position: relative;
  margin-top: 0 !important;
  padding: 104px 0 48px;
  text-align: left;
}
.column::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 34px;
  height: 44px;
  background: url("../../assets/linkstack/images/logo_short.png") center / contain no-repeat;
  filter: invert(1);
  mix-blend-mode: screen;
}
.column::after {
  content: "";
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--td-copper) 0 28px, #52637b70 28px 100%);
}
body #avatar {
  display: block;
  width: 104px;
  height: 104px;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center;
  border-radius: 4px;
  border: 1px solid var(--td-line);
  padding: 6px;
  margin: 0 0 24px;
  background: var(--td-ink);
  box-shadow: 6px 6px 0 #8fcbff12;
}
/* Platform fallback marks can be black on transparency. A neutral mount supports
   both black and white marks; uploaded photos retain their dark mount. */
body #avatar[src*="assets/linkstack/images/"] { background: #64748b; }
/* Demo fallback only: uploaded profile avatars use alt="avatar". */
/* Home-page example card only (body.custom-demo): the site mark is a black marlin; on the dark card it is invisible. The card shows either the stock logo (alt="Logo") or the site avatar (alt="avatar"). Real profile pages never carry body.custom-demo. */
body.custom-demo img[alt="Logo"], body.custom-demo img[alt="avatar"] { filter: invert(1); }
body .column > h1 {
  margin: 0 0 20px;
  color: var(--td-text) !important;
  font: 800 clamp(2.25rem, 8.8vw, 3.5rem)/1.04 Arial, Helvetica, sans-serif;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body .dynamic-contrast { color: var(--td-text) !important; }
body .badge { width: .6em; height: .6em; margin: 0 0 0 .22em; vertical-align: middle; }
center { text-align: inherit; }
body .column .description-parent {
  padding: 0 0 24px;
  color: var(--td-muted) !important;
  font-size: 1rem;
  line-height: 1.65;
}
body .description-parent * { margin-bottom: 0; }
body .description-parent p + p { margin-top: .8em; }
body .description-parent > p:empty { margin: 0; }
body .description-parent:not(:has(p:not(:empty), h2, h3, h4, ul, ol, img)) { padding-bottom: 0; }
body .column h2, body .column h3, body .column h4 {
  color: var(--td-text);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
body .column h2, body .column h3 {
  position: relative;
  font: 750 1.3rem/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: -.025em;
  margin: 32px 0 16px;
  padding-top: 19px;
  border-top: 1px solid #52637b70;
}
body .column h2::before, body .column h3::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 3px;
  left: 0;
  top: -2px;
  background: var(--td-copper);
  transform: skewX(-28deg);
}
body .column h4 { font-size: 1rem; line-height: 1.6; font-weight: 650; margin: 12px 0 16px; }
body .description-parent :is(h2, h3, h4) {
  font: 600 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  border: 0;
  padding: 0;
  margin: 0 0 .6em;
}
body .description-parent :is(h2, h3)::before { content: none; }
p { margin: 0 0 16px; overflow-wrap: anywhere; }
strong, b { font-weight: 700; color: var(--td-text); }
blockquote { margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--td-copper); }
ul, ol { padding-left: 1.4em; margin: 12px 0 20px; }
li + li { margin-top: 6px; }
a { color: var(--td-blue); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
/* Inline bio links remain part of the prose but offer a full-height touch target. */
.column p a, .description-parent a, .column h3 a, .column h4 a, .column li a {
  display: inline-block;
  min-height: 44px;
  padding-block: 9px;
  max-width: 100%;
}
body a:hover { color: var(--td-text); }
body :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--td-blue) !important;
  outline-offset: 4px;
}
.social-icon-div { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
body .social-link {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--td-panel);
  border: 1px solid var(--td-line);
  border-radius: 3px;
  text-decoration: none;
}
body .social-icon { font-size: 22px; color: var(--td-text) !important; margin: 0; }
body .button-entrance { margin: 0 0 10px; }
body a.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  height: auto;
  margin: 0;
  padding: 15px 40px 15px 16px;
  border: 1px solid var(--td-line);
  border-radius: 3px;
  background: var(--td-panel) !important;
  color: var(--td-text) !important;
  box-shadow: 0 3px 0 #00000020;
  text-align: left;
  text-decoration: none;
  font: 600 1rem/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
body a.button::after {
  content: "";
  position: absolute;
  right: 18px;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--td-blue);
  border-right: 1px solid var(--td-blue);
  transform: rotate(45deg);
}
body a.button:hover { background: #203047 !important; border-color: var(--td-blue); }
body a.button:active { background: #293c54 !important; }
body .button > .icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  object-fit: contain;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: var(--td-blue);
}
body .button-custom_website > img.icon { background: #f4f2eb; border-radius: 3px; padding: 2px; }
.button-spacer { flex-shrink: 0; }
.column > .container { width: 100%; margin: 0; padding: 0; }
.column .footer { font-size: .875rem; color: var(--td-muted); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.u-full-width { width: 100%; }
img, video { max-width: 100%; }
pre { max-width: 100%; overflow: auto; }
::selection { color: var(--td-ink); background: var(--td-blue); }
@media (min-width: 768px) {
  body > .container { width: min(100% - 112px, 640px); padding-inline: 30px; border-inline: 1px solid #52637b35; }
  .column { padding-top: 124px; padding-bottom: 72px; }
  .column::before { top: 24px; }
  .column::after { top: 86px; }
  body #avatar { width: 116px; height: 116px; }
  body .column > h1 { font-size: 3.5rem; max-width: 540px; }
}
@media (forced-colors: active) {
  body::before, body::after, .column::before { display: none; }
  body a.button, body .social-link { border: 1px solid ButtonText; }
}
