/* zackswartz.com — combined style: Swartz-Comm component system rendered in
   black-and-white minimalism. Monochrome palette; black is the "accent". */

:root {
  --bg:      #ffffff;
  --surface: #fafafa;   /* card background */
  --surface2:#f4f4f4;   /* inset / logic block */
  --fg:      #111111;   /* near-black text + primary accent */
  --fg-dim:  #6b6b6b;   /* secondary text */
  --muted:   #9a9a9a;   /* labels, faint */
  --border:  #e6e6e6;
  --border2: #d8d8d8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ─────────────────────────────────────────────────────────────── */

.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav-left { display: flex; align-items: center; gap: 30px; }

.nav-brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  letter-spacing: 0.2px;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
  font-size: 14px;
  color: var(--fg-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.nav-pill:hover { opacity: 0.82; }

/* ── Layout ──────────────────────────────────────────────────────────── */

.container { max-width: 760px; margin: 0 auto; padding: 0 32px; }

section { padding: 72px 0; }
section.tight { padding: 44px 0; }
.divider { border-bottom: 1px solid var(--border); }

.section-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  color: var(--fg);
}

h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  color: var(--fg);
}

p.lead {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 620px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero { padding: 88px 0 72px; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}
.hero-text { flex: 1; }

/* Profile card — zackswartz.com treatment (rounded box, circular photo, name +
   role, hover-lift). The box around the photo uses the ALTO page's animated
   dark gradient. */
.profile-card {
  display: block;
  cursor: pointer;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 16px 36px rgba(0, 0, 0, 0.10);
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 16px;
  border-radius: 50%;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: block;
}

.profile-card h3 { font-size: 18px; margin: 0 0 6px; color: var(--fg); }
.profile-card .role {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta { display: flex; gap: 14px; margin-top: 30px; }

/* ── Prose / About body ──────────────────────────────────────────────── */

.prose p {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 640px;
}
.prose p:last-child { margin-bottom: 0; }

/* Fish photo grid (About) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.photo-frame {
  aspect-ratio: 3 / 4;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
/* contain = whole photo shown, centered both directions (no cropping) */
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Sub-section heading — inline granularity (replaces the dropdowns) */
.subhead {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin: 36px 0 8px;
}

/* Grouped photo set — 2-3 photos that belong together, in one even row,
   with an optional caption for the group. */
.photo-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}
.photo-row .photo-frame { aspect-ratio: 3 / 4; }

/* Football plaques — cropped tight, filled to the box (no white letterbox) */
.photo-row.plaques .photo-frame { aspect-ratio: 5 / 4; }
.photo-row.plaques .photo-frame img { object-fit: cover; }
.photo-cap {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* Single feature photo (About sections) */
.about-photo { margin-top: 26px; }
.about-photo img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border2);
  display: block;
}
/* full = show the whole horizontal photo, no cropping */
.about-photo.full img { max-height: none; height: auto; object-fit: contain; }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--fg);
  color: #ffffff;
  border: 1px solid var(--fg);
  border-radius: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { opacity: 0.85; }

.btn.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border2);
}
.btn.secondary:hover { background: var(--surface); opacity: 1; border-color: var(--fg); }

/* ── Cards (What I do / steps) ───────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards + .banner { margin-top: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--fg); transform: translateY(-2px); }

.card-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card h3 { font-size: 17px; margin: 0 0 8px; color: var(--fg); }
.card p { font-size: 14px; color: var(--fg-dim); line-height: 1.55; margin: 0; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--border2);
  transition: border-color 0.15s ease;
}
.card-link:hover { border-color: var(--fg); }

/* ── Project grid (2-up) ─────────────────────────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  transition: border-color 0.15s ease;
}
.project:hover { border-color: var(--fg); }
.project h3 { font-size: 18px; margin: 0 0 10px; }
.project p { font-size: 14px; color: var(--fg-dim); line-height: 1.55; margin: 0 0 16px; }
.project .meta {
  font-size: 12.5px;
  color: var(--fg-dim);
  background: var(--surface2);
  border-left: 2px solid var(--fg);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.project a.btn { padding: 9px 18px; font-size: 13px; }

/* ── Banner callout ──────────────────────────────────────────────────── */

.banner {
  background: var(--fg);
  color: #ffffff;
  border-radius: 14px;
  padding: 34px 36px;
}
.banner .section-label { color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.banner h2 { color: #ffffff; }
.banner p { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.6; margin: 0; }

/* Banner as a clickable link */
a.banner { display: block; cursor: pointer; transition: transform 0.15s ease; }
a.banner:hover { transform: translateY(-2px); }
.banner-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.15s ease;
}
a.banner:hover .banner-more { border-bottom-color: #ffffff; }

/* ALTO Research — coming-soon page (dark animated gradient) */
.alto-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #ffffff;
  padding: 40px;
  background: linear-gradient(-45deg, #000000, #333333, #111111, #444444);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}
.alto-page .section-label { color: rgba(255, 255, 255, 0.55); }
.alto-page h1 { color: #ffffff; font-size: 46px; margin-bottom: 14px; }
.alto-page p { color: rgba(255, 255, 255, 0.72); font-size: 16px; line-height: 1.6; margin: 6px 0 0; }
.alto-back {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 26px;
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.alto-back:hover { background: #e6e6e6; }

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--fg-dim); }
footer a:hover { color: var(--fg); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.footer-inner a {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.footer-inner a:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .nav-links { display: none; }
  h1 { font-size: 34px; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; }
  .cards, .project-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-row { grid-auto-flow: row; }
  .container { padding: 0 20px; }
}
