:root {
  --cream: #f7f2eb;
  --white: #ffffff;
  --charcoal: #1f2328;
  --brown: #3b2417;
  --copper: #c8743d;
  --copper-dark: #a95d2d;
  --sage: #6f887a;
  --sage-dark: #587062;
  --border: #e6ddd2;
  --soft: #fbf8f4;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 14px 30px rgba(40, 25, 16, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  display: block;
}

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

.page-top-bar {
  background: var(--copper);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.9rem;
}

body.nav-open {
  overflow: hidden;
}


.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 2400;
  pointer-events: none;
}

.toast-message {
  min-width: min(320px, calc(100vw - 36px));
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(31, 35, 40, 0.96);
  color: #fff;
  box-shadow: var(--shadow-soft);
  font: 600 0.95rem/1.4 Arial, Helvetica, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-message.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.toast-message.is-success {
  background: rgba(38, 67, 50, 0.97);
  border-color: #cfe3d5;
}

.toast-message.is-error {
  background: rgba(125, 43, 27, 0.97);
  border-color: #f1d0c9;
}

@media (max-width: 700px) {
  .toast-host {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast-message {
    min-width: 0;
    max-width: none;
  }
}
