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

html, body {
  overscroll-behavior: none;
}

.menu-card.card {
  overscroll-behavior: contain;
}

:root {
   /* --- Colors (from brief, do not alter) --- */
  --color-primary: #EFE7D2;
  --color-secondary: #C9A86A;

  --color-text: #EFE7D2;
  --color-text-muted: #6b7280;
  --color-text-light: #EFE7D2;

  --color-bg: #0A0B0A;
  --color-bg-muted: #f3f4f6;
  --color-border: #EFE7D230;

  /* --- Typography (from brief) --- */
  --font-sans: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Forum", serif;

  /* --- Derived surface tones (kept within the same near-black/gold family) --- */
  --surface-1: #111210;          /* card base just above pure bg */
  --surface-2: #16170f14;        /* unused placeholder guard */
  --surface-raised: #15160F;     /* item card surface */
  --surface-raised-hover: #1B1C13;
  --surface-sunken: #07080660;   /* recessed notes/builder boxes */
  --gold-dim: #EFE7D2;
  --gold-soft: #EFE7D2;
  --text-dim: #EFE7D2;
  --text-faint: #EFE7D2;
  --shadow-color: #00000080;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

}


* {
  margin: 0;
  padding: 0;
}

/* Prevent font inflation on mobile */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

/* Remove list styles on ul, ol that have a class */
ul[class],
ol[class] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Balance headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  font-family: var(--font-serif);
}

/* Avoid text overflow on paragraphs and list items */
p,
li {
  text-wrap: pretty;
}

/* Responsive media */
img,
video,
svg,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

/* Prevent images from distorting */
img,
picture {
  height: auto;
}

/* Inherit fonts in inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove built-in form typography styles */
textarea {
  resize: vertical;
  /* or: none | horizontal */
}

/* Remove border and outline on fieldset */
fieldset {
  border: none;
}

/* Make sure textareas without rows are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* Anchor tags */
a {
  color: var(--color-primary);
  text-decoration-skip-ink: auto;
  display: inline-block;
  text-decoration: none;
}

/* Abbreviations */
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* Code, pre, kbd */
code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-6);
}

/* Summary / Details */
summary {
  cursor: pointer;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}


input,
textarea,
select {
    font-size: 16px !important;
}