:root {
    --cream: #FEF9F3;
    --cream-deep: #F6EBDD;
    --ink: #2E1C12;
    --ink-soft: #7A6457;
    --line: rgba(46, 28, 18, .14);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
    min-height: 100%;
    background: var(--cream-deep);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 50% 40%, var(--cream) 0%, var(--cream) 45%, var(--cream-deep) 100%)
        fixed;
    color: var(--ink);
    font-family: 'Montserrat', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.logo {
    width: min(560px, 86vw);
    height: auto;
    animation: rise 1.2s var(--ease) both;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 56px 0 28px;
    color: var(--ink-soft);
    animation: fade 1.2s .5s both;
}

.divider::before,
.divider::after {
    content: '';
    width: 56px;
    height: 1px;
    background: currentColor;
    opacity: .45;
}

.divider span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: .01em;
    animation: rise 1.2s .7s var(--ease) both;
}

.lead {
    max-width: 520px;
    margin-top: 18px;
    text-wrap: balance;
    font-size: clamp(.95rem, 2.4vw, 1.05rem);
    line-height: 1.75;
    color: var(--ink-soft);
    animation: rise 1.2s .9s var(--ease) both;
}

.hiring {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 255, 255, .45);
    transition: background .3s, border-color .3s, transform .3s var(--ease);
    animation: rise 1.2s 1s var(--ease) both;
}

.hiring::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C9785B;
    box-shadow: 0 0 0 0 rgba(201, 120, 91, .5);
    animation: pulse 2.4s infinite;
}

.hiring:hover {
    background: #fff;
    border-color: rgba(46, 28, 18, .3);
    transform: translateY(-2px);
}

/* Treats gallery */

.treats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 2.4vw, 28px);
    width: min(960px, 100%);
    margin-top: 64px;
    list-style: none;
}

.treat {
    animation: rise 1.2s var(--ease) both;
}

.treat:nth-child(1) { animation-delay: 1.1s; }
.treat:nth-child(2) { animation-delay: 1.25s; }
.treat:nth-child(3) { animation-delay: 1.4s; }
.treat:nth-child(4) { animation-delay: 1.55s; }

.treat-photo {
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 18px 18px;
    overflow: hidden;
    background: var(--cream-deep);
    box-shadow: 0 18px 40px -22px rgba(46, 28, 18, .35);
    transition: transform .5s var(--ease), box-shadow .5s;
}

.treat-photo picture,
.treat-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.treat:hover .treat-photo {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px -22px rgba(46, 28, 18, .45);
}

.treat:hover .treat-photo img { transform: scale(1.05); }

.treat-name {
    margin-top: 14px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

@media (max-width: 640px) {
    .treats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        margin-top: 48px;
    }
}

/* Careers page */

.page {
    justify-content: flex-start;
    padding-top: 40px;
}

.logo-small {
    width: min(220px, 56vw);
    height: auto;
    animation: rise 1s var(--ease) both;
}

.eyebrow {
    margin-top: 48px;
    font-size: .72rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    animation: fade 1s .3s both;
}

.page h1 {
    margin-top: 12px;
    animation-delay: .4s;
}

.page .lead {
    animation-delay: .55s;
}

.job {
    width: min(760px, 100%);
    margin-top: 48px;
    padding: clamp(28px, 5vw, 56px);
    text-align: left;
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 30px 60px -40px rgba(46, 28, 18, .35);
    animation: rise 1.2s .7s var(--ease) both;
}

.job-head {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.job-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 2.6rem);
    line-height: 1.1;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

.job-tags li {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--cream-deep);
    font-size: .78rem;
    letter-spacing: .04em;
}

.job section {
    margin-top: 32px;
}

.job h3 {
    margin-bottom: 14px;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.job p,
.job li {
    font-size: .98rem;
    line-height: 1.75;
}

.job p + p { margin-top: 12px; }

.checklist {
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 28px;
}

.checklist li + li { margin-top: 8px; }

.checklist li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: .72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--ink);
}

.checklist .plus::before {
    background: var(--ink);
}

.note {
    margin-top: 32px;
    padding: 22px 26px;
    border-radius: 18px;
    background: var(--cream-deep);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
}

.job .note p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.apply {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.apply-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 4.5vw, 2.3rem);
    line-height: 1.1;
    text-align: center;
}

.job .apply-sub {
    margin-top: 8px;
    text-align: center;
    color: var(--ink-soft);
}

.apply-form { margin-top: 28px; }

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field-wide { grid-column: 1 / -1; }

.field > span {
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .85);
    color: var(--ink);
    font: inherit;
    font-size: .98rem;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.field select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237A6457' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder { color: #B4A296; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(46, 28, 18, .45);
    box-shadow: 0 0 0 4px rgba(46, 28, 18, .06);
}

.has-error input,
.has-error select,
.has-error textarea,
.has-error .drop { border-color: #C0563B; }

.field-error,
.form-error {
    color: #B04A30;
    font-size: .84rem;
    line-height: 1.4;
}

.job .field-error { font-size: .84rem; }
.field-error:empty,
.form-error:empty { display: none; }

.job .form-error {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(192, 86, 59, .08);
    font-size: .9rem;
}

.drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 26px 20px;
    border: 1px dashed rgba(46, 28, 18, .3);
    border-radius: 18px;
    background: rgba(255, 255, 255, .5);
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.drop:hover,
.drop.is-over {
    background: #fff;
    border-color: rgba(46, 28, 18, .55);
}

.drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-text { font-size: .95rem; }
.drop-text strong { font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.drop-hint { font-size: .78rem; color: var(--ink-soft); }

.drop-files {
    list-style: none;
    margin-top: 6px;
}

.drop-files:empty { display: none; }

.job .drop-files li {
    font-size: .85rem;
    line-height: 1.6;
    word-break: break-all;
}

.drop-files li::before { content: '✓  '; }
.drop-files li.too-big { color: #B04A30; }
.drop-files li.too-big::before { content: '✕  '; }

.submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.submit-row .btn { margin-top: 0; }

.btn[disabled] {
    opacity: .7;
    cursor: progress;
    transform: none;
    box-shadow: none;
}

.progress {
    width: min(260px, 100%);
    height: 3px;
    border-radius: 3px;
    background: var(--cream-deep);
    overflow: hidden;
}

.progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--ink);
    transition: width .2s;
}

.apply-success {
    margin-top: 28px;
    padding: 36px 24px;
    border-radius: 20px;
    background: var(--cream-deep);
    text-align: center;
}

.job .apply-success-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 2rem;
    line-height: 1.2;
}

.job .apply-alt {
    margin-top: 28px;
    text-align: center;
    font-size: .92rem;
    color: var(--ink-soft);
}

[hidden] { display: none !important; }

@media (max-width: 560px) {
    .fields { grid-template-columns: 1fr; }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 30px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    background: var(--ink);
    color: var(--cream);
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(46, 28, 18, .6);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(46, 28, 18, .3);
}

.back {
    margin-top: 40px;
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    transition: color .3s;
    animation: fade 1s 1s both;
}

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

/* Footer & motion */

footer {
    padding: 28px 24px 36px;
    text-align: center;
    font-size: .72rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    animation: fade 1.2s 1.2s both;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

@keyframes fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(201, 120, 91, .5); }
    70%  { box-shadow: 0 0 0 8px rgba(201, 120, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 120, 91, 0); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; }
}
