:root {
  --ink: #11181c;
  --paper: #eee9dd;
  --paper-bright: #fffaf0;
  --signal: #ff4d1c;
  --acid: #d7ff45;
  --blue: #2558ff;
  --line: rgba(17, 24, 28, 0.18);
  --display: "Bricolage Grotesque", sans-serif;
  --serif: "Newsreader", serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--display);
}

a {
  color: inherit;
}

body > header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding: 0 24px;
  color: white;
  background: rgba(17, 24, 28, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
}

body > header > div {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

body > header > div strong {
  font-size: 12px;
}

body > header > div span {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.back-link {
  justify-self: end;
  color: var(--acid);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  display: grid;
  grid-template-columns: minmax(320px, 0.34fr) minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.controls {
  position: sticky;
  top: 70px;
  align-self: start;
  height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 42px 30px 54px;
  background:
    linear-gradient(rgba(17, 24, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 28, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px;
  border-right: 1px solid var(--ink);
}

.kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.controls h1 {
  margin: 18px 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.controls-intro p {
  margin: 0;
  color: rgba(17, 24, 28, 0.7);
  font-size: 12px;
  line-height: 1.65;
}

form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

label {
  display: grid;
  gap: 8px;
}

label > span {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid rgba(17, 24, 28, 0.5);
  border-radius: 0;
  outline: none;
  font: 500 12px/1.45 var(--display);
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 3px 3px 0 var(--blue);
}

.full-field {
  grid-column: 1 / -1;
}

.preview-note {
  margin-top: 32px;
  padding: 18px;
  color: white;
  background: var(--blue);
}

.preview-note span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.preview-note p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 1.55;
}

.preview-shell {
  min-width: 0;
  padding: 34px;
  background: var(--signal);
}

.browser-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: white;
  background: var(--ink);
}

.browser-bar > div {
  display: flex;
  gap: 7px;
}

.browser-bar > div span {
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
}

.browser-bar > div span:nth-child(2) {
  background: var(--acid);
}

.browser-bar > div span:nth-child(3) {
  background: var(--blue);
}

.browser-bar p {
  margin: 0;
  font-family: var(--mono);
  font-size: 8px;
}

.browser-bar > span {
  justify-self: end;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.proposal {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(37, 88, 255, 0.1), transparent 25%),
    var(--paper-bright);
  border: 1px solid var(--ink);
  border-top: 0;
  box-shadow: 14px 14px 0 rgba(17, 24, 28, 0.2);
}

.proposal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 clamp(22px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.proposal-header > a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
}

.proposal-header > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.proposal-header span,
.proposal-label,
.scope-grid section > span,
.approval > span,
.proposal footer {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proposal-header strong {
  margin-top: 3px;
  font-size: 12px;
}

.proposal-hero {
  padding: 64px clamp(22px, 7vw, 90px) 72px;
}

.proposal-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--ink);
}

.proposal-hero h2 {
  margin: 46px 0 68px;
  font-size: clamp(54px, 7.5vw, 112px);
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.proposal-hero h2 > span,
.proposal-hero h2 em {
  display: block;
}

.proposal-hero h2 em {
  margin-top: 12px;
  color: var(--blue);
  font-family: var(--serif);
  font-weight: 400;
}

.proposal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
}

.proposal-summary p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.55;
}

.proposal-summary > strong {
  padding: 17px 20px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: clamp(23px, 3vw, 38px);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin: 0 clamp(22px, 5vw, 64px);
}

.scope-grid section {
  min-height: 230px;
  padding: 27px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.scope-grid section > span {
  color: var(--blue);
}

.scope-grid h3 {
  margin: 54px 0 12px;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.scope-grid h3 b {
  color: var(--signal);
}

.scope-grid p {
  margin: 0;
  color: rgba(17, 24, 28, 0.7);
  font-size: 11px;
  line-height: 1.6;
}

.approval {
  margin: 64px clamp(22px, 5vw, 64px);
  padding: clamp(28px, 5vw, 58px);
  color: white;
  background: var(--ink);
}

.approval > span {
  color: var(--acid);
}

.approval h3 {
  max-width: 820px;
  margin: 22px 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 400;
  line-height: 0.98;
}

.approval p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.6;
}

.approval button {
  min-height: 48px;
  margin-top: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--acid);
  border: 0;
  font: 800 9px var(--display);
  text-transform: uppercase;
  cursor: not-allowed;
}

.proposal footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(22px, 5vw, 64px);
  color: rgba(17, 24, 28, 0.55);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  body > header {
    grid-template-columns: 1fr auto;
  }

  body > header > div {
    display: none;
  }

  main {
    grid-template-columns: 1fr;
  }

  .controls {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
}

@media (max-width: 620px) {
  .back-link {
    font-size: 7px;
  }

  .controls {
    padding: 36px 20px 44px;
  }

  form,
  .scope-grid,
  .proposal-summary {
    grid-template-columns: 1fr;
  }

  .preview-shell {
    padding: 12px;
  }

  .browser-bar p {
    display: none;
  }

  .browser-bar {
    grid-template-columns: 1fr auto;
  }

  .proposal-hero {
    padding-top: 48px;
  }

  .proposal-hero h2 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .proposal-summary > strong {
    justify-self: start;
  }

  .scope-grid {
    margin: 0 16px;
  }

  .approval {
    margin: 46px 16px;
  }

  .proposal footer {
    flex-direction: column;
  }
}
