/* ── Map shared.css variables to HandwerkApp palette ───────────────────── */
:root {
  --ink: #1a1208; --ink-muted: #5a4a3a; --ink-faint: #9a8a7a;
  --parchment: #f5f0e8; --parchment-dark: #ede8dc; --parchment-border: #d8d0c0;
  --rust: #8b3a1c; --rust-dark: #6b2a0e; --rust-light: #f0e0d8;
  --sage: #3a5a3a; --sage-light: #e0ece0;
  --gold: #c8962a; --gold-light: #f5e8c8;
  --surface: #ffffff; --shadow: 0 2px 12px rgba(26,18,8,.08);
  --shadow-lg: 0 8px 32px rgba(26,18,8,.12); --radius: 3px; --transition: .18s ease;

  --si-text:        var(--ink);
  --si-text-muted:  var(--ink-muted);
  --si-accent:      var(--rust);
  --si-accent-dark: var(--rust-dark);
  --si-border:      var(--parchment-border);
  --si-heading-font: 'Playfair Display', serif;
  --si-footer-bg:   var(--ink);
  --si-footer-text: rgba(245,240,232,.6);
  --si-footer-link: rgba(245,240,232,.75);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Source Sans 3', sans-serif; background: var(--parchment); color: var(--ink); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* NAV */
.nav { background: var(--ink); color: var(--parchment); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 60px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.nav-brand { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--parchment); text-decoration: none; }
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-link { color: rgba(245,240,232,.75); text-decoration: none; font-size: .875rem; font-weight: 500; padding: .5rem 1rem; border-radius: var(--radius); transition: var(--transition); background: none; border: none; cursor: pointer; font-family: inherit; }
.nav-link:hover, .nav-link.active { color: var(--parchment); background: rgba(255,255,255,.1); }
.nav-right { display: flex; align-items: center; gap: 1rem; }

main { flex: 1; }

/* PORTAL HERO */
.portal-hero { text-align: center; padding: 4rem 1rem 2rem; }
.portal-hero__title { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; color: var(--ink); }
.portal-hero__subtitle { font-size: 1.15rem; color: var(--ink-muted); margin-top: .5rem; }

/* PORTAL CARDS */
.portal-cards { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; padding: 2.5rem 1rem 4rem; }
.portal-card { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--parchment-border); border-radius: 6px; padding: 2.5rem 2rem; width: 280px; box-shadow: var(--shadow); transition: var(--transition); }
.portal-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--ink); }
.portal-card__icon { font-size: 3rem; margin-bottom: 1rem; }
.portal-card__title { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.portal-card__description { font-size: .95rem; color: var(--ink-muted); line-height: 1.6; flex-grow: 1; margin-bottom: 1.25rem; }
.portal-card__cta { font-size: .9rem; font-weight: 600; color: var(--rust); }

/* SITE FOOTER */
.site-footer { background: var(--si-footer-bg); color: var(--si-footer-text); font-size: .8rem; padding: 1.5rem 2rem; }
.site-footer a { color: var(--si-footer-link); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 2rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* LEGAL PAGES */
.legal-page { max-width: 720px; margin: 3rem auto; padding: 0 1rem; }
.legal-page h1 { font-family: var(--si-heading-font); font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--si-text); }
.legal-page h2 { font-size: 1.1rem; font-weight: 600; margin-top: 2rem; margin-bottom: .5rem; color: var(--si-accent); border-bottom: 1px solid var(--si-border); padding-bottom: .25rem; }
.legal-page h3 { font-size: 1rem; font-weight: 600; margin-top: 1rem; margin-bottom: .25rem; color: var(--si-text-muted); }
.legal-page p, .legal-page address, .legal-page li { color: var(--si-text-muted); font-size: .95rem; margin-bottom: .75rem; }
.legal-page ul { padding-left: 1.25rem; }
.legal-page .lead-text { font-size: 1.05rem; color: var(--si-text); }
.legal-page a { color: var(--si-accent); }
.legal-page a:hover { color: var(--si-accent-dark); }