body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header, footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 2rem;
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Theme variables (easy to extend) ---- */
:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #444444;
    --link: #0a66ff;
    --panel: #f4f6f8;
    --panel-border: rgba(0,0,0,.08);
}

/*html[data-theme="dark"] {*/
/*    --bg: #0b0d12;*/
/*    --text: #e8eaf0;*/
/*    --muted: #a3adbd;*/
/*    --link: #7c9cff;*/
/*    !*--panel: #121623;*!*/
/*    --panel: #4000;*/
/*    --panel-border: rgba(255,255,255,.08);*/
/*}*/

/* ---- Base ---- */
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    transition: background .25s ease, color .25s ease;
}

.site-head {
    max-width: 800px;
    margin: 0 auto;
    display: block;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    gap: 1rem;
}

#theme-toggle {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    color: var(--text);
    padding: .6rem .8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .1s ease;
}
#theme-toggle:active { transform: scale(0.98); }

/* ---- Main ---- */
main {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
    background: var(--bg);
}

section {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

h2 { margin-top: 0; }

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

/* ---- Fun: typewriter-on-hover email ---- */
.type-hover {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.type-hover::after {
    content: attr(data-email);
    position: absolute;
    inset: 0 auto auto 0;
    width: 0;
    overflow: hidden;
    border-right: 2px solid var(--link);
    white-space: nowrap;
    animation: none;
}
.type-hover:hover::after {
    animation: type 1.2s steps(28, end) forwards;
}
@keyframes type {
    to { width: 100%; border-right-color: transparent; }
}
/* Keep your existing footer style consistent */
footer a { color: #9ec1ff; }
