/* Hallmark · built: the project · redesign: polish · scope: app · brand: Studio Ngahama green · idea: a working atelier with a live page beside the brief */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: E, removed decorative labels and tightened the form controls */
:root { --font-body: "Segoe UI", system-ui, sans-serif; --font-display: Georgia, "Times New Roman", serif; --ink: #192d28; --muted: #455c50; --paper: #f3f4ed; --surface: #fbfcf8; --line: #a4b7a8; --accent: #244c3d; --accent-ink: #fbfcf8; --focus: #ac4c24; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-16: 64px; color: var(--ink); background: var(--paper); font-family: var(--font-body); }
* { box-sizing: border-box; } html, body { overflow-x: clip; } body { margin: 0; } a { color: inherit; } ::selection { background: var(--accent); color: var(--accent-ink); } input, textarea { caret-color: var(--accent); }
.top { border-bottom: 1px solid var(--line); padding: var(--space-4) max(var(--space-5), calc((100% - 1240px)/2)); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.brand { text-decoration: none; font-size: .88rem; font-weight: 800; } .brand span { color: var(--muted); font-weight: 400; } .badge { color: var(--accent); border: 1px solid var(--line); padding: var(--space-2) var(--space-3); font-size: .8rem; }
main { max-width: 1240px; margin: auto; padding: var(--space-10) var(--space-5) var(--space-16); } .intro { max-width: 760px; margin-bottom: var(--space-10); }
h1, h2 { overflow-wrap: break-word; min-width: 0; text-wrap: balance; } h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.5rem); letter-spacing: -.045em; line-height: 1.05; margin: 0 0 var(--space-4); } p { line-height: 1.6; } .intro > p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.layout { display: grid; gap: var(--space-8); } .editor, .result { min-width: 0; } .editor { background: var(--surface); border: 1px solid var(--line); padding: var(--space-6); } .editor h2, .result h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.65rem; margin: 0 0 var(--space-5); }
.editor label { display: block; font-size: .91rem; font-weight: 650; margin: var(--space-4) 0 var(--space-2); } .editor label span { color: var(--focus); } .editor small { font-weight: 400; color: var(--muted); }
.editor input:not([type=color]), .editor textarea { display: block; width: 100%; font: inherit; padding: var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; color: var(--ink); } .editor input:not([type=color]) { min-height: 48px; } .editor textarea { resize: vertical; } .editor input[type=color] { height: 48px; width: 100%; min-width: 64px; padding: var(--space-1); border: 1px solid var(--line); background: var(--surface); cursor: pointer; } .form-row { display: grid; grid-template-columns: minmax(0,1fr) 96px; gap: var(--space-3); }
.primary, .download { font: inherit; font-weight: 700; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); min-height: 48px; text-decoration: none; cursor: pointer; border-radius: 2px; white-space: nowrap; } .primary { width: 100%; margin-top: var(--space-6); } .primary:hover, .download:hover { background: var(--ink); } .primary:active, .download:active { background: var(--muted); } .primary:disabled { opacity: .55; cursor: not-allowed; } #status { min-height: 1lh; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; } .download { margin-top: var(--space-2); } [hidden] { display: none !important; }
.result-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-4); margin-bottom: var(--space-4); } .result-head h2 { margin: 0; } .view-toggle { margin: 0; padding: 0; border: 0; display: flex; align-items: center; gap: var(--space-2); } .view-toggle legend { font-size: .8rem; color: var(--muted); margin-bottom: var(--space-1); } .view-toggle label { cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-1); font-size: .85rem; padding: var(--space-2); border: 1px solid var(--line); background: var(--surface); } .view-toggle label:has(input:checked) { border-color: var(--accent); color: var(--accent); font-weight: 700; } .view-toggle input { accent-color: var(--accent); }
.preview-shell { background: var(--ink); padding: var(--space-3); display: flex; justify-content: center; align-items: stretch; min-height: 540px; } .preview-shell iframe { display: block; width: 100%; height: 540px; border: 0; background: var(--surface); } .preview-shell[data-preview-size=mobile] iframe { width: min(100%, 375px); }
.limits { border-top: 1px solid var(--line); margin-top: var(--space-6); padding-top: var(--space-4); color: var(--muted); font-size: .88rem; } .limits strong { color: var(--ink); } .limits p { max-width: 70ch; } footer { border-top: 1px solid var(--line); padding: var(--space-6) var(--space-5); color: var(--muted); font-size: .8rem; text-align: center; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (min-width: 950px) { .layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
@media (max-width: 600px) { .top { align-items: start; flex-direction: column; } main { padding-top: var(--space-8); } .intro { margin-bottom: var(--space-8); } .editor { padding: var(--space-4); } .result-head { align-items: start; flex-direction: column; } .preview-shell, .preview-shell iframe { min-height: 460px; height: 460px; } .form-row { grid-template-columns: minmax(0, 1fr) 80px; } }
@media (max-width: 360px) { .brand span { display: block; } .view-toggle { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
