@font-face {
  font-family: Montserrat;
  src: url("./assets/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #151515;
  --night: #101010;
  --muted: #545454;
  --paper: #f5f5f3;
  --white: #fff;
  --line: #deded9;
  --gold: #ffcf24;
  --gold-hover: #f1bb00;
  --radius: 18px;
  --shadow: 0 10px 30px #1010100a;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.11; letter-spacing: -.045em; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 800; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #bd8400; outline-offset: 4px; }
:where(a, button, input, select) { -webkit-tap-highlight-color: transparent; }
.shell { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.topbar { background: var(--night); color: #fff; border-bottom: 1px solid #2a2a2a; }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { font-weight: 850; letter-spacing: -.03em; line-height: 1.2; display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }
.brand strong { color: var(--gold); }
.brand small { display: block; color: #b6b6b6; font-size: .69rem; font-weight: 600; letter-spacing: .035em; margin-top: .25rem; }
#brand-logo { object-fit: contain; }
.brand-beta { background: #ffcf2419; color: var(--gold); padding: .26rem .4rem; border-radius: 6px; font-size: .65rem; font-weight: 850; text-transform: uppercase; }
#nav { display: flex; gap: .25rem; }
#nav a { display: flex; align-items: center; gap: .45rem; min-height: 42px; padding: .55rem .75rem; color: #d0d0d0; border-radius: 8px; font-size: .83rem; font-weight: 650; white-space: nowrap; }
#nav svg { width: 17px; height: 17px; }
#nav a:hover { background: #272727; color: #fff; }
#nav a[aria-current] { color: var(--gold); background: #ffcf2419; }
.view { min-height: 65vh; padding-block: 1.65rem 3rem; animation: enter .24s ease-out both; }
@keyframes enter { from { opacity: .55; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.hero {
  display: grid;
  align-items: center;
  min-height: clamp(350px, 39vw, 500px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, #101010 0%, #101010ef 24%, #10101045 55%, #10101000 80%), #101010 url("./assets/barra.jpg") right 52% / cover no-repeat;
  color: #fff;
}
.hero-content { padding: clamp(1.4rem, 6vw, 5.25rem); padding-inline-end: 1.4rem; max-width: 720px; }
.hero-kicker { color: var(--gold); font-weight: 750; font-size: .82rem; letter-spacing: .04em; display: flex; align-items: center; gap: .6rem; }
.hero-kicker i { width: 1.2rem; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(3rem, 6vw, 5.85rem); font-weight: 900; line-height: .99; letter-spacing: -.075em; margin: .8rem 0 1rem; }
.hero em { font-style: normal; color: var(--gold); }
.hero p { max-width: 26rem; color: #ededed; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 9px; min-height: 44px; padding: .62rem 1rem; font-size: .875rem; font-weight: 750; line-height: 1.25; text-align: center; transition: background .18s, border-color .18s, transform .18s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button svg { width: 17px; height: 17px; }
.primary { background: var(--gold); color: var(--ink); }
.primary:hover { background: var(--gold-hover); }
.secondary { background: #fff; color: var(--ink); border-color: #cececa; }
.secondary:hover:not(:disabled), .quiet:hover { background: #f1f1ed; border-color: #a6a6a2; }
.inverse { color: #fff; background: #1119; border-color: #ffffff65; }
.inverse:hover { background: #3a3a3a; }
.quiet { background: #f9f9f7; }
.button:disabled { background: #f1f1ee; color: #686868; }
.mini { min-height: 38px; padding: .38rem .6rem; margin-left: .5rem; }
.home-section { margin-top: 2.3rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.section-head p { color: var(--muted); margin-top: .35rem; font-size: .9rem; }
.module-grid, .recipe-grid, .level-grid, .practice-grid, .form-grid { display: grid; gap: .9rem; }
.module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.module-card, .panel, .recipe-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.module-card { display: flex; align-items: flex-start; flex-direction: column; gap: .62rem; padding: 1.25rem; transition: transform .2s, border-color .2s, box-shadow .2s; }
.module-card:hover { transform: translateY(-3px); border-color: #c99700; box-shadow: 0 14px 24px #10101012; }
.module-icon { border-radius: 11px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--gold); color: #161616; margin-bottom: .2rem; }
.module-icon svg { width: 23px; height: 23px; }
.module-card p { font-size: .88rem; color: var(--muted); flex: 1; }
.module-link { margin-top: .22rem; font-size: .81rem; font-weight: 800; }
.progress-strip { margin-top: 2.15rem; color: #fff; background: #161616; border-radius: var(--radius); display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; }
.progress-strip h2 { font-size: 1.35rem; }
.progress-strip div { padding-left: 1rem; border-left: 1px solid #454545; display: flex; flex-direction: column; }
.progress-strip strong { color: var(--gold); font-size: 1.5rem; font-weight: 850; line-height: 1.15; }
.progress-strip small { font-size: .8rem; color: #ddd; }
.progress-strip span { font-size: .78rem; color: #dbdbdb; margin-top: .2rem; }
.recipe-grid, .level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.recipe-card { overflow: hidden; }
.recipe-open { width: 100%; height: 100%; display: block; text-align: left; background: #fff; border: 0; border-radius: inherit; padding: 0; }
.recipe-open:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.recipe-open:focus-visible { outline-offset: -4px; }
.recipe-open img, .recipe-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 1.3; object-fit: cover; object-position: 50% 54%; background: #1a1a1a; }
.recipe-copy { display: grid; gap: .35rem; padding: 1rem; color: var(--muted); font-size: .875rem; }
.recipe-copy strong { font-size: 1.18rem; line-height: 1.15; letter-spacing: -.035em; color: var(--ink); }
.meta { color: var(--muted); font-size: .82rem; font-weight: 600; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem; padding-block: 1rem 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 5; background: #fff; padding: .6rem; }
.module-head { padding-block: 1rem 1.6rem; }
.module-head h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); font-weight: 880; }
.module-head p { max-width: 45rem; margin-top: .7rem; color: var(--muted); }
.panel { padding: clamp(1rem, 3vw, 1.65rem); min-width: 0; }
.filter-panel { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: .8rem; }
label { display: grid; gap: .35rem; align-content: start; font-weight: 700; font-size: .85rem; min-width: 0; }
input:not([type="checkbox"]), select { border: 1px solid #bfbfba; border-radius: 8px; min-height: 44px; font-size: 1rem; font-weight: 500; width: 100%; padding: .55rem .7rem; background-color: #fff; }
select { appearance: none; padding-right: 2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23202020' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right .65rem center no-repeat; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: #101010; }
.check-label { display: flex; align-items: center; gap: .35rem; min-height: 44px; }
.search-field { position: relative; }
.search-field svg { width: 19px; height: 19px; position: absolute; left: .65rem; top: .76rem; }
.search-field input { padding-left: 2.15rem; }
.result-count { margin-block: .9rem .65rem; }
.empty { grid-column: 1 / -1; }
.recipe-dialog { border: none; border-radius: var(--radius); padding: 0; width: min(94vw, 40rem); max-height: 92dvh; color: var(--ink); }
.recipe-dialog::backdrop { background: #111b; }
.detail-wrap { position: relative; }
.dialog-close { position: absolute; right: .75rem; top: .75rem; margin: 0; z-index: 1; }
.detail-photo { width: 100%; height: min(42dvh, 355px); object-fit: contain; background: #171717; }
.detail-body { padding: clamp(1rem, 4vw, 1.75rem); }
.detail-wrap:not(:has(.detail-photo)) .detail-body { padding-top: 4.5rem; }
.detail-body h2 { margin: .55rem 0; }
.detail-body h3 { margin-top: 1.25rem; }
.detail-body h3 small { margin-left: .35rem; font-size: .75rem; color: var(--muted); letter-spacing: 0; font-weight: 600; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-block; border-radius: 6px; background: #eee; padding: .22rem .55rem; font-size: .76rem; font-weight: 750; }
.gold { background: #ffea9a; }
.fact-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-block: 1rem; }
.fact-row div { border: 1px solid var(--line); background: #f8f8f6; border-radius: 9px; padding: .65rem; font-size: .83rem; }
.fact-row strong { display: block; font-size: .96rem; overflow-wrap: anywhere; }
.recipe-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .8rem; }
.detail-actions .favorite { margin: 0; }
.rows { list-style: none; padding: 0; margin: .45rem 0 .85rem; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.rows li > div { text-align: right; }
.rows strong { text-align: right; }
.rows small { display: block; color: var(--muted); font-size: .78rem; }
.steps { padding-left: 1.35rem; }
.steps li + li { margin-top: .45rem; }
.notice { border-radius: 9px; background: #fff4c9; border: 1px solid #f1dc8b; margin: .9rem 0; padding: .7rem .85rem; }
.storage, .loading { margin-top: 1rem; }
.loading button { margin-top: .75rem; }
.favorite { margin-top: .2rem; }
.favorite[aria-pressed="true"] svg { fill: var(--gold); }
.practice-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.55fr); align-items: start; }
.order { padding: 1.45rem; border-radius: var(--radius); background: #151515; color: #fff; overflow: hidden; }
.order-label { color: var(--gold); display: flex; gap: .5rem; align-items: center; font-size: .83rem; font-weight: 750; }
.order-label svg { width: 22px; height: 22px; }
.order-quantity { color: var(--gold); margin-top: 1.5rem; font-weight: 800; }
.order h2 { margin-block: .25rem .45rem; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.order p:not(.order-quantity) { color: #ddd; font-size: .85rem; }
.order-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; margin-top: 1.25rem; padding-top: .8rem; border-top: 1px dashed #676767; font-size: .76rem; }
.order-footer a { text-decoration: underline; text-underline-offset: .2em; }
.round-progress { display: grid; grid-template-columns: auto minmax(5rem, 1fr); gap: .8rem; align-items: center; margin-block: 0 1rem; max-width: 32rem; font-size: .86rem; font-weight: 750; }
.pour-form, .serve-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .65rem; align-items: end; margin-top: 1rem; }
.serve-form { grid-template-columns: minmax(0, 1fr) auto; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin: .55rem 0; }
.score > strong { font-size: 2.5rem; line-height: 1.2; font-weight: 880; }
.score small { font-size: 1.1rem; }
.good { color: #22552e; }
.needs { color: #8e3d12; }
.level { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.level p:not(.meta) { flex: 1; }
.level .button { margin-top: .3rem; }
.quiz { max-width: 47rem; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; font-size: .87rem; font-weight: 650; gap: .5rem; }
progress { width: 100%; height: .55rem; accent-color: #927000; vertical-align: top; }
.quiz h2 { margin-block: .9rem; line-height: 1.25; }
.exam-start .button { margin-top: 1rem; }
.exam-start .meta { margin-top: .75rem; }
.courses-banner { background: #171717; color: white; border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; justify-content: space-between; }
.courses-banner p { margin-top: .35rem; color: #ddd; }
.course-all { margin-top: 1rem; }
.choices { display: grid; gap: .55rem; }
.choice { display: flex; justify-content: space-between; gap: .4rem; text-align: left; align-items: center; border: 1px solid #bfbfba; background: #fff; border-radius: 9px; min-height: 45px; padding: .55rem .8rem; font-weight: 650; }
.choice:hover:not(:disabled) { background: #fff3c4; }
.choice.is-correct { background: #e5f4e7; border-color: #327644; }
.choice.is-wrong { background: #fcebe3; border-color: #a35635; }
.choice small { font-size: .76rem; }
.switcher { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.switcher .button { background: #fff; border-color: #c9c9c4; }
.switcher [aria-pressed="true"] { background: #171717; color: var(--gold); border-color: #171717; }
.calculator { max-width: 57rem; }
.form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: .9rem; }
.calculator form > p { margin-top: .7rem; }
.calculator form > .button { margin-top: 1rem; }
.calc-result:not(:empty) { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1rem; }
.cost-inputs { min-width: 0; border: 1px solid var(--line); border-radius: 10px; margin: 1rem 0 0; padding: .75rem; }
.cost-inputs legend { font-weight: 700; font-size: .88rem; padding-inline: .3rem; }
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: .75rem; }
.cost-row > strong { align-self: center; overflow-wrap: anywhere; }
.cost-row + .cost-row { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .7rem; }

@media (max-width: 900px) {
  .header-row { gap: .65rem; }
  #nav a { padding-inline: .55rem; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .header-row { display: block; padding-block: .7rem .45rem; }
  #nav { margin-top: .58rem; justify-content: space-between; gap: .12rem; overflow-x: auto; scrollbar-width: none; }
  #nav a { flex-direction: column; gap: .16rem; padding: .35rem .28rem; font-size: clamp(.6rem, 1.85vw, .79rem); flex: 1; }
  .hero { background-position: center, 65% center; background-image: linear-gradient(90deg,#101010f2,#101010d6 38%,#10101030), url("./assets/barra.jpg"); }
  .hero-content { padding-block: 2.5rem; }
  .view { padding-top: 1rem; }
  .progress-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1rem; gap: .6rem; }
  .progress-strip h2 { grid-column: 1 / -1; }
  .progress-strip div { padding-left: .55rem; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-label { grid-column: 1 / -1; }
  .practice-grid, .level-grid { grid-template-columns: 1fr; }
  .cost-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-row > strong { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .shell { width: calc(100% - 1.15rem); }
  .hero { min-height: 390px; background-position: center, 71% center; background-image: linear-gradient(90deg,#101010f7,#101010d9 39%,#10101057), url("./assets/barra.jpg"); }
  .hero h1 { font-size: clamp(2.88rem, 12vw, 3.6rem); }
  .hero p { max-width: 16rem; font-size: .9rem; }
  .hero-actions { gap: .5rem; }
  .hero-actions .button { padding-inline: .62rem; font-size: .77rem; }
  .section-head { flex-wrap: wrap; }
  .module-grid, .recipe-grid { gap: .58rem; }
  .module-card { padding: .78rem; }
  .module-card h3 { font-size: 1rem; }
  .module-card p { font-size: .81rem; }
  .recipe-copy { padding: .75rem; }
  .recipe-copy strong { font-size: 1rem; }
  .recipe-open img { aspect-ratio: 1.15; }
  .recipe-facts { gap: .35rem; }
  .recipe-facts div { padding: .45rem; }
  .recipe-facts strong { font-size: .86rem; }
  .form-grid, .pour-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid > label:first-child, .pour-form > .button { grid-column: 1 / -1; }
  .serve-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; scroll-behavior: auto !important; transition-duration: 0s !important; }
}
