/* Hustle Forward — link page
   Black on signal yellow. Galano for the voice, Avenir for reading,
   Inconsolata for labels. The triple chevron is the only ornament. */

@font-face {
  font-family: "Galano Grotesque";
  src: url("../fonts/Galano-Grotesque.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Avenir STD Roman";
  src: url("../fonts/AvenirLTStd-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #fcfe00;
  --yellow-deep: #eff100;
  --ink: #0b0b0a;
  --ink-raise: #1c1c18;
  --on-ink: #fcfe00;
  --on-ink-mute: #b9ba62;
  --on-yellow-mute: #3f4000;
  --rule: #0b0b0a47;
  --red: #d60000;

  --display: "Galano Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir STD Roman", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --mono: Inconsolata, ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 8px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background-color: var(--yellow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ink);
  color: var(--yellow);
}

a {
  color: inherit;
}

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

/* ---------- Shell ---------- */

.shell {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
}

.backdrop {
  display: none;
}

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

.masthead__logo {
  margin: 0;
  line-height: 0;
}

.masthead__logo a {
  display: block;
  border-radius: 2px;
}

.masthead__logo img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.lede {
  margin: 36px 0 0;
  font-family: var(--display);
  font-size: 2rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.intro {
  max-width: 34em;
  margin: 14px 0 0;
}

.bio {
  margin-top: 18px;
}

.bio summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.bio summary::-webkit-details-marker {
  display: none;
}

.bio summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .35s var(--ease);
}

.bio[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.bio .bio__less,
.bio[open] .bio__more {
  display: none;
}

.bio[open] .bio__less {
  display: inline;
}

.bio[open] summary {
  background-color: var(--ink);
  color: var(--yellow);
}

.bio__body {
  max-width: 34em;
  padding-top: 6px;
}

.bio__body p {
  margin: 14px 0 0;
}

/* ---------- Groups ---------- */

.groups {
  margin-top: 12px;
}

.group {
  margin-top: 34px;
}

.group__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.group__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--rule);
}

.links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Row ---------- */

.row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  min-height: 68px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius);
  background-color: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  box-shadow: 0 1px 0 #0000001f, 0 10px 18px -13px #4a4b0099;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.row__text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.row__name {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .012em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.row__desc {
  color: var(--on-ink-mute);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* brand tile */

.mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background-color: var(--mark-bg, #fff);
  color: var(--mark-fg, var(--ink));
  overflow: hidden;
  transition: transform .45s var(--ease);
}

.mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff26;
  pointer-events: none;
}

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

.mark--pad img {
  width: 66%;
  height: 66%;
  object-fit: contain;
}

/* icons drawn small inside their own canvas */
.mark--zoom img {
  transform: scale(1.75);
}

.mark svg {
  display: block;
  width: 24px;
  height: 24px;
}

.mark--own {
  --mark-bg: var(--yellow);
  --mark-fg: var(--ink);
}

.mark--own::after {
  box-shadow: none;
}

.mark--own svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark--mono {
  font-family: var(--display);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

/* the chevrons: three steps forward */

.chev {
  display: flex;
  align-items: center;
  gap: 1px;
  padding-right: 3px;
  color: var(--on-ink);
  transition: transform .45s var(--ease);
}

.chev i {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: opacity .3s var(--ease);
}

.chev i:nth-child(1) { opacity: .28; }
.chev i:nth-child(2) { opacity: .55; }
.chev i:nth-child(3) { border-width: 3px; }

@keyframes chase {
  0% { opacity: .15; }
  45% { opacity: 1; }
  100% { opacity: 1; }
}

@media (hover: hover) {
  .row:hover {
    background-color: var(--ink-raise);
    box-shadow: 0 1px 0 #0000001f, 0 16px 24px -14px #4a4b00b3;
    transform: translateY(-1px);
  }

  .row:hover .mark {
    transform: scale(1.06) rotate(-3deg);
  }

  .row:hover .chev {
    transform: translateX(5px);
  }

  .row:hover .chev i {
    animation: chase .55s var(--ease) both;
  }

  .row:hover .chev i:nth-child(2) { animation-delay: .09s; }
  .row:hover .chev i:nth-child(3) { animation-delay: .18s; }

  .bio summary:hover {
    background-color: var(--ink);
    color: var(--yellow);
  }
}

.row:active {
  transform: scale(.985);
  transition-duration: .08s;
}

.row:focus-visible .chev i {
  opacity: 1;
}

/* the one that leans back */

.row--theory {
  --on-ink: #fff;
  --on-ink-mute: #ffd9d9;
  margin-top: 4px;
  background-color: var(--red);
  transform: rotate(-2deg);
}

.row--theory .mark--own {
  --mark-bg: #fff;
  --mark-fg: var(--red);
}

@media (hover: hover) {
  .row--theory:hover {
    background-color: #b80000;
    transform: rotate(0deg);
  }
}

.row--theory:active {
  transform: rotate(0deg) scale(.985);
}

/* ---------- Social ---------- */

.social {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  border-radius: var(--radius);
  background-color: var(--ink);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 1px 0 #0000001f, 0 10px 18px -13px #4a4b0099;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.social svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform .45s var(--ease);
}

@media (hover: hover) {
  .social a:hover {
    background-color: var(--ink-raise);
    transform: translateY(-1px);
  }

  .social a:hover svg {
    transform: translateY(-3px) scale(1.08);
  }
}

.social a:active {
  transform: scale(.97);
  transition-duration: .08s;
}

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

.colophon {
  margin: 56px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--on-yellow-mute);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  .shell {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .row__name {
    font-size: 1.125rem;
  }

  .social {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .social a {
    padding-inline: 4px;
    font-size: .6875rem;
    letter-spacing: .06em;
  }
}

@media (min-width: 1000px) {
  .shell {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 560px);
    justify-content: space-between;
    align-items: start;
    column-gap: 72px;
    max-width: 1180px;
    padding: 72px 48px 80px;
  }

  .masthead {
    position: sticky;
    top: 72px;
  }

  .lede {
    margin-top: 56px;
    font-size: 2.75rem;
  }

  .intro {
    margin-top: 18px;
    font-size: 1.125rem;
  }

  .groups {
    margin-top: 0;
  }

  .group:first-child {
    margin-top: 6px;
  }

  .colophon {
    grid-column: 2;
  }

  /* oversized chevrons bleeding off the corner, one shade down */
  .backdrop {
    display: block;
    position: fixed;
    z-index: 0;
    left: -3vw;
    bottom: -9vh;
    width: min(46vw, 640px);
    height: auto;
    color: var(--yellow-deep);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }

  .row:hover,
  .row:hover .mark,
  .row:hover .chev,
  .social a:hover,
  .social a:hover svg {
    transform: none;
  }

  .row--theory,
  .row--theory:hover {
    transform: rotate(-2deg);
  }
}

/* =====================================================================
   Subpages — scotch, mentions, music video chat, quantum
   ===================================================================== */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px var(--gutter) 40px;
}

.page--wide {
  max-width: 1080px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__logo {
  display: block;
  flex: 0 1 200px;
  min-width: 0;
  border-radius: 2px;
  line-height: 0;
}

.topbar__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.back {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.back .chev {
  padding-right: 0;
  padding-left: 3px;
  color: inherit;
  transform: scaleX(-1);
}

.page__title {
  margin: 44px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 8.4vw, 3.25rem);
  font-style: italic;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page__title--long {
  font-size: clamp(1.5rem, 5.6vw, 2.5rem);
  line-height: 1.02;
}

.page__meta {
  margin: 16px 0 0;
  color: var(--on-yellow-mute);
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page__intro {
  max-width: 34em;
  margin: 14px 0 0;
}

.sheet {
  margin-top: 28px;
  padding: 24px 20px 28px;
  border-radius: var(--radius);
  background-color: #fff;
  box-shadow: 0 1px 0 #0000001f, 0 14px 24px -16px #4a4b0099;
}

/* call to action */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 14px 18px 14px 20px;
  border-radius: var(--radius);
  background-color: var(--ink);
  color: var(--on-ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .012em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.cta:active {
  transform: scale(.985);
  transition-duration: .08s;
}

/* scotch */

.scotch {
  display: grid;
  gap: 24px;
}

.scotch__bottle {
  display: block;
  width: auto;
  max-width: 100%;
  height: 300px;
  margin: 0 auto;
}

.scotch__from {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.scotch__from img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.scotch__body p {
  max-width: 34em;
  margin: 18px 0 24px;
}

/* mentions */

.mentions {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.mention {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: var(--radius);
  background-color: var(--ink);
  color: #ecedb4;
  box-shadow: 0 1px 0 #0000001f, 0 10px 18px -13px #4a4b0099;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.mention__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .012em;
  text-transform: uppercase;
  text-wrap: balance;
}

.mention__title a {
  color: var(--on-ink);
  text-decoration: none;
}

.mention__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.mention__title a:focus-visible {
  outline: none;
}

.mention__title a:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.mention p {
  max-width: 36em;
  margin: 10px 0 0;
}

.mention__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* videos */

.videos {
  display: grid;
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.video {
  margin: 0;
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background-color: var(--ink);
  overflow: hidden;
  box-shadow: 0 1px 0 #0000001f, 0 14px 24px -16px #4a4b0099;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video figcaption {
  margin-top: 10px;
  color: var(--on-yellow-mute);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* long-form reading */

.prose {
  font-size: 1.0625rem;
  line-height: 1.62;
}

.prose > * {
  max-width: 68ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 2.3em 0 .55em;
  font-family: var(--display);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.prose h3 {
  margin: 2em 0 .5em;
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li {
  margin: .5em 0;
}

.prose li > ul,
.prose li > ol {
  margin: .5em 0 0;
}

.prose li::marker {
  font-family: var(--mono);
  font-weight: 700;
}

/* key terms get the highlighter rather than a faked bold */
.prose strong {
  font-weight: 400;
  background-image: linear-gradient(transparent 58%, var(--yellow) 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose sub,
.prose sup {
  font-size: .7em;
  line-height: 0;
}

.prose .ref {
  font-family: var(--mono);
  font-size: .875rem;
  letter-spacing: .04em;
}

.table-scroll {
  max-width: none;
  margin: 0 0 1em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.4;
}

.prose th,
.prose td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid #0b0b0a2e;
  text-align: left;
  vertical-align: top;
}

.prose th {
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
  vertical-align: bottom;
}

.prose td:last-child {
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

/* on phones the table becomes one block per assumption */
@media (max-width: 599px) {
  .table-scroll {
    overflow-x: visible;
  }

  .prose table {
    min-width: 0;
  }

  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .prose tr {
    display: grid;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid #0b0b0a2e;
  }

  .prose tbody tr:first-child {
    border-top: 2px solid var(--ink);
  }

  .prose td {
    padding: 0;
    border: 0;
  }

  .prose td:first-child {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-style: italic;
    font-weight: 800;
    line-height: 1.12;
    text-transform: uppercase;
  }

  .prose td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--on-yellow-mute);
    font-family: var(--mono);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .prose td:last-child {
    white-space: normal;
  }
}

@media (hover: hover) {
  .back:hover {
    background-color: var(--ink);
    color: var(--yellow);
  }

  .back:hover .chev {
    transform: scaleX(-1) translateX(4px);
  }

  .cta:hover,
  .mention:hover {
    background-color: var(--ink-raise);
    transform: translateY(-1px);
  }

  .cta:hover .chev,
  .mention:hover .chev {
    transform: translateX(5px);
  }

  .back:hover .chev i,
  .cta:hover .chev i,
  .mention:hover .chev i {
    animation: chase .55s var(--ease) both;
  }

  .back:hover .chev i:nth-child(2),
  .cta:hover .chev i:nth-child(2),
  .mention:hover .chev i:nth-child(2) { animation-delay: .09s; }

  .back:hover .chev i:nth-child(3),
  .cta:hover .chev i:nth-child(3),
  .mention:hover .chev i:nth-child(3) { animation-delay: .18s; }
}

@media (min-width: 600px) {
  .page {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .topbar__logo {
    flex-basis: 240px;
  }

  .page__title {
    margin-top: 64px;
  }

  .sheet {
    padding: 44px 48px 48px;
  }

  .scotch {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
  }

  .scotch__bottle {
    width: 100%;
    height: auto;
  }

  .mention {
    padding: 24px 26px 22px;
  }
}

@media (min-width: 900px) {
  .videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta:hover,
  .mention:hover,
  .cta:hover .chev,
  .mention:hover .chev {
    transform: none;
  }

  .back:hover .chev {
    transform: scaleX(-1);
  }
}
