:root {
  --ink: #1f292d;
  --muted: #52636b;
  --desk: #dcecf2;
  --desk-deep: #c7dfe8;
  --paper: #fffdf3;
  --tomato: #de493f;
  --tomato-dark: #a9332d;
  --yellow: #f4d34a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.site-nav {
  width: min(1240px, calc(100% - 72px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(31, 41, 45, 0.24);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid rgba(31, 41, 45, 0.28);
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--tomato-dark);
}

.nav-external {
  justify-self: end;
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.hero {
  width: min(1240px, calc(100% - 72px));
  min-height: 770px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(560px, 1.25fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  padding: 68px 0 92px;
}

.kicker {
  margin: 0 0 20px;
  color: var(--tomato-dark);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 590px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6.3vw, 94px);
  line-height: 0.97;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 500px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid var(--tomato-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  background: var(--tomato);
  color: #fff;
  box-shadow: 5px 5px 0 rgba(169, 51, 45, 0.2);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 rgba(169, 51, 45, 0.2);
}

.action-note {
  max-width: 170px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-underline-offset: 4px;
}

.worktable {
  position: relative;
  min-height: 580px;
  padding: 50px 24px 30px 30px;
  background-color: var(--desk-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: inset 0 0 80px rgba(92, 132, 149, 0.16), 18px 24px 48px rgba(64, 97, 110, 0.14);
}

.table-label {
  position: absolute;
  top: 16px;
  left: 18px;
  color: #617780;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.worktable-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.photo-sheet {
  position: relative;
  width: min(100%, 700px);
  margin: 0 0 0 auto;
  padding: 14px 14px 80px;
  background: var(--paper);
  box-shadow: 8px 15px 34px rgba(49, 72, 81, 0.25);
  transform: rotate(-1.2deg);
}

.photo-sheet > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.93);
}

.tape {
  position: absolute;
  z-index: 4;
  width: 88px;
  height: 25px;
  background: rgba(244, 211, 74, 0.7);
  box-shadow: 0 1px 3px rgba(58, 55, 32, 0.12);
}

.tape-one {
  top: -8px;
  right: 16%;
  transform: rotate(3deg);
}

.tape-two {
  left: -34px;
  bottom: 30%;
  transform: rotate(-82deg);
}

.tracing-sheet {
  position: absolute;
  z-index: 3;
  left: -6%;
  right: 14%;
  bottom: -54px;
  min-height: 238px;
  padding: 29px 34px 28px 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 248, 0.87);
  border: 1px solid rgba(91, 112, 119, 0.27);
  box-shadow: 7px 11px 25px rgba(49, 72, 81, 0.2);
  backdrop-filter: blur(4px);
  transform: rotate(1.8deg);
  animation: sheet-breathe 7s ease-in-out infinite;
}

.pencil-mark {
  position: absolute;
  left: 24px;
  top: 26px;
  color: var(--tomato);
  font: 700 27px/1 Georgia, serif;
  transform: rotate(-9deg);
}

.proof-label {
  margin-bottom: 13px;
  color: #66767b;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-en {
  margin-bottom: 5px;
  color: #627176;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
}

.tracing-sheet strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.context {
  width: fit-content;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 2px solid var(--tomato);
  color: var(--tomato-dark);
  font-size: 12px;
  font-weight: 800;
}

.open-note {
  position: absolute;
  right: 25px;
  bottom: 22px;
  color: var(--tomato-dark);
  font-size: 11px;
  font-weight: 800;
}

.margin-note {
  position: absolute;
  right: -24px;
  bottom: 28px;
  color: #536b75;
  font: italic 14px/1.2 Georgia, serif;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

.samples {
  padding: 118px max(36px, calc((100vw - 1240px) / 2)) 126px;
  background: var(--paper);
  border-top: 1px solid rgba(31, 41, 45, 0.13);
  border-bottom: 1px solid rgba(31, 41, 45, 0.13);
}

.samples-heading {
  display: grid;
  grid-template-columns: 0.55fr 1fr 0.65fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 76px;
}

.samples-heading .kicker {
  align-self: start;
}

.samples-heading h2,
.final h2 {
  margin: 0;
  font: 500 clamp(39px, 5vw, 70px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.samples-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.sample-board {
  position: relative;
  min-height: 670px;
  background-color: #d7e7eb;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 32px 32px;
  box-shadow: inset 0 0 55px rgba(87, 119, 131, 0.1);
}

.sample-board > a {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sample-board > a:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 5px;
}

.number {
  color: var(--tomato-dark);
  font: 750 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sample-board h3 {
  margin: 8px 0 5px;
  font: 500 27px/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

.sample-board > a p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.image-crop {
  overflow: hidden;
  background: #b7cbd1;
}

.image-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.94);
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--tomato-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.motion-note {
  position: absolute;
  left: 4.5%;
  top: 10%;
  width: 56%;
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 24px;
  align-items: end;
  padding: 16px 18px 20px;
  background: #fffef8;
  box-shadow: 10px 14px 27px rgba(47, 71, 81, 0.2);
  transform: rotate(-1.4deg);
}

.motion-note .image-crop {
  aspect-ratio: 16 / 9;
}

.motion-note:hover {
  transform: rotate(-0.5deg) translateY(-4px);
  box-shadow: 13px 18px 31px rgba(47, 71, 81, 0.22);
}

.idiom-note {
  position: absolute;
  z-index: 2;
  right: 5%;
  top: 17%;
  width: 30%;
  padding: 20px 20px 25px;
  background: #f6d653;
  box-shadow: 8px 12px 25px rgba(74, 71, 37, 0.18);
  transform: rotate(2deg);
}

.idiom-note .image-crop {
  aspect-ratio: 1.18 / 1;
  margin: 15px 0 20px;
}

.idiom-note:hover {
  transform: rotate(1deg) translateY(-4px);
  box-shadow: 11px 16px 29px rgba(74, 71, 37, 0.2);
}

.phrase-note {
  position: absolute;
  z-index: 3;
  left: 18%;
  bottom: 7%;
  width: 43%;
  min-height: 240px;
  padding: 30px 38px;
  background: rgba(255, 253, 243, 0.93);
  border: 1px solid rgba(50, 65, 70, 0.18);
  box-shadow: 8px 12px 28px rgba(47, 71, 81, 0.18);
  backdrop-filter: blur(5px);
  transform: rotate(0.8deg);
}

.phrase-note .phrase-en {
  margin: 26px 0 4px;
  color: #607075;
  font: italic 17px/1.2 Georgia, serif;
}

.phrase-note .phrase-ru {
  color: var(--ink);
  font: 500 32px/1.12 Georgia, "Times New Roman", serif;
}

.pencil-line {
  display: block;
  width: 58%;
  height: 2px;
  margin: 14px 0;
  background: var(--tomato);
  transform: rotate(-1deg);
}

.phrase-note .phrase-caption {
  max-width: 260px;
  font-size: 12px;
}

.phrase-note:hover {
  transform: rotate(0.2deg) translateY(-4px);
  box-shadow: 11px 16px 31px rgba(47, 71, 81, 0.2);
}

.final {
  width: min(1240px, calc(100% - 72px));
  min-height: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
  padding: 80px 0;
}

.final h2 {
  max-width: 690px;
}

.final-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(31, 41, 45, 0.55);
  box-shadow: 5px 5px 0 rgba(54, 79, 89, 0.15);
}

.patreon {
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 5px;
}

.site-footer {
  min-height: 78px;
  padding: 0 max(36px, calc((100vw - 1240px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: #eaf3f5;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer a {
  text-underline-offset: 4px;
}

@keyframes sheet-breathe {
  0%, 100% {
    transform: rotate(1.8deg) translateY(0);
  }
  50% {
    transform: rotate(1.3deg) translateY(-5px);
  }
}

@media (max-width: 980px) {
  .site-nav {
    width: min(100% - 40px, 760px);
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    width: min(100% - 40px, 760px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 56px 0 96px;
  }

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

  .hero h1 {
    font-size: clamp(52px, 11vw, 82px);
  }

  .worktable {
    min-height: 560px;
  }

  .samples {
    padding: 90px 32px 100px;
  }

  .samples-heading {
    grid-template-columns: 1fr 1.4fr;
  }

  .samples-heading > p:last-child {
    grid-column: 2;
  }

  .sample-board {
    min-height: 980px;
  }

  .motion-note {
    width: 77%;
    grid-template-columns: 1.25fr 0.75fr;
  }

  .idiom-note {
    top: 36%;
    width: 42%;
  }

  .phrase-note {
    left: 9%;
    bottom: 6%;
    width: 58%;
  }

  .final {
    width: min(100% - 40px, 760px);
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 620px) {
  .site-nav {
    width: calc(100% - 32px);
    min-height: 72px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-external {
    font-size: 12px;
  }

  .hero {
    width: calc(100% - 32px);
    gap: 36px;
    padding: 44px 0 70px;
  }

  .kicker {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .hero h1 {
    max-width: 390px;
    font-size: clamp(46px, 15vw, 66px);
    line-height: 0.98;
  }

  .intro {
    margin: 22px 0 26px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .action-note {
    max-width: none;
  }

  .worktable {
    min-height: 462px;
    margin: 0 -16px;
    padding: 42px 8px 20px 24px;
  }

  .photo-sheet {
    padding: 9px 9px 68px;
    transform: rotate(-0.8deg);
  }

  .tracing-sheet {
    left: -4%;
    right: 7%;
    bottom: -74px;
    min-height: 214px;
    padding: 22px 20px 22px 50px;
  }

  .proof-label {
    font-size: 8px;
  }

  .proof-en {
    font-size: 16px;
  }

  .tracing-sheet strong {
    font-size: clamp(27px, 8vw, 37px);
  }

  .pencil-mark {
    left: 17px;
    top: 23px;
  }

  .open-note {
    right: 18px;
    bottom: 17px;
    font-size: 9px;
  }

  .tape-two,
  .margin-note {
    display: none;
  }

  .samples {
    padding: 76px 16px 82px;
  }

  .samples-heading {
    display: block;
    margin: 0 8px 45px;
  }

  .samples-heading h2 {
    font-size: 42px;
  }

  .samples-heading > p:last-child {
    margin-top: 20px;
    font-size: 16px;
  }

  .sample-board {
    min-height: 1060px;
  }

  .motion-note,
  .idiom-note,
  .phrase-note {
    position: absolute;
    transform: none;
  }

  .motion-note {
    top: 42px;
    left: 7%;
    width: 86%;
    display: block;
    padding: 12px 12px 20px;
  }

  .motion-note .image-crop {
    margin-bottom: 18px;
  }

  .idiom-note {
    top: 397px;
    left: 22%;
    right: auto;
    width: 72%;
    padding: 15px 15px 22px;
  }

  .idiom-note .image-crop {
    aspect-ratio: 1.55 / 1;
  }

  .phrase-note {
    left: 6%;
    bottom: 42px;
    width: 81%;
    min-height: 228px;
    padding: 25px 26px;
  }

  .phrase-note .phrase-en {
    margin-top: 21px;
  }

  .final {
    width: calc(100% - 32px);
    min-height: 520px;
    padding: 72px 0;
  }

  .final h2 {
    font-size: 45px;
  }

  .final-actions {
    width: 100%;
  }

  .site-footer {
    min-height: 112px;
    padding: 20px 16px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .site-footer nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
}

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

  .tracing-sheet {
    animation: none;
  }

  .button,
  .sample-board > a {
    transition: none;
  }
}
