/* 9to5Central 2026 – clean light */

:root {
  --bg: #b8af98;
  --text: #0a0a0a;
  --muted: #5a5549;
  --heading: #000000;
  --accent: #c47f00;

  --ph-1: color-mix(in srgb, var(--bg), white 35%);
  --ph-2: color-mix(in srgb, var(--bg), white 22%);
  --ph-3: color-mix(in srgb, var(--bg), white 12%);
  --ph-4: color-mix(in srgb, var(--bg), white 4%);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0 auto;
  padding: 100px 48px;
  max-width: 760px;

  background: var(--bg);
  color: var(--text);

  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* Fade-in animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
.meta,
ul,
.projects,
.signature,
.copyright {
  animation: fadeUp 0.6s ease both;
}

h1            { animation-delay: 0s; }
.meta         { animation-delay: 0.08s; }
ul            { animation-delay: 0.16s; }
.projects     { animation-delay: 0.16s; }
.signature    { animation-delay: 0.24s; }
.copyright    { animation-delay: 0.32s; }

/* H1 */
h1 {
  margin: 0 0 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--heading);
}

/* List reset */
ul {
  list-style: none;
  padding: 0;
  margin: 36px 0;
}

li {
  margin: 18px 0;
  position: relative;
  padding-left: 18px;
  transition: transform 0.25s ease;
}

li:hover {
  transform: translateX(6px);
}

/* Accent square bullet */
li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

/* Links */
a {
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

a:hover::after {
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

a:hover::after {
  animation: underlineRebuilds 0.85s ease forwards;
}

@keyframes underlineRebuilds {
  0%   { transform-origin: right;  transform: scaleX(1); }
  40%  { transform-origin: right;  transform: scaleX(0); }
  41%  { transform-origin: left;   transform: scaleX(0); }
  100% { transform-origin: left;   transform: scaleX(1); }
}

/* Projects grid */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.project-card {
  display: block;
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card::after {
  display: none;
}

.project-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.project-img svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-bg { fill: var(--ph-1); }
.wave-1  { fill: var(--ph-2); }
.wave-2  { fill: var(--ph-3); }
.wave-3  { fill: var(--ph-4); }

.project-info {
  padding-top: 2px;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-arrow {
  font-size: 18px;
  color: var(--heading);
  transition: color 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.project-desc {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meta {
  margin: 22px 0 36px;
  color: var(--text);
  max-width: 620px;
}

.projects + .meta {
  margin-top: 48px;
}

/* Store badges */
.badges {
  display: flex;
  gap: 12px;
  margin: 36px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--heading);
  border: 1.5px solid var(--heading);
  border-radius: 8px;
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.badge:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--heading);
}

.badge::after {
  display: none;
}

.badge-text {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.badge-text small {
  display: block;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.legal {
  margin: 36px 0;
  font-size: 12px;
  font-weight: 500;
}

.back {
  margin: 0 0 24px;
}

.back a {
  font-weight: 600;
}

.footer {
  margin-top: 80px;
}

.signature {
  margin-top: 32px;
  font-weight: 600;
}

.copyright {
  margin-top: 56px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
