:root {
  --paper: #f3f0e8;
  --ink: #101010;
  --yellow: #f1ee5c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .72), transparent 30rem), var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0 72px;
}

.doctor-title {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 16px 5px;
  /* background: var(--yellow); */
  border: 2px solid rgba(16, 16, 16, .11);
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(16, 16, 16, .08);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.hero-portrait {
  position: absolute;
  top: clamp(30px, 5vw, 58px);
  right: clamp(2px, 2vw, 24px);
  z-index: 2;
  width: clamp(82px, 9vw, 116px);
  aspect-ratio: 1;
  padding: 6px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(16, 16, 16, .14);
  border-radius: 50%;
  box-shadow: 5px 7px 0 rgba(16, 16, 16, .1);
  transform: rotate(4deg);
  transition: transform .25s ease;
}

.hero-portrait:hover {
  transform: rotate(0) scale(1.04);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.hero h1 {
  margin: 26px 0 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(82px, 15.2vw, 190px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero h1 span+span {
  margin-top: clamp(4px, .4vw, 7px);
  text-align: right;
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 30px;
  margin: 0;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .05em;
  transform: rotate(-2deg);
}

.cards {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto 120px;
  display: flex;
  flex-direction: column;
}

.card {
  position: relative;
  width: 100%;
  min-height: 202px;
  margin: -10px 0;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 18px;
  align-items: center;
  color: var(--ink);
  background: var(--card);
  border: 2px solid rgba(16, 16, 16, .11);
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(16, 16, 16, .07);
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.card:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.card:nth-child(even) {
  transform: rotate(1.5deg);
}

.card:hover,
.card:focus-visible {
  z-index: 2;
  transform: rotate(0) translateY(-8px) scale(1.01);
  box-shadow: 0 18px 30px rgba(16, 16, 16, .14);
  filter: saturate(1.08);
  outline: none;
}

.card-index {
  align-self: start;
  font: 700 12px/1 monospace;
}

.card-copy {
  display: flex;
  flex-direction: column;
}

.card-eyebrow {
  margin-bottom: 6px;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.card strong {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(52px, 7vw, 84px);
  line-height: .95;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.card-summary {
  margin-top: 12px;
  font-size: clamp(14px, 2vw, 17px);
}

.card-action {
  align-self: end;
  padding-bottom: 4px;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 28px;
}

.contact-strip {
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) 2fr;
  align-items: end;
  gap: 36px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 14px;
}

.contact-note {
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-strip h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(243, 240, 232, .4);
}

.contact-actions a {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(243, 240, 232, .4);
  font-weight: 700;
  text-decoration: none;
}

.contact-actions a:first-child {
  margin-right: 28px;
}

.socials {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 4px;
  text-align: center;
}

.socials a {
  padding: 5px 0;
  display: inline-flex;
  align-items: baseline;
  font: 800 11px/1 Arial, sans-serif;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, transform .18s ease;
}

.socials a:not(:last-child)::after {
  content: "·";
  margin: 0 9px;
  color: rgba(16, 16, 16, .35);
  font-family: Georgia, serif;
}

.socials a span {
  margin-left: 3px;
  font-size: .75em;
}

.socials a:hover {
  color: #126b92;
  transform: translateY(-1px) skewX(-4deg);
}

.socials-lead {
  margin-right: 12px;
  padding: 5px 8px 3px;
  background: var(--yellow);
  border-radius: 4px;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 15px;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.footer-end {
  padding-top: 22px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 9px;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .64;
}

.footer-end a {
  color: inherit;
  text-decoration: none;
}

.footer-end a span {
  margin-left: 2px;
  font-size: .75em;
}

.footer-end a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
}

.details {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 24px;
  border: 0;
  background: transparent;
}

.details::backdrop {
  background: rgba(16, 16, 16, .52);
  backdrop-filter: blur(7px);
}

.details[open] {
  display: grid;
  place-items: center;
}

.postit {
  --note: var(--yellow);
  position: relative;
  width: min(620px, 100%);
  min-height: 520px;
  padding: clamp(38px, 7vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--note);
  box-shadow: 18px 26px 48px rgba(0, 0, 0, .3);
  transform: rotate(-1.4deg);
  animation: pop-note .42s cubic-bezier(.18, .89, .32, 1.28) both;
}

.postit::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 132px;
  height: 34px;
  background: rgba(244, 225, 176, .82);
  border-left: 1px solid rgba(0, 0, 0, .07);
  border-right: 1px solid rgba(0, 0, 0, .07);
  transform: translateX(-50%) rotate(2deg);
}

.postit-index {
  font: 700 12px/1 monospace;
  letter-spacing: .05em;
}

.postit h2 {
  margin: 18px 0 14px;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(68px, 12vw, 112px);
  line-height: .85;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.postit p {
  max-width: 48ch;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.45;
}

.postit-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(16, 16, 16, .3);
}

.postit-links a {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(16, 16, 16, .3);
  font-size: 1.5em;
  font-weight: 700;
  text-decoration: none;
}

.close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(16, 16, 16, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@keyframes pop-note {
  from {
    opacity: 0;
    transform: translateY(80px) rotate(-7deg) scale(.78);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-1.4deg) scale(1);
  }
}

@media (max-width: 640px) {
  .hero {
    width: calc(100% - 28px);
    padding-top: 26px;
  }

  .doctor-title {
    font-size: 42px;
    padding: 7px 13px 4px;
  }

  .hero-portrait {
    top: 22px;
    right: 2px;
    width: 72px;
    padding: 4px;
  }

  .hero h1 {
    font-size: clamp(60px, 18.5vw, 92px);
    line-height: .9;
  }

  .hero-note {
    bottom: 28px;
  }

  .cards {
    width: calc(100% - 24px);
    margin-bottom: 88px;
  }

  .card {
    min-height: 190px;
    padding: 24px 20px;
    grid-template-columns: 34px 1fr;
  }

  .card-action {
    display: none;
  }

  .card strong {
    font-size: clamp(48px, 15vw, 72px);
  }

  .footer {
    width: calc(100% - 24px);
    padding-bottom: 20px;
  }

  .contact-strip {
    padding: 22px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-actions a:first-child {
    margin-right: 0;
  }

  .socials {
    margin-top: 26px;
    justify-content: flex-start;
    text-align: left;
  }

  .socials-lead {
    width: max-content;
    margin: 0 100% 6px 0;
  }

  .postit {
    min-height: min(560px, 88vh);
    padding: 42px 28px 32px;
  }

  .postit h2 {
    font-size: clamp(60px, 19vw, 88px);
  }

  .postit p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}