/* tycho-theme.css */
:root{
  --bg: #232323;         /* dark red */
  --fg: #f5e9e9;
  --muted: #c9b1b1;
  --accent: #ff6a6a;
  --card: #2b0000;
  --border: #5a2a2a;
  --radius: 16px;
  --pad: 12px;
  --font: -apple-system, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

html, html body{
  height:100%;
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--pad) * 1.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Make the card clip its rounded corners */
.card{
  overflow: hidden;            /* clip inner radii/shadows */
}

/* Ensure form controls size within the card’s padding */
.card input,
.card select,
.card textarea,
.card button{
  width: 100%;
  box-sizing: border-box;      /* include padding + border in the 100% */
  display: block;              /* no inline overflow weirdness */
}

/* Optional: constrain overall card width and center it */
.card{
  max-width: 720px;
  margin: 24px auto;
  padding: 16px;               /* you can keep your existing padding value */
}


h1,h2,h3{ color: var(--fg); margin: .2rem 0 1rem; }

input,select,button,textarea{
  font: inherit;
  color: var(--fg);
  background: #3a0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: none;
}

input::placeholder{ color: var(--muted); }

button{
  background: var(--accent);
  color: #1b0000;
  border: none;
  cursor: pointer;
}
button:disabled{ opacity:.55; cursor: default; }

label{
  display:block;
  margin: 1rem 0 .4rem;
  /* fallback: solid fg */
  color: var(--fg);
  font-weight: 600;
}

/* 2) Improve placeholder contrast too */
input::placeholder,
textarea::placeholder{
  color: rgba(245,233,233,0.55); /* was too gray */
}

/* (nice-to-have) lighten control borders a touch for readability */
input, select, textarea{
  border-color: #8a5b5b;
}

/* Nice scrollbars (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #5a2a2a; border-radius: 8px; }
::-webkit-scrollbar-track { background: #2b0000; }



