/* ── common.css — Shared FigmaBench base styles ── */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Figma Logo Colors */
  --figma-blue:    #1ABCFE;
  --figma-green:   #0ACF83;
  --figma-orange:  #FF7262;
  --figma-red:     #F24E1E;
  --figma-violet:  #A259FF;

  /* Canvas */
  --bg:            #1E1E1E;
  --surface:       #2C2C2C;
  --surface-2:     #383838;
  --border:        #444444;

  /* Text */
  --text:          #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted:    #7A7A7A;

  /* Semantic */
  --accent:        var(--figma-violet);
  --accent-dim:    rgba(162, 89, 255, 0.15);
  --success:       var(--figma-green);
  --warning:       var(--figma-orange);
  --danger:        var(--figma-red);
  --info:          var(--figma-blue);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --content-width: 720px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* Typography */
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; color: #fff; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; color: #fff; margin-top: 2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-top: 2rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text); }
strong { color: #fff; font-weight: 600; }
em { color: var(--text-secondary); font-style: italic; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
a:hover { border-bottom-color: var(--accent); }
code { font-family: var(--mono); font-size: 0.875em; background: var(--surface); color: var(--success); padding: 0.15em 0.4em; border-radius: 3px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; overflow-x: auto; margin: 1rem 0 1.5rem; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; color: var(--text-secondary); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { color: var(--text); }

/* Lists */
ul, ol { margin: 0.75rem 0 1.25rem 1.5rem; color: var(--text); }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--text-muted); }

/* Standalone container */
.standalone-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
