/* ==========================================================================
   THE EMPOWER DIFFERENTIAL. — design tokens
   Everything below references these variables. Change a value here and
   it updates everywhere the variable is used — that's the whole point.
   ========================================================================== */

:root {
  /* ---- Colour: four core colours + one accent-of-an-accent ---- */
  --color-paper: #F4F4F2;       /* page background */
  --color-card: #FFFFFF;        /* card / surface background */
  --color-text: #1F1E1D;        /* graphite — primary text, primary button */
  --color-text-muted: #5E5D59;  /* secondary text, labels */
  --color-text-faint: #8A8781;  /* "THE", copyright — lightest label text */
  --color-accent: #A3204F;      /* raspberry — the one accent colour */
  --color-accent-bg: #F7E5EC;   /* pale raspberry — tag backgrounds */
  --color-halva: #8C8878;       /* stone — small circles, social icons */
  --color-shadow: #CC6A1E;      /* burnt orange — DIFFERENTIAL. shadow + 2 touchpoints only */
  --color-line: #E2E0DC;        /* hairline borders */
  --color-line-strong: #BDBAB3; /* slightly stronger borders / bars */
  --color-line-faint: #E8E6E1;  /* cover panel background */
  --color-disabled-bg: #E2E0DC; /* dimmed "coming later" icon background */
  --color-disabled-fg: #B7B2A9; /* dimmed "coming later" icon foreground */

  /* ---- Type: Bebas Neue for the wordmark only, Oswald everywhere else ---- */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Oswald', -apple-system, sans-serif;

  /* ---- Shape ---- */
  --radius-pill: 999px;
  --radius-card: 14px;
  --radius-round: 50%;

  /* ---- Spacing scale ---- */
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 18px 20px;
}

.nav__who {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 400;
  color: #2C2B29;
}

.monogram {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-round);
  background: var(--color-halva);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav__pill {
  display: flex;
  gap: 2px;
  background: var(--color-card);
  border: 0.5px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.nav__pill a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav__pill a.is-active {
  background: var(--color-text);
  color: var(--color-paper);
}

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

.hero {
  padding: 36px 20px 40px;
  text-align: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border: 0.5px solid var(--color-line);
  background: var(--color-card);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 22px;
}

.chip__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-round);
  background: var(--color-halva);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 0.95;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wordmark__the {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--color-text-faint);
  align-self: center;
}

.wordmark__diff {
  color: var(--color-accent);
  /* Locked shadow effect: solid burnt orange, offset SW→NE, no blur */
  text-shadow: 3px -2.4px 0 var(--color-shadow);
}

.slogan {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--color-text);
  margin: 0 0 14px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

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

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(180deg, #2A2927 0%, #1F1E1D 55%, #141312 100%);
  color: var(--color-paper);
  /* Touchpoint 1: thin burnt-orange top edge, echoing the wordmark shadow */
  box-shadow:
    0 -2px 0 var(--color-shadow) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 14px rgba(20, 19, 18, 0.28),
    0 1px 2px rgba(20, 19, 18, 0.3);
}

.btn--secondary {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0EFEC 100%);
  color: var(--color-text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 10px rgba(31, 30, 29, 0.12);
  border: 0.5px solid #DAD7D1;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--color-line-strong);
  cursor: pointer;
}

/* ==========================================================================
   Work grid (bento layout)
   ========================================================================== */

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 8px 20px 20px;
}

.grid__lead {
  flex: 1.4 1 260px;
}

.grid__side {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card {
  background: var(--color-card);
  border: 0.5px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 16px;
}

.card--flex {
  flex: 1;
}

.card__cover {
  position: relative;
  height: 110px;
  border-radius: 10px;
  background: var(--color-line-faint);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.card__cover i {
  display: block;
  width: 16px;
  border-radius: 3px 3px 0 0;
  background: var(--color-line-strong);
}

.card__cover-mark {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-round);
  /* Touchpoint 2: cover circle in burnt orange, echoing the wordmark shadow */
  background: var(--color-shadow);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: var(--color-accent-bg);
  border-radius: var(--radius-pill);
  padding: 4px 10px 4px 8px;
  margin-bottom: 10px;
}

.tag__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-round);
  background: currentColor;
}

.card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.005em;
  margin: 0 0 6px;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.card:hover .card__title {
  color: var(--color-shadow);
}

.card__desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.card__meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

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

.footer {
  border-top: 0.5px solid var(--color-line);
  padding: 24px 20px 20px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__label {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-round);
  background: var(--color-halva);
  color: #12181F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.icon-circle--disabled {
  background: var(--color-disabled-bg);
  color: var(--color-disabled-fg);
  opacity: 0.7;
  cursor: default;
}

.footer__base {
  border-top: 0.5px solid var(--color-line);
  margin-top: 20px;
  padding-top: 14px;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
}

/* ==========================================================================
   Page header (Work / Notes pages)
   ========================================================================== */

.page-head {
  padding: 36px 20px 20px;
  text-align: center;
}

.page-head__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: 0.005em;
  color: var(--color-text);
  margin: 18px 0 10px;
}

.page-head__sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Piece list (Work / Notes pages)
   ========================================================================== */

.piece-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 8px 20px 40px;
  max-width: 720px;
}

.piece {
  background: var(--color-card);
  border: 0.5px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  cursor: pointer;
}

.piece--media {
  display: flex;
  flex-direction: column;
}

.piece__row {
  display: flex;
  align-items: stretch;
  gap: 28px;
}

.piece__thumb {
  flex: 0 0 160px;
  width: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-line-faint);
  transform: translateY(3px);
}

.piece__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.piece__top {
  flex: 1;
  min-width: 0;
}

.piece__meta-row {
  margin-top: 14px;
}

.piece--media .piece__meta-row {
  margin-left: 188px; /* thumb width (160px) + row gap (28px), so it lines up under the text column */
}

.piece__body {
  flex: 1;
  min-width: 0;
}

.piece__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.piece__title a {
  color: var(--color-text);
  transition: color 0.15s ease;
}

.piece:hover .piece__title a {
  color: var(--color-accent);
}

.piece__desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.piece__meta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-faint);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-shadow);
}

.piece__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-accent);
}

.source-list {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 8px;
  padding-left: 20px;
}

.source-list li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Individual piece reading page
   ========================================================================== */

.piece-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.piece-header {
  padding: 36px 20px 4px;
  max-width: 680px;
  margin: 0 auto;
}

.piece-header__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(24px, 4.4vw, 32px);
  letter-spacing: 0.005em;
  color: var(--color-text);
  line-height: 1.3;
  margin: 16px 0 12px;
}

.piece-header__meta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-faint);
  margin: 0 0 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-shadow);
}

.piece-header__note {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.piece-hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.piece-hero img {
  max-width: 280px;
  width: 100%;
  border-radius: var(--radius-card);
  background: var(--color-card);
  border: 0.5px solid var(--color-line);
  padding: 16px;
}

.piece-body {
  max-width: 680px;
  margin: 24px auto 0;
  padding: 0 20px 56px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text);
}

.piece-body p {
  margin: 0 0 20px;
}

.piece-body ul,
.piece-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.piece-body li {
  margin-bottom: 10px;
}

.piece-body__h {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.005em;
  color: var(--color-text);
  margin: 32px 0 14px;
  line-height: 1.4;
}

.piece-body blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--color-accent);
  color: var(--color-text-muted);
  font-weight: 300;
  font-style: italic;
}

.piece-body blockquote p {
  margin: 0 0 10px;
}

.cite {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-shadow);
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.cite:hover {
  color: var(--color-accent);
}

.piece-hashtags {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-faint);
  margin: 8px 0 0;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-card {
  max-width: 925px;
  min-height: 434px;
  margin: 8px auto 56px;
  background: var(--color-card);
  border: 0.5px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 44px 48px;
  display: flex;
  align-items: center;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-form__field {
  display: flex;
  flex-direction: column;
}

.contact-form__field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-form__optional {
  color: var(--color-text-faint);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.contact-form__field input {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-paper);
  border: 0.5px solid var(--color-line-strong);
  border-radius: 8px;
  padding: 13px 14px;
  width: 100%;
}

.contact-form__field input::placeholder {
  color: var(--color-text-faint);
}

.contact-form__field input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form__submit-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.contact-form__submit-row .btn {
  border: none;
}

@media (max-width: 560px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 32px 24px;
  }
}

.piece-cue {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: -4px 0 20px;
}

/* ==========================================================================
   Resume page
   ========================================================================== */

.monogram--large {
  width: 128px;
  height: 128px;
}

.monogram--photo {
  padding: 0;
  overflow: hidden;
  background: var(--color-line-faint);
}

.monogram--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-round);
  display: block;
}

.nav--resume .nav__who {
  gap: 20px;
}

.resume-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}

.resume-body {
  max-width: 680px;
  margin: 32px auto 0;
  padding: 0 20px 56px;
}

.resume-section {
  margin-bottom: 36px;
}

.resume-section__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--color-line);
}

.resume-entry {
  margin-bottom: 22px;
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.resume-entry__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.resume-entry__role {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.005em;
  color: var(--color-text);
}

.resume-entry__dates {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  white-space: nowrap;
}

.resume-entry__org {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.resume-entry ul {
  margin: 0;
  padding-left: 20px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

.resume-entry li {
  margin-bottom: 6px;
}

.resume-entry li:last-child {
  margin-bottom: 0;
}

.resume-langs {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

@media (max-width: 560px) {
  .monogram--large {
    width: 96px;
    height: 96px;
  }
  .nav--resume .nav__who {
    gap: 12px;
  }
}

.piece-body sup {
  font-size: 10px;
}

.piece-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.piece-refs {
  font-size: 12px;
  color: var(--color-text-faint);
  line-height: 1.7;
}

.piece-refs p {
  margin: 0 0 12px;
}

/* ==========================================================================
   Small screens
   ========================================================================== */

@media (max-width: 480px) {
  .wordmark {
    font-size: 34px;
  }
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .piece__thumb {
    flex: 0 0 88px;
    width: 88px;
  }
  .piece--media .piece__meta-row {
    margin-left: 116px; /* thumb width (88px) + row gap (28px) */
  }
}
