/* Reset-lite */

/* ==================================================
   1. Reset / Base
   ================================================== */

:root {
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  
  --max-width: 800px;
  --radius: 10px;

  --font: system-ui, -apple-system, sans-serif;

  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font);
    background-color: darkslategray;
    color: mediumturquoise;
}

/* ==================================================
   2. Layout
   ================================================== */

header, main, footer {
    max-width: var(--max-width);
    margin: auto;
    padding: var(--space-md);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer {
    text-align: right;
    font-size: var(--font-size-sm);
    color: #ff0095;
}

nav {
    display: flex;
    gap: var(--space-lg);
}

main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    text-align: center;
}

section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* ==================================================
   3. Components
   ================================================== */

nav a {
    text-decoration: none;
    color: inherit;
}

nav a:hover {
    text-decoration: underline;
}

.project {
    padding: var(--space-md);
    border-radius: var(--radius);
    text-align: left;
    background-color: darkslateblue;
    border: mediumvioletred 3px solid;
    color: lightgreen;
    a:link {
        color: lightyellow;
    }
    a:visited {
        color: lightcoral;
    }
}

.project[data-type="minecraft"] {
    background-color: mediumseagreen;
    border: brown 3px solid;
    color: yellow;
    a:visited {
        color: mediumvioletred;
    }
}

.card {
    padding: var(--space-md);
    border-radius: var(--radius);
    background-color: teal;
    border: darkcyan 2px solid;
}

a:visited {
    color: mediumspringgreen;
}

/* ==================================================
   4. Page-specific / Overrides
   ================================================== */
