@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Accent";
  src: url("/fonts/playfair-italic-subset.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Oswald Logo";
  src: url("/fonts/oswald-subset.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Logo";
  src: url("/fonts/newsreader-subset.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Logo";
  src: url("/fonts/newsreader-italic-subset.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --page: #fbfaf7;
  --card: #ffffff;
  --tint: #f3f0ea;
  --line: #e9e5dd;
  --black: #000000;
  --ink: #1d1d1f;
  --soft: #55524c;
  --gold-text: #7a5e1a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --wrap: 66rem;
  --pad: 1.25rem;
  --radius: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.panel-dark :focus-visible { outline-color: #ffffff; }

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 10;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: .5rem;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Buttons: every link on the page is one of these */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 99px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #3a3a3d; border-color: #3a3a3d; }
.btn-light { background: #ffffff; color: var(--ink); border-color: #ffffff; }
.btn-light:hover { background: #e4e2dd; border-color: #e4e2dd; }
.btn-soft { background: var(--tint); color: var(--ink); border-color: var(--tint); }
.btn-soft:hover { background: var(--line); border-color: var(--line); }
.btn.is-waiting { color: var(--soft); }

/* Hero */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem var(--pad) 2.5rem;
  display: grid;
  gap: 2.5rem;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.75rem, 12.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--black);
}
.welcome {
  margin-top: .5rem;
  font-family: "Playfair Accent", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.6rem, 7vw, 2.5rem);
  line-height: 1.2;
  color: var(--gold-text);
}
.bio { margin-top: 1.25rem; max-width: 33rem; font-size: 1.125rem; color: var(--soft); }
.bio + .bio { margin-top: .9rem; }
.hero-cta { margin-top: 1.75rem; }
.hero-photo picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Photo carousel: polaroids sliding left to right */
.carousel { overflow-x: auto; overflow-y: hidden; padding: 1.25rem 0 1.75rem; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline-offset: -3px; }
.carousel-track { display: flex; width: max-content; }
.carousel-set { display: flex; gap: 1.25rem; padding-right: 1.25rem; }
.carousel-set li { width: 13rem; flex: none; }
.polaroid {
  margin: 0;
  background: #ffffff;
  padding: .6rem .6rem 0;
  box-shadow: 0 1px 2px rgba(40, 30, 10, .12), 0 .75rem 1.5rem -.5rem rgba(40, 30, 10, .22);
  transform: rotate(-1.6deg);
}
.carousel-set li:nth-child(even) .polaroid { transform: rotate(1.4deg) translateY(.35rem); }
.carousel-set li:nth-child(3n) .polaroid { transform: rotate(-.6deg) translateY(-.2rem); }
.polaroid img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.polaroid figcaption {
  display: grid; place-items: center;
  min-height: 3.4rem;
  padding: .4rem .2rem .55rem;
  font-size: .8125rem;
  line-height: 1.25;
  text-align: center;
  color: var(--soft);
}
.carousel-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .5rem; margin-top: -.25rem; padding: 0 var(--pad); }
.ph {
  display: grid; place-items: center;
  background: var(--tint);
  color: var(--soft);
  font-size: .9375rem;
  text-align: center;
}

/* Sections */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 0;
  display: grid;
  gap: 1.25rem;
}
main h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--black);
  text-wrap: balance;
}
.section-h { margin: 3rem 0 1.5rem; }
.lede { margin-top: .75rem; max-width: 30rem; font-size: 1.125rem; color: var(--soft); text-wrap: pretty; }
.fine { margin-top: 1rem; font-size: .9375rem; color: var(--soft); }
.kicker { font-weight: 500; font-size: 1rem; color: var(--gold-text); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}
.panel > .btn { margin-top: 1.5rem; }
.panel-tint { background: var(--tint); border-color: var(--tint); }
.panel-dark { background: var(--black); border-color: var(--black); color: #f5f5f7; }
.panel-dark h2 { color: #ffffff; }
.panel-dark .lede { color: #c9c7c2; }
.panel-dark .kicker { color: #d9bd7a; margin-bottom: .4rem; }
.panel-logo { margin-bottom: 1.5rem; }
#salient-h { font-size: clamp(3rem, 15vw, 4.75rem); letter-spacing: -.045em; line-height: 1; }

/* Things I love: the picture and its name are one link */
.faves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem .75rem; }
.fave { display: block; text-decoration: none; color: var(--ink); }
.fave-art { display: block; overflow: hidden; border-radius: 1.125rem; background: #ffffff; border: 1px solid var(--line); transition: transform .25s ease; }
.fave-art img, .fave-art .ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fave-art .ph { font-size: .8125rem; }
.fave-name { display: block; margin-top: .6rem; font-weight: 600; font-size: .875rem; line-height: 1.3; color: var(--black); }
.fave:hover .fave-art { transform: translateY(-3px); }

/* Company Portfolio */
.cards { display: grid; gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.card-logo { display: flex; align-items: center; height: 5rem; margin-bottom: 1rem; }
.card p { color: var(--soft); margin-bottom: 1.5rem; }
.card .btn { margin-top: auto; }

.lb-logo, .sa-logo { display: inline-flex; align-items: center; }
.lb-logo img { margin-right: -.6rem; height: 4.25rem; width: auto; }
.lb-word { display: flex; flex-direction: column; font-family: "Oswald Logo", "Arial Narrow", sans-serif; text-transform: uppercase; line-height: .95; color: #201e1d; }
.lb-small { font-weight: 300; font-size: .75rem; letter-spacing: .4em; }
.lb-big { font-weight: 500; font-size: 1.75rem; }
.lb-teal { color: #0e5d6a; }
.sa-logo { gap: .6rem; color: #241f22; }
.sa-word { font-family: "Newsreader Logo", Georgia, serif; font-size: 2.25rem; line-height: 1; letter-spacing: -.01em; }
.sa-word i { font-style: italic; }

/* Footer */
.foot {
  max-width: var(--wrap);
  margin: 4rem auto 0;
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.social { display: flex; justify-content: center; gap: 1.25rem; }
.social a { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; transition: background-color .2s ease; }
.social a:hover { background: var(--tint); }
.social img { width: 2.25rem; height: 2.25rem; }
.motion {
  min-height: 2rem;
  padding: .35rem .75rem;
  font: 400 .8125rem var(--sans);
  color: var(--soft);
  background: transparent;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
}
.motion:hover { color: var(--black); background: var(--tint); }

/* Motion: only for visitors who have not asked for less, and never while paused */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-text > :nth-child(5) { animation-delay: .32s; }
  .hero-photo { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .2s both; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .carousel-set[aria-hidden="true"] { display: none; }
  .carousel-set { padding-left: var(--pad); }
}
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* Wider screens */
@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .faves { gap: 1.25rem; }
  .fave-name { font-size: 1.0625rem; }
  .fave-art .ph { font-size: .9375rem; }
  .panel { padding: 3.5rem 3rem; }
  .carousel-set li { width: 16rem; }
  .carousel-set { gap: 1.75rem; padding-right: 1.75rem; }
}
@media (min-width: 60rem) {
  :root { --pad: 2rem; }
  .hero {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 4rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
  .hero-photo { max-width: 32rem; width: 100%; justify-self: end; }
  main { padding-top: 4rem; gap: 1.5rem; }
  .section-h { margin-top: 4rem; }
  .panel { padding: 4.5rem 4rem; }
}
