/* ABOUTME: Main stylesheet for Tancforum.
   ABOUTME: Contains CSS custom properties, reset, typography, and utility classes. */

/* ===========================
   Custom Properties
   =========================== */

:root {
  /* Colors */
  --color-orange: #F16934;
  --color-bg: #FCECDE;
  --color-black: #353535;
  --color-white: #FFFFFF;

  /* Fonts */
  --font-primary: 'Instrument Serif', serif;
  --font-secondary: 'Montserrat', sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  /* Max content width */
  --max-width: 1200px;
}

/* ===========================
   Reset
   =========================== */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-black);
  background-color: red;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-md);
}

/* ===========================
   Layout utilities
   =========================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  font-family: var(--font-secondary);
  font-weight: 600;
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #d45a2b;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-orange);
  border-color: var(--color-orange);
}

.btn-outline:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
}
