/*
 * Minimal Pro Auto for LinkStack
 * Automatic light/dark mode via prefers-color-scheme.
 */

:root {
  color-scheme: light dark;
  --page-bg: #f5f6f7;
  --page-glow: rgba(255, 255, 255, 0.92);
  --surface: #ffffff;
  --surface-hover: #fbfbfc;
  --text: #20242a;
  --muted: #626a73;
  --border: #dde1e5;
  --accent: #252a31;
  --focus: #2563eb;
  --shadow: 0 8px 24px rgba(25, 31, 38, 0.07);
  --shadow-hover: 0 12px 30px rgba(25, 31, 38, 0.12);
  --avatar-ring: rgba(255, 255, 255, 0.95);
  --scroll-track: #eceff1;
  --scroll-thumb: #a9b0b7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #101214;
    --page-glow: rgba(31, 35, 39, 0.74);
    --surface: #191c20;
    --surface-hover: #20242a;
    --text: #f3f5f7;
    --muted: #a7afb8;
    --border: #30353b;
    --accent: #f3f5f7;
    --focus: #7aa7ff;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.4);
    --avatar-ring: #24282d;
    --scroll-track: #15181b;
    --scroll-thumb: #4b535c;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--text) !important;
  background:
    radial-gradient(circle at 50% -12%, var(--page-glow) 0, transparent 43%),
    var(--page-bg) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  position: relative;
  width: min(92%, 560px);
  max-width: 560px;
  margin: 0 auto;
  padding: 54px 0 28px;
  text-align: center;
}

.column,
.columns {
  width: 100%;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text) !important;
  font-family: inherit;
  letter-spacing: -0.025em;
}

h1 {
  margin-top: 15px;
  margin-bottom: 7px;
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 750;
  line-height: 1.2;
}

p {
  margin: 0 auto 24px;
  color: var(--muted) !important;
  line-height: 1.58;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.rounded-avatar,
.avatar,
img[alt*="avatar" i] {
  border-radius: 50%;
}

.rounded-avatar {
  width: clamp(104px, 24vw, 124px);
  height: clamp(104px, 24vw, 124px);
  object-fit: cover;
  border: 5px solid var(--avatar-ring);
  box-shadow: 0 7px 23px rgba(20, 25, 31, 0.16);
}

.spacing {
  padding: 0 7px;
}

.social-icon-div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 0 28px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 9px;
  border-radius: 50%;
  color: var(--text) !important;
  font-size: 27px;
  line-height: 1;
  transition: background-color 160ms ease, transform 160ms ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: var(--surface);
  transform: translateY(-2px);
}

code {
  padding: 0.18rem 0.42rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.9em;
}

pre > code {
  display: block;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  white-space: pre;
}

button,
.button {
  margin-bottom: 12px;
}

input,
textarea,
select,
fieldset {
  margin-bottom: 1.5rem;
}

pre,
blockquote,
dl,
figure,
ol {
  margin-bottom: 2.2rem;
}

.u-full-width {
  width: 100%;
}

.u-max-full-width {
  max-width: 100%;
}

.u-pull-right {
  float: right;
}

.u-pull-left {
  float: left;
}

hr {
  margin: 2.8rem 0 2.2rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.credit-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.credit-txt {
  color: var(--muted) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.credit-txt-clr {
  color: var(--muted) !important;
}

.credit-icon {
  opacity: 0.7;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 46%, transparent);
  outline-offset: 3px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: 9px;
}

*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid var(--scroll-track);
  border-radius: 999px;
  background: var(--scroll-thumb);
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 28px);
    padding-top: 38px;
  }

  body {
    font-size: 16px;
  }
}
