@import url("https://use.typekit.net/mzx4sor.css");


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
    --background: #f5ebe1;
    --dark: #232323;
    --burgundy: #8c0f19;
    --muted: #232323;
    --border: #353535;

    --title-font: "antiquarian-scribe", sans-serif;
    --body-font: "Aptos", Arial, Helvetica, sans-serif;
    --footer-font: var(--body-font);

    --content-width: 1200px;
    --text-width: 620px;

    --header-padding: clamp(2rem, 5vw, 4.5rem);
    --page-padding: clamp(1.5rem, 5vw, 4rem);

    --transition: 500ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   RESET / BASE
   ========================================================= */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--dark);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: var(--background);
    animation: pageReveal 900ms ease forwards;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

button {
    border: 0;
}

::selection {
    background: var(--burgundy);
    color: var(--background);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 400;
}

.site-title {
    text-decoration: none;
}

.site-title h1 {
    margin: 0;
    font-family: var(--title-font);
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: 0.015em;
}

.site-title h2 {
    margin: 0.55rem 0 0;
    color: var(--burgundy);
    font-family: var(--body-font);
    font-size: clamp(0.7rem, 1vw, 0.82rem);
    font-weight: 500;
    letter-spacing: 0.24em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 1.4rem;
    color: var(--burgundy);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero h2,
.content-page h2 {
    font-family: var(--title-font);
    font-weight: 400;
    letter-spacing: 0.015em;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    padding: var(--header-padding) var(--page-padding) 0;
}

.header-inner {
    width: min(100%, var(--content-width));
    margin: 0 auto;
    text-align: center;
}

.site-title {
    display: inline-block;
    transition:
        color var(--transition),
        transform var(--transition);
}

.site-title:hover {
    transform: translateY(-2px);
}

.main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 3.2vw, 3.5rem);
    margin-top: clamp(2rem, 4vw, 3.25rem);
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.3rem 0;
    color: var(--dark);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 350ms ease,
        opacity 350ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 1px;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: var(--burgundy);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.menu-toggle {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, 760px);
    padding: clamp(5rem, 10vw, 9rem) var(--page-padding);
    text-align: center;
}

.hero-content {
    width: min(100%, 760px);
    animation: heroEnter 1.1s 150ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-line {
    display: block;
    width: 1px;
    height: 48px;
    margin: 0 auto 2.2rem;
    background: var(--burgundy);
    transform-origin: top;
    animation: lineGrow 900ms 500ms both ease;
}

.hero h2 {
    margin: 0;
    font-size: clamp(4rem, 9vw, 8.2rem);
    line-height: 0.82;
}

.hero-description {
    width: min(100%, 490px);
    margin: 2.8rem auto 0;
    color: var(--muted);
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    line-height: 1.8;
}

.hero-mark {
    display: block;
    margin-top: 3rem;
    color: var(--burgundy);
    font-size: 0.9rem;
    animation: subtleFloat 4s ease-in-out infinite;
}


/* =========================================================
   INNER PAGES
   ========================================================= */

.content-page {
    min-height: calc(100vh - 250px);
    padding: clamp(6rem, 12vw, 10rem) var(--page-padding) 7rem;
}

.content-container {
    width: min(100%, var(--text-width));
    margin: 0 auto;
    text-align: center;
    animation: contentEnter 900ms 100ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.content-page h2 {
    margin-bottom: 2rem;
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.85;
}

.section-line {
    display: block;
    width: 42px;
    height: 1px;
    margin: 0 auto 2.4rem;
    background: var(--burgundy);
}

.page-intro {
    width: min(100%, 470px);
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    margin-top: 4rem;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--title-font);
    font-size: 1.5rem;
    transition:
        border-color var(--transition),
        transform var(--transition);
}

.photo-placeholder:hover {
    border-color: var(--burgundy);
    transform: translateY(-4px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: min(calc(100% - (var(--page-padding) * 2)), var(--content-width));
    margin: 0 auto;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-family: var(--footer-font);
    font-size: 1.2rem;
}


/* =========================================================
   FOCUS STATES
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 5px;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes pageReveal {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    :root {
        --header-padding: 2.75rem;
    }

    .main-navigation {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.62rem;
    }

    .hero {
        min-height: 65vh;
    }
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 680px) {

    :root {
        --header-padding: 2rem;
        --page-padding: 1.35rem;
    }

    .site-header {
        padding-top: var(--header-padding);
    }

    .header-inner {
        position: relative;
    }

    .site-title h1 {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
    }

    .site-title h2 {
        font-size: 0.61rem;
        letter-spacing: 0.2em;
    }

    .menu-toggle {
        position: absolute;
        top: 0.15rem;
        right: 0;
        z-index: 10;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;

        width: 42px;
        height: 42px;
        padding: 10px;

        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--dark);
        transform-origin: center;
        transition:
            transform 400ms ease,
            opacity 300ms ease,
            background-color 300ms ease;
    }

    .menu-toggle:hover span {
        background: var(--burgundy);
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .main-navigation {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        margin-top: 1.75rem;
        padding: 0;
        overflow: hidden;
        border-bottom: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition:
            max-height 550ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 350ms ease,
            transform 550ms cubic-bezier(0.22, 1, 0.36, 1),
            padding 550ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .main-navigation.is-open {
        max-height: 400px;
        padding: 1rem 0 0.5rem;
        border-bottom: 1px solid var(--border);
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 0.85rem 0;
        font-size: 0.66rem;
    }

    .nav-link::after {
        bottom: 0.45rem;
        left: 25%;
        right: 25%;
    }

    .hero {
        min-height: auto;
        padding-top: clamp(6rem, 20vw, 9rem);
        padding-bottom: 7rem;
    }

    .hero h2 {
        font-size: clamp(3.8rem, 18vw, 6rem);
        line-height: 0.84;
    }

    .hero-description {
        max-width: 360px;
        margin-top: 2.4rem;
        font-size: 0.9rem;
    }

    .content-page {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .content-page h2 {
        font-size: clamp(3.7rem, 17vw, 5.5rem);
    }

    .page-intro {
        max-width: 350px;
        font-size: 0.92rem;
    }

    .photo-placeholder {
        min-height: 200px;
        margin-top: 3rem;
    }

    .site-footer {
        padding-bottom: 2rem;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .site-title h1 {
        font-size: 2.25rem;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hero {
        padding-top: 5.5rem;
    }

    .hero h2 {
        font-size: 3.5rem;
    }

    .hero-line {
        height: 38px;
        margin-bottom: 1.8rem;
    }

    .content-page {
        padding-top: 6rem;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before {
        display: none;
    }
}
