:root {
  --bg: #0f172a;
  --header: #020617;
  --accent: #38bdf8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --header-height: clamp(4.5rem, 8vw, 6rem);
  --page-gutter: clamp(1rem, 4vw, 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Michroma", Arial, sans-serif;
}

body {
  background-color: var(--bg);
  min-width: 320px;
  overflow-x: clip;
  color: var(--text);
}

main {
  width: 100%;
  max-width: 1440px;

  margin: 0 auto;

  padding:
  calc(var(--header-height) + 1rem)
  var(--page-gutter)
  3rem;
}

main > h1,
main > h2,
main > h3 {
  margin-bottom: 1.25rem;
}

.placeholder {
  border: 2px dashed #1e293b;
  border-radius: 12px;
  padding: 4rem;
  text-align: center;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

#toast-container {
position: fixed;
top: 20px;
right: 20px;
display: flex;
flex-direction: column;
gap: 10px;
z-index: 9999;
pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: white;
  background: #1e293b;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);

  opacity: 0;
  transform: translateY(-10px);
  transition: 0.2s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: #16a34a; }
.toast.error   { background: #dc2626; }
.toast.info    { background: #2563eb; }

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

h1 {
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.9rem);
}

@media (max-width: 720px) {
  :root {
    --header-height: 0px;
  }

  main {
    padding: 1.25rem var(--page-gutter) 2rem;
  }

  form {
    margin: 1rem auto;
    padding: clamp(1rem, 5vw, 1.5rem);
  }

  .placeholder {
    padding: clamp(2rem, 12vw, 4rem) 1rem;
  }

  #toast-container {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
  }

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