:root {
    --paper: #f4efe4;
    --paper-deep: #e8ddca;
    --ink: #171411;
    --ink-soft: #312b25;
    --muted: #756d62;
    --line: #d8c9b4;
    --panel: #fffaf0;
    --bronze: #9d7a40;
    --oxide: #6f3f2c;
    --sage: #4f5b4b;
    --shadow: 0 18px 50px rgba(32, 25, 17, .09);
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(216, 201, 180, .8);
    background: rgba(244, 239, 228, .92);
    backdrop-filter: blur(16px);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .12em;
}

.links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.links a { border-bottom: 1px solid transparent; padding-bottom: 3px; }
.links a:hover { border-color: var(--bronze); color: var(--ink); }

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(16, 13, 10, .82) 0%, rgba(16, 13, 10, .58) 42%, rgba(16, 13, 10, .16) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    color: #fff8eb;
}

.hero-inner {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 86px 0 104px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    color: #c9a86a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero h1,
h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(48px, 7.4vw, 96px);
    line-height: .96;
}

.hero p {
    max-width: 650px;
    margin: 26px 0 0;
    color: #eadfcd;
    font-size: 19px;
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 42px;
    color: #dccbae;
    font-size: 13px;
}

.hero-notes span {
    border-left: 1px solid rgba(201, 168, 106, .65);
    padding-left: 12px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: var(--ink);
    color: #fff8eb;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: .03em;
}

.button.secondary {
    background: rgba(255, 248, 235, .08);
    color: inherit;
    border-color: rgba(255, 248, 235, .72);
}

section { padding: 78px 0; }
.surface { background: linear-gradient(180deg, var(--paper), #eee4d3); }
.intro { padding: 54px 0; border-bottom: 1px solid var(--line); }

.intro-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 52px;
    align-items: end;
}

h2 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.04;
}

h3 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.18;
}

.muted { color: var(--muted); }

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-title p { max-width: 420px; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body { padding: 22px; }

.pillar {
    min-height: 230px;
    background:
        linear-gradient(140deg, rgba(157, 122, 64, .12), rgba(79, 91, 75, .06)),
        var(--panel);
}

.thumb {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    background: var(--paper-deep);
}

.tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid rgba(157, 122, 64, .42);
    border-radius: 999px;
    padding: 4px 11px;
    color: var(--oxide);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.band {
    background: #1e1a16;
    color: #f8f0e2;
}

.band .muted { color: #c9bdab; }
.band .card { background: #28231e; border-color: #3d352e; box-shadow: none; }
.band .tag { color: #d2b36f; border-color: rgba(210, 179, 111, .35); }

.product-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(157, 122, 64, .72);
    box-shadow: 0 26px 65px rgba(32, 25, 17, .14);
}

.category-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.category-row a {
    min-height: 112px;
    display: flex;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(140deg, rgba(23, 20, 17, .76), rgba(23, 20, 17, .16)),
        url("/images/hero-keris.png");
    background-size: cover;
    background-position: center;
    color: #fff8eb;
    padding: 18px;
    font-family: var(--serif);
    font-size: 24px;
}

.page-head { padding-top: 60px; }

.filter {
    display: grid;
    grid-template-columns: 1fr 190px 240px auto;
    gap: 10px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 250, 240, .72);
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fffdf8;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
}

textarea { min-height: 150px; }

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 42px;
    align-items: start;
}

.object-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.specs {
    display: grid;
    gap: 0;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.spec {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
}

.spec strong {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #1e1a16;
    color: #f8f0e2;
    padding: 24px;
}

.sidebar a,
.sidebar button {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
    border-color: rgba(255, 248, 235, .18);
    background: transparent;
    color: inherit;
}

.admin-main { padding: 34px; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.form-grid { display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: auto; }

.alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 4px;
    background: #e4d4bb;
}

.footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
}

.footer strong {
    color: var(--ink);
    font-family: var(--serif);
    letter-spacing: .12em;
}

.footer span {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
}

@media (max-width: 760px) {
    .wrap,
    .hero-inner { width: min(100% - 28px, 1160px); }

    .nav,
    .links {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav { padding: 16px 0; }
    .links { gap: 10px; }
    .hero { min-height: 680px; }

    .intro-grid,
    .grid.three,
    .grid.two,
    .detail,
    .filter,
    .category-row,
    .admin-shell,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-main { padding: 20px; }
}
