/* Hallmark v2.0.0 · Nacréide · modern-minimal · app · redesign restyle · signature personal writing studio · 2026-12-03 */
/* Critique: the visitor's writing leads a contemporary workspace with restrained type, compact sections and clearly visible actions. */
:root {
  --ink: #f7f7f4;
  --surface: #fefeff;
  --raised: #edeef3;
  --line: #d7d9df;
  --text: #17191c;
  --muted: #60656e;
  --accent: #283ec5;
  --accent-strong: #1d2e99;
  --cyan: #283ec5;
  --error: #a53438;
  --shade: #17191c0a;
  --transparent: #0000;
  --font: 'Nacreide Studio', sans-serif;
  --font-editorial: var(--font);
  --font-display: var(--font);
  --horizon-display: var(--font);
  --horizon-thought: var(--font);
  --container: 1280px;
  --ed-bg: var(--ink);
  --ed-paper: var(--text);
  --ed-muted: var(--muted);
  --ed-line: var(--line);
  --ed-panel: var(--surface);
  --ed-pearl: var(--accent);
  --ed-coral: var(--accent);
  --ed-focus: var(--cyan);
  --ed-body: var(--font);
  --ed-display: var(--font);
  --ed-serif: var(--font);
  --focus: var(--cyan);
  --paper: var(--text);
  --type: var(--font);
  --studio-bg: #f7f7f4;
  --studio-border: #afb4c1;
  --studio-tint: #e9ecff;
  --studio-review: #f3edda;
  --studio-review-ink: #695313;
  --studio-overlay: #17191c99;
  color-scheme: light;
}
@font-face {
  font-family: 'Nacreide Studio';
  src: url('/assets/texte.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
html, body { overflow-x: clip; }
body { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
:is(h1,h2) { font-family: var(--font); font-weight: 500; letter-spacing: -.04em; line-height: 1.12; text-wrap: balance; min-width: 0; overflow-wrap: break-word; }
.brand { font-family: var(--font); letter-spacing: -.05em; }
.brand img[src$="signature-encre.svg"] { display: block; width: 150px; height: auto; max-width: 100%; filter: none; opacity: 1; }
:is(.brand,.unlock-mark,nav) img[src$="signe.svg"] { filter: brightness(0); opacity: .9; }
.topbar { padding: 20px 40px; gap: 32px; }
.top-caption { font-size: 13px; }
.topbar nav { font-size: 14px; }
.welcome {
  padding: 48px 56px 56px;
  min-height: calc(100svh - 160px);
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.welcome h1 { font-family: var(--font); font-weight: 500; font-size: clamp(42px, 4.4vw, 60px); line-height: 1.1; max-width: 12ch; margin-bottom: 24px; }
.welcome .lede { max-width: 38ch; font-size: 17px; line-height: 1.7; }
.welcome-copy > .fine { margin-top: 20px; max-width: 42ch; font-size: 13px; }
.welcome-copy > .text-button { font-size: 14px; margin-top: 16px; }
.creation {
  padding: 32px;
  max-width: 510px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
}
.creation form { padding: 0; }
.creation h2 { font-size: 26px; font-weight: 500; margin-bottom: 24px; letter-spacing: -.03em; }
label { font-size: 14px; color: var(--text); margin-top: 20px; }
input, textarea, select { background: var(--surface); border-radius: 6px; padding: 12px 16px; }
input::placeholder, textarea::placeholder { opacity: 1; }
.primary { background: var(--accent); color: var(--surface); border-radius: 6px; min-height: 48px; }
.primary:hover { background: var(--accent-strong); color: var(--surface); transform: none; }
.primary span { display: none; }
.subtle-button, .danger-button { border-radius: 6px; }
.text-button { color: var(--accent); }
.creation .primary { margin-top: 12px; }
.forge-settings { margin: 24px 0 16px; }
.forge-settings summary { font-size: 14px; }
.backup-import { max-width: 1100px; margin-bottom: 32px; padding-inline: 32px; }
.studio { grid-template-columns: 248px minmax(0,1fr); }
.identity-rail { padding-left: 32px; }
.twin-avatar { width: 36px; height: 36px; aspect-ratio: 1; border: 0; border-radius: 0; margin-bottom: 20px; }
.twin-avatar img { width: 32px; height: 32px; object-fit: contain; filter: brightness(0); opacity: .8; }
.identity-rail h1 { font-family: var(--font); font-size: 30px; font-weight: 500; }
.studio-tabs button { border-radius: 6px; }
.studio-tabs button[aria-current=page] { color: var(--accent); box-shadow: inset 2px 0 var(--accent); }
.workspace { padding: 32px; }
.panel-heading h2 { font-size: clamp(28px,3vw,36px); font-weight: 500; }
.conversation-empty h3, .studio-example-active .conversation-empty h3 { font-family: var(--font); font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.03em; }
.conversation-empty p { font-size: 15px; }
.suggestions button { border-radius: 6px; font-size: 13px; }
.message.user { border-radius: 10px 10px 2px 10px; background: var(--raised); }
.composer { border-radius: 10px; box-shadow: none; background: var(--surface); }
.send-button { background: var(--accent); color: var(--surface); border-radius: 6px; }
.send-button:hover { background: var(--accent-strong); }
.source-button { border-radius: 6px; font-size: 12px; min-height: 40px; }
.memory-card, .model-consent, .model-chooser select { border-radius: 8px; }
.global-status { border-radius: 8px; }
footer { font-size: 12px; }
.forge-connector { margin-block: 32px; padding: 32px; }
.forge-connector h2 { font-size: clamp(28px,3vw,36px); font-weight: 500; }
.revue-editorial .button { background: var(--accent); color: var(--surface); border-radius: 6px; }
.revue-editorial .button:hover { background: var(--accent-strong); }
.revue-editorial .method-hero, .revue-editorial .vision-hero { padding-block: 64px; min-height: 0; }
.revue-editorial .vision-hero { grid-template-columns: minmax(0, 1fr); }
.revue-editorial h1 { font-size: clamp(40px,4.6vw,60px); font-weight: 500; line-height: 1.12; max-width: 18ch; }
.revue-editorial h2 { font-size: clamp(28px,3.2vw,40px); font-weight: 500; }
.revue-editorial h3 { font-family: var(--font); font-weight: 500; letter-spacing: -.02em; }
.revue-editorial .vision-hero .lead { max-width: 48ch; }
.revue-editorial .principle { grid-template-columns: minmax(0, 1fr); }
.revue-editorial .brand, .revue-editorial .phase { font-family: var(--font); }
.revue-editorial :is(#parcours,#journey) { min-height: 0; }
.revue-editorial :is(.flow,.steps > ol > li,.constellations article) { min-height: 0; }
.revue-editorial :is(.section,.steps,.principle,.horizons) { padding-block: 48px; }
.revue-editorial .manifesto { padding-block: 32px 48px; }
.revue-editorial .manifesto .opening { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.revue-editorial .source-slip { border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.revue-editorial .source-slip blockquote { font-family: var(--font); font-size: 25px; line-height: 1.45; letter-spacing: -.025em; }
.revue-editorial .close { padding-block: 48px 64px; }
.revue-notice h1, .revue-notice h2 { font-family: var(--font); font-weight: 500; }
.revue-notice h2 { font-size: 24px; }
.revue-notice h1 { font-size: clamp(36px,5vw,56px); max-width: 18ch; }
@media (max-width: 900px) {
  .welcome { padding: 40px 32px 48px; gap: 32px; }
  .creation { padding: 24px; }
  .studio { grid-template-columns: 210px minmax(0,1fr); }
  .identity-rail { padding-left: 24px; }
  .workspace { padding: 32px 24px; }
}
@media (max-width: 720px) {
  .topbar { padding: 16px 24px; gap: 20px; }
  .topbar nav { gap: 20px; font-size: 13px; }
  .brand img[src$="signature-encre.svg"] { width: 128px; }
  .welcome { padding: 32px 24px 40px; grid-template-columns: minmax(0,1fr); gap: 28px; }
  .welcome h1 { font-size: clamp(36px,10vw,44px); max-width: 13ch; margin-bottom: 20px; }
  .welcome .lede { max-width: 38ch; font-size: 16px; }
  .welcome-copy > .fine { margin-top: 16px; }
  .welcome-copy > .text-button { margin-top: 8px; }
  .creation { padding: 24px; max-width: none; }
  .creation h2 { font-size: 24px; margin-bottom: 20px; }
  .studio { grid-template-columns: minmax(0,1fr); }
  .identity-rail { grid-template-columns: minmax(0,1fr); padding: 24px 24px 0; }
  .twin-avatar { display: none; }
  .identity-rail h1, .identity-rail .memory-count { grid-column: 1; }
  .identity-rail h1 { font-size: 28px; }
  .studio-tabs button[aria-current=page] { box-shadow: inset 0 -2px var(--accent); }
  .panel-heading h2 { font-size: 28px; }
  .workspace { padding: 28px 24px; }
  .composer-note { font-size: 11px; }
  .revue-editorial .method-hero, .revue-editorial .vision-hero { padding-block: 40px; }
  .revue-editorial :is(.section,.steps,.principle,.horizons) { padding-block: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:is(button, .button):active { opacity: .8; }

:root:has(body.studio-register, body.studio-case) {
  --ink: var(--text);
  --paper: var(--studio-bg);
  --surface-2: var(--raised);
  --border: var(--studio-border);
  --field-border: var(--studio-border);
  --input: var(--surface);
  --accent-hover: var(--accent-strong);
  --accent-text: var(--surface);
  --button-text: var(--surface);
  --disabled-fill: var(--raised);
  --disabled-ink: var(--muted);
  --tint: var(--studio-tint);
  --chip: var(--raised);
  --review: var(--studio-review);
  --review-ink: var(--studio-review-ink);
  --danger: var(--error);
  --overlay: var(--studio-overlay);
  --clear: var(--transparent);
  --sans: var(--font);
  --head: var(--font);
  --radius: 10px;
}
:is(.studio-register,.studio-case) .brand img[src$="signature-encre.svg"] { width: 150px; height: auto; }
.studio-register .primary { color: var(--accent-text); }
.studio-register .notice { border-radius: 6px; }
.studio-case .demo { padding-block: 48px; }
.studio-case h1 { font-size: clamp(36px,4vw,56px); font-weight: 500; }
.studio-case h2 { font-size: clamp(28px,3vw,40px); }
.studio-case .bottom { padding-block: 48px; }
.studio-case .bottom .wrap { gap: 48px; }
.studio-case .action { border-radius: 6px; }
@media (max-width: 720px) {
  :is(.studio-register,.studio-case) .brand img[src$="signature-encre.svg"] { width: 128px; }
  .studio-case .demo { padding-block: 32px; }
}

.profile-knowledge { margin: 24px 0 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-knowledge summary { min-height: 32px; cursor: pointer; font-size: 14px; }
.profile-knowledge > .fine { margin-top: 16px; }
.profile-knowledge .forge-fields { gap: 4px; padding-top: 8px; }
.profile-knowledge .forge-fields .fine { margin-top: 0; }
.profile-knowledge summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
