/* Didot Font Face Declarations */
@font-face {
    font-family: 'Didot';
    src: url('fonts/Didot-Regular.woff2') format('woff2'),
         url('fonts/Didot-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Didot';
    src: url('fonts/Didot-Medium.woff2') format('woff2'),
         url('fonts/Didot-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Didot';
    src: url('fonts/Didot-Bold.woff2') format('woff2'),
         url('fonts/Didot-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Canela Font Face Declarations */
@font-face {
    font-family: 'Canela';
    src: url('fonts/Canela-Light.woff2') format('woff2'),
         url('fonts/Canela-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('fonts/Canela-Regular.woff2') format('woff2'),
         url('fonts/Canela-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('fonts/Canela-Medium.woff2') format('woff2'),
         url('fonts/Canela-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('fonts/Canela-Bold.woff2') format('woff2'),
         url('fonts/Canela-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --accent: #0052a3;
    --accent-hover: #003d7a;
    --max-width: 680px;
    --spacing-unit: 24px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Canela', Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
}

/* Typography */
h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h2 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    color: var(--text-primary);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: var(--spacing-unit);
    color: var(--text-primary);
    opacity: 0.85;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Sections */
section {
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

section:last-of-type {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Work Section */
.work-item {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Projects List */
.project-list {
    list-style: none;
}

.project-list li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.project-list li:last-child {
    margin-bottom: 0;
}

.project-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-list a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.project-list span {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-links {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.contact-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.separator {
    margin: 0 0.75rem;
    color: var(--text-muted);
}

/* Link-styled button */
.link-button {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 500;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    text-decoration: none;
}

.link-button:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.link-button:focus {
    outline: none;
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    margin-top: calc(var(--spacing-unit) * 1.5);
    max-width: 480px;
}

.form-group {
    margin-bottom: var(--spacing-unit);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

button[type="submit"] {
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button[type="submit"]:hover {
    background-color: #000;
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Cancel button */
.cancel-button {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.75rem;
    transition: all 0.2s ease;
}

.cancel-button:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Footer */
footer {
    margin-top: calc(var(--spacing-unit) * 3);
    padding-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 20px;
    }

    .container {
        padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    }

    h1 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1.0625rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-unit: 16px;
    }

    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.0625rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #d4d4d4;
        --text-muted: #a3a3a3;
        --border-color: #404040;
        --bg-primary: #0a0a0a;
        --bg-secondary: #1a1a1a;
        --accent: #5b9eff;
        --accent-hover: #7ab2ff;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
    }

    button[type="submit"] {
        background-color: var(--text-primary);
        color: var(--bg-primary);
    }

    button[type="submit"]:hover {
        background-color: #fff;
    }

    .cancel-button {
        background-color: transparent;
        color: var(--text-secondary);
        border-color: var(--border-color);
    }

    .cancel-button:hover {
        background-color: var(--bg-secondary);
        border-color: var(--text-secondary);
    }
}