/* ============================================
   Nicole Hart — Portfolio
   Design tokens pulled from Figma file
   ============================================ */

:root {
  --color-bg: #fffcf9;
  --color-text: #000000;
  --color-text-secondary: #555555;
  --color-border: #acacac;
  --color-accent: #0bae46;
  --color-accent-hover: #04782e;
  --color-accent-text: #ffffff;

  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-display: 'Rubik', system-ui, sans-serif;
  --font-body: 'Karla', system-ui, sans-serif;

  --side-padding: 24px;
  --section-padding: 48px;
  --max-width: 1160px; /* content width at desktop (1440 - 140*2) */
}

@media (min-width: 768px) {
  :root {
    --side-padding: 40px;
    --section-padding: 64px;
  }
}

@media (min-width: 1200px) {
  :root {
    --side-padding: 140px;
    --section-padding: 80px;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

/* ---------- Accessibility: focus states + skip link ---------- */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

.label {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

.section {
  border-bottom: 1px solid var(--color-border);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section.has-top-border {
  border-top: 1px solid var(--color-border);
}

.cs-content {
  border-bottom: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  border-radius: 4px;
  padding: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-text);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--color-text);
}

.btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-decoration: none;
  padding: 16px 0;
}

.btn-link:hover {
  color: var(--color-text);
}

.case-card .btn-link {
  justify-content: flex-start;
}

.contact-link {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: underline;
  padding: 16px 0;
}

.contact-link:hover {
  color: var(--color-text);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

#work,
#about,
#contact {
  scroll-margin-top: 140px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .logo-mark {
    width: 48px;
    height: 48px;
  }
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

@media (min-width: 1200px) {
  .logo-name {
    font-size: 24px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.nav-link:hover {
  border-color: var(--color-text);
}

.nav-link.resume {
  border-color: var(--color-border);
}

.nav-link.resume:hover {
  border-color: var(--color-text);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-text);
  border-radius: 1px;
}

@media (min-width: 1200px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  width: 100%;
}

@media (min-width: 1200px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Splash / hero ---------- */

.splash .wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1200px) {
  .splash .wrap {
    flex-direction: row;
    align-items: flex-end;
    gap: 140px;
  }
}

.splash-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 0;
}

.splash-blurb {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.splash-label-title {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.splash-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 1200px) {
  .splash-title {
    font-size: 40px;
  }
}

.splash-body {
  font-family: var(--font-body);
  font-size: 16px;
  margin: 0;
}

.splash-body em {
  font-style: normal;
  font-weight: 600;
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.currently-working {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-secondary);
  flex: 1 1 0;
}

@media (min-width: 1200px) {
  .currently-working {
    border-top: none;
    border-left: 1px solid var(--color-border);
    padding-top: 0;
    padding-left: 16px;
    max-width: 510px;
  }
}

.currently-working p {
  margin: 0 0 16px 0;
}

.currently-working p:last-child {
  margin-bottom: 0;
}

.currently-working strong {
  font-weight: 500;
  color: var(--color-text);
}

/* ---------- Selected works ---------- */

.works-header {
  margin-bottom: 48px;
}

.works-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin: 8px 0 0 0;
}

@media (min-width: 1200px) {
  .works-title {
    font-size: 30px;
  }
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 1200px) {
  .case-card {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }
}

.case-thumb {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 540 / 431;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #f1efe9 0%, #e3e0d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .case-thumb {
    width: 540px;
  }
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-thumb .placeholder-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-label-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-company {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.case-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}

.case-desc {
  font-family: var(--font-body);
  font-size: 14px;
  margin: 0;
}

.case-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 4px 0;
}

.case-metric {
  font-family: var(--font-mono);
  font-size: 16px;
  margin: 0;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 16px;
}

.case-card.is-placeholder .case-thumb {
  background: repeating-linear-gradient(
    135deg,
    #f1efe9,
    #f1efe9 12px,
    #e9e6de 12px,
    #e9e6de 24px
  );
}

.case-card.is-placeholder .case-title {
  color: var(--color-text-secondary);
}

.coming-soon-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px dashed var(--color-border);
  border-radius: 20px;
  padding: 2px 10px;
  width: fit-content;
}

/* ---------- About ---------- */

.about .wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1200px) {
  .about .wrap {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 0;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin: 8px 0 0 0;
}

@media (min-width: 1200px) {
  .about-title {
    font-size: 30px;
  }
}

.about-body p {
  margin: 0 0 16px 0;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.off-clock {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 20px;
}

.off-clock .label {
  margin-bottom: 12px;
  display: block;
}

.off-clock ul {
  margin: 0;
  padding-left: 21px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.off-clock li {
  margin-bottom: 8px;
}

.off-clock li:last-child {
  margin-bottom: 0;
}

.about-photo {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #ddefe3 0%, #cfe8d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1200px) {
  .about-photo {
    width: 540px;
  }
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact ---------- */

.contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 8px 0 0 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .contact-links {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}

.contact-links .dot {
  display: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .contact-links .dot {
    display: block;
  }
}

/* ---------- Footer ---------- */

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .site-footer .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer .footer-home-link {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-home-link:hover {
  text-decoration: underline;
}

/* ---------- Case study detail pages ---------- */

.cs-hero {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.cs-hero-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-hero-topgroup {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cs-hero-titlegroup {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-hero-eyebrow-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.cs-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin: 8px 0 0 0;
}

@media (min-width: 1200px) {
  .cs-title {
    font-size: 40px;
  }
}

.cs-summary {
  font-size: 16px;
  color: var(--color-text);
  max-width: 780px;
  margin: 0;
}

.cs-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.cs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.cs-meta-item .label {
  display: block;
  margin-bottom: 12px;
}

.cs-meta-item p {
  margin: 0;
  font-size: 16px;
}

.cs-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #f1efe9 0%, #e3e0d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--section-padding);
}

.cs-body {
  /* intentionally no max-width override here — content should span the
     same width as .wrap (matching the hero image) rather than a narrower
     nested box */
}

/* ---------- Case study: content sections (Figma deck format) ---------- */

.cs-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 0;
}

@media (min-width: 1200px) {
  .cs-section {
    padding-top: 80px;
  }
}

.cs-section:first-child {
  padding-top: 0;
}

.cs-section-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-eyebrow-headline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  margin: 0;
}

.cs-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0;
  max-width: 780px;
  text-wrap: balance;
}

@media (min-width: 1200px) {
  .cs-headline {
    font-size: 30px;
  }
}

.cs-section-body {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  max-width: 780px;
  margin: 0;
}

/* Media placeholders */

.cs-media {
  width: 100%;
  aspect-ratio: 1160 / 519;
  border-radius: 4px;
  border: 1px solid #ACACAC;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cs-media--no-border {
  border: none;
  aspect-ratio: 2320 / 1054;
}

.cs-media .placeholder-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  color: var(--color-text-secondary);
  padding: 16px;
}

@media (min-width: 700px) {
  .cs-media .placeholder-tag {
    font-size: 18px;
  }
}

.cs-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.cs-media-row .cs-media-item {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cs-media-row .cs-media {
  aspect-ratio: 560 / 519;
}

.cs-media-row.is-triple .cs-media {
  aspect-ratio: 360 / 519;
}

.cs-media-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-media-caption .cs-media-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  margin: 0;
}

.cs-media-caption .cs-media-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

.cs-media-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Case study: stat row (big number + label) ---------- */

.cs-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 32px;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 1 150px;
  min-width: 130px;
  max-width: 190px;
}

.cs-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text);
}

@media (min-width: 700px) {
  .cs-stat-value {
    font-size: 24px;
  }
}

.cs-stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
}

.confidential-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: transparent;
  border: 2px solid var(--color-text-secondary);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: var(--section-padding);
  font-size: 15px;
  color: var(--color-text);
}

.confidential-note strong {
  color: var(--color-text);
}

.cs-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cs-closing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-closing-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--color-text);
  margin: 0;
  max-width: 780px;
  text-wrap: balance;
}

@media (min-width: 1200px) {
  .cs-closing-line {
    font-size: 26px;
  }
}

/* ---------- Case study: prev/next footer nav ---------- */

.cs-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 1200px) {
  .cs-footer-nav {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.cs-footer-nav .btn-link {
  padding: 16px 0;
}

.cs-footer-nav .cs-nav-next {
  margin-left: auto;
}

.placeholder-page {
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: left;
}

.placeholder-page .label {
  margin-bottom: 16px;
  display: block;
}
