* { box-sizing: border-box; }
html { font-family: var(--ui-font-sans); color: var(--ui-text); background: var(--ui-background); line-height: var(--ui-line-height); }
body { min-height: 100vh; margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: var(--ui-font-title); line-height: 1.2; }
a { color: var(--ui-primary); }
.ui-container, main { width: min(var(--ui-container), calc(100% - var(--ui-container-gutter) * 2)); margin-inline: auto; }
main { padding-block: var(--ui-space-5) var(--ui-space-7); display: grid; gap: var(--ui-space-3); }
.ui-header { background: var(--ui-header); color: var(--ui-surface); }
.ui-header > div { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--ui-space-4); }
.ui-brand { color: inherit; text-decoration: none; }
.ui-brand span { font-size: 1.3125rem; font-weight: 900; letter-spacing: .08em; }
.ui-brand em { color: var(--ui-accent); font-style: normal; }
.ui-brand small { display: block; margin-top: var(--ui-space-1); color: #c4d9ce; font-size: .75rem; font-weight: 600; }
.ui-header nav { display: flex; align-items: center; gap: var(--ui-space-1); }
.ui-header nav form { display: block; }
.ui-header nav a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: var(--ui-space-3); color: #e3eee8; border-radius: var(--ui-radius-sm); font-size: var(--ui-font-sm); font-weight: 700; text-decoration: none; }
.ui-header nav a:hover { background: rgb(255 255 255 / 10%); color: #fff; }
@media(max-width:480px) { .ui-header > div { min-height: 64px; gap: var(--ui-space-2); } .ui-brand span { font-size: 1.0625rem; } }
@media(max-width:360px) { .ui-header > div { flex-wrap: wrap; padding-block: var(--ui-space-3); } .ui-header nav { width: 100%; justify-content: flex-end; } }
