/* The MindfulSpaces — paper canvas. Terracotta belongs to Centered. */

:root {
  --paper: #f9f8f4;
  --ink: #2c2c2c;
  --ink-soft: #5c5c5a;
  --line: rgba(44, 44, 44, 0.1);
  --fill: #b85a31;
  --link: #9c4e2a;
  --white: #ffffff;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1080px;
  --read: 40rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

::selection {
  background: rgba(184, 90, 49, 0.18);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--fill);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus {
  transform: none;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(249, 248, 244, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.wrap.narrow {
  --wrap: 42rem;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 22px 0 18px;
}

.studio {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 460;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.studio:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

main {
  padding-bottom: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 72px;
  align-items: center;
  padding: 72px 0 32px;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--link);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 28px 0 0;
  max-width: 28rem;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.actions {
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.button:hover {
  background: #a44e2b;
  color: var(--white);
}

.fine {
  margin: 14px 0 0;
  max-width: 26rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.device-wrap {
  display: flex;
  justify-content: center;
}

.device {
  position: relative;
  min-width: 0;
  width: min(280px, 100%);
  padding: 8px;
  border-radius: 40px;
  background: #1c1c1c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 28px 70px rgba(44, 36, 28, 0.12);
}

.screen-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 32px;
  background: #141414;
}

.play {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44, 36, 28, 0.28);
}

.play[hidden] {
  display: none;
}

.play:hover {
  background: #a44e2b;
}

.beats {
  list-style: none;
  margin: 88px 0 0;
  padding: 72px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.beats li {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 34rem) 148px;
  gap: 8px 28px;
  align-items: center;
  min-width: 0;
}

.shot {
  margin: 0;
}

.shot .device {
  width: 148px;
  padding: 6px;
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 36px rgba(44, 36, 28, 0.1);
}

.shot .screen-media {
  border-radius: 22px;
}

.beats li > div {
  min-width: 0;
}

.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--link);
}

.beats h2 {
  margin: 0;
  max-width: 100%;
  font-family: var(--serif);
  font-weight: 460;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.beats p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

.boundary {
  margin: 88px 0 0;
  max-width: 34rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 460;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer .nav {
  margin-top: 14px;
}

.doc-head {
  padding: 64px 0 8px;
}

.doc-head .eyebrow {
  margin-bottom: 14px;
}

.doc-head h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.updated {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.prose {
  padding-top: 12px;
}

.prose h2 {
  margin: 2.4rem 0 0.7rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prose h3 {
  margin: 1.6rem 0 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose p {
  margin: 0.75rem 0;
}

.prose ul,
.prose ol {
  margin: 0.6rem 0 0.8rem;
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose li::marker {
  color: var(--link);
}

.summary {
  margin: 36px 0 8px;
  padding: 8px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary h2 {
  margin-top: 1.4rem;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 40px;
  }

  .beats li {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .shot .device {
    width: min(200px, 58%);
  }

  .hero .device {
    width: min(260px, 72%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 16px 36px rgba(44, 36, 28, 0.1);
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }

  .top {
    padding-top: 16px;
    gap: 10px;
  }

  .studio {
    font-size: 0.92rem;
    min-width: 0;
  }

  .nav {
    gap: 10px;
    flex-shrink: 0;
  }

  .nav a {
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 3.4rem);
  }
}

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