:root {
  --sand: #f3efe4;
  --ink: #14271f;
  --orange: #e95e31;
  --sun: #f2b84b;
  --paper: #fffdf7;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sand); }
body { margin: 0; color: var(--ink); background: var(--sand); font-family: "Geist", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { min-height: 88px; padding: 18px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 49px; aspect-ratio: 1; display: grid; place-items: center; background: var(--orange); color: var(--paper); border-radius: 50%; font-family: "Anton", sans-serif; font-size: 20px; letter-spacing: .04em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.brand-copy strong { font-family: "Anton", sans-serif; font-size: 20px; font-weight: 400; letter-spacing: .03em; }
.brand-copy small { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .22em; }
.header-link { font-size: 14px; font-weight: 700; text-underline-offset: 5px; }

.hero { min-height: 620px; padding: clamp(64px, 10vw, 128px) clamp(20px, 5vw, 72px); display: flex; align-items: flex-end; justify-content: space-between; gap: 72px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: linear-gradient(135deg, transparent 72%, color-mix(in srgb, var(--sun) 28%, transparent)); }
.hero-copy { max-width: 860px; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: "Anton", sans-serif; text-transform: uppercase; line-height: .93; letter-spacing: -.01em; }
h1 { font-size: clamp(64px, 11vw, 150px); }
h1 span { color: var(--orange); }
.hero-intro { max-width: 620px; margin: 30px 0 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.5; }
.hero-button { display: inline-flex; align-items: center; gap: 28px; margin-top: 34px; padding: 14px 18px; background: var(--ink); color: var(--paper); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; }
.hero-note { width: min(100%, 270px); flex: 0 0 auto; }
.sun-rule { display: block; width: 100%; height: 7px; margin-bottom: 22px; background: var(--sun); }
.hero-note > p { margin: 0; font-weight: 600; }
.hero-note dl { display: flex; gap: 32px; margin: 30px 0 0; }
.hero-note dl div { display: flex; flex-direction: column; }
.hero-note dt { font-family: "Anton", sans-serif; font-size: 38px; line-height: 1; }
.hero-note dd { margin: 7px 0 0; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.directory { padding: 90px clamp(20px, 5vw, 72px) 110px; background: var(--paper); }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
h2 { max-width: 800px; font-size: clamp(48px, 7vw, 94px); }
.result-count { margin: 0 0 7px; flex: 0 0 auto; font-size: 14px; font-weight: 700; }
.filters { display: flex; gap: 12px; margin: 48px 0 34px; }
.search-field { min-width: 0; flex: 1; position: relative; }
.search-field svg { width: 20px; height: 20px; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 2; }
.search-field input, .city-field select { width: 100%; height: 56px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 999px; background: transparent; color: var(--ink); }
.search-field input { padding: 0 22px 0 52px; }
.city-field { min-width: 230px; }
.city-field select { padding: 0 45px 0 20px; cursor: pointer; }
.brewery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-left: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.brewery-card { min-width: 0; min-height: 250px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); text-decoration: none; transition: color .2s, background .2s; }
.brewery-card:hover { background: var(--ink); color: var(--paper); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-city { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.card-arrow { font-size: 22px; line-height: 1; }
.brewery-card h3 { max-width: 390px; font-size: clamp(21px, 2.5vw, 31px); line-height: 1.12; letter-spacing: -.025em; }
.card-address { margin: 10px 0 0; font-size: 14px; opacity: .72; }
.card-license { margin: 22px 0 0; font-family: monospace; font-size: 11px; opacity: .62; }
.empty-state { padding: 72px 24px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); text-align: center; }
.empty-state h3 { font-size: 28px; font-weight: 700; }
.empty-state p { margin: 8px 0 22px; }
.empty-state button { padding: 12px 18px; border: 0; border-radius: 999px; background: var(--orange); color: var(--paper); cursor: pointer; font-weight: 700; }

.about { padding: 100px clamp(20px, 5vw, 72px); display: grid; grid-template-columns: 1fr 2fr; gap: 48px; background: var(--sun); }
.about .eyebrow { margin: 8px 0 0; }
.about h2 { font-size: clamp(48px, 6vw, 82px); }
.about div p { max-width: 780px; margin: 28px 0 0; font-size: clamp(17px, 2vw, 21px); }
footer { padding: 26px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: var(--paper); font-size: 13px; }
footer p { margin: 0; }
footer a { text-underline-offset: 4px; }

@media (max-width: 900px) {
  .hero { min-height: auto; flex-direction: column; align-items: flex-start; }
  .hero-note { width: 100%; max-width: 520px; }
  .brewery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header { min-height: 76px; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 22px; }
  .hero { padding-top: 70px; padding-bottom: 70px; gap: 64px; }
  .hero-intro { margin-top: 24px; }
  .directory { padding-top: 70px; padding-bottom: 80px; }
  .directory-heading { align-items: flex-start; flex-direction: column; }
  .filters { flex-direction: column; margin-top: 34px; }
  .city-field { min-width: 0; }
  .brewery-grid { grid-template-columns: 1fr; }
  .brewery-card { min-height: 220px; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
