/* ===== Minimal Warm-Dark Theme (Food-ish) =====
   Palette source (simplified):
   50 #FFF6EC  100 #FFEAD3  200 #FFD1A6  400 #FF8332
   500 #FF600A 600 #F54301  900 #81220D  950 #480E04
*/

:root {
  /* Core tokens */
  --bg:           #1a0b06;   /* warm near-black */
  --surface:      #2a1109;   /* slightly lighter than bg */
  --text:         #fff4ea;   /* readable on dark */
  --text-muted:   #ffd7b5;   /* softer text */

  --link:         #ff8332;   /* lively orange */
  --link-hover:   #ff600a;   /* deeper on hover */

  --primary:      #ff600a;   /* buttons/ctas */
  --primary-hover:#f54301;

  --border:       #5a190c;   /* subtle warm border */
  --focus:        #ffd1a6;   /* focus ring */

  --selection-bg: #81220d;   /* text selection */
  --selection-fg: #fff4ea;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--selection-bg); color: var(--selection-fg); }

/* Containers just for spacing (not a component lib) */
.container { max-width: 720px; margin: 0 auto; padding: 16px; }

/* Headings & small muted text */
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
small, .muted { color: var(--text-muted); }

/* Links */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent);
}
a:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Buttons (one style, minimal) */
button {
  appearance: none;
  background: var(--primary);
  color: #fff7f2;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  padding: .6rem .9rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--primary-hover); }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Inputs (text + textarea) */
input[type="text"], textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .6rem .8rem;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 70%, transparent); }
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Simple divider & table to see borders */
hr { border: 0; height: 1px; background: var(--border); margin: 16px 0; }

table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--border); padding: .5rem; }
th { background: var(--surface); text-align: left; }
