:root {
    --ink: #0f172a;          /* deep slate */
    --muted: #475569;        /* cool gray */
    --line: #e2e8f0;         /* soft divider */
    --paper: #ffffff;

    --primary: #1e293b;      /* navy-charcoal */
    --accent: #7c2d12;       /* oxblood */
    --accent-soft: #fef3c7;  /* warm parchment */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--primary);
}

/* Layout */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header / Nav */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 72px;
    padding: 0;
}

.brand {
    font-family: "Playfair Display", serif;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand span {
    color: var(--accent);
    font-weight: 500;
}

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

.mobile-menu {
    display: none !important;
}

.nav a {
    margin-left: 0;
    font-size: 0.92rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-block;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--ink);
    border-color: var(--line);
    background: #f8fafc;
}

/* Main */

.site-main {
    padding: 4rem 0;
    min-height: calc(100vh - 186px);
}

/* Hero */

.hero {
    max-width: 760px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
}

.profile-strip {
    max-width: 760px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
    margin: -1rem 0 3rem;
}

.profile-strip p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

/* Features */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature h3 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature p {
    font-size: 0.95rem;
    color: var(--muted);
}

.feature {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
}

/* Contact Form */

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 2rem;
    align-items: start;
}

.contact-intro {
    border-top: 3px solid var(--accent);
    padding-top: 1rem;
}

.eyebrow {
    margin: 0 0 0.55rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-intro h2 {
    margin: 0 0 1rem;
    color: var(--primary);
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.contact-intro p {
    margin: 0 0 1.4rem;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.contact-detail {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem;
    background: #f8fafc;
}

.contact-detail span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-detail strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
}

.contact-card {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    padding: 1.6rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 1rem;
    width: 100%;
    max-width: 100%;
}

.form-field {
    grid-column: 1 / -1;
    margin: 0;
}

.form-field-half {
    grid-column: span 1;
}

.contact-form .form-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    color: #334155;
}

.contact-form .form-field input,
.contact-form .form-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 0.72rem 0.82rem;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    background: #fbfdff;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.contact-form .form-field input {
    height: 46px;
}

.contact-form .form-field textarea {
    resize: vertical;
    min-height: 168px;
    line-height: 1.55;
}

.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 45, 18, 0.12);
    background: #fff;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin: 0.25rem 0 0;
}

.btn {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    padding: 0.7rem 1.25rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    min-width: 118px;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn:hover {
    background: #0f172a;
    border-color: #0f172a;
}

.notice {
    grid-column: 1 / -1;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    margin: 0 0 1rem;
    font-size: 0.92rem;
}

.notice-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.notice-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.hp-field {
    display: none !important;
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.6rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}

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

.footer-inner span {
    min-width: 0;
}

@media (max-width: 900px) {
    .site-main {
        padding: 2.25rem 0;
    }

    .hero {
        margin-bottom: 2rem;
    }

    .profile-strip {
        margin: -0.5rem 0 2rem;
    }

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

    .contact-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-intro h2 {
        font-size: 1.75rem;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 1.1rem;
    }

    .brand {
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .header-inner {
        position: relative;
        gap: 0.75rem;
        min-height: 64px;
    }

    .nav {
        display: none !important;
    }

    .mobile-menu {
        display: block !important;
        position: relative;
    }

    .mobile-menu summary {
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 0;
        color: var(--ink);
        background: #fff;
        cursor: pointer;
        list-style: none;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--ink);
    }

    .menu-icon {
        position: relative;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-icon::before {
        top: -6px;
    }

    .menu-icon::after {
        top: 6px;
    }

    .mobile-menu[open] .menu-icon {
        background: transparent;
    }

    .mobile-menu[open] .menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .mobile-menu[open] .menu-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .mobile-menu-panel {
        position: absolute;
        right: 0;
        top: calc(100% + 0.4rem);
        min-width: 180px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
        overflow: hidden;
        z-index: 30;
    }

    .mobile-menu-panel a {
        display: block;
        padding: 0.75rem 0.9rem;
        color: var(--ink);
        text-decoration: none;
    }

    .mobile-menu-panel a:hover {
        background: #f8fafc;
    }

    .hero h1 {
        font-size: 1.65rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature {
        padding: 0.9rem;
    }

    .contact-section {
        gap: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-field-half {
        grid-column: 1 / -1;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .btn {
        width: 100%;
        min-height: 44px;
    }
}
