/* Wyoming Sunset - wyoming-sunset.css */
/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050608;
  color: #f5f5f5;
  display: flex;
}

/* Page layout */
.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

.site-header {
  padding: 0.5rem 1.25rem;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb347;
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Carousel (top 2/3 of index page) */
.carousel {
  flex: 2;
  position: relative;
  background-color: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  touch-action: pan-y;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000000;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.carousel-indicator {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #e0e0e0;
  font-size: 0.85rem;
  pointer-events: none;
}

.carousel-hint {
  opacity: 0.85;
}

/* Notice area (bottom 1/3 of index page) */
.notice-area {
  flex: 1;
  padding: 1.25rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: radial-gradient(circle at top, #111118 0%, #050608 55%, #020305 100%);
}

.notice-text {
  max-width: 40rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e8e8e8;
}

.primary-button {
  margin-top: 1.5rem;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #ffb347;
  background: linear-gradient(135deg, #ffb347, #ff7747);
  color: #111111;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8),
    0 16px 28px rgba(0, 0, 0, 0.65);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background 0.2s ease-out,
    border-color 0.2s ease-out;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9),
    0 20px 32px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, #ffd080, #ff814f);
  border-color: #ffd080;
}

.primary-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9),
    0 12px 18px rgba(0, 0, 0, 0.75);
  background: linear-gradient(135deg, #f2a747, #f26235);
}

.primary-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Menu page layout */
.menu-main {
  padding: 1.25rem 1.75rem 2rem;
  gap: 1.5rem;
}

.menu-intro {
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
}

.menu-heading {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffb347;
}

.menu-tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.menu-layout {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb347;
}

.topic-panel {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, #171722 0%, #050608 55%, #020305 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7);
}

.topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.topic-item {
  margin: 0;
  padding: 0;
}

.topic-button {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid #3a3a45;
  background: linear-gradient(135deg, #15151e, #10101a);
  color: #eaeaea;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out;
}

.topic-button:hover {
  background: linear-gradient(135deg, #222233, #181824);
  border-color: #ffb347;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.topic-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.topic-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.topic-button.active {
  border-color: #ffb347;
  background: linear-gradient(135deg, #ffb347, #ff7747);
  color: #111111;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.75);
}

.selection-panel {
  padding: 1rem 1.25rem 1.5rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, #151522 0%, #050608 55%, #020305 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7);
}

.selection-header {
  margin-bottom: 1rem;
}

.selection-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffca7a;
}

.selection-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #d0d0d0;
}

.selection-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.selection-item {
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #111119, #060611);
  border: 1px solid #2a2a36;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.selection-link {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #f4f4f4;
  transition:
    background 0.16s ease-out,
    color 0.16s ease-out,
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out,
    border-color 0.16s ease-out;
}

.selection-link:hover {
  background: linear-gradient(135deg, #ffb347, #ff7747);
  color: #111111;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

.selection-link:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.85);
}

.selection-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 1rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .notice-area {
    padding: 1rem 1.25rem 1.25rem;
  }

  .primary-button {
    width: 100%;
    max-width: 18rem;
  }

  .carousel-indicator {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .menu-main {
    padding: 1rem 1.25rem 1.5rem;
  }

  .menu-layout {
    gap: 1.25rem;
  }

  .topic-panel,
  .selection-panel {
    padding: 0.9rem 1rem;
  }
}

@media (min-width: 900px) {
  .menu-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .topic-panel {
    flex: 1;
  }

  .selection-panel {
    flex: 1.4;
  }
}

@media (min-width: 1200px) {
  .notice-text {
    font-size: 1rem;
  }

  .primary-button {
    font-size: 1.05rem;
  }

  .menu-heading {
    font-size: 1.6rem;
  }

  .selection-title {
    font-size: 1.2rem;
  }
}


/* Selection overlay menu (centered topic selections) */
.selection-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.2s ease-out;
}

.selection-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.selection-dialog {
  width: min(90vw, 640px);
  max-height: 80vh;
  padding: 1.25rem 1.5rem 1rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top, #181828 0%, #050608 55%, #020305 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.selection-dialog-header {
  margin-bottom: 0.75rem;
}

.selection-dialog-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.back-button {
  padding: 0.55rem 1.6rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid #3a3a45;
  background: linear-gradient(135deg, #15151e, #10101a);
  color: #f0f0f0;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out;
}

.back-button:hover {
  background: linear-gradient(135deg, #222233, #181824);
  border-color: #ffb347;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
}

.back-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.back-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .selection-dialog {
    width: 94vw;
    max-height: 85vh;
    padding: 1.1rem 1.1rem 0.9rem;
  }
}


/* Topic boxes with name and description */
.topic-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.topic-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.topic-description {
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.85;
}


/* Force topics into three columns */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
