:root {
  color-scheme: light;
  --blue: #07598e;
  --turquoise: #00b6c9;
  --background: #f5f7f9;
  --text: #334551;
  --muted: #61717d;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 27px 4.5%; }
.page-name { color: var(--blue); font-size: 15px; font-weight: 600; }
.separator { margin: 0 5px; color: #87949e; font-weight: 400; }
.login-trigger { display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 9px 0 9px 9px; background: transparent; color: var(--blue); font-size: 14px; }
main { width: min(100% - 48px, 960px); margin: auto; padding: 46px 0 70px; }
.intro { text-align: center; margin-bottom: 58px; }
h1 { margin: 0; color: var(--blue); font-size: clamp(64px, 8vw, 88px); font-weight: 600; letter-spacing: -4px; line-height: 1.15; }
.wordmark-soft { color: var(--turquoise); font-weight: 400; }
.intro p { margin: 18px 0 0; color: var(--muted); font-size: 20px; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project { min-height: 234px; padding: 30px 14px 28px; text-align: center; background: #fff; border: 1px solid #e2e8ed; border-radius: 16px; }
.project-logo { height: 126px; display: flex; align-items: center; justify-content: center; }
.project-logo img { display: block; width: 64px; height: 64px; object-fit: contain; }
.dkb { font-size: 53px; font-weight: 600; letter-spacing: -2px; color: var(--blue); }
.project h2 { margin: 21px 0 0; font-size: 17px; font-weight: 600; color: var(--blue); overflow-wrap: anywhere; }
.footer { position: relative; padding: 15px 4.5% 28px; text-align: center; }
.contact h2 { margin: 0 0 9px; font-size: 16px; font-weight: 600; color: var(--text); }
.contact a { color: var(--blue); font-size: 14px; text-underline-offset: 4px; }
.contact-placeholder { color: var(--muted); font-size: 14px; }
.copyright { margin: 24px 0 0; font-size: 12px; color: var(--muted); }
.motto { position: absolute; left: 4.5%; bottom: 28px; margin: 0; color: var(--muted); font-size: 12px; }
dialog { width: min(420px, calc(100% - 32px)); padding: 30px; border: 1px solid #dbe3e9; border-radius: 16px; color: var(--text); background: #fff; }
dialog::backdrop { background: rgb(19 42 57 / 35%); }
dialog h2 { margin: 0 0 12px; color: var(--blue); font-size: 23px; }
dialog > p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; font-size: 14px; }
form label { display: block; margin: 16px 0 7px; font-size: 14px; font-weight: 600; }
form input { width: 100%; min-height: 43px; border: 1px solid #aab8c2; border-radius: 6px; padding: 9px 11px; color: var(--text); background: #fff; }
.login-message { min-height: 42px; margin: 17px 0; font-size: 14px; line-height: 1.5; color: var(--blue); }
.dialog-actions { display: flex; gap: 12px; }
.dialog-actions button { border: 1px solid var(--blue); border-radius: 6px; padding: 10px 17px; font-size: 14px; }
.button-primary { color: #fff; background: var(--blue); }
.button-secondary { color: var(--blue); background: #fff; }
@media (max-width: 700px) {
  .topbar { padding: 18px 24px; }
  main { max-width: 390px; padding: 35px 0 48px; }
  .intro { margin-bottom: 36px; }
  .intro p { font-size: 17px; }
  .projects { grid-template-columns: 1fr; gap: 18px; }
  .project { min-height: 215px; padding-top: 24px; padding-bottom: 24px; }
  .motto { position: static; margin-top: 25px; }
  .footer { padding-bottom: 25px; }
}
