:root {
    --ink: #171717;
    --muted: #646464;
    --line: #dedbd2;
    --paper: #faf9f5;
    --panel: #ffffff;
    --accent: #f1c232;
    --accent-dark: #7a5a00;
    --deep: #143642;
    --green: #1f7a5c;
    --red: #b42318;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
}

a {
    color: inherit;
}

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    min-height: 178px;
    padding: 22px clamp(18px, 4vw, 56px) 18px;
    background: rgba(250, 249, 245, .92);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    text-align: center;
}

.brand img {
    width: clamp(220px, 34vw, 420px);
    height: clamp(96px, 14vw, 158px);
    object-fit: contain;
}

.brand-mark {
    display: grid;
    width: clamp(220px, 34vw, 420px);
    height: clamp(96px, 14vw, 158px);
    place-items: center;
    color: #1b1a14;
    background: var(--accent);
    border: 2px solid #1b1a14;
    font-size: 48px;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: absolute;
    top: 24px;
    right: clamp(18px, 4vw, 56px);
    color: var(--muted);
    font-size: 15px;
}

.nav-links a {
    text-decoration: none;
}

.admin-link {
    color: var(--ink);
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 560px);
    gap: clamp(30px, 5vw, 78px);
    min-height: calc(100vh - 178px);
    align-items: center;
    padding: clamp(42px, 7vw, 94px) clamp(18px, 4vw, 56px);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    max-width: 13ch;
    font-size: clamp(38px, 6.8vw, 76px);
    line-height: 1.02;
}

h2 {
    font-size: clamp(26px, 3.6vw, 44px);
    line-height: 1.12;
}

.hero-copy > p:not(.eyebrow),
.section > p,
.muted {
    color: var(--muted);
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.72;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 22px;
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    background: var(--ink);
    color: #fff;
}

.button.ghost {
    background: #fff;
}

.hero-media {
    min-height: clamp(360px, 44vw, 540px);
    border: 1px solid var(--line);
    background: #ece7d9;
    box-shadow: 18px 18px 0 var(--accent);
    overflow: hidden;
}

.hero-media img,
.photo-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(360px, 44vw, 540px);
    object-fit: cover;
}

.photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--deep);
    font-size: 24px;
    font-weight: 900;
    background:
        linear-gradient(135deg, rgba(241, 194, 50, .92), rgba(20, 54, 66, .84)),
        repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, .25) 30px 32px);
}

.section {
    display: grid;
    grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
}

.contact-section {
    align-items: start;
    background: #eef4f1;
}

.products-section {
    padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
    background: #fffdf6;
}

.section-heading {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin-bottom: clamp(26px, 4vw, 42px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
}

.product-card {
    display: grid;
    align-content: start;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(23, 23, 23, .06);
    overflow: hidden;
}

.product-card p {
    margin: 0;
    min-height: 92px;
    padding: 18px 20px 22px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    border-top: 1px solid var(--line);
}

.product-media {
    aspect-ratio: 16 / 10;
    background: #ece7d9;
    overflow: hidden;
}

.product-media img,
.product-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-panel,
.social-panel,
.admin-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: clamp(22px, 4vw, 38px);
}

.contact-list {
    display: grid;
    gap: 18px;
    margin: 24px 0;
}

.contact-list div {
    display: grid;
    gap: 4px;
}

.contact-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.social-grid a {
    padding: 16px;
    border: 1px solid var(--line);
    background: #faf9f5;
    font-weight: 800;
    text-decoration: none;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(18px, 4vw, 56px);
    color: #fff;
    background: var(--ink);
}

.admin-body {
    background: #eef4f1;
}

.admin-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-header h1 {
    max-width: none;
    font-size: clamp(32px, 6vw, 58px);
}

.login-card {
    max-width: 460px;
}

.edit-form,
.form-section,
.product-form {
    display: grid;
    gap: 18px;
}

.form-section {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.form-section h2 {
    font-size: 24px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-admin {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.admin-product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-product-item {
    display: grid;
    gap: 12px;
    align-content: start;
    border: 1px solid var(--line);
    padding: 12px;
    background: #faf9f5;
}

.admin-product-item img,
.admin-product-item video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #ece7d9;
}

.admin-product-item p {
    margin: 0;
    color: var(--ink);
    line-height: 1.5;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

.notice {
    border: 1px solid currentColor;
    padding: 12px 14px;
    font-weight: 800;
}

.notice.success {
    color: var(--green);
    background: #edf8f3;
}

.notice.error {
    color: var(--red);
    background: #fff1f0;
}

@media (max-width: 820px) {
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        align-items: center;
        flex-direction: column;
        min-height: auto;
        padding-top: 20px;
    }

    .nav-links {
        position: static;
        width: 100%;
        justify-content: space-between;
    }

    .hero,
    .section,
    .two-col,
    .product-grid,
    .admin-product-list {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    h1 {
        max-width: 13ch;
        font-size: clamp(36px, 11vw, 48px);
    }

    .hero-media,
    .hero-media img,
    .photo-placeholder {
        min-height: 310px;
    }

    .hero-media {
        box-shadow: 8px 8px 0 var(--accent);
    }

    .site-footer {
        flex-direction: column;
    }
}
