/* ============================================================
   Shelby DeNike — placeholder
   Refined minimal. One sharp accent (the avatar's lime green).
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;            /* variable axis */
  font-display: swap;
  src: url("/fonts/inter-variable.woff2") format("woff2");
}

/* ---- Theme tokens ---- */
:root {
  --bg:           #fafaf8;
  --surface:      #ffffff;
  --text:         #17171a;
  --muted:        #6e6e76;
  --border:       #e8e7e2;
  --border-strong:#dcdbd5;
  --accent:       #6f9500;   /* text-contrast-safe green */
  --accent-line:  #99c107;   /* brand green for borders/dots/rings */
  --shadow:       0 1px 2px rgba(20, 20, 20, .04), 0 12px 28px -16px rgba(20, 20, 20, .14);
  --shadow-hover: 0 2px 4px rgba(20, 20, 20, .05), 0 22px 44px -20px rgba(20, 20, 20, .22);

  --maxw: 46rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  --bg:           #0b0b0c;
  --surface:      #141416;
  --text:         #f2f2f0;
  --muted:        #9a9aa2;
  --border:       #26262a;
  --border-strong:#33333a;
  --accent:       #a6d60a;
  --accent-line:  #a6d60a;
  --shadow:       0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px -18px rgba(0, 0, 0, .7);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, .5), 0 26px 50px -22px rgba(0, 0, 0, .8);
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";   /* nicer Inter glyphs */
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---- Page shell: centered column, footer pinned ---- */
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
}

/* ---- Top bar (theme toggle) ---- */
.topbar { display: flex; justify-content: flex-end; }

.toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.toggle:hover { border-color: var(--accent-line); }
.toggle:active { transform: scale(.94); }
.toggle__icon { grid-area: 1 / 1; }
[data-theme="light"] .toggle__icon--sun  { display: none; }
[data-theme="dark"]  .toggle__icon--moon { display: none; }

/* ---- Main: vertically centered ---- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical rhythm scales with viewport HEIGHT so it fits short laptop screens
     without a scrollbar, while staying airy on tall displays */
  gap: clamp(1.5rem, 4.5vh, 3.75rem);
  padding-block: clamp(1rem, 3.5vh, 2.75rem);
}

/* ---- Hero ---- */
.hero { text-align: center; }
.hero__avatar {
  width: clamp(104px, 22vw, 132px);
  height: auto;
  margin-inline: auto;
}
.hero__name {
  margin: 1.1rem 0 0;
  font-size: clamp(2rem, 7vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ---- Projects ---- */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 0 0 clamp(1rem, 2.5vh, 1.5rem);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent-line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.75rem, 2vw, 1.1rem);
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 1.6rem) 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-hover);
}

.tile__icon {
  width: 64px; height: 64px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
}
[data-theme="dark"] .tile__icon { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tile__icon img { width: 100%; height: 100%; object-fit: cover; }

.tile__name {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .95rem;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tile__arrow {
  color: var(--muted);
  opacity: .55;
  transform: translate(-2px, 1px);
  transition: transform .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.tile:hover .tile__arrow {
  color: var(--accent);
  opacity: 1;
  transform: translate(1px, -2px);
}

.tile__desc {
  margin-top: .35rem;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(1rem, 2.5vh, 1.5rem);
}
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem;
  max-width: 28rem;       /* all ten on one row on desktop */
}
.social__link {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  color: var(--muted);
  transition: color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.social__link:hover {
  color: var(--text);
  background: var(--surface);
  transform: translateY(-2px);
}
.copy {
  margin: 0;
  font-size: .76rem;
  letter-spacing: .01em;
  color: var(--muted);
}

/* ---- Focus (keyboard) ---- */
:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---- Responsive: stack the row into left-aligned cards on small screens ---- */
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);   /* let the text column shrink + wrap */
    grid-template-areas: "icon name" "icon desc";
    align-items: center;
    column-gap: 1rem;
    row-gap: .15rem;
    text-align: left;
    padding: 1rem 1.15rem;
  }
  .tile__icon { grid-area: icon; width: 52px; height: 52px; }
  .tile__name { grid-area: name; align-self: end; margin-top: 0; }
  .tile__desc { grid-area: desc; align-self: start; }
  .social { max-width: 14rem; }   /* balanced 5 + 5 rows on phones */
}

/* ---- Short viewports (laptops like a 13" Air): compress to fit, no scrollbar ---- */
@media (min-width: 561px) and (max-height: 800px) {
  .page { padding-block: clamp(.6rem, 1.8vh, 1.25rem); }
  .main {
    gap: clamp(.9rem, 3vh, 2.25rem);
    padding-block: clamp(.4rem, 1.6vh, 1.4rem);
  }
  .hero__avatar { width: clamp(80px, 13vh, 112px); }
  .hero__name { font-size: clamp(1.6rem, 5vh, 2.5rem); margin-top: .6rem; }
  .eyebrow { margin-bottom: clamp(.7rem, 2vh, 1.25rem); }
  .tile { padding: clamp(.85rem, 2.2vh, 1.5rem) 1rem; }
  .tile__icon { width: clamp(52px, 8vh, 64px); height: clamp(52px, 8vh, 64px); }
  .footer { padding-top: clamp(.8rem, 2vh, 1.5rem); }
}

/* ---- Honor reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .tile:hover { transform: none; }
  .social__link:hover { transform: none; }
}
