/* Import Inter font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

/* Root variables */
:root {
    --accent-color: #3a86ff; /* Calm blue accent */
    --bg-color: #fafafa;
    --text-color: #222;
    --text-muted: #666;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* Reset and base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px;
}

/* Header and Navigation */
header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover,
nav a:focus {
    color: var(--accent-color);
    outline: none;
}

/* Hero Section */
.hero {
    max-width: 850px;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--text-color);
}

/* Sections and Headings */
section {
    max-width: 850px;
    margin: 3rem auto;
    padding: 0 1rem;
}

h2 {
    font-weight: 700;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Project and Poem Cards */
.project-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project,
.poem {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.3rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 2px 6px var(--shadow-color);
    flex: 1 1 280px;
    transition: box-shadow 0.3s ease;
}

.project:hover,
.poem:hover {
    box-shadow: 0 6px 15px rgba(58, 134, 255, 0.3);
}

.project h3,
.poem h2 {
    margin-top: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.project a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.project a:hover,
.project a:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Poem text */
.poem p {
    color: var(--text-muted);
    white-space: pre-wrap;
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Contact Form */
form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
    transition: border-color 0.3s ease;
    font-family: "Inter", sans-serif;
}

input:focus,
textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Button */
button {
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    max-width: 250px;
    align-self: center;
    transition: background 0.3s ease;
    font-family: "Inter", sans-serif;
}

button:hover,
button:focus {
    background: #2f68db;
    outline: none;
}

/* Feedback message */
#form-message {
    font-size: 0.9rem;
    color: #159e06;
    margin-top: -0.5rem;
    text-align: center;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 700px) {
    .hero {
        font-size: 2rem;
        margin-top: 2.5rem;
    }
    nav ul {
        gap: 1rem;
    }
    .project,
    .poem {
        flex: 1 1 100%;
    }
}
