/* Mike Hughes overflow page. Same brand tokens and fonts as mikehughesdesign.com. Mobile first. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlow-condensed-700.woff2) format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/barlow-condensed-800.woff2) format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-400.woff2) format("woff2");
}

:root {
  --ink: #222222;
  --paper: #ffffff;
  --blue: #42849c;
  --blue-deep: #32505d;
  --cyan: #00aeef;
  --magenta: #ec008c;
  --yellow: #fff200;

  --display: "Barlow Condensed", Impact, "Arial Black", sans-serif;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --fs-poster: clamp(2.875rem, 8.4vw, 6.25rem);
  --fs-head: clamp(2.5rem, 5vw, 4.5rem);
  --fs-lead: clamp(1.375rem, 2vw, 1.75rem);
  --fs-body: 1.125rem;
  --fs-label: 1rem;
  --lh-body: 1.5;
  --lh-display: 0.92;
  --measure: 62ch;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 64px);

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 3px;
  --tap: 44px;
  --tap-btn: 56px;
  --focus: #d34f00;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: inherit;
}

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

.on-ink,
.on-blue-deep {
  --focus: var(--paper);
}

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

.on-blue-deep {
  background: var(--blue-deep);
  color: var(--paper);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 20;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding-inline: var(--s2);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

main,
.site-footer {
  overflow-wrap: anywhere;
}

/* type */

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: var(--lh-display);
  overflow-wrap: anywhere;
}

h1 {
  font-size: var(--fs-poster);
}

h2 {
  font-size: var(--fs-head);
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-lead);
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.label {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
.label,
.lead,
.btn,
.pledge {
  text-wrap: balance;
}

/* hero */

.hero {
  position: relative;
  padding-block: var(--s5);
}

.hero-grid {
  display: grid;
  gap: var(--s4);
  align-items: center;
}

.hero-copy > .label {
  font-size: var(--fs-label);
  color: rgba(255, 255, 255, 0.8);
}

.hero-copy h1 {
  margin-top: var(--s2);
}

.hero-copy .lead {
  margin-top: var(--s3);
  max-width: 24em;
}

.hero-art picture,
.hero-art img {
  width: 100%;
}

.hero-art img {
  border-radius: var(--radius);
  background: #ece9e2;
}

.basics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2) var(--s3);
  margin: 0;
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.basics dt {
  color: rgba(255, 255, 255, 0.75);
}

.basics dd {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 240px;
  min-height: var(--tap-btn);
  padding: 0 var(--s4);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-lead);
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.btn:hover {
  background: var(--blue);
  color: var(--paper);
}

.cmyk {
  display: flex;
  gap: 6px;
  margin-top: var(--s4);
}

.cmyk span {
  width: 14px;
  height: 14px;
}

.cmyk .c { background: var(--cyan); }
.cmyk .m { background: var(--magenta); }
.cmyk .y { background: var(--yellow); }
.cmyk .k { box-shadow: inset 0 0 0 1px var(--paper); }

.reg {
  position: absolute;
  right: var(--gutter);
  width: 32px;
  height: 32px;
  color: var(--paper);
  opacity: 0.7;
}

.reg--tr { top: var(--s3); }
.reg--br { bottom: var(--s3); }

/* sections */

main > section {
  padding-block: var(--s5);
}

h2 + * {
  margin-top: var(--s4);
}

/* what I take */

.take-grid {
  display: grid;
  gap: var(--s5);
}

.take h3 {
  margin-bottom: var(--s2);
}

.plus {
  list-style: none;
  padding: 0;
}

.plus li {
  position: relative;
  padding-left: 1.25em;
  line-height: 1.25;
}

.plus li + li {
  margin-top: var(--s1);
}

.plus li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--display);
  font-weight: 800;
  color: var(--blue-deep);
}

.take p + p,
.plus + .tools {
  margin-top: var(--s2);
}

.take p {
  max-width: 34em;
  line-height: 1.35;
}

.tools .label {
  margin-right: 0.35em;
}

.ai .label,
.tools .label {
  display: inline;
}

.ai .label {
  margin-right: 0.35em;
}

/* promise */

.promise-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s3);
  counter-reset: pledge;
}

.promise-list li {
  counter-increment: pledge;
  padding-top: var(--s2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.promise-list li::before {
  content: counter(pledge, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.75);
}

.pledge {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: var(--lh-display);
  text-transform: uppercase;
}

.pledge-note {
  margin-top: var(--s2);
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.35;
}

/* proof */

.case {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}

h2 + .case {
  margin-top: var(--s4);
}

.case-art {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(34, 34, 34, 0.25);
  transition: box-shadow 200ms var(--ease);
}

.case-art:hover,
.case-art:focus-visible {
  box-shadow: 0 0 0 2px var(--ink);
}

.case-art img {
  width: 100%;
}

.note .label {
  color: rgba(34, 34, 34, 0.8);
}

.note h3 {
  margin-top: 0.1em;
}

.note p {
  max-width: 34em;
  line-height: 1.3;
}

.note h3 + p {
  margin-top: var(--s1);
}

.note p + p {
  margin-top: var(--s1);
}

.note .credit {
  font-size: 1rem;
  opacity: 0.8;
}

.note .ai .label {
  display: inline;
  margin-right: 0.35em;
  color: inherit;
}

.nowrap {
  white-space: nowrap;
}

.caption {
  font-size: 1rem;
  line-height: 1.25;
  opacity: 0.8;
}

.facts {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}

.fact {
  padding: var(--s3);
  border: 1px solid rgba(34, 34, 34, 0.25);
  border-radius: var(--radius);
}

.fact .label {
  color: rgba(34, 34, 34, 0.8);
}

.fact-line {
  margin-top: var(--s1);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: var(--lh-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.fact-sub {
  margin-top: var(--s2);
  max-width: 34em;
  line-height: 1.3;
}

/* cost */

.cost {
  border-top: 1px solid rgba(34, 34, 34, 0.25);
}

.ledger-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s3);
}

.ledger-list li {
  padding-top: var(--s2);
  border-top: 1px solid rgba(34, 34, 34, 0.25);
}

.ledger-list .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-head);
  letter-spacing: -0.02em;
  line-height: var(--lh-display);
  text-transform: uppercase;
}

.ledger-list .num + p {
  margin-top: var(--s1);
  line-height: 1.25;
  max-width: 20em;
}

.terms {
  max-width: 34em;
  margin-top: var(--s4);
  font-size: var(--fs-lead);
  line-height: 1.35;
}

/* start */

.start-grid {
  display: grid;
  gap: var(--s5);
}

.start .lead {
  margin-top: var(--s3);
  max-width: 24em;
}

.start .actions {
  margin-top: var(--s4);
}

.details {
  display: grid;
  gap: var(--s3);
  align-content: start;
}

.details dd {
  line-height: 1.25;
}

.details dt {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.75);
}

.details a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-block: -8px;
}

.site-footer {
  padding-block: var(--s4);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* tablet and up */

@media (min-width: 40em) {
  .basics {
    grid-template-columns: repeat(4, 1fr);
  }

  .btn {
    flex: 0 1 auto;
  }

  .ledger-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s4);
  }

  .promise-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4) var(--s4);
  }

  .promise-list .wide {
    grid-column: 1 / -1;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .hero {
    padding-block: var(--s6);
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
  }

  .basics {
    grid-column: 1 / -1;
  }

  main > section {
    padding-block: var(--s6);
  }

  .take-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s6);
  }

  .promise-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .promise-list .wide {
    grid-column: 1 / -1;
  }

  .case {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s5);
    align-items: start;
  }

  .case--flip .case-art {
    order: 2;
  }

  .case .case-art--second {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .case .caption {
    grid-column: 2;
    grid-row: 2;
  }

  .start-grid {
    grid-template-columns: 3fr 2fr;
    gap: var(--s6);
  }
}
