:root {
    --cream: #f5efe6;
    --charcoal: #1f1b16;
    --muted: #6b6258;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 2rem;
}

.logo {
    width: clamp(180px, 30vw, 260px);
    height: auto;
    user-select: none;
}

.headline {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 0.5rem;
}

.tagline {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--charcoal);
    opacity: 0.85;
}

.location {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 300;
    margin-top: -0.5rem;
}

.signup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 360px;
    margin-top: 0.5rem;
}

.signup-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 300;
}

.signup-row {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--charcoal);
    transition: border-color 0.2s ease;
}

.signup-row:focus-within {
    border-bottom-color: var(--charcoal);
}

.signup input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: 0.05em;
}

.signup input[type="email"]::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.signup button {
    background: transparent;
    border: none;
    color: var(--charcoal);
    cursor: pointer;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.signup button:hover,
.signup button:focus-visible {
    opacity: 1;
    transform: translateX(2px);
    outline: none;
}

.signup button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.signup-message {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    min-height: 1em;
    transition: color 0.2s ease;
}

.signup-message.error {
    color: #8a3a3a;
}

.signup-message.success {
    color: var(--charcoal);
}

.socials {
    display: flex;
    gap: 1.75rem;
    margin-top: 0.5rem;
}

.socials a {
    color: var(--charcoal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.85;
}

.socials a:hover,
.socials a:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
    outline: none;
}

.socials a:focus-visible {
    box-shadow: 0 0 0 2px var(--charcoal);
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer .socials {
    margin-top: 0;
}

/* Top navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.5rem, 4vw, 3rem);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav--scrolled {
    background-color: rgba(245, 239, 230, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom-color: rgba(31, 27, 22, 0.1);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--charcoal);
    text-decoration: none;
}

.nav-mark {
    height: 34px;
    width: auto;
    display: block;
}

.nav-brand-text {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav-links a {
    position: relative;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--charcoal);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background-color: var(--charcoal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    opacity: 1;
    outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    animation: bob 2.2s ease-in-out infinite;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
    opacity: 1;
    outline: none;
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* Content sections */
.section {
    padding: clamp(4rem, 10vw, 7rem) 1.5rem;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section--dark {
    background-color: var(--charcoal);
    color: var(--cream);
}

.section-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 300;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-lead {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.85;
    font-weight: 300;
    color: var(--muted);
}

/* About */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
}

.about-inner .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text .section-lead {
    text-align: left;
    margin: 0;
    max-width: none;
}

.about-text .section-lead + .section-lead {
    margin-top: 1.2rem;
}

.about-signature {
    margin: 1.5rem 0 0;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: var(--muted);
}

.about-image {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100%;
}

.about-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(31, 27, 22, 0.18);
}

/* Services cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card {
    border: 1px solid rgba(245, 239, 230, 0.18);
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: left;
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(245, 239, 230, 0.4);
}

.card h3 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.card p {
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(245, 239, 230, 0.65);
}

/* Center a lone card on the last row of the 3-up grid */
@media (min-width: 769px) {
    .cards .card:last-child:nth-child(3n + 1) {
        grid-column: 2;
    }
}

/* Products */
.products {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.75rem, 4vw, 2.75rem);
    max-width: 840px;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
}

.products li {
    border-top: 1px solid rgba(31, 27, 22, 0.18);
    padding-top: 1.25rem;
    text-align: left;
}

.products h3 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    margin-bottom: 0.6rem;
}

.products p {
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--muted);
}

/* Closing CTA */
.section--cta .signup {
    margin: 0 auto;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-inner {
        grid-template-columns: 1fr;
    }
    .about-image {
        min-height: 0;
    }
    .about-image img {
        position: static;
        height: auto;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 480px) {
    .hero {
        gap: 1.5rem;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .products {
        grid-template-columns: 1fr;
    }
    .nav-brand-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .nav-links a::after {
        transition: none;
    }
}
