:root
{
    --font-heading: 'HelveticaNowDisplay-Medium', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'HelveticaNowDisplayW01-Rg', 'Helvetica Neue', Arial, sans-serif;
    --ink: #000;
}
*
{
    box-sizing: border-box;
}
body
{
    margin: 0;
    color: var(--ink);
    background: #cfac96;
    font-family: var(--font-body);
}
button, input, textarea
{
    font: inherit;
}
button, a
{
    -webkit-tap-highlight-color: transparent;
}
button
{
    cursor: pointer;
}
a
{
    color: inherit;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible
{
    outline: 2px solid #000;
    outline-offset: 5px;
}
#backdrop
{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    object-position: 70% center;
}
header
{
    position: fixed;
    z-index: 10;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
}
.brand
{
    display: flex;
    gap: 12px;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 26px;
    letter-spacing: -1px;
    text-decoration: none;
}
.asterisk
{
    font-size: 30px;
    letter-spacing: -.02em;
    user-select: none;
}
.desktop-nav, .desktop-contact
{
    font-size: 23px;
}
.desktop-nav
{
    display: flex;
    white-space: pre;
}
.desktop-nav button, #mobile-menu button
{
    padding: 0;
    border: 0;
    background: none;
    color: #000;
}
.desktop-contact
{
    text-underline-offset: 2px;
}
.desktop-nav button:hover, .desktop-contact:hover
{
    opacity: .6;
    transition: opacity .2s;
}
.menu-toggle, #mobile-menu
{
    display: none;
}
main
{
    position: relative;
    z-index: 1;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    overflow: hidden;
    touch-action: pan-y;
}
.hero-content
{
    max-width: 576px;
    position: relative;
    z-index: 1;
}
.intro
{
    pointer-events: none;
    user-select: none;
    filter: blur(4px);
    margin-bottom: 24px;
    font-size: clamp(18px, 4vw, 26px);
    line-height: 1.3;
}
.greeting
{
    margin: 0 0 24px;
    min-height: 54px;
    font-size: clamp(18px, 4vw, 26px);
    line-height: 1.35;
    font-weight: 400;
}
.cursor
{
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #000;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}
.cursor[hidden]
{
    display: none;
}
@keyframes blink
{
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.actions
{
    display: flex;
    flex-wrap: wrap;
    row-gap: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
}
.actions.ready
{
    opacity: 1;
    transform: none;
}
.pill
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border: 1px solid #0000001a;
    border-radius: 100px;
    font-size: 15px;
    padding: .3em 20px;
    margin: 0 .2em .4em;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.pill:hover
{
    background: #000;
    color: #fff;
}
.email
{
    color: #fff;
    background: transparent;
    border-color: #fff;
    gap: 12px;
    text-shadow: 0 1px 3px #0006;
}
.email u
{
    text-underline-offset: 1px;
}
.email:hover
{
    color: #000;
    background: #fff;
    text-shadow: none;
}
.feedback
{
    min-height: 18px;
    font-size: 13px;
    margin: 8px 3px 0;
}
.credits
{
    position: fixed;
    bottom: 15px;
    right: 24px;
    z-index: 2;
    font-size: 10px;
    opacity: .7;
}
.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
dialog
{
    width: min(560px, calc(100% - 32px));
    max-height: calc(100svh - 40px);
    overflow-y: auto;
    padding: 40px;
    border: 0;
    background: #f3f0e9;
    color: #000;
}
dialog::backdrop
{
    background: #0005;
    backdrop-filter: blur(8px);
}
.close-dialog
{
    display: block;
    margin: 0 0 36px auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
}
.close-dialog span
{
    margin-left: 12px;
    font-size: 22px;
}
.eyebrow
{
    font-size: 11px;
    letter-spacing: 2px;
}
dialog h1
{
    font-size: 42px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -1.5px;
    margin: 20px 0;
}
.detail-body
{
    font-size: 16px;
    line-height: 1.5;
}
.detail-body ol
{
    padding-left: 20px;
}
.detail-body li
{
    padding-bottom: 12px;
}
form
{
    display: grid;
    gap: 15px;
    margin-top: 24px;
}
label
{
    display: grid;
    gap: 5px;
    font-size: 13px;
}
input, textarea
{
    padding: 12px;
    width: 100%;
    min-width: 0;
    border: 1px solid #0003;
    background: transparent;
    border-radius: 0;
}
textarea
{
    min-height: 100px;
    resize: vertical;
}
.submit
{
    background: #000;
    color: #fff;
    border: 0;
    padding: 13px 20px;
}
.draft-output
{
    overflow-wrap: anywhere;
}
@media (max-width: 767px)
{
    header
    {
        padding: 16px 20px;
    }
    .brand
    {
        font-size: 21px;
    }
    .asterisk
    {
        font-size: 25px;
    }
    .desktop-nav, .desktop-contact
    {
        display: none;
    }
    .menu-toggle
    {
        display: flex;
        flex-direction: column;
        gap: 5px;
        border: 0;
        background: none;
        padding: 10px 0 10px 10px;
    }
    .menu-toggle span
    {
        width: 24px;
        height: 2px;
        background: #000;
        transition: transform .3s, opacity .3s;
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(1)
    {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(2)
    {
        opacity: 0;
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(3)
    {
        transform: translateY(-7px) rotate(-45deg);
    }
    #mobile-menu
    {
        position: fixed;
        inset: 0;
        z-index: 9;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 32px;
        gap: 32px;
        background: #fffffff2;
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
        font-size: 32px;
    }
    #mobile-menu.open
    {
        opacity: 1;
        pointer-events: auto;
    }
    main
    {
        justify-content: flex-end;
        padding: 0 20px 48px;
    }
    main::before
    {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(transparent 45%, #ffffff52 75%, #ffffff66);
    }
    .intro
    {
        margin-bottom: 20px;
    }
    .greeting
    {
        margin-bottom: 20px;
        min-height: 54px;
    }
    .pill
    {
        font-size: 13px;
        padding: .3em 16px;
    }
    .email
    {
        gap: 8px;
    }
    dialog
    {
        padding: 26px;
    }
    dialog h1
    {
        font-size: 34px;
    }
}
@media (min-width: 640px) and (max-width: 767px)
{
    header
    {
        padding: 20px 32px;
    }
    main
    {
        padding-left: 32px;
        padding-right: 32px;
    }
}
@media (prefers-reduced-motion: reduce)
{
    *, *::before, *::after
    {
        animation: none !important;
        transition: none !important;
    }
}
