/* The Hive Labs — calm personal site
   Distinct from neonfuture.org (ice cyan / dark studio)
   and shelfshares.app (warm paper / sage product). */

:root {
  --stone-50: #f4f2ee;
  --stone-100: #ebe7e0;
  --stone-200: #d6d0c6;
  --ink: #2a2e28;
  --ink-soft: #5a6058;
  --honey: #b07a2e;
  --honey-deep: #8a5c1f;
  --moss: #4a5c4e;
  --line: rgba(42, 46, 40, 0.12);
  --frame: #cfc8bc;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --max: 44rem;
  --max-wide: 56rem;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background:
    radial-gradient(80% 50% at 12% 0%, rgba(176, 122, 46, 0.07), transparent 55%),
    radial-gradient(60% 40% at 100% 20%, rgba(74, 92, 78, 0.06), transparent 50%),
    linear-gradient(180deg, var(--stone-50) 0%, var(--stone-100) 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--honey-deep);
  text-underline-offset: 0.15em;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--stone-100);
  border: 1px solid var(--line);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: calc(var(--max-wide) + 5rem);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--honey-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--honey);
}

/* Main layout */

main {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
}

.hero {
  max-width: var(--max);
  margin: 2.5rem auto 3.5rem;
  padding-top: 1rem;
  animation: rise 0.7s var(--ease) both;
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--stone-50);
}

.btn-primary:hover {
  background: var(--honey-deep);
  color: var(--stone-50);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--honey);
  color: var(--honey-deep);
}

/* Sections */

.section {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
  animation: rise 0.7s var(--ease) 0.12s both;
}

.section-wide {
  max-width: var(--max-wide);
}

.section h2,
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.lede,
.page-hero p {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.page-hero {
  max-width: var(--max);
  margin: 1.5rem auto 2rem;
  animation: rise 0.65s var(--ease) both;
}

/* People */

.people {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .people {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.person {
  padding: 1.35rem 1.4rem 1.5rem;
  border-top: 2px solid var(--honey);
  background: rgba(255, 255, 255, 0.45);
}

.person h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.role {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--moss);
}

.person p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Home: resume + art teasers */

.strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .strip-list {
    grid-template-columns: 1fr 1fr;
  }
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.strip-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.strip-item p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

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

.teaser-frame {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, var(--stone-100), var(--stone-200));
  border: 1px solid var(--frame);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Resume page */

.resume-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.resume-item {
  padding: 1.5rem 1.4rem;
  border-left: 3px solid var(--honey);
  background: rgba(255, 255, 255, 0.45);
}

.resume-item h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.resume-item p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Art gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.5rem 1.25rem;
}

.frame {
  margin: 0;
}

.frame-inner {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(42, 46, 40, 0.03) 8px,
      rgba(42, 46, 40, 0.03) 9px
    ),
    linear-gradient(160deg, var(--stone-100), var(--stone-200));
  border: 1px solid var(--frame);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--frame);
}

.frame figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.frame figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: calc(var(--max-wide) + 5rem);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--honey-deep);
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .section,
  .page-hero {
    animation: none;
  }
}
