/* ===== businessishard.co, shared styles ===== */

:root {
  --paper: #FBFAF6;
  --ink: #16233B;
  --highlight: #FFD449;
  --redpen: #D9481C;
  --meta: #5C6470;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1120px;
  --side-pad: 24px;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 720px) {
  body { font-size: 18px; }
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

h2 { font-weight: 600; }

p { max-width: 68ch; margin: 0 0 1em; }

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

.mono {
  font-family: var(--font-mono);
}

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

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ===== Highlight swipe (use exactly 3x site-wide) ===== */

.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.mark::before {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.12em;
  top: 18%;
  bottom: 6%;
  background: var(--highlight);
  transform: skew(-9deg, -1.5deg) rotate(-1.5deg) scaleX(0);
  transform-origin: left center;
  z-index: -1;
  animation: swipeIn 0.38s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes swipeIn {
  to { transform: skew(-9deg, -1.5deg) rotate(-1.5deg) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mark::before {
    animation: none;
    transform: skew(-9deg, -1.5deg) rotate(-1.5deg) scaleX(1);
  }
}

/* ===== Section divider: scribble resolving to a line ===== */

.divider {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.divider svg {
  width: 100%;
  height: 32px;
  display: block;
  overflow: visible;
}

.divider path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.divider.animate path {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  transition: stroke-dashoffset 900ms ease-out;
}

.divider.animate.in-view path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .divider.animate path {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ===== Image placeholder slots ===== */

.img-slot {
  border: 1.5px dashed var(--meta);
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--meta);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  width: 100%;
}

img.img-slot {
  border: none;
  padding: 0;
  object-fit: cover;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}

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

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.wordmark .tld { color: var(--meta); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

@media (max-width: 600px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1.5px solid var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms ease-out;
  }

  .site-nav.open {
    max-height: 240px;
  }

  .site-nav a {
    width: 100%;
    padding: 14px var(--side-pad);
    border-bottom: 1px solid rgba(22,35,59,0.1);
  }

  .site-header .wrap { position: relative; }
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--ink);
}

.site-nav a.nav-profile {
  border-bottom-color: var(--highlight);
}

.site-nav a.nav-profile:hover {
  border-bottom-color: var(--highlight);
}

.header-rule {
  border: none;
  border-top: 1.5px solid var(--ink);
  margin: 0;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  transition: background 150ms ease-out, color 150ms ease-out;
  cursor: pointer;
}

.btn:hover, .btn:focus-visible {
  background: var(--highlight);
  color: var(--ink);
  border-color: var(--ink);
}

/* ===== Sections generic ===== */

.section {
  padding: 64px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 12px;
  display: block;
}

.section-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
}

/* ===== Hero ===== */

.hero {
  padding: 48px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  letter-spacing: -0.02em;
}

.hero .subline {
  font-size: 20px;
  color: var(--ink);
  margin-top: 20px;
  max-width: 46ch;
}

.hero .btn {
  margin-top: 24px;
}

.hero-img-slot {
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 859px) {
  .hero-img-slot {
    max-width: 280px;
    order: 3;
  }
}

.hero-band {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
}

.hero-band a {
  display: block;
}

.hero-band-cartoon {
  aspect-ratio: 1 / 1;
}

.hero-band-photo {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .hero-band { gap: 8px; }
}

/* ===== Bento / cards ===== */

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  padding: 24px;
  transition: transform 150ms ease-out;
  position: relative;
}

.card:hover, .card:focus-within {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, .card:focus-within { transform: none; }
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}

/* ===== Blog ===== */

.blog-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 860px) {
  .blog-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.blog-col-header .img-slot {
  width: 56px;
  height: 56px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  font-size: 9px;
}

.blog-col-header h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.article-card {
  padding: 20px 0;
  border-top: 1.5px solid var(--ink);
}

.article-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
}

.article-card p {
  margin: 0 0 10px;
  font-size: 15px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta);
  letter-spacing: 0.03em;
}

.article-meta a {
  border-bottom: 1px solid transparent;
}

.article-meta a:hover {
  border-bottom-color: var(--meta);
}

/* ===== Toolbox ===== */

.toolbox-anchor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 720px) {
  .toolbox-anchor {
    grid-template-columns: 1.3fr 1fr;
  }
}

.toolbox-anchor .img-slot {
  aspect-ratio: 4 / 3;
}

/* ===== Friends ===== */

.friends-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .friends-layout {
    grid-template-columns: 1fr 2fr;
  }
}

.friend-card {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.friend-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}

.friend-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1);
  transition: filter 250ms ease-out, transform 250ms ease-out;
}

.friend-card:hover .friend-photo-frame img,
.friend-card:focus-within .friend-photo-frame img {
  filter: grayscale(0);
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .friend-photo-frame img {
    transition: filter 1ms;
  }
  .friend-card:hover .friend-photo-frame img,
  .friend-card:focus-within .friend-photo-frame img {
    transform: none;
  }
}

.friend-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-bottom: 1.5px dashed var(--meta);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  color: var(--meta);
}

.friend-namebar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px 8px;
  transition: transform 250ms ease-out;
}

.friend-card:hover .friend-namebar,
.friend-card:focus-within .friend-namebar {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .friend-namebar { transition: none; }
  .friend-card:hover .friend-namebar,
  .friend-card:focus-within .friend-namebar { transform: none; }
}

.friend-namebar .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: block;
}

.friend-namebar .role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--highlight);
  display: block;
  margin-top: 2px;
}

.friend-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.friend-body p {
  font-size: 14px;
  margin: 0 0 12px;
}

.friend-links {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  margin-top: auto;
  color: var(--meta);
}

.friend-links a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.friend-links a:hover {
  border-bottom-color: var(--ink);
}

.spotlight-card {
  position: relative;
}

.spotlight-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--highlight);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.friends-deck-wrap {
  position: relative;
}

.friends-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 620px) {
  .friends-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .friends-deck {
    grid-template-columns: repeat(3, 1fr);
  }
}

.friend-card[data-hidden="true"] {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.friend-card.fade {
  transition: opacity 300ms ease-out;
}

.friend-card.fade-out { opacity: 0; }

.deck-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.deck-arrow {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.deck-arrow:hover {
  background: var(--highlight);
}

/* ===== Footer ===== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 32px;
  margin-top: 48px;
}

.footer-zone {
  padding: 24px 0;
  border-top: 1px solid rgba(251,250,246,0.15);
}

.footer-zone:first-child {
  border-top: none;
  padding-top: 0;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 16px;
}

.footer-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
}

.footer-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
}

.footer-form input[type="email"]::placeholder {
  color: rgba(251,250,246,0.6);
}

.footer-form .btn {
  background: var(--highlight);
  color: var(--ink);
  border-color: var(--highlight);
  white-space: nowrap;
}

.footer-form .btn:hover {
  background: var(--paper);
}

.footer-consent {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(251,250,246,0.6);
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-links a:hover {
  color: var(--highlight);
}

/* ===== Footer "friend" link cards (IEHP, CSUF) ===== */

.site-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-link-card {
  position: relative;
  display: block;
  width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(251, 250, 246, 0.35);
}

.site-link-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1);
  transition: filter 250ms ease-out, transform 250ms ease-out;
}

.site-link-card.is-logo {
  background: var(--paper);
}

.site-link-card.is-logo img {
  object-fit: contain;
  padding: 22px 18px;
  filter: none;
}

.site-link-card.is-logo:hover img,
.site-link-card.is-logo:focus-visible img {
  transform: scale(1.06);
}

.site-link-card:hover img,
.site-link-card:focus-visible img {
  filter: grayscale(0);
  transform: scale(1.06);
}

.site-link-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 10px;
  transition: transform 250ms ease-out;
}

.site-link-card:hover .site-link-name,
.site-link-card:focus-visible .site-link-name {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .site-link-card img { transition: filter 1ms; }
  .site-link-card:hover img,
  .site-link-card:focus-visible img { transform: none; }
  .site-link-name { transition: none; }
  .site-link-card:hover .site-link-name,
  .site-link-card:focus-visible .site-link-name { transform: none; }
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(251,250,246,0.6);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a:hover {
  color: var(--paper);
}

/* ===== Profile page specific ===== */

.profile-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 860px) {
  .profile-hero-grid {
    grid-template-columns: 1fr 320px;
  }
  .profile-hero-grid .img-slot {
    order: 2;
  }
}

.profile-hero-grid .img-slot {
  aspect-ratio: 3 / 4;
  min-width: 260px;
}

.profile-hero-grid .img-slot.has-photo {
  border: 1.5px solid var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--meta);
  display: block;
  margin-bottom: 16px;
}

.profile-hero h1 {
  font-size: clamp(40px, 7vw, 64px);
}

.profile-hero .intro {
  font-size: 19px;
  margin-top: 20px;
  max-width: 56ch;
}

.proof-strip {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 32px 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

@media (min-width: 720px) {
  .proof-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.proof-item .figure {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  display: block;
}

.proof-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta);
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}

.work-section {
  padding: 56px 0;
}

.work-card {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 32px;
}

.work-card.centerpiece {
  padding: 40px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 780px) {
  .work-grid.with-image {
    grid-template-columns: 1.3fr 1fr;
  }
}

.work-grid .img-slot {
  aspect-ratio: 3 / 2;
}

.contact-section {
  text-align: center;
  padding: 64px 0;
}

.contact-section .img-slot {
  aspect-ratio: 1/1;
  max-width: 160px;
  margin: 0 auto 24px;
}

.contact-section h2 {
  margin-bottom: 12px;
}

.contact-section p {
  margin: 0 auto 24px;
}

.email-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 4vw, 32px);
  border-bottom: 2px solid var(--ink);
}

.email-link:hover {
  color: var(--ink);
  border-bottom-color: var(--highlight);
  background: var(--highlight);
}
