:root {
    --bg-color: #0e132e;
    --page-margin: max(16px, min(30vw, (100vw - 640px) / 2));
}

::selection { background: #22a5ff; color: #000; }

html {
    color: #ffffff;
    background-color: var(--bg-color);
    margin-inline: var(--page-margin);
    font-family: "JetBrains Mono";
    font-size: 14px;
    line-height: 1.5;
}

body {
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: safe center;      /* moot once .about is flex:1, kept harmless */
    padding-top: calc(min(10vw, 100px) + 10px);    /* clear the fixed header */
    padding-bottom: min(10vw, 100px);
    text-align: justify;
}

@keyframes ripple {
    0%    { background-position: 100% 0; }
    100%  { background-position: 0% 0; }
}


.header {
    font-size: 18px;
    position: fixed;
    top: 0;
    padding-top: min(10vw, 100px);
    padding-bottom: 10px;
    z-index: 10;
    background-color: var(--bg-color);
    left: var(--page-margin);
    right: var(--page-margin);
}

.host { 
    display: flex; 
    align-items: center; 
    height: 48px; 
    padding: 0 1ch; 
    color: var(--accent, #fff); 
}
  
.domain {
    background-image: linear-gradient(100deg,
      #ffffff 0%, #ffffff 35%, #9ed3ff 43%, #45b0ff 47%, #22a5ff 50%,
      #45b0ff 53%, #9ed3ff 57%, #ffffff 65%, #ffffff 100%);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ripple 3s linear infinite;
}

.about {
    color: #d8d8d8;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
}

.about a, .action {
    color: rgb(110, 180, 245);
    text-decoration: none;
}

.action { white-space: nowrap; }

.about a:hover, .action:hover {
    text-decoration: underline;
}

.about a.cf:hover   { color: #36B92E; }
.about a.tt:hover   { color: #cbff50; }
.about a.padi:hover { color: #0070D3; }

.cc {
    color: #ffffff;
    text-decoration: none;
}

.footer {
    background-color: var(--bg-color);
    left: var(--page-margin);
    right: var(--page-margin);
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
}

li::marker {
    content: "- ";
    color: #4169e1;
}

.actions {
    display: inline-flex;
    gap: 1.5em;
}

@media (max-width: 640px) {
    .license { display: block; }
    body { padding-top: calc(min(10vw, 100px) + 58px); } /* full fixed-header height */
}

@media (max-width: 520px) {
    .actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25em;
    }
}
