:root {
  --ivory: rgba(255, 250, 235, 0.84);
  --gold: #b38a47;
  --brown: #593d2b;
  --deep-brown: #34231a;
  --paper: #fffaf0;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #4a3326; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--deep-brown);
  font-family: Georgia, "Times New Roman", serif;
}

.home-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #4a3326;
}

.tea-room-entrance {
  position: relative;
  width: min(100%, 1672px);
  line-height: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(31, 17, 10, 0.38);
}

.entrance-image {
  display: block;
  width: 100%;
  height: auto;
}

.room-navigation {
  position: absolute;
  right: 0;
  bottom: clamp(1rem, 4vw, 4.2rem);
  left: 0;
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  padding: 0 1rem;
  line-height: 1.2;
}

.floating-button {
  display: inline-flex;
  min-width: clamp(7.6rem, 13.5vw, 11.25rem);
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 0.35rem;
  background: var(--ivory);
  box-shadow: 0 5px 10px rgba(62, 39, 24, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: var(--brown);
  font-size: clamp(0.88rem, 1.7vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.floating-button:hover,
.floating-button:focus-visible {
  background: rgba(255, 252, 242, 0.94);
  box-shadow: 0 8px 15px rgba(62, 39, 24, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translateY(-3px);
}

.floating-button:active {
  box-shadow: 0 2px 5px rgba(62, 39, 24, 0.28), inset 0 1px 3px rgba(92, 62, 38, 0.18);
  transform: translateY(1px);
}

.floating-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.room-page {
  min-height: 100vh;
  padding: clamp(1.5rem, 5vw, 4rem) 1rem;
  background: linear-gradient(rgba(255, 250, 240, 0.91), rgba(255, 250, 240, 0.91)), url("../images/index.png") center / cover fixed;
}

.room-content {
  width: min(100%, 62rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(179, 138, 71, 0.7);
  background: rgba(255, 253, 246, 0.91);
  box-shadow: 0 12px 30px rgba(62, 39, 24, 0.22);
  text-align: center;
}

.room-kicker { margin: 0 0 0.6rem; color: #8b6631; font-size: 0.85rem; font-style: italic; letter-spacing: 0.12em; text-transform: uppercase; }
.room-title { margin: 0; color: var(--brown); font-size: clamp(2rem, 6vw, 3.8rem); font-weight: 400; }
.ornament { width: min(12rem, 65%); height: 1px; margin: 1.2rem auto 2rem; border: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.empty-card { max-width: 38rem; margin: 0 auto 2rem; padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid rgba(179, 138, 71, 0.55); background: rgba(255, 250, 239, 0.75); }
.empty-card h2 { margin: 0 0 0.75rem; color: var(--brown); font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 400; }
.empty-card p { margin: 0; font-size: 1.05rem; line-height: 1.8; }
.back-link { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; padding: 0.6rem 1.2rem; border: 1px solid var(--gold); border-radius: 0.3rem; background: var(--ivory); color: var(--brown); font-weight: 700; text-decoration: none; transition: transform 150ms ease, background-color 150ms ease; }
.back-link:hover, .back-link:focus-visible { background: #fffdf7; transform: translateY(-2px); }
.back-link:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }

@media (max-width: 560px) {
  .room-navigation { bottom: clamp(0.55rem, 3vw, 1.1rem); gap: 0.35rem; padding: 0 0.5rem; }
  .floating-button { min-width: 0; min-height: 2.65rem; flex: 1 1 0; padding: 0.45rem 0.3rem; font-size: clamp(0.7rem, 3.1vw, 0.9rem); }
  .room-page { background-attachment: scroll; }
}
