/* Hallmark · macrostructure: Long Document · genre: editorial · theme: Derek charcoal-mint · enrichment: inline portrait · nav: N6 · footer: Ft6 · pre-emit critique: P5 H4 E4 S5 R5 V4 */
@import "../tokens.css";

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-ink);
  background:
    linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper-2) 58%, var(--color-paper) 100%);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-rule) var(--rule-hair), var(--color-clear) var(--rule-hair)),
    linear-gradient(90deg, var(--color-rule) var(--rule-hair), var(--color-clear) var(--rule-hair));
  background-size: 4rem 4rem;
  mask-image: linear-gradient(180deg, var(--color-scrim), var(--color-clear) 46rem);
}

a {
  color: inherit;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.18em;
  transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

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

a:active {
  transform: translateY(1px);
}

a:focus-visible {
  outline: var(--rule-heavy) solid var(--color-focus);
  outline-offset: var(--space-2xs);
}

.masthead {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-md) var(--page-gutter) 0;
  text-align: center;
}

.masthead__line {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
}

.masthead__name {
  justify-self: center;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 9vw, 4.4rem);
  font-weight: 800;
  line-height: 0.96;
  text-decoration: none;
}

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
}

.masthead__nav a {
  min-height: 2.75rem;
  display: inline-grid;
  place-items: center;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.masthead__rule {
  height: 0.375rem;
  border-block: var(--rule-hair) solid var(--color-rule-strong);
}

.profile {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
}

.hero-letter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: end;
}

.profile__identity {
  min-width: 0;
}

.profile__role {
  max-width: 58ch;
  margin: 0 0 var(--space-lg);
  color: var(--color-accent-soft);
  font-weight: 800;
  line-height: 1.35;
}

h1,
h2,
h3 {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: var(--text-display);
  line-height: 0.98;
}

.profile__lede {
  max-width: 42rem;
  margin: var(--space-lg) 0 0;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.25;
}

.portrait {
  max-width: 28rem;
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  background: var(--color-paper-3);
}

.portrait figcaption {
  margin-top: var(--space-sm);
  color: var(--color-soft);
  font-size: var(--text-sm);
}

.profile-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: var(--space-xl) 0 0;
  border-block: var(--rule-hair) solid var(--color-rule-strong);
}

.profile-facts div,
.work-list div {
  display: grid;
  gap: var(--space-xs);
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.profile-facts div:last-child,
.work-list div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--color-soft);
  font-size: var(--text-sm);
  font-weight: 800;
}

dd {
  margin: 0;
}

.prose,
.journey,
.connect {
  margin-top: var(--space-3xl);
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-md);
  line-height: 1.64;
}

.prose p + p,
.prose blockquote + p,
.prose .moves + p,
.prose .books + p {
  margin-top: var(--space-lg);
}

.run-in {
  color: var(--color-ink);
  font-weight: 800;
}

.prose h2,
.journey h2,
.connect h2 {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-3xl);
  line-height: 1.05;
}

blockquote {
  margin: var(--space-xl) 0;
  padding-block: var(--space-lg);
  border-block: var(--rule-heavy) solid var(--color-accent);
}

blockquote p {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
}

.work-list {
  margin: 0;
  border-block: var(--rule-hair) solid var(--color-rule-strong);
}

.work-list dt {
  color: var(--color-ink);
  font-size: var(--text-md);
}

.work-list dd {
  color: var(--color-muted);
  font-size: var(--text-base);
}

.journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.journey p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-md);
}

.brand-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: var(--rule-hair) solid var(--color-rule-strong);
}

.brand-index li {
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  font-weight: 700;
}

.brand-index li:last-child {
  border-bottom: 0;
}

.moves {
  display: grid;
  margin-block: var(--space-xl);
  border-block: var(--rule-hair) solid var(--color-rule-strong);
}

.moves p {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  color: var(--color-soft);
  font-size: var(--text-base);
}

.moves p:last-child {
  border-bottom: 0;
}

.moves span {
  color: var(--color-ink);
  font-weight: 800;
}

.moves span::before {
  content: "→ ";
  color: var(--color-accent);
}

.books {
  display: grid;
  gap: var(--space-xs);
  margin-block: var(--space-xl);
}

.books p {
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-family: var(--font-outlier);
  font-size: var(--text-md);
  font-weight: 800;
  line-height: 1.8;
}

.connect {
  max-width: 52rem;
}

.connect__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.connect__links a {
  min-height: 2.75rem;
  display: inline-grid;
  place-items: center;
  padding-inline: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-round);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.connect__links a:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.foot-letter {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding: var(--space-xl) var(--page-gutter) var(--space-2xl);
}

.foot-letter__close {
  max-width: 24ch;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.foot-letter__close span {
  color: var(--color-accent);
}

.foot-letter__ps {
  margin: var(--space-md) 0 0;
  color: var(--color-soft);
  font-size: var(--text-sm);
}

.foot-letter__ps a {
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-facts div:nth-last-child(2) {
    border-bottom: 0;
  }

  .moves p {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 60rem) {
  .hero-letter {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.72fr);
  }

  .portrait {
    justify-self: end;
  }

  .profile-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-facts div {
    border-bottom: 0;
    border-inline-end: var(--rule-hair) solid var(--color-rule);
    padding-inline: var(--space-md);
  }

  .profile-facts div:first-child {
    padding-inline-start: 0;
  }

  .profile-facts div:last-child {
    border-inline-end: 0;
  }

  .journey {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .brand-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-index li:nth-last-child(2) {
    border-bottom: 0;
  }

  .brand-index li:nth-child(odd) {
    padding-inline-end: var(--space-md);
    border-inline-end: var(--rule-hair) solid var(--color-rule);
  }

  .brand-index li:nth-child(even) {
    padding-inline-start: var(--space-md);
  }
}

@media (pointer: coarse) {
  .masthead__nav a,
  .connect__links a {
    min-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
