:root {
  color: #20221e;
  background: #f4efdf;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #20221e;
  --paper: #f4efdf;
  --red: #e24c31;
  --blue: #586bd8;
  --yellow: #f4c832;
  --line: rgba(32,34,30,.2);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, textarea, input { font: inherit; }
button { color: inherit; }
.noise { position: fixed; inset: 0; z-index: -1; opacity: .22; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }
main { width: min(1320px, 100%); margin: auto; padding: 0 28px; }
header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; font-size: 17px; letter-spacing: .04em; text-decoration: none; }
.logo i { display: grid; width: 34px; height: 34px; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--yellow); font-style: normal; }
.hero { position: relative; padding: clamp(55px,8vw,105px) 0 clamp(40px,6vw,75px); }
.kicker { margin: 0 0 19px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
h1 { margin: 0; font: 900 clamp(59px,10vw,142px)/.78 ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",sans-serif; letter-spacing: -.075em; }
h1 em { color: var(--blue); font-style: normal; }
.lede { position: absolute; right: 2%; bottom: 72px; width: min(370px,32%); margin: 0; font-size: clamp(16px,1.8vw,23px); font-weight: 700; line-height: 1.35; transform: rotate(-2deg); }
.workspace { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(360px,1.18fr); gap: 20px; align-items: stretch; }
.controls, .result { border: 1.5px solid var(--ink); border-radius: 22px; }
.controls { display: grid; gap: 22px; padding: clamp(22px,3vw,36px); background: #f8f4e8; }
label, legend { padding: 0; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
textarea { width: 100%; min-height: 112px; resize: vertical; padding: 15px 16px; border: 1.5px solid var(--ink); border-radius: 12px; outline: none; background: #fffdf6; color: var(--ink); font-size: 16px; line-height: 1.45; box-shadow: 4px 5px 0 var(--ink); transition: .15s; }
textarea:focus { border-color: var(--blue); box-shadow: 4px 5px 0 var(--blue); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips button { padding: 8px 11px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.chips button.active { background: var(--yellow); box-shadow: 2px 3px 0 var(--ink); transform: translateY(-2px); }
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tone-grid button { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 9px 11px; border: 1px solid var(--ink); border-radius: 11px; background: transparent; cursor: pointer; text-align: left; font-size: 12px; font-weight: 800; }
.tone-grid button b { font-size: 18px; }
.tone-grid button.active { background: #cfd6ff; box-shadow: 3px 4px 0 var(--ink); transform: translateY(-2px); }
.range-label { display: flex; justify-content: space-between; }
.range-label output { color: var(--red); }
input[type="range"] { width: 100%; height: 5px; margin: -12px 0 0; appearance: none; border-radius: 5px; background: linear-gradient(90deg,var(--yellow),var(--red)); }
input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; appearance: none; border: 2px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.generate { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 0 18px 0 20px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--red); color: #fff; cursor: pointer; font-size: 14px; font-weight: 900; box-shadow: 5px 6px 0 var(--ink); transition: .15s; }
.generate:hover { transform: translate(-2px,-2px); box-shadow: 7px 8px 0 var(--ink); }
.generate b { font-size: 24px; }
.result { position: relative; display: flex; min-height: 650px; flex-direction: column; overflow: hidden; padding: clamp(25px,4vw,52px); background: var(--blue); color: #fff; }
.result:before { content: "“"; position: absolute; top: 40px; right: 35px; color: rgba(255,255,255,.13); font: 900 220px/.7 Georgia,serif; }
.result-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.result-head i { padding: 7px 9px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; font-style: normal; white-space: nowrap; }
blockquote { position: relative; z-index: 1; margin: auto 0; padding: 50px 0 38px; font: 800 clamp(23px,3vw,40px)/1.22 ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",sans-serif; letter-spacing: -.035em; }
.diagnosis { position: relative; z-index: 1; width: min(460px,80%); margin-bottom: 27px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.4); }
.diagnosis span { font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.diagnosis p { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; line-height: 1.4; }
.actions { position: relative; z-index: 2; display: flex; gap: 8px; }
.actions button { min-height: 44px; padding: 0 15px; border: 1px solid white; border-radius: 10px; background: white; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 900; }
.actions button:nth-child(2) { background: transparent; color: white; }
.actions .icon { width: 44px; margin-left: auto; padding: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 21px; }
.success { position: absolute; bottom: 12px; left: 52px; margin: 0; font-size: 10px; font-weight: 800; }
.stamp { position: absolute; right: 5%; bottom: 16%; display: grid; width: 112px; height: 112px; place-content: center; border: 3px solid #ffd75c; border-radius: 50%; color: #ffd75c; text-align: center; transform: rotate(-11deg); opacity: .9; }
.stamp:after { content: ""; position: absolute; inset: 6px; border: 1px dashed currentColor; border-radius: 50%; }
.stamp b { font-size: 12px; letter-spacing: .06em; }
.stamp small { font-size: 9px; font-weight: 900; letter-spacing: .12em; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 100px; margin-top: 70px; border-top: 1px solid var(--line); color: #686b61; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
footer p { letter-spacing: 0; }
footer a { justify-self: end; color: inherit; text-decoration: none; }
@media (max-width: 820px) {
  .hero { padding-bottom: 50px; }
  .lede { position: static; width: min(550px,100%); margin-top: 32px; transform: none; }
  .workspace { grid-template-columns: 1fr; }
  .result { min-height: 600px; }
}
@media (max-width: 520px) {
  main { padding: 0 13px; }
  header { min-height: 70px; }
  header > span { max-width: 130px; text-align: right; line-height: 1.4; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(57px,20vw,90px); }
  .controls, .result { border-radius: 16px; }
  .controls { gap: 20px; padding: 20px; }
  .tone-grid { grid-template-columns: 1fr; }
  .result { min-height: 570px; padding: 25px 21px 42px; }
  .result-head > span { max-width: 130px; line-height: 1.4; }
  blockquote { padding: 42px 0 28px; font-size: 25px; }
  .diagnosis { width: 100%; padding-right: 95px; }
  .stamp { right: 4%; bottom: 17%; width: 90px; height: 90px; }
  .actions button { padding: 0 11px; }
  .success { left: 21px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p { display: none; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; } }
