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

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Eczar', serif;
}

body {
    background: white;
    color: #030615;
    font-size: 0.875rem;
    line-height: 1.6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout styles */
header,
main,
footer {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

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

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav i {
    font-size: 1.3rem;
}

main,
section {
    display: flex;
    flex-direction: column;
}

main {
    gap: 4rem;
}

section {
    gap: 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
button {
    font-family: 'Grenze', serif;
    width: fit-content;
}

h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

h2 {
    font-size: 1.5rem;
    line-height: 2rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

h4 {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

h5 {
    font-size: 1rem;
    line-height: 1.5rem;
}

h6 {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

p {
    display: block;
    width: fit-content;
}

span {
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
}

a:active,
a:focus,
a:hover {
    text-decoration: underline;
}

/* Tables */
table {
    width: fit-content;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 0.5rem;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

table tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

table tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

th {
    background-color: #f8fafc;
    text-align: left;
    padding: 8px;
}

td {
    background: white;
    text-align: left;
    padding: 8px;
}

thead {
    border-collapse: collapse;
}

tfoot {
    border-top: 1px solid black;
}

table tr:hover td {
    background-color: #f8fafc;
}

/* Specific page styles */
.intro-header p {
    padding-top: 0.25rem;
}

.intro-description {
    max-width: 100%;
    text-align: justify;
}

.links-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.link-arrow {
    color: #2563eb;
    transform: rotate(-45deg);
}

/* Project cards */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card > div:first-of-type {
    flex: 1;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

/* Technology lists */
.tech-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.25rem 0;
}

.tech-list div {
    padding: 0.1rem 0.5rem;
    border-radius: 0.5rem;
}

.tech-list p {
    font-size: 0.8rem;
}

/* Card styles */
.card-button-secondary {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border: none;
}

/* Images */
img {
    height: auto;
    border-radius: 0.75rem;
    max-width: 100%;
}

/* View all repos link */
.view-all-repos {
    display: flex;
    align-items: center;
    padding-top: 2rem;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: none;
}

.view-all-link:hover span {
    text-decoration: underline;
}

/* Footer styles */
.footer {
    color: #6b7280;
}

.footer-a {
    color: #4b5563;
    text-decoration: none;
}

.footer-a:hover {
    color: #374151;
}

/* Responsive design */
@media (min-width: 640px) {
    body {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    h4 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    h5 {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    h6 {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .project-card {
        flex-direction: row;
    }

    .project-card .img-div {
        max-width: 30%;
    }
}
