/* =========================================================
   HACK4SHELL — HALL OF FAME
   POND THEME
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --ink: #0B0D10;
  --ink-2: #10141A;

  --panel: #141920;
  --panel-2: #1B222B;

  --line: #262F3A;
  --line-hover: #34404D;

  --amber: #FFB627;
  --amber-hover: #FFC65B;
  --amber-dim: #8A6A22;

  --cyan: #4FD6C4;
  --cyan-dim: #287E74;

  --red: #FF5F5F;

  --paper: #EDE9DF;
  --muted: #8A93A0;

  --success: #8CE99A;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*
 * FOOTER FIX:
 * The body is now a vertical flex container, so the footer is always
 * pushed to the bottom of the viewport on short pages, and sits right
 * after the content on long pages. This replaces the old
 * `min-height: calc(100vh - 130px)` guess on .page.
 */
body {
  margin: 0;

  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;

  background: #000;
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--amber);
}

::selection {
  background: var(--amber);
  color: #171308;
}


/* =========================================================
   PAGE
   ========================================================= */

.page {
  width: min(100%, var(--max-width));

  /* Grows to fill the space above the footer */
  flex: 1 0 auto;

  margin: 0 auto;

  padding: 72px 24px 90px;

  display: grid;

  grid-template-columns: 170px minmax(0, 1fr);

  column-gap: 70px;

  align-items: start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  min-width: 0;
}

.year-nav {
  position: sticky;
  top: 90px;

  display: flex;
  flex-direction: column;

  padding-left: 20px;

  border-left: 1px solid var(--line);
}

.year-nav::before {
  content: 'YEARS';

  margin-bottom: 13px;

  color: var(--muted);

  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


/* =========================================================
   YEAR BUTTON
   ========================================================= */

.year-link {
  position: relative;

  width: fit-content;

  margin: 0;
  padding: 6px 0;

  appearance: none;

  border: 0;
  background: transparent;

  color: var(--muted);

  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;

  line-height: 1.4;

  text-align: left;

  cursor: pointer;

  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.year-link:hover {
  color: var(--paper);

  transform: translateX(2px);
}

.year-link.is-active {
  color: var(--amber);
}

.year-link.is-active::before {
  content: '';

  position: absolute;

  width: 3px;
  height: 22px;

  left: -21px;
  top: 50%;

  background: var(--amber);

  border-radius: 1px;

  transform: translateY(-50%);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.content {
  min-width: 0;

  width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.content__header {
  max-width: 820px;

  margin: 0 0 42px;
  padding: 0 0 38px;

  border-bottom: 1px solid var(--line);
}

.content__header::before {
  content: 'RESPONSIBLE DISCLOSURE';

  display: block;

  margin-bottom: 15px;

  color: var(--cyan);

  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;

  letter-spacing: 0.14em;

  line-height: 1.3;
}

.content__header h1 {
  margin: 0 0 17px;

  color: var(--paper);

  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  font-weight: 600;

  letter-spacing: -0.045em;

  line-height: 0.98;
}

.content__header p {
  max-width: 72ch;

  margin: 0;

  color: var(--muted);

  font-family: var(--font-body);
  font-size: 0.98rem;

  line-height: 1.75;
}


/* =========================================================
   ENTRIES CONTAINER
   ========================================================= */

.entries {
  display: flex;
  flex-direction: column;

  gap: 12px;

  width: 100%;
}


/* =========================================================
   ENTRY CARD
   ========================================================= */

.entry {
  position: relative;

  display: grid;

  grid-template-columns: 64px minmax(0, 1fr) auto;

  align-items: center;

  gap: 20px;

  width: 100%;

  min-height: 102px;

  padding: 18px 20px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.018),
      transparent 60%
    ),
    var(--panel);

  border: 1px solid var(--line);

  border-radius: 7px;

  overflow: hidden;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}


/*
 * Small amber accent line on the left.
 */

.entry::before {
  content: '';

  position: absolute;

  left: 0;
  top: 18px;
  bottom: 18px;

  width: 2px;

  background: var(--amber);

  opacity: 0;

  transition: opacity 0.18s ease;
}

.entry:hover {
  border-color: var(--line-hover);

  background:
    linear-gradient(
      135deg,
      rgba(255, 182, 39, 0.025),
      transparent 60%
    ),
    var(--panel-2);

  transform: translateY(-1px);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.25);
}

.entry:hover::before {
  opacity: 1;
}


/* =========================================================
   AVATAR
   ========================================================= */

.entry__avatar {
  position: relative;

  width: 64px;
  height: 64px;

  flex-shrink: 0;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(79, 214, 196, 0.08),
      transparent 60%
    ),
    var(--panel-2);

  border: 1px solid var(--line);

  color: var(--amber);

  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
}

.entry__avatar::after {
  content: '';

  position: absolute;

  inset: 0;

  border-radius: 50%;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);

  pointer-events: none;
}

.entry__avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  border-radius: 50%;
}

.entry__avatar-fallback {
  width: 100%;
  height: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--amber);

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 182, 39, 0.13),
      transparent 62%
    ),
    var(--panel-2);

  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
}


/* =========================================================
   ENTRY CONTENT
   ========================================================= */

.entry__main {
  min-width: 0;
}

.entry__name {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 0 7px;

  margin: 0 0 4px;

  color: var(--paper);

  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;

  line-height: 1.4;
}

.entry__country {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  color: var(--muted);

  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;

  line-height: 1.4;
}

.entry__flag {
  font-size: 0.95rem;

  line-height: 1;
}

.entry__type {
  margin: 0 0 5px;

  color: var(--cyan);

  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;

  line-height: 1.5;
}

.entry__date {
  margin: 0;

  color: var(--muted);

  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;

  letter-spacing: 0.02em;

  line-height: 1.4;
}


/* =========================================================
   PROFILE LINK
   ========================================================= */

.entry__link {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  flex-shrink: 0;

  padding: 8px 11px;

  color: var(--muted);

  background: rgba(255, 255, 255, 0.012);

  border: 1px solid var(--line);

  border-radius: 4px;

  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;

  line-height: 1;

  text-decoration: none;

  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.entry__link svg {
  width: 12px;
  height: 12px;

  flex-shrink: 0;
}

.entry__link:hover {
  color: var(--amber);

  background: rgba(255, 182, 39, 0.045);

  border-color: var(--amber-dim);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.entries__empty {
  margin: 0;

  padding: 24px;

  color: var(--muted);

  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: 7px;

  font-family: var(--font-mono);
  font-size: 0.78rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  /* Never shrinks; stays pinned below the content */
  flex-shrink: 0;

  width: 100%;

  border-top: 1px solid var(--line);

  background: var(--ink);

  /* Keeps footer text clear of the iPhone home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer-container {
  width: min(100%, var(--max-width));

  margin: 0 auto;

  padding: 22px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Wraps instead of overflowing on narrow screens */
  flex-wrap: wrap;

  gap: 12px 20px;
}

.footer-left {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}

.footer-brand {
  color: var(--paper);

  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;

  letter-spacing: -0.01em;
}

.footer-tagline {
  color: var(--muted);

  font-family: var(--font-body);
  font-size: 0.76rem;
}

.footer-right {
  color: var(--muted);

  font-family: var(--font-mono);
  font-size: 0.75rem;

  text-decoration: none;

  transition: color 0.15s ease;
}

.footer-right:hover {
  color: var(--amber);
}


/* =========================================================
   FOCUS STATES
   ========================================================= */

.year-link:focus-visible,
.entry__link:focus-visible,
.footer-right:focus-visible {
  outline: 2px solid var(--cyan);

  outline-offset: 3px;

  border-radius: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  /*
   * FOOTER FIX:
   * This block previously re-declared .page with padding-bottom: 35px,
   * which overrode the desktop value and jammed the last entry against
   * the footer. It now tightens the grid but keeps generous bottom space.
   */
  .page {
    grid-template-columns: 130px minmax(0, 1fr);

    column-gap: 40px;

    padding: 60px 24px 70px;
  }

  .entry {
    grid-template-columns: 58px minmax(0, 1fr) auto;

    gap: 16px;

    padding: 16px;
  }

  .entry__avatar {
    width: 58px;
    height: 58px;
  }
}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 760px) {

  .page {
    display: block;

    padding: 42px 20px 70px;
  }

  .sidebar {
    margin-bottom: 34px;
  }

  .year-nav {
    position: static;

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 5px;

    width: 100%;

    padding: 0 0 12px;

    overflow-x: auto;

    border-left: 0;

    border-bottom: 1px solid var(--line);

    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  .year-nav::before {
    margin: 0 12px 0 0;

    flex-shrink: 0;
  }

  .year-link {
    width: auto;

    flex-shrink: 0;

    padding: 6px 10px;

    border: 1px solid transparent;

    border-radius: 4px;

    text-align: center;
  }

  .year-link:hover {
    transform: none;
  }

  .year-link.is-active {
    background: var(--panel);

    border-color: var(--line);
  }

  .year-link.is-active::before {
    display: none;
  }

  .content__header {
    max-width: none;
  }

  .footer-container {
    padding: 22px 20px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .page {
    padding: 34px 16px 55px;
  }

  .sidebar {
    margin-bottom: 28px;
  }

  .content__header {
    margin-bottom: 28px;

    padding-bottom: 30px;
  }

  .content__header::before {
    font-size: 0.66rem;
  }

  .content__header h1 {
    margin-bottom: 15px;

    font-size: clamp(2.4rem, 14vw, 3.6rem);

    letter-spacing: -0.05em;
  }

  .content__header p {
    font-size: 0.88rem;

    line-height: 1.7;
  }


  /* Entry becomes two-row layout */

  .entry {
    grid-template-columns: 52px minmax(0, 1fr);

    align-items: start;

    gap: 13px;

    min-height: 0;

    padding: 15px;
  }

  .entry::before {
    top: 14px;
    bottom: 14px;
  }

  .entry__avatar {
    width: 52px;
    height: 52px;
  }

  .entry__name {
    font-size: 0.98rem;
  }

  .entry__country {
    font-size: 0.7rem;
  }

  .entry__type {
    font-size: 0.81rem;

    line-height: 1.5;
  }

  .entry__date {
    font-size: 0.64rem;
  }

  .entry__link {
    grid-column: 2;

    justify-self: start;

    margin-top: -3px;

    padding: 7px 9px;

    font-size: 0.67rem;
  }


  /* Footer: stack brand and link, left-aligned */

  .footer-container {
    flex-direction: column;

    align-items: flex-start;

    gap: 14px;

    padding: 24px 16px;
  }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

  .page {
    padding-left: 13px;
    padding-right: 13px;
  }

  .entry {
    grid-template-columns: 46px minmax(0, 1fr);

    gap: 11px;

    padding: 13px;
  }

  .entry__avatar {
    width: 46px;
    height: 46px;
  }

  .entry__name {
    font-size: 0.92rem;
  }

  .entry__country {
    width: 100%;

    margin-top: 2px;
  }

  .entry__type {
    font-size: 0.77rem;
  }

  .footer-container {
    padding: 22px 13px;

    gap: 12px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}