* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #201d18;
    background: #fbf8f2;
}

body.site {
    --site-frame-width: min(1160px, calc(100vw - 28px));
    --site-logo-padding: 14px;
    --site-logo-art-offset: 6px;
    --site-content-inset: calc(var(--site-logo-padding) + var(--site-logo-art-offset));
    --site-content-left: calc((100vw - var(--site-frame-width)) / 2 + var(--site-content-inset));
    --site-content-right: calc((100vw - var(--site-frame-width)) / 2 + 14px);
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    background: #211d18;
}

body.site::before,
body.site::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body.site::before {
    z-index: -2;
    background: url("/assets/brauhaus-hero-bg.webp") center top / cover no-repeat;
}

body.site::after {
    position: absolute;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(253, 250, 245, .88) 0%, rgba(253, 250, 245, .62) 34%, rgba(253, 250, 245, .18) 68%, rgba(32, 29, 24, .28) 100%),
        linear-gradient(180deg, rgba(32, 29, 24, .08) 0%, rgba(32, 29, 24, .3) 100%);
}

body.site > main,
body.site > .footer {
    position: relative;
    z-index: 1;
}

.ambient-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient-particles span {
    position: absolute;
    left: var(--x);
    bottom: -80px;
    width: var(--size);
    height: var(--size);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 62%, transparent 70%);
    opacity: .42;
    transform: translate3d(0, 0, 0);
    animation: float-particle var(--duration) linear infinite;
    animation-delay: var(--delay);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}

.ambient-particles span:nth-child(1) { --x: 7%; --size: 10px; --duration: 18s; --delay: -4s; }
.ambient-particles span:nth-child(2) { --x: 18%; --size: 18px; --duration: 24s; --delay: -12s; }
.ambient-particles span:nth-child(3) { --x: 29%; --size: 12px; --duration: 20s; --delay: -7s; }
.ambient-particles span:nth-child(4) { --x: 41%; --size: 24px; --duration: 28s; --delay: -20s; }
.ambient-particles span:nth-child(5) { --x: 55%; --size: 14px; --duration: 21s; --delay: -9s; }
.ambient-particles span:nth-child(6) { --x: 67%; --size: 28px; --duration: 30s; --delay: -16s; }
.ambient-particles span:nth-child(7) { --x: 75%; --size: 11px; --duration: 19s; --delay: -3s; }
.ambient-particles span:nth-child(8) { --x: 84%; --size: 20px; --duration: 26s; --delay: -14s; }
.ambient-particles span:nth-child(9) { --x: 91%; --size: 13px; --duration: 22s; --delay: -6s; }
.ambient-particles span:nth-child(10) { --x: 48%; --size: 9px; --duration: 17s; --delay: -10s; }

@keyframes float-particle {
    0% {
        transform: translate3d(0, 0, 0) scale(.86);
        opacity: 0;
    }
    12% {
        opacity: .38;
    }
    50% {
        transform: translate3d(18px, -52vh, 0) scale(1);
    }
    100% {
        transform: translate3d(-12px, -108vh, 0) scale(1.12);
        opacity: 0;
    }
}

a {
    color: inherit;
}

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

button,
input,
textarea {
    font: inherit;
}

.hero {
    min-height: 78vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42vw);
    align-items: stretch;
    background: #2f261f;
    color: #fff8ea;
}

.hero-copy {
    align-self: center;
    padding: clamp(36px, 7vw, 92px);
}

.brand-logo {
    width: min(420px, 86vw);
    height: auto;
    margin: 0 0 28px;
    padding: 16px 18px;
    border-radius: 8px;
    background: #fffaf1;
}

.kicker,
.meta {
    margin: 0 0 12px;
    color: #96500f;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero h1,
.detail h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.3rem, 7vw, 5.3rem);
    line-height: .98;
    letter-spacing: 0;
}

.hero p:not(.kicker) {
    max-width: 700px;
    color: #f1dec3;
    font-size: 1.2rem;
    line-height: 1.6;
}

.hero > img,
.hero-fallback {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.hero-fallback {
    display: grid;
    place-items: center;
    background: #d9c5a5;
    color: #4a2a14;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
}

.section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 76px;
}

.section-head,
.toolbar,
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-head {
    align-items: end;
    margin-bottom: 22px;
}

.section-head span {
    display: block;
    margin-top: 5px;
}

.section h2,
.toolbar h1 {
    margin: 0;
}

.section-head span,
.empty {
    color: #6f6659;
}

.sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.sort-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(47, 39, 29, .14);
    border-radius: 999px;
    background: #fff;
    color: #4d4338;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
}

.sort-tabs a[aria-current="page"],
.sort-tabs a.is-active {
    border-color: #8a4b16;
    background: #8a4b16;
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    overflow: hidden;
    border: 1px solid rgba(57, 48, 35, .16);
    border-radius: 8px;
    background: #fffaf1;
}

.media {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: #d9c5a5;
    color: #4a2a14;
    text-decoration: none;
}

.media img,
.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media span,
.detail-media span {
    font-size: clamp(3rem, 12vw, 9rem);
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.card h3 a {
    text-decoration: none;
}

.card p,
.detail p {
    line-height: 1.6;
}

.detail {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 84px;
}

.legal {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto 34px;
    padding: 132px clamp(18px, 4vw, 36px) 64px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .36));
    box-shadow: 0 22px 56px rgba(33, 29, 24, .16), inset 0 1px 0 rgba(255, 255, 255, .48);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
}

.legal h1 {
    margin: 0 0 22px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
}

.legal h2 {
    margin-top: 30px;
}

.legal p {
    color: rgba(32, 29, 24, .78);
    line-height: 1.7;
}

.protected-contact {
    white-space: pre-line;
    color: #33382f;
    font-style: normal;
}

.footer {
    display: flex;
    width: min(860px, calc(100% - 32px));
    margin: 0 auto 24px;
    justify-content: center;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .28));
    box-shadow: 0 14px 34px rgba(33, 29, 24, .12), inset 0 1px 0 rgba(255, 255, 255, .48);
    color: #2b241e;
    font-weight: 700;
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.back {
    margin-bottom: 24px;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: start;
}

.detail-media {
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #d9c5a5;
}

.lead {
    color: #514638;
    font-size: 1.3rem;
    line-height: 1.55;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 28px 0;
}

.facts div {
    padding: 12px;
    border: 1px solid rgba(57, 48, 35, .14);
    border-radius: 8px;
    background: #fffaf1;
}

.facts dt {
    color: #746a5c;
    font-size: .82rem;
    font-weight: 800;
}

.facts dd {
    margin: 4px 0 0;
    font-weight: 850;
}

.button,
.admin button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: #7b3f16;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin button.secondary {
    background: #67594b;
}

.admin {
    min-height: 100vh;
    background: #f4efe7;
}

.admin-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 22px;
    border-bottom: 1px solid #40342a;
    background: #2f261f;
    color: #fff;
}

.admin-nav nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: #fff;
    text-decoration: none;
}

.admin-nav a[aria-current="page"] {
    color: #f0b35a;
}

.admin-nav nav form {
    margin: 0;
}

.admin .admin-nav nav button {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: transparent;
    color: #fff;
    font-weight: inherit;
    line-height: inherit;
}

.admin-nav nav a:hover,
.admin .admin-nav nav button:hover {
    color: #f0b35a;
}

.admin-nav nav a:focus-visible,
.admin .admin-nav nav button:focus-visible {
    border-radius: 2px;
    outline: 2px solid #f0b35a;
    outline-offset: 3px;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
}

.admin-brand img {
    width: min(220px, 52vw);
    height: auto;
    filter: invert(1);
}

.admin-main {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.panel {
    width: min(420px, 100%);
    padding: 24px;
    border: 1px solid #d9ded2;
    border-radius: 8px;
    background: #fff;
}

.admin label {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 800;
}

.admin input,
.admin select,
.admin textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd2c4;
    border-radius: 6px;
    padding: 9px 11px;
    background: #fff;
    color: #1d211b;
}

.admin textarea {
    resize: vertical;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #d9ded2;
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e8df;
    text-align: left;
    vertical-align: top;
}

tr.needs-review {
    background: #fff8e8;
}

tr.bf-imported {
    background: #f4f1eb;
    color: #867d70;
}

tr.bf-imported strong,
tr.bf-imported a {
    color: #665d52;
}

tr.bf-imported input[type="checkbox"] {
    opacity: .38;
    cursor: not-allowed;
}

tr.bf-update {
    background: #fff7e2;
}

th {
    background: #eef1e9;
}

.table-primary {
    margin-bottom: 6px;
    font-weight: 850;
}

.muted,
small {
    color: #746a5c;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0 7px;
}

.chip,
.status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 850;
}

.chip {
    background: #efe6d5;
    color: #4a3721;
}

.status {
    margin-bottom: 5px;
}

.status.published {
    background: #f2dfbd;
    color: #65400f;
}

.status.draft {
    background: #eee8dc;
    color: #62533d;
}

.status.review {
    background: #ffe0a8;
    color: #6a3a00;
}

.status.archived {
    background: #e7e0d7;
    color: #4d4338;
}

.status-form {
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
}

.status-form .check {
    margin: 0;
    font-size: .9rem;
    font-weight: 800;
}

.status-form.is-saving {
    opacity: .62;
}

.status-form.is-saved .check {
    color: #49621f;
}

.status-form.is-error .check {
    color: #8d1f1f;
}

.status-save-message {
    min-height: 1.15em;
    color: #746a5c;
    font-size: .78rem;
    line-height: 1.35;
}

.status-save-message:empty {
    display: none;
}

.status-form.is-saved .status-save-message {
    color: #49621f;
}

.status-form.is-error .status-save-message {
    color: #8d1f1f;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.editor-section {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid #d9ded2;
    border-radius: 8px;
    background: #fff;
}

.editor-section h2 {
    margin: 0 0 16px;
}

.field-hint {
    margin: -2px 0 0;
    color: #746a5c;
    font-size: .9rem;
    line-height: 1.5;
}

.check {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.check input,
td input[type="checkbox"] {
    width: auto;
    min-height: 0;
}

.notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f5ead7;
    color: #5b3717;
    font-weight: 700;
}

.notice.error {
    background: #fae1dc;
    color: #7d1d10;
}

.cache-status {
    margin: 0 0 8px;
    color: #746a5c;
    font-size: .9rem;
}

.import-state {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ebe5db;
    color: #554b40;
    font-size: .78rem;
    font-weight: 850;
}

.import-state.new {
    background: #e4f0df;
    color: #345d26;
}

.import-state.update {
    background: #f6d590;
    color: #643b04;
}

.import-state.imported {
    background: #e4e0d8;
    color: #6f665b;
}

.untappd-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.untappd-list a {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid #e2ddd3;
    border-radius: 999px;
    background: #fbfaf6;
    color: #5b3415;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.source-panel {
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid #d9ded2;
    border-radius: 8px;
    background: #fff;
}

.pending-panel {
    border-color: #e1aa45;
    background: #fffaf0;
}

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

.source-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.source-panel-head h2 {
    margin: 0;
}

.source-panel-head span {
    color: #746a5c;
    font-weight: 850;
}

.tech-group {
    margin-top: 18px;
}

.tech-group h3 {
    margin: 0 0 10px;
    color: #20231e;
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.source-grid div {
    padding: 10px;
    border-radius: 7px;
    background: #f6f1e9;
}

.source-grid dt {
    color: #746a5c;
    font-size: .78rem;
    font-weight: 850;
}

.source-grid dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.ingredient-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.ingredient-table article,
.note-grid article {
    padding: 12px;
    border: 1px solid #e2ddd3;
    border-radius: 8px;
    background: #fbfaf6;
}

.ingredient-table strong {
    display: block;
    margin-bottom: 8px;
}

.ingredient-table dl {
    display: grid;
    gap: 5px;
    margin: 0;
}

.ingredient-table dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #eee8dd;
    padding-top: 5px;
}

.ingredient-table dt {
    color: #746a5c;
    font-size: .78rem;
    font-weight: 850;
}

.ingredient-table dd {
    margin: 0;
    text-align: right;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.note-grid h4 {
    margin: 0 0 8px;
}

.note-grid p {
    margin: 0 0 8px;
    line-height: 1.6;
}

.raw-source summary {
    cursor: pointer;
    font-weight: 850;
}

.raw-source pre {
    max-height: 520px;
    overflow: auto;
    padding: 14px;
    border-radius: 7px;
    background: #2b241e;
    color: #f7f2e9;
    font-size: .82rem;
    line-height: 1.45;
}

.danger {
    margin-top: 24px;
    background: #9a2417 !important;
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--site-frame-width);
    margin: 0;
    padding: 10px var(--site-logo-padding);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 0 0 8px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .22));
    box-shadow: 0 14px 35px rgba(43, 36, 30, .12), inset 0 1px 0 rgba(255, 255, 255, .65);
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

.site-brand {
    display: inline-flex;
    width: min(430px, 86vw);
    padding: 0;
    border-radius: 6px;
    background: transparent;
}

.site-brand img {
    width: 100%;
    height: auto;
}

.site-header.has-back-link {
    gap: clamp(18px, 7vw, 96px);
}

.header-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 999px;
    background: rgba(255, 255, 255, .38);
    color: #302921;
    font-size: .92rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .44);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    transition: transform .18s ease, background .18s ease;
}

.header-back-link:hover {
    background: rgba(255, 255, 255, .58);
    transform: translateY(-1px);
}

.label-hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(280px, 1fr);
    gap: clamp(20px, 4vw, 52px);
    align-items: center;
    margin: 0;
    padding: clamp(112px, 15vh, 160px) var(--site-content-right) clamp(70px, 10vh, 112px) var(--site-content-left);
    background: transparent;
}

.label-hero .hero-copy {
    padding: 0;
    max-width: 610px;
}

.label-hero h1 {
    max-width: 700px;
    margin: 0;
    color: #201d18;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 1;
}

.label-hero p:not(.kicker) {
    max-width: 650px;
    color: #51483d;
    font-size: 1.12rem;
    line-height: 1.65;
}

.label-preview {
    display: none;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
    color: #5a3d22;
    font-size: 0;
    line-height: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transform: translateX(-50%);
    overflow: visible;
    box-shadow: 0 10px 30px rgba(43, 36, 30, .12);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    transition: opacity .35s ease, transform .35s ease;
}

.scroll-cue:focus {
    outline: none;
    outline-width: 0;
}

.scroll-cue:focus-visible {
    outline: 2px solid rgba(138, 75, 22, .55);
    outline-offset: 4px;
}

.scroll-cue::before {
    content: "";
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: -1px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.scroll-cue::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 1px solid rgba(90, 61, 34, .28);
    opacity: .42;
    animation: cue-pulse 2.2s ease-in-out infinite;
}

.site-scrolled .scroll-cue {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px) scale(.92);
}

@media (max-width: 699px), (max-width: 899px) and (orientation: portrait) {
    .scroll-cue {
        display: none;
    }
}

@media (min-width: 700px) and (max-width: 899px) and (orientation: landscape) {
    .scroll-cue {
        display: grid;
    }
}

@keyframes cue-pulse {
    0%, 100% {
        opacity: .48;
        transform: scale(.9);
    }
    50% {
        opacity: .92;
        transform: scale(1.13);
    }
}

.qr-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.qr-grid {
    aspect-ratio: 1;
    border: 8px solid #201d18;
    border-radius: 6px;
    background:
        linear-gradient(90deg, #201d18 12px, transparent 12px) 0 0 / 24px 24px,
        linear-gradient(#201d18 12px, transparent 12px) 0 0 / 24px 24px,
        #fff;
}

.qr-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.qr-card span {
    color: #62584b;
    line-height: 1.5;
}

.label-preview p {
    margin: 0;
    color: #746a5c;
    line-height: 1.55;
}

.brand-logo,
.hero,
.detail-layout,
.detail-media {
    all: unset;
}

.section {
    width: min(1160px, calc(100% - 28px));
    margin: 0 auto 34px;
    padding: var(--site-content-inset) var(--site-content-inset) 84px;
    border-top: 1px solid rgba(255, 255, 255, .5);
    border-bottom: 1px solid rgba(255, 255, 255, .36);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 -28px 80px rgba(33, 29, 24, .12);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
}

.section-head h2 {
    color: #201d18;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-head span {
    color: rgba(32, 29, 24, .72);
}

.sort-tabs a {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sort-tabs a:hover {
    transform: translateY(-1px);
}

.sort-tabs a[aria-current="page"],
.sort-tabs a.is-active {
    border-color: #56270a;
    background: #6d3513 linear-gradient(135deg, #5e2c0b, #7d4318);
    box-shadow: 0 10px 28px rgba(138, 75, 22, .2), inset 0 1px 0 rgba(255, 255, 255, .28);
    color: #fffaf1;
}

.sort-tabs a[aria-current="page"]::after,
.sort-tabs a.is-active::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .14) 44%, transparent 68%);
    opacity: .35;
    transform: translateX(-110%);
    animation: liquid-tab 3.2s ease-in-out infinite;
}

@keyframes liquid-tab {
    0%, 28% {
        transform: translateX(-110%);
    }
    58%, 100% {
        transform: translateX(110%);
    }
}

.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    perspective: 1200px;
}

.card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .52);
    background: linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .34));
    box-shadow: 0 22px 48px rgba(33, 29, 24, .14), inset 0 1px 0 rgba(255, 255, 255, .46);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    min-height: 236px;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    transform-style: preserve-3d;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.card:focus-within {
    border-color: rgba(138, 75, 22, .7);
    box-shadow: 0 0 0 3px rgba(138, 75, 22, .22), 0 22px 48px rgba(33, 29, 24, .14), inset 0 1px 0 rgba(255, 255, 255, .46);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .18) 38%, rgba(255, 255, 255, .58) 50%, rgba(255, 255, 255, .18) 62%, transparent 100%);
    opacity: 0;
    transform: translateX(-130%);
    transition: opacity .2s ease;
}

.card:hover {
    z-index: 5;
    border-color: rgba(255, 255, 255, .72);
    box-shadow: 0 34px 68px rgba(33, 29, 24, .24), inset 0 1px 0 rgba(255, 255, 255, .55);
    transform: perspective(900px) translateY(-8px) scale(1.035) rotateX(1deg);
}

.card:hover::before {
    opacity: 1;
    animation: glass-shimmer .9s ease forwards;
}

@keyframes glass-shimmer {
    to {
        transform: translateX(130%);
    }
}

.ebc-strip {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    z-index: 3;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: var(--ebc-color);
    box-shadow: 0 0 18px rgba(138, 75, 22, .22);
}

.ebc-unknown { --ebc-color: linear-gradient(90deg, #f6d66f, #c9823a, #5b3020); }
.ebc-pale { --ebc-color: #f6d66f; }
.ebc-gold { --ebc-color: #e4a642; }
.ebc-amber { --ebc-color: #b96f2d; }
.ebc-brown { --ebc-color: #74401f; }
.ebc-dark { --ebc-color: #2d1f19; }

.untappd-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    min-width: 72px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 999px;
    background: rgba(28, 23, 19, .62);
    color: #fff8ea;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .02em;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(33, 29, 24, .2), inset 0 1px 0 rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    transition: transform .2s ease, background .2s ease;
}

.untappd-badge:hover {
    background: rgba(138, 75, 22, .72);
    transform: translateY(-1px);
}

.media {
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 28% 22%, rgba(222, 159, 70, .48), transparent 36%),
        linear-gradient(135deg, #201d18, #9b632c);
    color: #fff7ea;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 56px;
}

.card-body p {
    color: rgba(32, 29, 24, .72);
}

.card-body > p:not(.meta) {
    display: -webkit-box;
    margin-bottom: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.6;
}

.text-link {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 0;
    color: #8a4b16;
    font-weight: 850;
    text-decoration: none;
    transition: transform .2s ease, color .2s ease;
}

.text-link:hover {
    color: #5f3210;
    transform: translateY(-1px);
}

.cellar-card {
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 248, 226, .7), transparent 26%),
        linear-gradient(145deg, rgba(48, 39, 31, .66), rgba(135, 92, 47, .38));
    color: #fff8ea;
}

.cellar-card .card-body {
    color: inherit;
}

.cellar-card .meta,
.cellar-card p {
    color: rgba(255, 248, 234, .82);
}

.cellar-card h3 a,
.cellar-card .text-link {
    color: #fff8ea;
}

.cellar-card .text-link:hover {
    color: #ffe4ad;
}

.cellar-glow {
    position: absolute;
    inset: 14px 14px auto auto;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 231, 172, .72), rgba(255, 231, 172, 0) 70%);
    opacity: .8;
}

.archive-section {
    margin-top: 0;
}

.archive-intro {
    max-width: 620px;
    margin: -8px 0 22px;
    color: rgba(32, 29, 24, .74);
}

.beer-page {
    width: var(--site-frame-width);
    margin: 0 auto;
    padding: clamp(152px, 16vh, 192px) 0 84px;
}

.beer-hero {
    display: grid;
    grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
}

.beer-label {
    min-height: 320px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .34));
    box-shadow: 0 20px 50px rgba(39, 33, 25, .14), inset 0 1px 0 rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}

.beer-label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.beer-label-fallback {
    display: grid;
    gap: 8px;
    place-items: center;
    text-align: center;
    color: #201d18;
}

.beer-label-fallback span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #d99a43;
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
}

.beer-label-fallback strong {
    max-width: 280px;
    font-size: 1.25rem;
}

.beer-label-fallback small {
    color: #665b4c;
}

.beer-intro h1 {
    margin: 0;
    color: #201d18;
    font-size: clamp(2.25rem, 6vw, 4.6rem);
    line-height: 1;
}

.beer-title {
    display: grid;
    gap: .08em;
}

.beer-title span {
    display: block;
}

.lead {
    max-width: 680px;
    color: #51483d;
}

.fact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0;
}

.fact-strip > span,
.share-button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 999px;
    background: rgba(255, 255, 255, .46);
    color: #302921;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

.share-button {
    min-width: 104px;
    appearance: none;
    color: #302921;
    font-size: .9rem;
    font-weight: 850;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.share-button:hover {
    background: rgba(255, 255, 255, .7);
    transform: translateY(-1px);
}

.share-button:focus-visible {
    outline: 3px solid rgba(179, 103, 39, .42);
    outline-offset: 2px;
}

.share-button:disabled {
    cursor: wait;
    opacity: .72;
}

.share-button[hidden] {
    display: none;
}

.fact-strip .untappd-badge {
    position: static;
    min-height: 36px;
    padding: 8px 11px;
}

.fact-strip em {
    display: inline-block;
    color: #302921;
    font-size: .9rem;
    font-weight: 850;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    text-align: right;
}

.share-copy-field {
    position: fixed;
    left: -9999px;
}

.fact-strip strong {
    color: #302921;
    font-size: .9rem;
    font-weight: 850;
    text-transform: none;
}

.beer-sections {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 16px;
    margin-top: 34px;
}

.info-section {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .34));
    box-shadow: 0 18px 44px rgba(33, 29, 24, .12), inset 0 1px 0 rgba(255, 255, 255, .46);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}

.info-section h2 {
    margin: 0 0 12px;
    color: #201d18;
}

.info-section p {
    color: #51483d;
    line-height: 1.68;
}

.related-beers {
    grid-column: 1 / -1;
}

.related-beers-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-beers-list li {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(47, 39, 29, .12);
    border-radius: 6px;
    background: rgba(255, 250, 242, .46);
}

.related-beers-list a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #753c13;
    font-weight: 850;
    overflow-wrap: anywhere;
    text-decoration-thickness: .1em;
    text-underline-offset: .2em;
}

.related-beers-list a:focus-visible {
    border-radius: 2px;
    outline: 3px solid rgba(117, 60, 19, .42);
    outline-offset: 2px;
}

.related-beers-list span {
    display: block;
    margin-top: 3px;
    color: #62584c;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.recipe-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.recipe-list div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(47, 39, 29, .1);
}

.recipe-list dt {
    color: #746a5c;
    font-size: .82rem;
    font-weight: 850;
}

.recipe-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 750;
}

.button {
    background: #201d18;
}

.has-js .reveal-item:not(.card),
.has-js .info-section,
.has-js .beer-label,
.has-js .beer-intro {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}

.has-js .reveal-item:not(.card).is-visible,
.has-js .info-section.is-visible,
.has-js .beer-label.is-visible,
.has-js .beer-intro.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.has-js .reveal-item:nth-child(2) {
    transition-delay: .06s;
}

.has-js .reveal-item:nth-child(3) {
    transition-delay: .12s;
}

.has-js .reveal-item:nth-child(4) {
    transition-delay: .18s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }

    .ambient-particles {
        display: none;
    }

    .has-js .reveal-item,
    .has-js .info-section,
    .has-js .beer-label,
    .has-js .beer-intro {
        opacity: 1;
        transform: none;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header,
    .section,
    .card,
    .legal,
    .footer,
    .beer-label,
    .info-section {
        background: rgba(255, 250, 242, .92);
    }

    .sort-tabs a,
    .scroll-cue,
    .fact-strip span,
    .share-button,
    .untappd-badge {
        background: rgba(255, 250, 242, .9);
    }

    .untappd-badge {
        color: #2b241e;
    }

    .ambient-particles span {
        background: rgba(255, 255, 255, .35);
    }
}

@supports not (display: grid) {
    .grid,
    .form-grid,
    .beer-sections,
    .beer-hero,
    .label-hero {
        display: flex;
        flex-wrap: wrap;
    }

    .grid .card {
        width: calc(33.333% - 12px);
    }

    .beer-sections > *,
    .beer-hero > *,
    .label-hero > * {
        flex: 1 1 320px;
    }
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @supports not (display: grid) {
        .grid .card {
            width: calc(50% - 8px);
        }
    }
}

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

    @supports not (display: grid) {
        .grid .card {
            width: 100%;
        }
    }
}

@media (max-width: 760px) {
    body.site {
        --site-logo-padding: 18px;
        --site-logo-art-offset: 5px;
        --site-content-right: var(--site-content-left);
    }

    .hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .hero > img,
    .hero-fallback {
        min-height: 260px;
        max-height: 45vh;
    }

    .section-head,
    .toolbar,
    .admin-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        justify-content: flex-start;
        padding-inline: var(--site-logo-padding);
    }

    .site-brand {
        width: min(310px, 82vw);
    }

    .site-header.has-back-link {
        gap: 10px;
    }

    .site-header.has-back-link .site-brand {
        width: min(220px, 50vw);
    }

    .header-back-link {
        min-height: 32px;
        padding: 6px 9px;
        font-size: .76rem;
    }

    .sort-tabs {
        justify-content: flex-start;
    }

    .label-hero,
    .beer-hero,
    .beer-sections {
        grid-template-columns: 1fr;
    }

    .label-hero {
        min-height: 0;
        padding: 116px var(--site-content-right) 48px var(--site-content-left);
        background: transparent;
    }

    .label-preview {
        display: none;
    }

    .beer-label {
        min-height: 220px;
    }

    .beer-page,
    .beer-hero,
    .beer-sections,
    .info-section,
    .beer-intro,
    .beer-label {
        max-width: 100%;
        min-width: 0;
    }

    .beer-page {
        padding-top: 132px;
    }

    .beer-intro h1,
    .beer-label-fallback strong,
    .lead {
        overflow-wrap: anywhere;
    }

    .recipe-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .related-beers-list {
        grid-template-columns: 1fr;
    }
}
