/* ==========================================================================
   Base Styles — Typography, Body, Links, Utilities
   ========================================================================== */

/* --- Body --- */
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-ink);
    background-color: var(--color-paper);
    line-height: 1.7;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-ink);
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Subheadings use semi condensed */
.subheading {
    font-family: var(--font-semi);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- Paragraphs --- */
p {
    margin-bottom: var(--space-md);
    max-width: 70ch;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Links --- */
a {
    color: var(--color-rust);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-rust-hover);
}

a:focus-visible {
    outline: 2px solid var(--color-rust);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* --- Lists (inside content) --- */
.content ul,
.content ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.content ul {
    list-style: disc;
}

.content ol {
    list-style: decimal;
}

.content li {
    margin-bottom: var(--space-xs);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1;
}

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

.btn-primary:hover {
    background-color: var(--color-rust-hover);
    border-color: var(--color-rust-hover);
    color: var(--color-white);
}

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

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

.btn-ghost {
    background-color: transparent;
    color: var(--color-steel);
    border-color: var(--color-concrete);
}

.btn-ghost:hover {
    background-color: var(--color-concrete);
    color: var(--color-ink);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-base);
}

/* --- Tags / Badges --- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    background-color: var(--color-concrete);
    color: var(--color-steel);
    line-height: 1.4;
}

.tag-rust {
    background-color: var(--color-rust-light);
    color: var(--color-rust);
}

.tag-segment-budget {
    background-color: #E8F5E9;
    color: #2D7D46;
}

.tag-segment-mid {
    background-color: #FFF8E1;
    color: #B8860B;
}

.tag-segment-premium {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

/* --- Stars --- */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--color-star);
}

.stars-value {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-ink);
    margin-left: var(--space-xs);
}

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

/* --- Selection --- */
::selection {
    background-color: var(--color-rust-light);
    color: var(--color-ink);
}

/* --- Screen reader only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Utility classes --- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-steel  { color: var(--color-steel); }
.text-rust   { color: var(--color-rust); }
.text-sm     { font-size: var(--text-sm); }
.text-xs     { font-size: var(--text-xs); }
.text-lg     { font-size: var(--text-lg); }
.font-ui     { font-family: var(--font-ui); }
.font-display { font-family: var(--font-display); }
.mt-0  { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0  { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
