@font-face {
  font-family: "Royal Quiet Deluxe";
  src: url("./assets/RoyalQuietDeluxe.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --ink: #151513;
  --muted: #65635b;
  --paper: #fbfaf4;
  --paper-deep: #e9e2d2;
  --line: rgba(21, 21, 19, 0.16);
  --red: #ff4b2f;
  --blue: #2367d1;
  --green: #1d7756;
  --yellow: #f3c64b;
  --shadow: 0 26px 90px rgba(21, 21, 19, 0.18);
  --display: "Royal Quiet Deluxe", Georgia, "Times New Roman", serif;
  --serif: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 19, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 21, 19, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--serif);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
  color: inherit;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 244, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.brand__name {
  font-size: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.site-nav a {
  min-height: 36px;
  padding: 10px 12px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: rgba(21, 21, 19, 0.06);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(251, 250, 244, 0.96) 0%, rgba(251, 250, 244, 0.88) 36%, rgba(251, 250, 244, 0.28) 70%, rgba(251, 250, 244, 0.08) 100%),
    linear-gradient(180deg, transparent 0%, rgba(251, 250, 244, 0.9) 100%);
  pointer-events: none;
}

.hero__stage {
  position: absolute;
  inset: 0;
  min-height: 560px;
}

.browser-surface {
  position: absolute;
  right: 5vw;
  top: 54px;
  width: min(760px, 62vw);
  height: min(520px, 62svh);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 19, 0.2);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.browser-surface__bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(21, 21, 19, 0.14);
  background: #ece7d9;
}

.browser-surface__bar span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(21, 21, 19, 0.42);
  border-radius: 999px;
}

.browser-surface__bar span:nth-child(1) {
  background: var(--red);
}

.browser-surface__bar span:nth-child(2) {
  background: var(--yellow);
}

.browser-surface__bar span:nth-child(3) {
  background: var(--green);
}

.browser-surface__url {
  width: min(320px, 42%);
  margin-left: 8px;
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid rgba(21, 21, 19, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(21, 21, 19, 0.48);
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-surface__page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  min-height: calc(100% - 42px);
  padding: 34px;
}

.page-column {
  display: grid;
  align-content: start;
  gap: 16px;
}

.type-line {
  height: 13px;
  border-radius: 8px;
  background: rgba(21, 21, 19, 0.16);
}

.type-line--title {
  width: 74%;
  height: 38px;
  background: var(--ink);
}

.type-line--short {
  width: 54%;
}

.photo-block {
  height: 170px;
  border: 1px solid rgba(21, 21, 19, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 103, 209, 0.78), rgba(29, 119, 86, 0.22)),
    linear-gradient(45deg, transparent 45%, rgba(243, 198, 75, 0.82) 45% 62%, transparent 62%);
}

.type-stack {
  display: grid;
  gap: 9px;
  padding-top: 8px;
}

.type-stack span {
  height: 10px;
  border-radius: 8px;
  background: rgba(21, 21, 19, 0.12);
}

.type-stack span:nth-child(2) {
  width: 88%;
}

.type-stack span:nth-child(3) {
  width: 62%;
}

.note-block,
.comment-block {
  border: 1px solid rgba(21, 21, 19, 0.14);
  border-radius: 8px;
  background: #fff;
}

.note-block {
  height: 96px;
}

.note-block--blue {
  background: rgba(35, 103, 209, 0.15);
}

.note-block--green {
  height: 132px;
  background: rgba(29, 119, 86, 0.14);
}

.comment-block {
  height: 118px;
  background:
    linear-gradient(rgba(21, 21, 19, 0.12), rgba(21, 21, 19, 0.12)) 18px 24px / 76% 10px no-repeat,
    linear-gradient(rgba(21, 21, 19, 0.1), rgba(21, 21, 19, 0.1)) 18px 48px / 58% 10px no-repeat,
    #fffefa;
}

.lasso-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.detached-fragment {
  position: absolute;
  right: 25vw;
  top: 244px;
  z-index: 5;
  width: 220px;
  height: 154px;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 18px 24px rgba(21, 21, 19, 0.22));
  opacity: 0;
  transform: rotate(-7deg) translate3d(18px, 20px, 0) scale(0.92);
}

.detached-fragment__paper {
  display: grid;
  height: 100%;
  align-content: center;
  gap: 12px;
  padding: 24px;
  clip-path: polygon(7% 20%, 28% 7%, 56% 11%, 88% 4%, 96% 36%, 88% 68%, 96% 92%, 58% 85%, 33% 96%, 5% 77%, 13% 51%);
  background:
    linear-gradient(rgba(255, 75, 47, 0.14), rgba(255, 75, 47, 0.14)) 20px 98px / 80px 12px no-repeat,
    linear-gradient(135deg, #fffefa 0%, #f2ebdc 100%);
}

.detached-fragment__paper p {
  width: 130px;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.04;
}

.detached-fragment__paper div,
.detached-fragment__paper span {
  display: block;
  height: 10px;
  border-radius: 8px;
  background: rgba(21, 21, 19, 0.14);
}

.detached-fragment__paper div {
  width: 118px;
}

.detached-fragment__paper span {
  width: 72px;
}

body.is-clipping .detached-fragment {
  animation: detach 1800ms cubic-bezier(0.19, 1, 0.22, 1) 520ms both;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(650px, calc(100% - 40px));
  padding: 104px 0 92px;
  margin-left: clamp(20px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 610px;
  font-size: 82px;
  line-height: 0.92;
}

h2 {
  max-width: 580px;
  font-size: 52px;
  line-height: 0.98;
}

.hero__lede,
.section p,
.journal__copy p,
.try p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.hero__lede {
  max-width: 570px;
  margin: 26px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 13px 17px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 14px 28px rgba(21, 21, 19, 0.2);
}

.button--secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.gesture-strip {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(20px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #151513;
  color: var(--paper);
}

.gesture-strip p {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.gesture-strip span {
  height: 1px;
  min-width: 24px;
  background: rgba(251, 250, 244, 0.34);
}

.section,
.journal,
.try {
  padding: 96px clamp(20px, 6vw, 72px);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 52px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section p {
  max-width: 620px;
  margin: 44px 0 0;
}

.journal {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(35, 103, 209, 0.08), transparent 36%),
    var(--paper);
}

.journal__copy p {
  max-width: 520px;
  margin: 26px 0 0;
}

.journal-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 380px;
  align-items: start;
}

.journal-day {
  display: grid;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(21, 21, 19, 0.18);
}

.journal-day time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.journal-fragment {
  min-height: 120px;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 15px 18px rgba(21, 21, 19, 0.16));
}

.journal-fragment::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 1px solid rgba(21, 21, 19, 0.06);
  background: #fffefa;
}

.journal-fragment--one {
  height: 168px;
  transform: rotate(-3deg);
}

.journal-fragment--one::before {
  clip-path: polygon(7% 8%, 44% 3%, 88% 14%, 95% 42%, 84% 92%, 38% 84%, 13% 96%, 4% 48%);
  background:
    linear-gradient(rgba(255, 75, 47, 0.2), rgba(255, 75, 47, 0.2)) 18px 24px / 52% 12px no-repeat,
    linear-gradient(rgba(21, 21, 19, 0.1), rgba(21, 21, 19, 0.1)) 18px 56px / 70% 10px no-repeat,
    linear-gradient(135deg, #fffefa, #efe5d1);
}

.journal-fragment--two {
  height: 122px;
  transform: rotate(4deg);
}

.journal-fragment--two::before {
  clip-path: polygon(11% 14%, 78% 4%, 94% 26%, 87% 84%, 30% 96%, 4% 68%);
  background:
    linear-gradient(135deg, rgba(35, 103, 209, 0.72), rgba(243, 198, 75, 0.5)),
    #fffefa;
}

.journal-fragment--three {
  height: 232px;
  margin-top: 48px;
  transform: rotate(2deg);
}

.journal-fragment--three::before {
  clip-path: polygon(5% 11%, 56% 3%, 94% 18%, 88% 55%, 98% 90%, 52% 82%, 18% 96%, 2% 55%);
  background:
    linear-gradient(rgba(21, 21, 19, 0.12), rgba(21, 21, 19, 0.12)) 22px 30px / 64% 10px no-repeat,
    linear-gradient(rgba(21, 21, 19, 0.1), rgba(21, 21, 19, 0.1)) 22px 58px / 48% 10px no-repeat,
    linear-gradient(160deg, rgba(29, 119, 86, 0.18), #fffefa 46%);
}

.journal-fragment--four {
  height: 116px;
  margin-top: 18px;
  transform: rotate(-5deg);
}

.journal-fragment--four::before {
  clip-path: polygon(8% 20%, 42% 7%, 92% 12%, 84% 88%, 52% 82%, 15% 95%, 3% 56%);
  background:
    linear-gradient(rgba(255, 75, 47, 0.14), rgba(255, 75, 47, 0.14)) 20px 64px / 48% 12px no-repeat,
    #fffefa;
}

.journal-fragment--five {
  height: 176px;
  transform: rotate(3deg);
}

.journal-fragment--five::before {
  clip-path: polygon(14% 4%, 86% 10%, 97% 54%, 76% 94%, 35% 86%, 6% 73%, 10% 32%);
  background:
    linear-gradient(135deg, rgba(21, 21, 19, 0.82), rgba(21, 21, 19, 0.64)),
    #fffefa;
}

.try {
  max-width: 920px;
}

.try p {
  max-width: 680px;
  margin: 26px 0 32px;
}

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 6vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

@keyframes detach {
  0% {
    opacity: 0;
    transform: rotate(-3deg) translate3d(-22px, -10px, 0) scale(0.72);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: rotate(-7deg) translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 24px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 244, 0.94) 0%, rgba(251, 250, 244, 0.76) 42%, rgba(251, 250, 244, 0.2) 100%),
      linear-gradient(90deg, rgba(251, 250, 244, 0.95), rgba(251, 250, 244, 0.18));
  }

  .hero__stage {
    position: relative;
    height: 470px;
    min-height: 470px;
  }

  .browser-surface {
    right: -110px;
    top: 44px;
    width: 760px;
    max-width: none;
    height: 430px;
  }

  .detached-fragment {
    right: 15vw;
    top: 205px;
  }

  .hero__content {
    width: auto;
    padding: 40px 24px 72px;
    margin: 0;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 42px;
  }

  .hero__lede,
  .section p,
  .journal__copy p,
  .try p {
    font-size: 18px;
  }

  .gesture-strip {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .gesture-strip span {
    display: none;
  }

  .section,
  .journal,
  .try {
    padding: 72px 24px;
  }

  .section--split,
  .journal {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section p {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .brand__name {
    font-size: 20px;
  }

  .hero__stage {
    height: 380px;
    min-height: 380px;
  }

  .browser-surface {
    right: -260px;
    top: 38px;
    width: 640px;
    height: 340px;
  }

  .browser-surface__page {
    grid-template-columns: 1fr 150px;
    gap: 18px;
    padding: 24px;
  }

  .photo-block {
    height: 118px;
  }

  .detached-fragment {
    right: 24px;
    top: 174px;
    width: 172px;
    height: 122px;
  }

  .detached-fragment__paper {
    padding: 18px;
  }

  .detached-fragment__paper p {
    width: 110px;
    font-size: 18px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .journal-board {
    grid-template-columns: 1fr;
  }

  .journal-fragment--three,
  .journal-fragment--four {
    margin-top: 0;
  }

  .site-footer {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

body.privacy-page {
  background: #f7f5ef;
}

.privacy-page .site-header {
  position: static;
  min-height: 60px;
  padding: 14px clamp(20px, 5vw, 40px);
  background: #f7f5ef;
  backdrop-filter: none;
}

.privacy-page .brand {
  font-family: var(--serif);
}

.privacy-page .brand__mark {
  border-radius: 6px;
}

.privacy-page .brand__name {
  font-size: 24px;
}

.privacy-page .site-nav {
  gap: 8px;
  font-size: 12px;
}

.privacy-page .site-nav a {
  min-height: auto;
  padding: 6px 0;
  border-radius: 0;
}

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

.privacy-page .site-nav a:hover {
  background: transparent;
}

.privacy {
  padding: 40px 20px 72px;
}

.privacy__document {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(21, 21, 19, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(21, 21, 19, 0.05);
}

.privacy__header,
.privacy__section {
  padding: 28px 32px;
}

.privacy__header {
  border-bottom: 1px solid rgba(21, 21, 19, 0.1);
}

.privacy__kicker,
.privacy__meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy__kicker {
  margin-bottom: 16px;
}

.privacy-page h1,
.privacy-page h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}

.privacy-page h1 {
  max-width: none;
  font-size: 40px;
  line-height: 1.1;
}

.privacy-page h2 {
  max-width: none;
  font-size: 24px;
  line-height: 1.3;
}

.privacy__meta {
  margin-top: 12px;
}

.privacy__intro,
.privacy__section p,
.privacy__list {
  margin: 16px 0 0;
  color: #302f2b;
  font-size: 17px;
  line-height: 1.7;
}

.privacy__section + .privacy__section {
  border-top: 1px solid rgba(21, 21, 19, 0.1);
}

.privacy__list {
  padding-left: 20px;
}

.privacy__list li + li {
  margin-top: 12px;
}

.privacy-page .site-footer {
  min-height: auto;
  padding: 20px clamp(20px, 5vw, 40px) 28px;
  border-top: 0;
  color: var(--muted);
}

.privacy-page .site-footer span:first-child {
  font-family: var(--serif);
  font-size: 18px;
}

@media (max-width: 640px) {
  .privacy {
    padding: 24px 14px 48px;
  }

  .privacy__header,
  .privacy__section {
    padding: 22px 20px;
  }

  .privacy-page h1 {
    font-size: 32px;
  }

  .privacy-page h2 {
    font-size: 21px;
  }

  .privacy__intro,
  .privacy__section p,
  .privacy__list {
    font-size: 16px;
  }
}
