/* Hallmark · macrostructure: Workbench · tone: considered · anchor hue: pine green
 * theme: Studio · genre: editorial · nav: N1b · footer: Ft1
 * enrichment: functional HTML product preview + original vector project assets
 * audience: independent creatives · use: client projects · motion: press, dialog
 * Hallmark · pre-emit critique: P5 H4 E4 S5 R5 V4 */
@import url('./tokens.css');
@font-face { font-family: 'Instrument Serif'; src: url('../assets/fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../assets/fonts/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow-y: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
button:active:not(:disabled), .button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
::selection { background: var(--color-green-soft); color: var(--color-ink); }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-style: normal; overflow-wrap: anywhere; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: -1.1px; white-space: nowrap; }
.wordmark img { width: 31px; height: 35px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 11px 19px; border: 1px solid var(--color-accent); border-radius: var(--radius-sm); background: var(--color-accent); color: var(--color-inverse); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; white-space: nowrap; }
.button:hover { background: var(--color-accent-hover); }
.button.secondary { background: transparent; border-color: var(--color-border); color: var(--color-ink); }
.button.secondary:hover { background: var(--color-paper-2); }
.button.small { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.button.light { color: var(--color-accent); background: var(--color-inverse); border-color: var(--color-inverse); }
.button.light:hover { background: var(--color-yellow); }
.button[aria-busy="true"] { opacity: 0.6; cursor: wait; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: transparent; }
.icon-button:hover { background: var(--color-paper-2); }
.text-button { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 8px 0; background: transparent; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.text-button:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 5px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 4px; font-size: 11px; line-height: 1.5; font-weight: 500; white-space: nowrap; background: var(--color-green-soft); color: var(--color-green-ink); }
.badge.review { background: var(--color-yellow); color: var(--color-yellow-ink); }
.badge.progress { background: var(--color-lilac); color: var(--color-lilac-ink); }
.badge.complete { background: var(--color-blue); color: var(--color-blue-ink); }
.badge.neutral { background: var(--color-paper-2); color: var(--color-muted); }
.dot { display: inline-block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.avatar { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-green-soft); color: var(--color-green-ink); font-size: 10px; font-weight: 700; flex-shrink: 0; }
.avatar.lilac { background: var(--color-lilac); color: var(--color-lilac-ink); }
.avatar.yellow { background: var(--color-yellow); color: var(--color-yellow-ink); }
.avatar.blue { background: var(--color-blue); color: var(--color-blue-ink); }
.avatar.large { width: 40px; height: 40px; font-size: 12px; }
.muted { color: var(--color-muted); }
.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--color-accent); color: var(--color-inverse); }
.skip-link:focus { top: 16px; }
dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 32px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); color: var(--color-ink); background: var(--color-surface); box-shadow: 0 20px 70px var(--color-shadow); }
dialog::backdrop { background: var(--color-backdrop); }
dialog[open] { animation: dialog-enter var(--dur-short) var(--ease-out); }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 26px; font-weight: 600; letter-spacing: -1px; }
.dialog-copy { color: var(--color-muted); font-size: var(--text-sm); margin-bottom: 24px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-paper); color: var(--color-ink); min-width: 0; font-size: 14px; }
.field input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--color-error); }
.field input:hover:not(:disabled), .field textarea:hover:not(:disabled), .field select:hover:not(:disabled) { border-color: var(--color-muted); }
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: 0.55; cursor: not-allowed; background: var(--color-paper-2); }
.field textarea { min-height: 110px; resize: vertical; }
.field small { color: var(--color-muted); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.form-error { color: var(--color-error); background: var(--color-error-soft); padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.form-error:empty { min-height: 1lh; background: transparent; padding-block: 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--color-accent); color: var(--color-inverse); border-radius: var(--radius-sm); font-size: 13px; box-shadow: 0 5px 20px var(--color-shadow); }
.toast:empty { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
@media (max-width: 480px) { dialog { padding: 22px; } .wordmark { font-size: 21px; } .wordmark img { width: 28px; } }
