@font-face {
  font-family: Bebas;
  src: url("img/bebas.ttf") format("truetype");
  font-display: swap;
}

:root { color: #15130f; background: #f5eee3; font: 16px system-ui, sans-serif; --red: #c91d25; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #126977; outline-offset: 5px; }
.site-header { min-height: 88px; padding: 14px clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #f7efe2; border-bottom: 2px solid #171410; }
.brand { font: 42px/.78 Bebas, Impact, sans-serif; text-align: center; }
.brand span { display: block; font-size: .57em; letter-spacing: .31em; margin: 6px -.31em 0 0; }
.site-header nav { font-weight: 800; text-transform: uppercase; font-size: .86rem; }
.catalog-header { padding: 76px 18px 20px; text-align: center; background: url("img/catalog-bg.png") top center / auto 100% no-repeat; }
h1, h2, .categories { font-family: Bebas, Impact, sans-serif; font-weight: 400; }
h1 { font-size: clamp(68px, 12vw, 150px); line-height: .9; margin: 0 0 34px; }
.categories { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px clamp(24px, 5vw, 76px); font-size: clamp(34px, 6vw, 70px); line-height: 1; }
.categories a { position: relative; scroll-margin-top: 12px; }
.categories a:hover, .categories [aria-current] { color: var(--red); }
.categories [aria-current]::after { position: absolute; left: -100px; top: .27em; width: 85px; height: 24px; content: ""; background: url("img/pointer.png") center / contain no-repeat; }
.categories a:last-child::after { left: auto; right: -100px; transform: scaleX(-1); }
.demo { text-align: center; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 750; margin: 16px 12px 0; }
.grid { width: min(100% - 36px, 1180px); margin: 65px auto 105px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 80px 24px; }
.beer { text-align: center; display: flex; flex-direction: column; align-items: center; }
.media { width: min(100%, 310px); position: relative; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
.media img { width: min(100%, 210px); height: clamp(178px, 27vw, 305px); object-fit: contain; filter: drop-shadow(15px 15px 10px #29190d38); transition: transform .22s ease; }
.media:hover img { transform: translateY(-8px) rotate(-3deg); }
.badge { position: absolute; top: 13%; right: 2%; border-radius: 50%; outline: 2px solid #171410; outline-offset: 3px; background: #171410; color: #fff; width: 61px; aspect-ratio: 1; display: grid; align-content: center; line-height: 1; transform: rotate(8deg); }
.badge small { font-size: .65rem; margin-top: 4px; }
.beer h2 { margin: 22px 0 0; font-size: clamp(30px, 4vw, 50px); line-height: .98; }
.beer p { margin: 9px 0 18px; }
.beer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; }
.action { display: inline-block; background: #171410; color: #fff; border: 2px solid #171410; padding: 9px 12px; text-transform: uppercase; font-size: .79rem; font-weight: 800; line-height: 1.25; }
.action:hover { background: #433b31; border-color: #433b31; }
.buy { background: var(--red); border-color: var(--red); }
.buy:hover { background: #9e151c; border-color: #9e151c; }
footer { background: #171410; color: #f5eee3; text-align: center; font: 38px Bebas, Impact, sans-serif; padding: 34px 16px; }
dialog { width: min(420px, 100% - 32px); text-align: center; padding: 32px 22px; background: #f5eee3; color: #171410; border: 2px solid; }
dialog::backdrop { background: #171410b8; }
dialog h2 { font-size: 46px; margin: 12px 0; }
@media (max-width: 920px) { .categories [aria-current]::after { display: none; } .categories [aria-current] { text-decoration: underline; text-underline-offset: 7px; } }
@media (max-width: 660px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; margin-top: 44px; } .catalog-header { padding-top: 45px; } .badge { width: 44px; font-size: .73rem; } .badge small { font-size: .55rem; } .brand { font-size: 35px; } }
@media (prefers-reduced-motion: reduce) { .media img { transition: none; } }

.beer .reference { margin: -8px 0 14px; }
