@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --secondary-text: #666666;
    --accent-color: #000000;
    --border-color: #e5e5e5;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --content-width: 800px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #1f1f1f;
    color: #fff;
}

header .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 20px;
    height: 20px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

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

nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

nav a:hover {
    color: #fff;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.cta-button {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s, background 0.2s;
}

.cta-button:hover {
    opacity: 1;
    transform: scale(1.02);
    background: #000;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    padding: 6rem 0 4rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #111;
}

.hero p.lead {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--secondary-text);
    font-weight: 400;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    padding-bottom: 6rem;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.03);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-weight: 400;
}

.post-card p {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.read-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-wrapper {
    position: relative;
    background-color: var(--bg-color);
    z-index: 10;
    width: 100%;
    overflow: hidden;
}

.article-header {
    max-width: var(--content-width);
    margin: 6rem auto 3rem auto;
    text-align: center;
    padding: 0 1rem;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.article-meta {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content {
    max-width: var(--content-width);
    margin: 0 auto 6rem auto;
    font-family: 'Georgia', serif;
    color: #111;
    padding: 0 1rem;
}

.article-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #222;
}

.article-content p.lead {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin: 3rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

figure {
    width: 100%;
    margin: 3rem 0;
}

figure img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto;
}

.wide-figure img {
    width: 100%;
    max-width: 100%;
}

.wide-figure {
    width: 100%;
    margin: 3rem 0;
}

figcaption {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
    font-family: var(--font-body);
}

.hero-image-container {
    max-width: var(--content-width);
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}

.hero-image-container img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.references {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #555;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 4rem;
}

footer {
    background: #111;
    color: #fff;
    padding: 6rem 0 3rem 0;
    margin-top: auto;
    border-top: 1px solid #333;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 24px;
    height: 24px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.footer-tagline {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.5;
    font-weight: 300;
}

.footer-links-group {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin: 0 0 0.5rem 0;
}

.footer-column a {
    color: #ccc;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-social-icon {
    width: 18px;
    height: 18px;
    fill: #888;
    transition: fill 0.2s;
}

.footer-social-icon:hover {
    fill: #fff;
}

.contact-page {
    color: var(--text-color);
    background: var(--bg-color);
}

.contact-page a:hover {
    opacity: 0.9;
}

.contact-page main.container {
    padding-top: 4.25rem;
    padding-bottom: 5.25rem;
}

.contact-hero {
    max-width: 840px;
    margin: 0 auto 2.25rem auto;
    text-align: center;
}

.contact-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.05rem;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem 0;
    color: #111;
}

.contact-lead {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary-text);
}

.contact-lead-line {
    display: block;
}

.contact-split {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 200px;
    gap: 0;
    align-items: stretch;
    justify-content: center;
    max-width: 460px;
    margin: 0 auto;
}

.contact-card {
    max-width: none;
    margin: 0;
    width: 100%;
    padding: 0.85rem 0.8rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: none;

    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.contact-sidebar {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #fff;
    display: flex;
    width: 100%;

    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.contact-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: contrast(1.02) saturate(0.95);
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-fineprint {
    margin: 1.1rem 0 0 0;
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.55);
    text-align: center;
}

.contact-page .fs-form {
    display: grid;
    row-gap: 0.6rem;
}

.contact-page .fs-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.contact-page .fs-field {
    display: flex;
    flex-direction: column;
    row-gap: 0.4rem;
}

.contact-page .fs-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.75);
}

.contact-page .fs-description {
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.55);
}

.contact-page .fs-input,
.contact-page .fs-textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    color: #111;
    padding: 0.55rem 0.75rem;
    outline: none;
    font-family: var(--font-heading);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease,
        background-color 160ms ease;
}

.contact-page .fs-input {
    min-height: 2.1rem;
}

.contact-page .fs-textarea {
    border-radius: 8px;
    resize: vertical;
    min-height: 4.5rem;
}

.contact-page .fs-input::placeholder,
.contact-page .fs-textarea::placeholder {
    color: rgba(0, 0, 0, 0.42);
}

.contact-page .fs-input:focus-visible,
.contact-page .fs-textarea:focus-visible {
    border-color: rgba(0, 0, 0, 0.55);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.10) inset,
    0 0 0 5px rgba(0, 0, 0, 0.06);
}

.contact-page .fs-input:hover,
.contact-page .fs-textarea:hover {
    border-color: rgba(0, 0, 0, 0.26);
}

.contact-page .fs-button-group {
    display: flex;
    justify-content: center;
    padding-top: 0.25rem;
}

.contact-page .fs-button {
    cursor: pointer;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: #111;
    border: 1px solid rgba(0, 0, 0, 0.55);
    box-shadow: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.contact-page .fs-button:hover {
    transform: translateY(-1px);
    filter: none;
    box-shadow: none;
}

.contact-page .fs-button:active {
    transform: translateY(0px);
}

.contact-page .fs-button:focus-visible {
    outline: none;
    box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.20) inset,
        0 0 0 7px rgba(0, 0, 0, 0.12),
        0 22px 60px rgba(0, 0, 0, 0.22);
}

.fs-honeypot {
    position: absolute;
    left: -10000px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.fs-status {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    min-height: 1.4em;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.fs-status:empty {
    display: none;
}

.fs-status-success {
    color: #1a1a1a;
    background: rgba(45, 122, 79, 0.08);
    border: 1px solid rgba(45, 122, 79, 0.15);
}

.fs-status-error {
    color: #1a1a1a;
    background: rgba(185, 74, 72, 0.08);
    border: 1px solid rgba(185, 74, 72, 0.15);
}

.contact-page .fs-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .fs-button,
    .fs-input,
    .fs-textarea {
        transition: none;
    }
}

@media (max-width: 768px) {

    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        align-items: center;
    }

    .logo {
        width: auto;
        justify-content: center;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 0 2rem 0;
    }

    .contact-page main.container {
        padding-top: 2.75rem;
        padding-bottom: 3.75rem;
    }

    .contact-hero {
        margin-bottom: 1.6rem;
    }

    .contact-hero h1 {
        font-size: 2.25rem;
    }

    .contact-lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .contact-split {
        grid-template-columns: 1fr 110px;
        gap: 0;
        align-items: stretch;
    }

    .contact-card {
        padding: 0.95rem;
        height: auto;
        border-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .contact-sidebar {
        height: 100%;
        border-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .contact-sidebar img {
        object-fit: cover;
        object-position: top center;
    }

    .contact-page .fs-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p.lead {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .article-header {
        padding: 0 1.5rem;
    }

    .article-header h1 {
        font-size: 2.2rem;
    }

    .article-content {
        padding: 0 2rem !important;
        width: 100%;
        box-sizing: border-box;
    }

    footer {
        padding: 4rem 0 2rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-brand {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-links-group {
        width: 100%;
        justify-content: center;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}