/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --color-text-primary: #3a2a24;
  --color-text-muted: #6f5b4f;
  --color-text-strong: #111111;
  --color-text-inverse: #ffffff;
  --color-text-subtle: #8a8179;
  --color-text-disabled: #5f5750;

  --color-surface-canvas: #fffdf9;
  --color-surface-canvas-warm: #f3e5d6;
  --color-surface-canvas-strong: #e7d3c2;
  --color-surface-panel: #fffdf8;
  --color-surface-card: #ffffff;
  --color-surface-muted: #f3f1ee;
  --color-surface-soft: #f6eee6;
  --color-surface-track: #ebe7e1;
  --color-surface-band: #ebe4dc;
  --color-surface-band-clear: rgba(242, 240, 236, 0);
  --color-surface-band-mid: rgba(235, 228, 220, 0.6);
  --color-surface-dark: #111111;
  --color-surface-deep: #222222;
  --color-surface-disabled: #d0c7bf;

  --color-border-subtle: #ede8e2;
  --color-border-soft: #e1dbd4;
  --color-border-muted: #cec7c0;
  --color-border-strong: #b9b2ab;

  --color-accent-primary: #9b4f2b;
  --color-accent-secondary: #c06a3b;
  --color-accent-soft: #f4d6c2;

  --color-success: #2f7d4f;
  --color-success-strong: #1f5b3a;
  --color-success-soft: #f6fbf8;
  --color-success-muted: #e7f3ec;
  --color-warning: #b98f2a;
  --color-warning-soft: #fdf8f2;
  --color-danger: #b13b33;
  --color-danger-soft: #fff1f0;
  --color-alert-surface: #fffaf4;
  --color-alert-border: #e3dbd1;
  --color-alert-text: #7a6254;

  --color-wood-base: #6a4a3a;
  --color-wood-mid: #5a3e32;
  --color-wood-dark: #4a322a;
  --color-wood-highlight: #8a5a48;
  --color-wood-shadow: #3a2a24;
  --color-wood-surface-1: #8b5a4a;
  --color-wood-surface-2: #7a4a3a;
  --color-wood-surface-3: #6a3a2a;

  --color-border-success: #cfe2d6;

  --color-neutral-300: #cccccc;
  --color-battle-border: #b71c1c;
  --color-battle-primary: #b71c1c;
  --color-battle-primary-strong: #991717;
  --color-battle-soft: #fde9e8;
  --color-battle-soft-strong: #f9d7d6;
  --color-battle-text: #8a1c1c;
  --color-highlight-surface: #fff3e0;
  --color-highlight-surface-strong: #ffe0b2;
  --color-highlight-border: #ffb74d;
  --color-highlight-text: #e65100;
  --color-highlight-strong: #b55a1b;
  --color-highlight-line: rgba(230, 81, 0, 0.2);

  --color-stone-1-light: #8a9a80;
  --color-stone-1-dark: #5a6a52;
  --color-stone-2-light: #7a8a70;
  --color-stone-2-dark: #4a5a42;
  --color-stone-3-light: #9aa090;
  --color-stone-3-dark: #6a7062;
  --color-stone-4-light: #a0a898;
  --color-stone-4-dark: #707868;
  --color-stone-5-light: #889080;
  --color-stone-5-dark: #58604a;
  --color-stone-highlight: rgba(255, 255, 255, 0.6);
  --color-stone-highlight-fade: rgba(255, 255, 255, 0);

  --color-glow-warning: rgba(255, 235, 59, 0.6);
  --color-glow-warning-strong: rgba(255, 235, 59, 0.9);
  --color-glow-warning-border: #ffeb3b;
  --color-glow-success: rgba(76, 175, 80, 0.6);
  --color-glow-success-strong: rgba(76, 175, 80, 0.9);
  --color-glow-success-border: #4caf50;

  --color-separator-strong: rgba(72, 60, 52, 0.45);
  --color-separator-soft: rgba(120, 104, 94, 0.25);

  --shadow-soft: 0 12px 24px rgba(42, 27, 20, 0.12);
  --shadow-strong: 0 20px 36px rgba(42, 27, 20, 0.2);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: radial-gradient(120% 120% at 15% 0%, var(--color-surface-canvas) 0%,
    var(--color-surface-canvas-warm) 45%, var(--color-surface-canvas-strong) 100%);
  line-height: 1.6;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

@media (max-width: 720px) and (orientation: landscape) {
  .page-shell {
    padding: 1.5rem 0.75rem 2.5rem;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .page-shell {
    padding: 2rem 0.75rem 3rem;
  }
}

@media (max-width: 360px) and (orientation: portrait) {
  .page-shell {
    padding: 1.75rem 0.6rem 2.5rem;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
}

a {
  color: var(--color-accent-primary);
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}
