/* ─── Dustin Dooling — design system v1 ─── */
/* Palette pulled from Adobe Color reference, Sink-style hero treatment */

:root {
  --bg: #FFFFFF;
  --tile-bg: #F5F5F5;
  --red: #F20519;
  --red-bright: #F21D2F;
  --coral: #D94E5A;
  --sky: #C9EBF2;
  --brown: #733F34;
  --yellow: #F2C744;
  --ink: #1A1A1A;
  --ink-soft: #555555;
  --rule: #E5E5E5;
  --placeholder-text: #999999;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

/* ─── NAV ─── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: var(--sky);
  border-bottom: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.logo-hand {
  position: relative;
  display: block;
  width: 96px;
  aspect-ratio: 883 / 919;
  background-image: url('/img/hand-final.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-logo:hover .logo-hand { transform: rotate(-6deg) scale(1.05); }
.logo-dd {
  position: absolute;
  left: 61.27%;
  top: 60.83%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--red);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
}
.logo-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
}
.logo-wordmark .accent { color: var(--red); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.current { color: var(--red); }

/* ─── HERO BAND (red) ─── */
.hero {
  background: var(--red);
  padding: 72px 56px 80px;
  width: 100%;
}
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.hero-line {
  font-family: 'Bowlby One', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--yellow);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  text-transform: none;
}
/* Smaller hero variant for project pages */
.hero-line.small {
  font-size: clamp(28px, 3.5vw, 56px);
}
.hero-meta {
  text-align: center;
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0.85;
}

/* ─── HOMEPAGE WORK GRID ─── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
}
.work-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tile-bg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
  cursor: pointer;
}
.tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.92);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.work-tile:hover .tile-overlay { opacity: 1; }
.tile-overlay-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.01em;
}
.tile-overlay-tags {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  text-align: center;
}

/* ─── PAGE BODY (projects, about) ─── */
.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 96px;
}
.page-body h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-top: 56px;
  margin-bottom: 16px;
  color: var(--ink);
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 40px;
  margin-bottom: 12px;
}
.page-body p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--ink);
}
.page-body p.lede {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 32px;
}
.page-body ul {
  margin: 0 0 18px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.page-body ul li { margin-bottom: 8px; }
.page-body a:not(.button) {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(242, 5, 25, 0.4);
  transition: text-decoration-color 0.15s ease;
}
.page-body a:not(.button):hover {
  text-decoration-color: var(--red);
}

/* Project hero image (full width below hero band) */
.project-hero-image {
  width: 100%;
  margin: 0 auto;
  display: block;
}
.project-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project meta bar */
.project-meta {
  background: var(--sky);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project-meta dt {
  color: var(--red);
  margin-bottom: 6px;
  font-weight: 500;
}
.project-meta dd {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 1.4;
}

/* Pull-quote / standout block (used in projects + about) */
.pull {
  background: var(--sky);
  padding: 32px;
  margin: 40px 0;
  font-family: 'Bowlby One', sans-serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--red);
  letter-spacing: -0.01em;
  text-align: center;
}

/* CTA button (used in projects for "see live" links) */
.button {
  display: inline-block;
  background: var(--red);
  color: #FFFFFF;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}
.button.secondary {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 12px 22px;
}
.button.secondary:hover {
  background: var(--red);
  color: #FFFFFF;
}
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Image with caption (projects) */
figure {
  margin: 32px 0 8px;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}
figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.5;
}

/* Next/previous project nav */
.project-pager {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding: 32px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.project-pager a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.project-pager a:hover { color: var(--red); }
.project-pager .label {
  color: var(--ink-soft);
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}

/* ─── "SHOW ME ALL THE WORK" CTA BLOCK ─── */
.show-all {
  background: var(--bg);
  padding: 80px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-decoration: none;
  color: var(--ink);
  border-top: 0;
  position: relative;
}
.show-all-hand {
  display: block;
  width: 120px;
  aspect-ratio: 1082 / 923;
  background-image: url('/img/finger-gun-final.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.show-all:hover .show-all-hand { transform: translateX(8px); }
.show-all-text {
  font-family: 'Bowlby One', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 4px solid var(--red);
  padding-bottom: 6px;
  transition: color 0.15s ease;
}
.show-all:hover .show-all-text { color: var(--red); }

/* ─── FOOTER STRIP (red bookend) ─── */
.footer-strip {
  background: var(--red);
  padding: 96px 56px;
  width: 100%;
}
.footer-strip-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-headline {
  font-family: 'Bowlby One', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  color: var(--yellow);
  letter-spacing: -0.01em;
  max-width: 640px;
}
.footer-headline .paren {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Bowlby One', 'Inter', sans-serif;
  font-size: 0.68em;
  display: inline-block;
  transform: translateY(-4%);
  margin-left: 4px;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.footer-meta a {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid var(--yellow);
  padding-bottom: 2px;
  font-weight: 500;
}
.footer-meta a:hover { color: var(--yellow); }

/* ─── ABOUT PAGE LAYOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 96px;
}
.about-grid p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 22px;
}
.about-grid p.lede {
  font-family: 'Bowlby One', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.about-grid p.lede em {
  font-style: normal;
  color: var(--red);
}

/* Roles list (about page) */
.roles {
  margin-top: 48px;
  display: grid;
  gap: 32px;
}
.role {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.role h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.role .role-co {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.role p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .hero { padding: 56px 20px 64px; }
  .footer-strip { padding: 56px 20px 64px; }
  .footer-strip-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { align-items: flex-start; }
  .page-body { padding: 56px 20px 64px; }
  .pull { padding: 24px; font-size: 22px; }
  .project-meta { padding: 20px; }
  .show-all { flex-direction: column; gap: 20px; padding: 56px 20px; }
  .show-all-hand { width: 88px; }
}
@media (max-width: 500px) {
  .nav-links a { font-size: 11px; }
  .logo-wordmark { display: none; }
  .logo-hand { width: 72px; }
}
