:root {
  --dark-bg: #222831;         
  --text-light: #EEEEEE;      
  --highlight: #00ADB5;        
  --content-width: 1100px;
  --section-bg: #393E46;      
  font-size: 16px; /* 기본 크기 설정 */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 1rem;
  font-family: 'Pretendard', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--dark-bg);
  color: var(--text-light);
  transition: background-color 2s ease-in-out, color 1s ease-in-out;
}

body.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

body.loaded {
  opacity: 1;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  padding: 0 2rem;
  background-color: var(--dark-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.navbar.transparent {
  background-color: rgba(16, 24, 32, 0.3);
  backdrop-filter: blur(0.5rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 3.5rem;
  width: auto;
  display: block;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-link.active {
  color: var(--highlight);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 4rem;
    right: 0;
    flex-direction: column;
    background-color: var(--dark-bg);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.open {
    max-height: 300px;
  }
}

section {
  padding: 30px 30px;
  min-height: 100vh;
  max-width: var(--content-width);
  margin: 0px auto;
  background-color: var(--section-bg);
  box-sizing: border-box;
  border-radius: 0px;
}

h1 { font-size: 2.5rem; margin: 1rem 0; font-weight: 700; }
h2 { font-size: 2rem; margin: 1.5rem 0; font-weight: 600; }
h3 { font-size: 1.5rem; margin: 0.2rem; font-weight: 500; }
p  { font-size: 1rem; margin: 0; line-height: 1.6; }

.container {
  margin: 2rem auto;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
  box-sizing: border-box;
  border-radius: 1rem;
  box-shadow: 0 0 1 rgba(0, 0, 0, 0.4);
  background-color: #fff;
  grid-template-columns: repeat(4, 1fr);
}
.container-title {
  grid-column: 1 / -1; /* 전체 너비 사용 */
  font-size: 1.2rem; /* 원하는 폰트 크기 설정 */
  color: var(--dark-bg); /* 또는 원하는 색상 */
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
}

.container.two-columns { grid-template-columns: repeat(2, 1fr); }
.container.one-column { grid-template-columns: 1fr; justify-items: center; }

.side-image, .beer-slider { text-align: center; flex: 1 1 48%; max-width: 100%; }

.side-image figcaption { font-size: 1rem; color: #000; font-weight: 800; }
.side-image img, .beer-slider img { width: 100%; height: auto; border-radius: 8px; }

.beer-slider { max-width: none; }

.beer-slider[data-beer-label]:after,
.beer-reveal[data-beer-label]:after {
  content: attr(data-beer-label);
  position: absolute;
  top: 1rem;
  line-height: 1;
  padding: 0.5em 1em;
  border-radius: 0.125rem;
  background: rgba(0, 0, 0, 0.75);
  font-size: 1rem;
}

@media (min-width: 1024px) {
  :root { font-size: 18px; }
}

@media (max-width: 768px) {
  :root { font-size: 14px; }
}

@media (max-width: 480px) {
  :root { font-size: 12px; }
}