:root {
  --ink: #151513;
  --ink-soft: #25231f;
  --paper: #f3efe8;
  --paper-light: #faf8f3;
  --soft: #e5ded2;
  --muted: #77736b;
  --muted-light: #aaa59b;
  --white: #faf8f2;
  --line: rgba(21, 21, 19, .14);
  --line-light: rgba(255, 255, 255, .14);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
}

/* =========================
   HEADER
========================= */

header {
  height: 78px;
  padding: 0 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  border-bottom: 1px solid var(--line);

  position: sticky;
  top: 0;

  background: rgba(243, 239, 232, .88);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);

  z-index: 20;
}

.logo {
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.logo span {
  font-weight: 400;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a,
.link {
  position: relative;
  font-size: 11px;
  letter-spacing: .045em;
  color: var(--ink);
  text-decoration: none;
}

nav a::after,
.link::after {
  content: "";
  position: absolute;

  left: 0;
  right: 100%;
  bottom: -5px;

  height: 1px;
  background: currentColor;

  transition: right .35s var(--ease);
}

nav a:hover::after,
.link:hover::after {
  right: 0;
}

/* =========================
   BUTTONS
========================= */

.buytop,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);

  text-decoration: none;
  text-transform: uppercase;

  letter-spacing: .13em;
  font-size: 9px;
  line-height: 1;

  padding: 15px 18px;

  transition:
    background .3s var(--ease),
    color .3s var(--ease),
    transform .3s var(--ease),
    box-shadow .3s var(--ease);
}

.buytop:hover,
.button:hover {
  background: transparent;
  color: var(--ink);

  transform: translateY(-2px);

  box-shadow:
    0 12px 25px rgba(21, 21, 19, .08);
}

.buytop {
  white-space: nowrap;
}

/* =========================
   TYPOGRAPHY
========================= */

.eyebrow,
.num,
.meta,
.facts,
.retail small {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.num {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
blockquote,
.lead,
.world h2 {
  font-family: var(--serif);
  font-weight: 400;

  line-height: .93;
  letter-spacing: -.055em;
}

h1 i,
h2 i,
.world h2 i {
  font-style: italic;
  font-weight: 400;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: calc(100vh - 78px);

  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(300px, .85fr);

  align-items: center;

  gap: 7vw;

  padding: 9vh 8vw 11vh;

  overflow: hidden;
}

.hero-copy {
  max-width: 850px;
}

.hero h1 {
  font-size: clamp(58px, 8.5vw, 126px);

  margin: 20px 0 32px;

  max-width: 900px;
}

.intro {
  max-width: 570px;

  margin: 0;

  font-size: 16px;
  line-height: 1.8;

  color: #4c4943;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 28px;

  margin-top: 38px;
}

/* =========================
   PORTRAIT
========================= */

.portrait {
  justify-self: end;
  width: min(35vw, 470px);
}

.portrait > div {
  position: relative;

  aspect-ratio: 1;

  border-radius: 50%;

  padding: 13px;

  border: 1px solid var(--line);
}

.portrait > div::before {
  content: "";

  position: absolute;

  inset: 5px;

  border: 1px solid rgba(21, 21, 19, .07);

  border-radius: 50%;

  pointer-events: none;
}

.portrait img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: 50%;

  filter: saturate(.72) contrast(1.03);

  display: block;
}

.portrait small {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  margin-top: 13px;

  color: var(--muted);

  font-size: 8px;
  letter-spacing: .15em;
}

/* =========================
   DARK QUOTE SECTION
========================= */

.dark {
  background: var(--ink);
  color: var(--white);
}

.quote {
  padding: 12vw 12vw;

  display: grid;

  grid-template-columns: 100px minmax(0, 1fr);

  gap: 5vw;
}

.dark .eyebrow,
.dark .num {
  color: var(--muted-light);
}

blockquote {
  font-size: clamp(35px, 5.2vw, 78px);

  max-width: 1100px;

  margin: 28px 0 0;
}

/* =========================
   GENERAL SECTIONS
========================= */

section:not(.hero) {
  padding: 11vw 8vw;
}

.heading {
  display: grid;

  grid-template-columns: 100px minmax(0, 1fr);

  gap: 5vw;

  margin-bottom: 7vw;
}

.heading h2 {
  font-size: clamp(64px, 8.5vw, 126px);

  margin: 14px 0 0;
}

/* =========================
   BOOK
========================= */

.bookgrid {
  display: grid;

  grid-template-columns: .85fr 1fr;

  gap: 9vw;

  align-items: center;

  max-width: 1180px;

  margin: auto;
}

.book {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
  REAL BOOK COVER

  This replaces the old generated cover.
*/

.book-cover-image {
  width: min(31vw, 360px);

  height: auto;

  display: block;

  object-fit: contain;

  border-radius: 1px;

  box-shadow:
    18px 22px 45px rgba(0, 0, 0, .18),
    2px 3px 8px rgba(0, 0, 0, .08);

  transition:
    transform .6s var(--ease),
    box-shadow .6s var(--ease);
}

.book:hover .book-cover-image {
  transform:
    translateY(-7px)
    rotate(-.6deg);

  box-shadow:
    25px 32px 60px rgba(0, 0, 0, .22),
    2px 3px 8px rgba(0, 0, 0, .08);
}

/*
  Old generated-cover CSS.
  Safe to leave here temporarily if your HTML
  still contains .cover somewhere.
*/

.cover {
  width: min(31vw, 360px);

  aspect-ratio: 2 / 3;

  background: #191918;

  color: #eee9df;

  box-shadow:
    22px 26px 50px rgba(0, 0, 0, .2);

  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover strong {
  font-family: var(--serif);

  font-size: clamp(38px, 5vw, 70px);

  line-height: .84;

  letter-spacing: -.05em;
}

.cover strong i {
  font-weight: 400;
}

/* =========================
   BOOK COPY
========================= */

.copy {
  max-width: 640px;

  color: #4d4942;
}

.copy > p {
  margin-top: 0;
  margin-bottom: 22px;
}

.price {
  font-family: var(--serif);

  font-size: 34px;

  line-height: 1;

  color: var(--ink);

  margin: 18px 0 28px !important;
}

/* =========================
   BOOK FACTS
========================= */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  margin: 34px 0;
}

.facts span {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 30px;

  padding: 13px 0;

  border-bottom: 1px solid var(--line);

  letter-spacing: normal;

  text-transform: none;

  font-size: 12px;
}

.facts span:last-child {
  border-bottom: 0;
}

.facts b {
  color: var(--ink);

  font-weight: 600;

  text-align: right;
}

/* =========================
   LIGHT SECTIONS
========================= */

.light {
  background: var(--soft);
}

/* =========================
   ABOUT
========================= */

.aboutgrid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10vw;

  max-width: 1200px;

  margin: auto;
}

.lead {
  font-size: clamp(32px, 4.2vw, 60px);
}

.aboutgrid .copy {
  font-size: 15px;

  line-height: 1.8;
}

/* =========================
   WORN STUDIOS
========================= */

.world {
  padding: 9vw 8vw !important;
}

.world > div {
  position: relative;

  overflow: hidden;

  background: var(--ink);

  color: var(--white);

  padding: 8vw;

  max-width: 1200px;

  margin: auto;
}

.world > div::after {
  content: "";

  position: absolute;

  width: 380px;
  height: 380px;

  border: 1px solid rgba(255, 255, 255, .08);

  border-radius: 50%;

  right: -150px;
  bottom: -190px;

  pointer-events: none;
}

.world .eyebrow {
  color: var(--muted-light);
}

.world h2 {
  position: relative;

  z-index: 1;

  font-size: clamp(55px, 7.5vw, 105px);

  margin: 20px 0 30px;
}

.world p {
  position: relative;

  z-index: 1;

  max-width: 650px;

  color: #c4c0b8;

  font-size: 16px;

  line-height: 1.8;
}

.lightbutton {
  position: relative;

  z-index: 1;

  background: var(--white);

  color: var(--ink);

  display: inline-flex;

  margin-top: 15px;

  border-color: var(--white);
}

.lightbutton:hover {
  background: transparent;

  color: var(--white);

  border-color: var(--white);
}

/* =========================
   WHERE TO BUY
========================= */

.retail {
  border-top: 1px solid var(--line);

  max-width: 1200px;

  margin: auto;
}

.retail a {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 30px;

  padding: 30px 0;

  border-bottom: 1px solid var(--line);

  text-decoration: none;

  color: var(--ink);

  transition:
    padding .4s var(--ease),
    background .4s var(--ease);
}

.retail a:hover {
  padding-left: 18px;
  padding-right: 8px;
}

.retail small {
  display: block;

  margin-bottom: 5px;
}

.retail b {
  display: block;

  font-family: var(--serif);

  font-size: clamp(30px, 4vw, 52px);

  font-weight: 400;

  letter-spacing: -.035em;
}

.retail strong {
  font-family: var(--sans);

  font-size: 24px;

  font-weight: 400;

  transition: transform .3s var(--ease);
}

.retail a:hover strong {
  transform: translate(4px, -4px);
}

.note {
  text-align: right;

  color: var(--muted);

  font-size: 9px;

  letter-spacing: .1em;

  margin-top: 17px;
}

/* =========================
   SOCIALS
========================= */

.connect {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10vw;
}

.connect h2 {
  font-size: clamp(55px, 7.5vw, 105px);

  margin: 18px 0 25px;
}

.connect > div:first-child > p:last-child {
  max-width: 420px;

  color: var(--muted);
}

.socials {
  border-top: 1px solid var(--line);
}

.socials a {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;

  padding: 21px 0;

  border-bottom: 1px solid var(--line);

  font-family: var(--serif);

  font-size: 25px;

  text-decoration: none;

  color: var(--ink);

  transition:
    padding .35s var(--ease),
    font-style .2s ease;
}

.socials a span {
  font-family: var(--sans);

  font-size: 18px;

  font-style: normal;

  transition: transform .3s var(--ease);
}

.socials a:hover {
  padding-left: 12px;

  font-style: italic;
}

.socials a:hover span {
  transform: translate(4px, -4px);
}

/* =========================
   FOOTER
========================= */

footer {
  background: #11110f;

  color: #d8d3ca;

  padding: 60px 5vw 24px;
}

.white {
  color: var(--white);
}

.footerrow {
  display: flex;

  justify-content: space-between;

  gap: 40px;

  padding-bottom: 65px;
}

.footerrow p {
  font-size: 9px;

  letter-spacing: .13em;

  text-transform: uppercase;

  color: #89857d;
}

.footerrow > div:last-child {
  text-align: right;
}

.footerrow b {
  color: #d8d3ca;

  font-weight: 500;
}

.copyright {
  border-top: 1px solid var(--line-light);

  padding-top: 18px;

  display: flex;

  justify-content: space-between;

  gap: 20px;

  font-size: 8px;

  letter-spacing: .1em;

  text-transform: uppercase;

  color: #77736c;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

  header {
    padding: 0 4vw;
  }

  nav {
    gap: 20px;
  }

  .hero {
    gap: 5vw;

    padding-left: 6vw;
    padding-right: 6vw;
  }

  section:not(.hero) {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  header {
    height: 70px;

    padding: 0 6vw;
  }

  nav {
    display: none;
  }

  .buytop {
    padding: 12px 14px;

    font-size: 8px;
  }

  .hero {
    min-height: auto;

    grid-template-columns: 1fr;

    padding: 10vh 7vw 14vh;

    gap: 10vh;
  }

  .portrait {
    justify-self: center;

    width: min(74vw, 430px);

    order: -1;
  }

  .hero h1 {
    font-size: clamp(54px, 15vw, 90px);
  }

  .intro {
    font-size: 15px;
  }

  .quote,
  .heading {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .quote {
    padding: 18vw 8vw;
  }

  section:not(.hero) {
    padding: 18vw 7vw;
  }

  .heading {
    margin-bottom: 12vw;
  }

  .heading h2 {
    font-size: clamp(62px, 16vw, 100px);
  }

  .bookgrid,
  .aboutgrid,
  .connect {
    grid-template-columns: 1fr;

    gap: 12vw;
  }

  .book-cover-image {
    width: min(68vw, 350px);
  }

  .cover {
    width: min(68vw, 330px);
  }

  .copy {
    max-width: none;
  }

  .facts span {
    font-size: 11px;
  }

  .world {
    padding: 10vw 7vw !important;
  }

  .world > div {
    padding: 13vw 9vw;
  }

  .retail a {
    padding: 25px 0;
  }

  .retail a:hover {
    padding-left: 8px;
  }

  .retail b {
    font-size: clamp(29px, 9vw, 48px);
  }

  .connect h2 {
    font-size: clamp(55px, 15vw, 90px);
  }

  .socials a {
    font-size: 23px;
  }

  .footerrow,
  .copyright {
    flex-direction: column;
  }

  .footerrow > div:last-child {
    text-align: left;
  }

  .copyright {
    gap: 9px;
  }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 520px) {

  header {
    gap: 12px;
  }

  .logo {
    font-size: 11px;

    letter-spacing: .14em;
  }

  .buytop {
    font-size: 7px;

    padding: 11px 10px;

    letter-spacing: .1em;
  }

  .hero {
    padding-top: 8vh;
  }

  .hero h1 {
    font-size: clamp(48px, 14.5vw, 72px);
  }

  .actions {
    align-items: flex-start;

    flex-direction: column;

    gap: 20px;
  }

  .portrait {
    width: min(78vw, 360px);
  }

  .portrait > div {
    padding: 9px;
  }

  blockquote {
    font-size: clamp(34px, 10vw, 52px);
  }

  .book-cover-image {
    width: min(76vw, 330px);
  }

  .facts span {
    align-items: flex-start;

    flex-direction: column;

    gap: 4px;
  }

  .facts b {
    text-align: left;
  }

  .note {
    text-align: left;

    line-height: 1.7;
  }

  footer {
    padding-top: 45px;
  }
}

/* =========================
   ACCESSIBILITY / MOTION
========================= */

@media (prefers-reduced-motion: no-preference) {

  .hero-copy {
    animation: heroRise .9s var(--ease) both;
  }

  .portrait {
    animation: heroRise 1s .1s var(--ease) both;
  }

  @keyframes heroRise {

    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: none;
    }

  }
}

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}