@import url('variables.css');

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 0rem;
    min-height: 70vh;
}

.hero-text {
    flex: 1;
}

.wordmark {
    height: 80px;
    margin-bottom: 1rem;
    margin-left: -19px;
    object-fit: contain;
    display: block;
}

.hero-text h1 {
    font-family: 'Besley', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
}

.claim {
    font-size: 1.25rem;
    color: var(--ink-muted);
    margin: 0  ;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Besley', serif;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--blue);
    color: white;
    border: 2px solid var(--blue);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}

.btn-secondary:hover {
    background-color: var(--ink);
    color: white;
}

.features {
    padding: 0  ;
}

.features h2 {
    text-align: left;
    margin-bottom: 2rem;
    margin-top: 0;
    font-size: 1.75rem;
    color: var(--ink);
    font-family: 'Besley', serif;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature h3 {
    margin-top: 0;
    color: var(--ink);
    font-family: 'Besley', serif;
    font-size: 1.25rem;
}

.colophon {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--ink-muted);
    font-size: 0.9rem;
    position: relative;
}

.colophon::before {
    content: "";
    position: absolute;
    left: 10%;
    top: 70%;
    transform: translateY(-50%);
    width: 100px;
    height: 30px;
    background-image: url("footer_vine_left.svg");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
}

.colophon::after {
    content: "";
    position: absolute;
    right: 10%;
    top: 70%;
    transform: translateY(-50%);
    width: 100px;
    height: 30px;
    background-image: url("footer_vine_right.svg");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
}

.colophon a {
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
}

.colophon a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* Popup Modal */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-overlay:target {
    display: flex;
}

.popup {
    background: var(--paper);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-blue {
    background: var(--blue);
    color: white;
}

.popup-blue h2,
.popup-blue .popup-content {
    color: white;
}

.popup-blue a {
    color: var(--paper);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--ink-muted);
    text-decoration: none;
    line-height: 1;
}

.popup-close:hover {
    color: var(--ink);
}

.popup h2 {
    margin-top: 0;
    font-family: 'Besley', serif;
    color: var(--ink);
}

.popup-content {
    margin-top: 1rem;
    line-height: 1.7;
    color: var(--ink-muted);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

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