:root {
  --bg: #f6f2ea;
  --bg-deep: #1f2523;
  --ink: #202624;
  --muted: #68706a;
  --panel: #fffaf0;
  --line: #ded2bf;
  --accent: #bc3f32;
  --accent-dark: #872c24;
  --teal: #1e6b66;
  --gold: #c48a2c;
  --shadow: 0 18px 45px rgba(37, 30, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(30, 107, 102, 0.08) 0 25%, transparent 25% 50%, rgba(188, 63, 50, 0.07) 50% 75%, transparent 75%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 42%, #efe5d6 100%);
  background-size: 34px 34px, auto;
}

body::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--teal), var(--bg-deep));
}

h1,
h2,
h3,
h4,
p {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  width: min(1120px, calc(100% - 32px));
  margin-top: 34px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.95;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 6px;
  margin-top: 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

h2 {
  width: min(1120px, calc(100% - 32px));
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
}

h4,
body > p {
  width: min(1120px, calc(100% - 32px));
  color: var(--muted);
}

body > table {
  display: none;
}

a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

body > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 6px 0 6px 16px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 8px 22px rgba(37, 30, 20, 0.08);
}

body > a:first-of-type {
  margin-left: max(16px, calc((100vw - 1120px) / 2));
}

body > a:hover {
  color: #fffaf0;
  border-color: var(--accent);
  background: var(--accent);
  text-decoration: none;
}

.page-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 22px;
}

.page-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 8px 22px rgba(37, 30, 20, 0.08);
}

.page-menu a:hover {
  color: #fffaf0;
  border-color: var(--accent);
  background: var(--accent);
  text-decoration: none;
}

.ball-grid,
.bag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.ball-item,
.bag-item {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  border: 1px solid rgba(32, 38, 36, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 240, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ball-item::before,
.bag-item::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--teal));
}

.ball-item:hover,
.bag-item:hover {
  transform: translateY(-4px);
  border-color: rgba(188, 63, 50, 0.38);
  box-shadow: 0 24px 58px rgba(37, 30, 20, 0.18);
}

.ball-item a,
.bag-item a {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 252px;
  grid-template-rows: 1fr auto;
  padding: 18px 16px 16px;
  color: var(--ink);
}

.ball-item a:hover,
.bag-item a:hover {
  text-decoration: none;
}

.ball-item img,
.bag-item img {
  width: 100%;
  height: 158px;
  object-fit: contain;
  align-self: center;
  filter: drop-shadow(0 18px 18px rgba(32, 38, 36, 0.18));
  transition: transform 180ms ease;
}

.ball-item:hover img,
.bag-item:hover img {
  transform: scale(1.04) rotate(-1deg);
}

.ball-item p,
.bag-item p {
  width: auto;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

body > p:has(strong) {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) 1fr;
  gap: 12px;
  width: min(680px, calc(100% - 32px));
  margin-top: 0;
  margin-bottom: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.78);
}

body > p:has(strong):first-of-type {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

body > p:has(strong):last-of-type {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
}

strong {
  color: var(--teal);
}

.brand-section {
  width: min(780px, calc(100% - 32px));
  margin: 18px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.84);
  box-shadow: var(--shadow);
}

.brand-section h2 {
  width: auto;
  margin: 0 0 12px;
  color: var(--accent-dark);
}

.brand-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.navigation {
  width: min(780px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.back-home-button,
.sold-balls-button,
.back-tour-button,
#home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(32, 38, 36, 0.16);
  border-radius: 8px;
  color: #fffaf0;
  background: var(--bg-deep);
  box-shadow: 0 12px 28px rgba(37, 30, 20, 0.16);
}

.back-home-button,
.sold-balls-button,
.back-tour-button {
  position: fixed;
  top: 16px;
  z-index: 10;
}

.back-home-button {
  left: 16px;
}

.sold-balls-button {
  right: 16px;
}

.back-home-button a,
.sold-balls-button a,
.back-tour-button a {
  color: inherit;
}

.back-home-button:hover,
.sold-balls-button:hover,
.back-tour-button:hover,
#home-link:hover {
  color: #fffaf0;
  background: var(--accent);
  text-decoration: none;
}

.sold-message {
  width: min(680px, calc(100% - 32px));
  margin: 18px auto;
}

@media (max-width: 680px) {
  body::before {
    height: 6px;
  }

  h1 {
    margin-top: 28px;
  }

  body > a,
  body > a:first-of-type {
    width: calc(100% - 32px);
    margin-left: 16px;
    justify-content: center;
  }

  .page-menu {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ball-grid,
  .bag-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
  }

  .ball-item,
  .bag-item,
  .ball-item a,
  .bag-item a {
    min-height: 226px;
  }

  .ball-item img,
  .bag-item img {
    height: 132px;
  }

  body > p:has(strong) {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .back-home-button,
  .sold-balls-button,
  .back-tour-button {
    position: static;
    width: calc(100% - 32px);
    margin: 12px 16px 0;
  }
}
