@font-face {
  font-family: 'CrackerWinter';
  src: url('assets/CrackerWinter.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --coffee: #3d2a1a;
  --mocha: #54311e;
  --cream: #fffaf2;
  --caramel: #fcd3a3;
  --latte: #fff0d5;
  --shadow: rgba(0, 0, 0, 0.05);
  --font-body: 'Quicksand', sans-serif;
  --font-title: 'CrackerWinter', cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.logo-img {
  width: 100px;
  transition: opacity 0.2s ease;
}

.logo-img.hover {
  content: url('assets/cc-logo-s.svg');
  /* alternate logo */
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--coffee);
  line-height: 1.6;
}

a {
  color: var(--coffee);
  text-decoration: none;
  font-weight: 600;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

/* --- Header --- */
header {
  background-color: #fff;
  border-bottom: 1px solid var(--latte);
  box-shadow: 0 2px 6px var(--shadow);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-small {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--mocha);
}

.nav-right ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-right a {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-right a:hover {
  background-color: var(--latte);
}

.nav-right a.button {
  background-color: var(--latte);
  border: 2px solid var(--coffee);
  padding: 0.4rem 0.9rem;
}

.hero {
  background: var(--caramel);
  text-align: center;
  padding: 4rem 1rem;
  border-bottom: 1px solid var(--latte);
}

.logo-main {
  width: 250px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  /*box-shadow: 0 4px 8px var(--shadow);*/
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-block;
  background-color: var(--latte);
  border: 2px solid var(--coffee);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
}

.section {
  padding: 4rem 1rem;
}

.alt-bg {
  background-color: var(--latte);
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-title);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  background: #fff;
  border: 2px dashed var(--caramel);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 2px 4px 10px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: rotate(-1deg) scale(1.02);
  box-shadow: 4px 8px 20px var(--shadow);
}

.game-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

#contact a {
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 600px) {
  .brand-name {
    display: none;
  }

  .logo-img {
    width: 72px;
    height: auto;
  }
}