@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --plum: #503d67;
  --plum-deep: #3d2d4e;
  --paper: #f5f2f7;
  --ink: #2d2d2d;
  --body: #333333;
  --white: #ffffff;
  --btn: #f5f2f7;
  --btn-ink: #0a0a0a;
  --alert: #e54747;
  --muted: #494c54;
  --line: #e3e6ed;
  --rail: 300px;
  --display: "Inter Tight", sans-serif;
  --radius-shot: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html[data-motion-mode="off"] { scroll-behavior: auto; }

body {
  margin: 0;
  color: var(--body);
  font-family: var(--display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  background: var(--white);
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

h1 {
  font-weight: 500;
  font-size: 44.8px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 400;
  font-size: 33.6px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 400;
  font-size: 23.2px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

/* Cover */

.cover {
  min-height: 100vh;
  background: var(--plum);
  overflow: hidden;
}

.cover-frame {
  position: relative;
  min-height: 100vh;
}

.cover-photo {
  position: absolute;
  inset: 0;
  background: url("images/cover.jpg") center / cover no-repeat;
  z-index: 0;
}

.cover-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.cover-copy {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  color: var(--white);
  max-width: 920px;
}

.logo {
  display: block;
  width: min(220px, 55vw);
  height: auto;
  margin-bottom: 28px;
}

.rail-brand {
  display: block;
  text-decoration: none;
  padding: 0 28px 28px;
}

.nav-logo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  padding: 0;
}

.cover h1 {
  color: var(--white);
  font-size: 55px;
  font-weight: 500;
  margin-top: 8px;
}

.cover h2 {
  color: var(--white);
  font-size: 25px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 12px;
  max-width: 18em;
}

.btn-rounded-solid {
  font-family: var(--display);
  font-size: 1em;
  letter-spacing: 0.02em;
  font-weight: 700;
  display: inline-block;
  padding: 20px 50px;
  margin-top: 30px;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  border: 0;
  color: var(--btn-ink);
  background: var(--btn);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.btn-rounded-solid:hover { opacity: 1; }

.btn-rounded-solid:active { opacity: 0.3; }

.btn-rounded-solid:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  opacity: 1;
}

.focus-in {
  animation: text-focus-in 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) 0.5s both;
}

.kenburns {
  animation: background-animate 15s ease-out both;
}

@keyframes text-focus-in {
  0% { filter: blur(12px); opacity: 0; }
  100% { filter: blur(0); opacity: 1; }
}

@keyframes background-animate {
  0% { transform: scale(1) translateY(0); transform-origin: 50% 16%; }
  100% { transform: scale(1.1) translateY(-15px); transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-motion-mode="auto"] .focus-in,
  html[data-motion-mode="auto"] .kenburns {
    animation: none;
    filter: none;
    opacity: 1;
    transform: none;
  }
}

html[data-motion-mode="off"] .focus-in,
html[data-motion-mode="off"] .kenburns {
  animation: none;
  filter: none;
  opacity: 1;
  transform: none;
}

/* Proposal shell */

.proposal { background: var(--white); }

.rail-toggle {
  display: none;
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 16px;
  border: 0;
  border-radius: 5px;
  background: var(--plum);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
}

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  background: var(--white);
  overflow: auto;
  padding: 48px 0 40px;
  z-index: 25;
  border-right: 1px solid var(--line);
}

.rail nav { display: flex; flex-direction: column; }

.rail a.nav-link {
  text-decoration: none;
  color: var(--body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 12px 28px;
}

.rail a.nav-link:hover,
.rail a.nav-link:focus-visible { background: rgba(222, 222, 222, 0.38); }

.rail a.nav-link.is-active {
  font-weight: 700;
  background: rgba(222, 222, 222, 0.38);
}

.doc { margin-left: var(--rail); }

.band { color: var(--ink); background: var(--white); }

.band.plum {
  color: var(--white);
  background-color: var(--plum);
  background-image: url("images/plum-wave.jpg");
  background-size: cover;
  background-position: center;
}

.band.paper { background: var(--paper); color: var(--ink); }

.band.alert { background: var(--alert); color: var(--white); }

.split,
.stack,
.quote,
.sheet {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 48px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.top { align-items: start; }

.deco { width: min(280px, 100%); display: block; margin-bottom: 28px; }

.shot {
  width: 100%;
  display: block;
  border-radius: var(--radius-shot);
  object-fit: cover;
}

.shot.tall { max-height: 520px; object-fit: cover; }

.bleed {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.letter {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px;
  color: var(--ink);
}

.letter p + p { margin-top: 18px; }

.letter strong { font-weight: 700; }

.steps { margin: 18px 0 0; padding: 0; list-style: none; }

.steps li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(45, 45, 45, 0.12);
}

.plum .steps li { border-bottom-color: rgba(255, 255, 255, 0.2); }

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}

.quote { text-align: center; }

.quote img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.quote h2 { font-size: 28px; }

.quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 500;
}

.note {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.sheet h2 { margin-bottom: 12px; }

.price {
  max-width: 860px;
  margin: 0 auto 0;
  padding: 0 48px 80px;
}

.price-head {
  background: var(--plum);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 16px 22px;
}

.choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.choice h3 { font-size: 20px; color: var(--ink); }

.choice p { margin-top: 6px; color: var(--muted); max-width: 46em; }

.choice-side { text-align: right; }

.amount {
  display: block;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.select-btn {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: #e4e8eb;
  color: #636c77;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
}

.select-btn:hover { background: #f4f6f8; }

.select-btn.is-selected {
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}

.total {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  padding: 18px 22px 8px;
  font-weight: 500;
  color: var(--ink);
}

.total[hidden] { display: none; }

.terms { max-width: 800px; }

.terms h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 28px 0 10px;
  color: var(--ink);
}

.terms p { margin-top: 10px; }

.terms p:first-child { margin-top: 0; }

.terms-sub { margin-top: 16px; }

.terms-addr-label {
  margin-top: 16px;
  font-weight: 700;
}

.terms-addr {
  margin-top: 4px;
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.terms-close { margin-top: 28px; }

.band.alert .stack {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 48px;
}

.band.alert p {
  font-weight: 400;
  line-height: 1.55;
}

.sign-tabs {
  display: flex;
  gap: 0;
  margin: 24px 0 16px;
  border-bottom: 1px solid var(--line);
}

.sign-tabs button {
  font-family: var(--display);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
}

.sign-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--plum);
  font-weight: 700;
}

label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--ink); }

input[type="text"] {
  width: min(420px, 100%);
  font-family: var(--display);
  font-size: 18px;
  padding: 12px 14px;
  border: 2px solid #a9b5ca;
  border-radius: 4px;
  color: var(--ink);
}

input[type="text"]:focus { outline: none; border-color: var(--plum); }

.pad-wrap { margin-top: 8px; }

canvas.pad {
  width: min(640px, 100%);
  height: 180px;
  border: 2px dashed #a9b5ca;
  border-radius: 8px;
  background: var(--white);
  touch-action: none;
  display: block;
}

.row-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }

.ghost {
  font-family: var(--display);
  background: transparent;
  border: 2px solid var(--plum);
  color: var(--plum);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 16px 22px;
  cursor: pointer;
}

.status {
  min-height: 1.5em;
  margin-top: 14px;
  font-weight: 500;
}

.status.is-error { color: var(--alert); }

.scrim {
  display: none;
}

@media (max-width: 960px) {
  .rail-toggle {
    display: block;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    border-radius: 0;
    text-align: left;
    background: var(--white);
    color: var(--plum);
    border-bottom: 1px solid var(--line);
  }

  .rail {
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }

  html[data-motion-mode="off"] .rail { transition: none; }

  .rail.is-open { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, 0.18); }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.35);
    z-index: 24;
    opacity: 0;
    pointer-events: none;
  }

  .scrim.is-open { opacity: 1; pointer-events: auto; }

  .doc { margin-left: 0; padding-top: 56px; }

  .split { grid-template-columns: 1fr; padding: 56px 24px; }

  .stack, .quote, .sheet { padding: 56px 24px; }

  .price { padding: 0 24px 56px; }

  .choice { grid-template-columns: 1fr; }

  .choice-side { text-align: left; }

  h1 { font-size: 36px; }

  h2 { font-size: 28px; }
}

@media (max-width: 640px) {
  .cover-copy { padding: 50px 28px; }

  .cover h1 { font-size: 30px; letter-spacing: -0.04em; }

  .cover h2 { font-size: 20px; }

  .btn-rounded-solid { padding: 16px 28px; }

  .letter { padding: 48px 24px; }
}
