/* geoteo.net --- minimal stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cascadia+Code:ital,wght@0,200..700;1,200..700&display=swap');

:root {
    --fg:     #1a1a1a;
    --bg:     #fdfdfc;
    --muted:  #6a6a6a;
    --link:   #A80000;
    --code-bg:#f0f0ee;
    --card-bg:#f4f4f2;
    --rule:   #e3e3e0;
    --measure: 58rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    color: var(--fg);
    background: var(--bg);
    font-family: "Spectral", Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.5;
}

main {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 3rem 1.25rem 5rem;
}

h1, h2, h4 {
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: 2.2rem; margin: 0 0 .2rem; text-align: center; }

h2 {
    font-size: 1.65rem;
    margin: 2.4rem 0 .8rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--rule);
}

h4 { font-size: 1.1rem; margin: 2.6rem 0 .2rem; text-align: center; }

p, ul, ol { line-height: 1.4; }

p { margin: 0 0 1rem; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

em { font-style: italic; }

code {
    font-family: "Cascadia Code", ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
    font-size: .9rem;
}

ul { list-style: none; padding: 0; margin: 1rem 0; }

li {
    margin: 0 0 1.15rem;
    padding-left: 1rem;
    border-left: 2px solid var(--rule);
}
li:target { border-left-color: var(--link); }

.repos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2.5rem 0 1rem;
}

@media (max-width: 40rem) {
    .repos { grid-template-columns: 1fr; }
}

.repo-card {
    margin: 0;
    padding: 1rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 8px;
}

.repo-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.badge {
    font-size: .72rem;
    padding: .05rem .55rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--muted);
}

.repo-desc { margin: 0 0 .7rem; font-size: .95rem; }

.repo-lang {
    display: flex;
    align-items: center;
    line-height: 1;
    gap: .4rem;
    font-family: "Cascadia Code", ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
    font-size: .78rem;
    color: var(--muted);
}

.lang-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    transform: translateY(-1px);  /* correzione verticale */
}

.license {
    margin-top: .3rem;
    font-family: monospace;
    font-size: .77rem;
    color: var(--muted);
    text-align: center;
}

.colophon {
    margin: 0 0 2rem;
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
}

/* Optional dark mode: uncomment and switch the color-scheme meta to
"light dark" in haunt.scm to enable.

@media (prefers-color-scheme: dark) {
:root {
--fg: #e6e6e6; --bg: #16161a; --muted: #9a9a9a;
--link: #8ab4f8; --code-bg: #24242a; --card-bg: #1c1c22; --rule: #33333a;
}
}
 */
