:root {
  --bg: #14110F; --bg-2: #1E1A17; --fg: #F6EFE6; --muted: #B5ADA3; --accent: #FF5A36; --accent-2: #FFC23D;
  --line: rgba(246, 239, 230, .14);
  --paper: #FBF7F1; --ink: #1A1613;
  --share-bg: rgba(246, 239, 230, .06); --share-fg: #F6EFE6; --share-border: rgba(246, 239, 230, .18);
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 18px/1.5 var(--sans); overflow-x: clip;
  background-image: radial-gradient(120% 60% at 50% 0%, #241D18, transparent 70%);
}
body.flash { animation: flash .6s ease-out; }
@keyframes flash { 0% { background-color: #3A160D; } }
@media (prefers-reduced-motion: reduce) { body.flash { animation: none; } }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.top { max-width: 880px; margin: 0 auto; padding: 18px 16px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none; }
.logo span { color: var(--accent); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 48px; display: grid; gap: 44px; }
.intro { padding-top: clamp(16px, 5vw, 48px); }
.intro h1 { margin: 0; font-weight: 800; font-size: clamp(48px, 10vw, 104px); line-height: .92; letter-spacing: -.045em; }
.intro .ital { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.02em; }
.lede { margin-top: 20px; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 40ch; }

.step { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.step span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 15px; flex: none; }
.step em { font-family: var(--serif); font-weight: 400; color: var(--muted); }

.situations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.sit { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--fg); cursor: pointer; text-align: left; font-weight: 600; font-size: 16px; transition: border-color .15s, background .15s; }
.sit:hover { border-color: var(--muted); }
.sit[aria-checked="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sit .ico { font-size: 20px; }

.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.fields label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.fields input { font: 17px var(--sans); color: var(--fg); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%; }
.fields input:focus { border-color: var(--accent); outline: none; }
.fields input::placeholder { color: rgba(246,239,230,.3); }

.out { display: grid; gap: 14px; }
.reply { position: relative; border-radius: 20px; padding: 20px 22px 18px; overflow: hidden; }
.reply header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.reply .tag { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; }
.reply .tag b { font-family: var(--sans); font-style: normal; font-weight: 800; text-transform: uppercase; font-size: .8em; }
.reply .note { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .65; text-align: right; }
.reply .txt { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; max-width: 60ch; }
.acts { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.act { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; opacity: .85; }
.act:hover { opacity: 1; }
.act.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); opacity: 1; }

.polite { background: var(--paper); color: var(--ink); }
.polite .tag { color: #6B5E52; }
.really { background: var(--bg-2); border: 1px solid var(--line); }
.really .tag { color: var(--accent); }
.really .txt { font-weight: 600; font-size: clamp(20px, 2.6vw, 25px); }
.wtf { background: var(--accent); color: #1A0A05; }
.wtf .txt { font-weight: 800; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.2; letter-spacing: -.02em; }
.wtf header { padding-right: 84px; }
/* The stamp sits inside the card, so nothing can be clipped at the edge. */
.stamp { position: absolute; right: 16px; top: 14px; font-weight: 800; font-size: 24px; line-height: 1.2; color: #1A0A05; border: 3px solid #1A0A05; border-radius: 8px; padding: 0 8px; transform: rotate(-10deg); opacity: .85; }

@media (prefers-reduced-motion: no-preference) {
  .reply.in { animation: rise .5s cubic-bezier(.2,1.2,.4,1) both; }
  .wtf.in .stamp { animation: slam .35s .25s cubic-bezier(.3,1.6,.5,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes slam { from { opacity: 0; transform: rotate(-10deg) scale(2.2); } }

.peel { justify-self: start; min-height: 60px; padding: 0 32px; border: 0; border-radius: 999px; cursor: pointer; background: var(--accent); color: #1A0A05; font-weight: 800; font-size: 22px; letter-spacing: -.02em; box-shadow: 0 10px 36px -10px rgba(255,90,54,.7); transition: transform .1s ease; }
.peel:active { transform: scale(.96); }
.wtf + .peel { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; font-size: 17px; min-height: 48px; }
@media (max-width: 520px) { .peel { width: 100%; justify-self: stretch; } }

.share-row { display: grid; gap: 12px; }
.share-toggle { justify-self: start; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--fg); cursor: pointer; font-weight: 700; font-size: 16px; }
@media (max-width: 520px) { .share-toggle { justify-self: stretch; } }

.foot { max-width: 880px; margin: 0 auto; padding: 18px 16px 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-link { color: inherit; text-underline-offset: 3px; }
.foot-link:hover { color: var(--accent); }
