/* ============================================================
   grisshaus — base.css
   All custom properties, resets, typography, and layout tokens
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #131310;
  --surface: #1a1a16;
  --card: #1e1e18;
  --border: rgba(180, 150, 80, 0.10);
  --border-md: rgba(180, 150, 80, 0.18);
  --accent: #c4883a;
  --accent2: #607a40;
  --text: #e8e0cc;
  --muted: #6e6658;
  --dim: #3a3830;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --page-pad: 80px;
  --transition: 0.12s ease;
}

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

html {
  font-size: 32px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

/* --- Typography Scale --- */
h1 {
  font-size: clamp(80px, 12vw, 128px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
}

h4 {
  font-size: 32px;
  font-weight: 500;
}

p {
  font-size: 30px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

.text-accent {
  color: var(--accent);
}

.text-accent2 {
  color: var(--accent2);
}

.text-muted {
  color: var(--muted);
}

.text-dim {
  color: var(--dim);
}

.text-mono {
  font-family: var(--font-mono);
}

.label {
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.ruled-top {
  border-top: 0.5px solid var(--border);
}

.ruled-bottom {
  border-bottom: 0.5px solid var(--border);
}

.ruled-right {
  border-right: 0.5px solid var(--border);
}

.ruled-left {
  border-left: 0.5px solid var(--border);
}

/* --- Tag / Pill --- */
.tag {
  display: inline-block;
  font-size: 20px;
  color: var(--dim);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tag-accent {
  color: var(--accent);
  border-color: rgba(196, 136, 58, 0.3);
  background: rgba(196, 136, 58, 0.06);
}

/* --- Category Label (above post titles) --- */
.cat-label {
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* --- Inline Link --- */
.link-accent {
  color: var(--accent);
  border-bottom: 0.5px solid rgba(196, 136, 58, 0.4);
  padding-bottom: 1px;
  transition: border-color var(--transition);
}

.link-accent:hover {
  border-color: var(--accent);
}

/* --- Divider with Label --- */
.section-rule {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px var(--page-pad);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.section-rule span {
  font-size: 20px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-rule-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}