:root {
  --bg:          #061f38;
  --bg-alt:      #163559;
  --ink:         #ece8de;
  --ink-soft:    #b8c5d2;
  --muted:       #6f88a3;
  --rule:        rgba(180, 215, 240, 0.18);
  --rule-strong: rgba(180, 215, 240, 0.55);
  --accent:      #ece8de;
  --neon:        #5ec8ff;
  --pulse:       #e85a2c;

  --serif:  "Patrick Hand", Georgia, serif;
  --sans:   "Patrick Hand", -apple-system, system-ui, sans-serif;
  --mono:   "Patrick Hand", "Courier Prime", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  background-image:
    linear-gradient(to right, rgba(180, 215, 240, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(180, 215, 240, 0.06) 1px, transparent 1px), linear-gradient(to right, rgba(180, 215, 240, 0) 1px, transparent 1px), linear-gradient(to bottom, rgba(180, 215, 240, 0) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* Suppress the default focus ring; replace it via :focus-visible below */
:focus { outline: none; }

/* ---------- Layout shell ---------- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Status strip ---------- */
.status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 80px;
}
.status-strip .back {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
.status-strip .back:hover { opacity: 0.55; }
.status-strip .back .ph {
  font-size: 14px;
  transition: transform 0.25s ease;
}
.status-strip .back:hover .ph {
  transform: translateX(-3px);
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pulse);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* ---------- Header ---------- */
header.page-head {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 36px;
}
.header-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 24px;
}
.header-eyebrow::before {
  content: "// ";
  color: var(--ink);
}
.header-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 7rem;
  line-height: 0.92;
  color: var(--ink);
}
.header-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.header-desc {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  align-self: end;
  padding-bottom: 8px;
}

/* ---------- Project list ---------- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-link {
  background: rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 2fr auto;
  gap: 32px;
  padding: 22px 28px;
  color: inherit;
  position: relative;
  transition: background 0.25s ease, box-shadow 0.2s ease, padding 0.25s ease;
}
.project-top {
  display: block;
}
.p-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0;
  transition: color 0.2s ease, font-family 0.2s ease, font-style 0.2s ease;
}
.p-desc {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.arrow {
  font-size: 18px;
  color: var(--muted);
  align-self: center;
  transition: transform 0.25s ease, color 0.2s ease;
}
/* ---------- Hover & focus — shared neon blue glow ---------- */
.project-link:hover,
.project-link:focus-visible {
  outline: none;
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px var(--neon),
    0 0 0 1px var(--neon),
    0 0 18px rgba(94, 200, 255, 0.6),
    0 0 40px rgba(94, 200, 255, 0.28);
}
.project-link:hover {
  background: rgba(255,255,255,.18);
  padding-left: 36px;
  padding-right: 36px;
}
.project-link:hover .arrow,
.project-link:focus-visible .arrow {
  color: var(--neon);
  transform: translateX(6px);
}

.back:focus-visible,
.footer-name:focus-visible {
  outline: none;
  color: var(--neon);
  text-shadow:
    0 0 10px rgba(94, 200, 255, 0.6),
    0 0 22px rgba(94, 200, 255, 0.3);
}

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  padding-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-bottom: 4px;
}
.footer-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
.footer-name em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.footer-name:hover { opacity: 0.6; }
.footer-copy {
  font-family: var(--mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .wrap { padding: 22px 22px 44px; }
  header.page-head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
    padding-bottom: 28px;
  }
  .header-desc { padding-bottom: 0; max-width: none; }
  .status-strip { margin-bottom: 44px; }

  .project-link {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 20px 22px;
  }
  .project-top { grid-column: 1 / 2; grid-row: 1 / 2; }
  .arrow       { grid-column: 2 / 3; grid-row: 1 / 2; }
  .p-desc      { grid-column: 1 / 3; grid-row: 2 / 3; }
  .project-link:hover {
    padding-left: 28px;
    padding-right: 28px;
  }
  .p-title { font-size: 20px; }

  footer { flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 36px; }
}
