@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root { --ink: #1d2421; --muted: #68716b; --paper: #f5f1e8; --card: #fffdf8; --line: #d9d7cc; --orange: #df633c; --green: #55705e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
.shell { max-width: 1180px; margin: auto; padding: 48px 28px 28px; }
.masthead { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 44px; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font: 500 11px 'DM Mono', monospace; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(48px, 7vw, 88px); line-height: .91; letter-spacing: -.065em; font-weight: 600; }
h1 em { color: var(--green); font-family: 'Playfair Display', serif; font-weight: 600; letter-spacing: -.06em; }
.intro { max-width: 280px; margin-bottom: 5px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.toolbar { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--ink); padding: 15px 0; }
.modes { display: flex; gap: 7px; flex-wrap: wrap; }
button { border: 0; cursor: pointer; font: inherit; }
.mode, .button { border-radius: 99px; padding: 10px 16px; transition: .18s ease; }
.mode { color: var(--muted); background: transparent; }
.mode:hover, .mode.active { color: var(--card); background: var(--ink); }
.button { font-size: 13px; font-weight: 600; }
.quiet { color: var(--muted); background: transparent; }
.quiet:hover { color: var(--ink); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 8px 30px rgb(60 50 20 / 4%); }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h2 { margin-bottom: 0; font-size: 24px; letter-spacing: -.04em; }
.heading-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.score { color: var(--green); font: 500 12px 'DM Mono', monospace; white-space: nowrap; }
label { display: block; margin: 0 0 19px; color: var(--ink); font-size: 14px; font-weight: 600; }
label span { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 13px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fbfaf5; color: var(--ink); font: 14px/1.45 'DM Sans', sans-serif; }
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(85 112 94 / 12%); }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 27px; }
.secondary { color: var(--green); background: #e9eee7; }
.secondary:hover { background: #dce7dc; }
.primary { color: white; background: var(--orange); padding: 12px 18px; }
.primary:hover { background: #c9502d; transform: translateY(-1px); }
.primary span { margin-left: 12px; }
.copy { color: var(--green); background: #e9eee7; }
.copy:hover { background: #dce7dc; }
.preview-card { display: flex; flex-direction: column; min-height: 100%; background: var(--green); border-color: var(--green); color: #f8f6ed; }
.preview-card .eyebrow { color: #e2a98c; }
.preview-card h2 { color: white; }
pre { flex: 1; margin: 0; padding: 22px; min-height: 430px; overflow: auto; white-space: pre-wrap; border: 1px solid rgb(255 255 255 / 16%); border-radius: 9px; color: #f8f6ed; font: 14px/1.6 'DM Mono', monospace; }
.tip { display: flex; gap: 12px; margin-top: 20px; color: #d8e1d5; font-size: 12px; line-height: 1.4; }
.tip strong { color: white; font-weight: 600; white-space: nowrap; }
footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; color: var(--muted); font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) { .shell { padding: 28px 16px 20px; } .masthead { display: block; padding-bottom: 30px; } .intro { margin-top: 24px; } .toolbar { align-items: start; flex-direction: column; gap: 12px; } .workspace { grid-template-columns: 1fr; } .preview-card { min-height: auto; } pre { min-height: 320px; } footer { display: block; } footer span { display: block; margin-top: 8px; } }
