/* Process Architecture (processarchitecture.eu) — public / auth design system.
   Radu Achim brand: Nordic light. Decided, single theme.
   Warm white, near-black, warm gold. Cormorant Garamond display, Inter body,
   Inter tracked-uppercase labels. Whitespace primary, horizontal rules between
   sections, no heavy cards. The tool at /app keeps its own engineering look. */

:root {
    --paper: #fafaf8;
    --panel: #ffffff;
    --band: #f3f1ea;
    --ink: #141414;
    --ink-soft: #33322e;
    --slate: #5a5a52;
    --muted: #8a887f;
    --line: #d8d6d0;
    --line-2: #e6e4dd;
    --gold: #b8a88a;
    --gold-ink: #8a7a58;
    --ok: #5f7a54;
    --err: #a5352a;
    --focus: #b8a88a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.eyebrow {
    font-family: Inter, sans-serif;
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-ink); margin: 0;
}
.lead {
    font-family: Inter, sans-serif; font-weight: 300;
    font-size: clamp(1rem, 0.96rem + 0.3vw, 1.14rem);
    color: var(--slate); line-height: 1.72;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400; color: var(--ink);
    text-wrap: balance; letter-spacing: 0.004em;
}
.h1 {
    font-weight: 300;
    font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.5rem);
    line-height: 1.15; margin: 0;
}
.h2 {
    font-size: clamp(1.55rem, 1.3rem + 1.2vw, 2.1rem);
    line-height: 1.22; margin: 0;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: Inter, sans-serif; font-size: 0.74rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    padding: 13px 22px; border-radius: 2px; border: 1px solid var(--ink);
    text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2c2c2c; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 15px; font-size: 0.68rem; }

/* understated text CTA, brand-preferred */
.link-cta {
    font-family: Inter, sans-serif; font-size: 0.74rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--gold); padding-bottom: 5px;
}
.link-cta:hover { border-color: var(--ink); }

.nav { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.nav .wrap { max-width: 1240px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.brand b {
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500;
    letter-spacing: 0.01em; font-size: 1.32rem; color: var(--ink);
}
.brand span {
    font-family: Inter, sans-serif; font-size: 0.58rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    font-family: Inter, sans-serif; font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--slate); text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
/* .nav-links a outranks .btn-* — restore the button colors inside the nav */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--paper); }
.nav-links a.btn-ghost { color: var(--ink); }
.nav-links a { white-space: nowrap; }
.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: 6px; }
@media (max-width: 1140px) {
    .nav-links { gap: 22px; }
    .nav-links a { letter-spacing: 0.12em; }
}
@media (max-width: 1040px) { .nav-links .collapse { display: none; } }
@media (max-width: 560px) {
    .nav-inner { gap: 16px; }
    .nav-links a.btn-ghost { display: none; }
    .nav-cta { gap: 10px; margin-left: 0; }
    .nav-links a { letter-spacing: 0.1em; }
    .nav-links .btn-sm { padding: 8px 11px; }
    .brand b { font-size: 1.15rem; }
}

.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-sm { padding: clamp(44px, 5vw, 68px) 0; }
section[id], [id].section { scroll-margin-top: 88px; }

.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between;
    padding: 44px 0; font-size: 0.74rem; letter-spacing: 0.02em; color: var(--muted);
}
.footer-inner a { color: var(--slate); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); text-decoration: underline; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }

.field-label {
    font-family: Inter, sans-serif; font-size: 0.66rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
    display: block; margin-bottom: 7px;
}
.field {
    width: 100%; font: inherit; font-weight: 400; font-size: 0.95rem; padding: 11px 12px;
    background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 2px;
}
.field:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.form-error { color: var(--err); font-size: 0.85rem; margin-top: 6px; }

/* auth pages */
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vw, 72px) 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { margin-bottom: 30px; }
.auth-card h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 8px; }
.auth-card .lead { font-size: 0.95rem; margin: 0 0 26px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-row a { font-size: 0.82rem; color: var(--slate); text-decoration: none; }
.auth-row a:hover { color: var(--ink); text-decoration: underline; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--slate); }
.auth-note { padding: 12px 14px; border-radius: 2px; background: var(--band); border: 1px solid var(--line); font-size: 0.88rem; color: var(--slate); }
.auth-back { display: inline-block; margin-top: 26px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.auth-back:hover { color: var(--ink); }
