/* =============================================================================
   derek.css — 04.64f
   The public Derek FASCIA stream at /derek/.

   Time-shaped, not portfolio-shaped. The page is a column of dated entries with
   a masthead above and a shelf below; there is no grid of cards, no tile wall
   and no "featured work" hierarchy, because the point is that this accumulates
   rather than presents. Entries are separated by a rule and a date, which is
   all a stream needs.

   Typography is the existing AMSP set: Libre Baskerville (--display),
   Montserrat (--body), IBM Plex Mono (--mono). No new families are loaded.
   ========================================================================== */

.derek-page {
  background: var(--paper);
  color: var(--ink);
}

/* --- Masthead ------------------------------------------------------------ */

.derek-masthead {
  position: relative;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.derek-masthead__in {
  display: grid;
  grid-template-columns: minmax(0, 62ch) minmax(220px, 360px);
  gap: clamp(34px, 7vw, 104px);
  align-items: end;
  padding-top: clamp(44px, 8vw, 104px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.derek-masthead__copy { min-width: 0; }

.derek-masthead__portrait {
  width: min(100%, 360px);
  margin: 0;
  justify-self: end;
}

.derek-masthead__portrait-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.derek-masthead__portrait-image {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 200ms ease;
}

.derek-masthead__portrait-image--alternate {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .derek-masthead__portrait:hover .derek-masthead__portrait-image--default {
    opacity: 0;
  }

  .derek-masthead__portrait:hover .derek-masthead__portrait-image--alternate {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .derek-masthead__portrait-image { transition: none; }
}

.derek-masthead__locator {
  margin: 0 0 clamp(22px, 4vw, 40px);
  font: 400 10px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .62;
}

.derek-masthead__name {
  margin: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(30px, 6.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.derek-masthead__role {
  margin: 14px 0 0;
  font: 600 11px/1.6 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lake-blue);
}

.derek-masthead__blurb {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 25px);
  line-height: 1.42;
  max-width: 26ch;
}

.derek-masthead__return {
  margin: clamp(24px, 4vw, 38px) 0 0;
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.derek-masthead__return a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

.derek-masthead__return a:hover,
.derek-masthead__return a:focus-visible { border-bottom-color: var(--ink); }

@media (max-width: 760px) {
  .derek-masthead__in {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .derek-masthead__portrait {
    width: min(72vw, 300px);
    justify-self: start;
  }
}

/* --- Stream -------------------------------------------------------------- */

.derek-stream { background: var(--warm-white); }

.derek-stream__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  padding-top: clamp(38px, 6vw, 74px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.derek-stream__label { max-width: 62ch; }

.derek-stream__heading {
  margin: 0;
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.derek-stream__note {
  margin: 8px 0 0;
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .06em;
  opacity: .66;
}

.derek-stream__entries {
  display: grid;
  gap: 0;
  max-width: 68ch;
}

/* --- One entry ----------------------------------------------------------- */

.derek-entry {
  padding-block: clamp(30px, 4.5vw, 52px);
  border-top: 1px solid var(--line);
}

.derek-entry:first-child { border-top: 2px solid var(--ink); }

.derek-entry__stamp {
  margin: 0 0 10px;
  font: 400 10px/1.5 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .66;
}

.derek-entry__type { color: var(--lake-blue); opacity: 1; }

.derek-entry__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 33px);
  line-height: 1.2;
  letter-spacing: -.012em;
}

.derek-entry__body { margin-top: clamp(16px, 2.4vw, 24px); }

.derek-entry__body p {
  margin: 0 0 1em;
  font-family: var(--body);
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.66;
}

.derek-entry__body p:last-child { margin-bottom: 0; }

.derek-entry__body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.derek-entry__body a:hover,
.derek-entry__body a:focus-visible { color: var(--lake-blue); }

/* Derek's own words, set apart. A quiet left rule rather than quotation
   decoration: these are statements, not pull quotes. */
.derek-entry__body blockquote {
  margin: 1.25em 0;
  padding: 2px 0 2px clamp(16px, 2.4vw, 26px);
  border-left: 2px solid var(--lake-blue);
}

.derek-entry__body blockquote p {
  font-family: var(--display);
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.52;
}

.derek-entry__body ul {
  margin: 1em 0;
  padding-left: 1.15em;
  font-family: var(--body);
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.66;
}

.derek-entry__body li { margin-bottom: .4em; }

.derek-entry__door {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.derek-entry__door a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  background: transparent;
  transition: background .14s ease, color .14s ease;
}

.derek-entry__door a:hover,
.derek-entry__door a:focus-visible { background: var(--ink); color: var(--warm-white); }

.derek-entry__attribution {
  margin: clamp(16px, 2vw, 22px) 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font: 400 10px/1.6 var(--mono);
  letter-spacing: .08em;
  opacity: .7;
}

/* --- Shelf --------------------------------------------------------------- */

.derek-elsewhere {
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.derek-elsewhere__in {
  padding-top: clamp(32px, 5vw, 58px);
  padding-bottom: clamp(40px, 6vw, 74px);
}

.derek-shelf__heading {
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.derek-shelf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.derek-shelf__link {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font: 600 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .14s ease, color .14s ease;
}

.derek-shelf__link:hover,
.derek-shelf__link:focus-visible { background: var(--ink); color: var(--paper); }

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

.derek-footer {
  background: var(--ink);
  color: var(--warm-white);
  padding-block: clamp(34px, 5vw, 58px);
}

.derek-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}

.derek-footer p {
  margin: 0;
  max-width: 46ch;
  font: 400 12px/1.65 var(--mono);
  letter-spacing: .03em;
  opacity: .8;
}

.derek-footer .wrap > div { display: grid; gap: 8px; }

.derek-footer img { width: 128px; height: auto; display: block; }

/* --- Wider viewports ----------------------------------------------------- */

@media (min-width: 900px) {
  .derek-stream__in {
    grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
    column-gap: clamp(30px, 4vw, 66px);
    align-items: start;
  }
  .derek-stream__label {
    position: sticky;
    top: clamp(90px, 12vh, 130px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .derek-entry__door a,
  .derek-shelf__link { transition: none; }
}
