:root{
  --amber: #c9821a;
  --amber-dark: #96591a;
  --ink: #2a1c10;
  --paper: #fbf3e5;
  --paper-2: #f3e6cd;
  --card-shadow: 0 6px 20px rgba(42,28,16,0.18);
  --radius: 14px;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(201,130,26,0.10), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(150,89,26,0.12), transparent 45%);
}

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header{
  background: linear-gradient(135deg, #2a1c10, #4a2f14 60%, #6b3f16);
  color: var(--paper);
  border-bottom: 6px solid var(--amber);
}
.header-inner{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  padding: 40px 24px 28px;
  flex-wrap: wrap;
}
.brand-kicker{
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--amber);
  font-weight: 700;
}
.brand h1{
  margin: 6px 0 8px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}
.brand-sub{ margin:0; max-width: 520px; opacity:.85; font-size:15px; }

.btn{
  border:none; border-radius: 999px; padding: 12px 20px;
  font-size: 14px; font-weight:600; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--amber); color:#241505; box-shadow: var(--card-shadow); }
.btn-primary:hover{ background:#dd9427; }

/* ---------- gallery grid ---------- */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  padding: 36px 0 60px;
}
.card{
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--card-shadow);
  cursor:pointer;
  display:flex; flex-direction:column;
  border: 1px solid rgba(42,28,16,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 12px 28px rgba(42,28,16,0.25); }
.card-image{ position:relative; aspect-ratio: 4/5; overflow:hidden; background:#ddd0b4; }
.card-image img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-number{
  position:absolute; top:10px; left:10px;
  background: var(--amber); color:#241505;
  font-weight:800; font-size:13px;
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.card-body{ padding: 16px 18px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-body h3{ margin:0; font-size:18px; line-height:1.25; }
.card-artist{ margin:0; font-size:13px; color:#6b4a24; font-weight:600; }
.card-year{ margin:0; font-size:12.5px; color:#8a6a3c; font-weight:700; }
.card-hook{ margin: 6px 0 0; font-size:13.5px; color:#463421; line-height:1.4; flex:1; }
.card-cta{ margin-top:10px; font-size:12.5px; font-weight:700; color: var(--amber-dark); text-transform:uppercase; letter-spacing:.04em; }

/* ---------- footer ---------- */
.site-footer{ background:#241505; color: rgba(251,243,229,0.75); padding: 22px 0; font-size:13px; }

/* ---------- modal ---------- */
.modal{ position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal[hidden]{ display:none; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(20,12,5,0.72); }
.modal-panel{
  position:relative; background: var(--paper); border-radius: 18px;
  max-width: 980px; width:100%; max-height: 90vh; overflow:auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.modal-close{
  position:absolute; top:12px; right:12px; z-index:2;
  width:36px; height:36px; border-radius:50%; border:none;
  background: rgba(0,0,0,0.55); color:#fff; font-size:16px; cursor:pointer;
}
.modal-body{ display:grid; grid-template-columns: 1.1fr 1.3fr; gap:0; }
.modal-image{ background:#111; }
.modal-image img{ width:100%; height:100%; object-fit:contain; display:block; max-height:90vh; }
.modal-text{ padding: 34px 34px 40px; }
.badge{
  display:inline-block; background: var(--amber); color:#241505;
  font-weight:800; font-size:12px; padding:4px 10px; border-radius:999px; margin-bottom:10px;
}
.badge-year{
  background: transparent; color: var(--amber-dark);
  border: 1.5px solid var(--amber-dark); margin-left:8px;
}
.badge-year[hidden]{ display:none; }
.modal-text h2{ margin: 0 0 6px; font-size: clamp(22px,3vw,30px); line-height:1.15; }
.modal-text .meta{ margin:0 0 16px; font-size:13px; color:#6b4a24; }
.modal-text .hook{ font-weight:700; font-size:16px; margin: 0 0 14px; }
.modal-text p{ line-height:1.6; font-size:15px; margin: 0 0 14px; }
.beer-block{ background: var(--paper-2); border-radius:12px; padding:16px 18px; margin: 10px 0 20px; }
.beer-block h3{ margin:0 0 8px; font-size:15px; }
.beer-block p{ margin:0; }

@media (max-width: 760px){
  .modal-body{ grid-template-columns: 1fr; }
  .modal-image img{ max-height: 40vh; }
}
