:root {
    --primary: #1a1a1a;
    --accent: #2c3e50;
    --bg: #ffffff;
    --text: #333333;
    --light-gray: #fcfcfc;
    --border: #eeeeee;
}

* { box-sizing: border-box; }

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.2rem;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    color: var(--primary);
    margin-top: 0;
}

h1 { font-size: 4rem; letter-spacing: -0.02em; margin-bottom: 20px; }
h2 { font-size: 3rem; margin-bottom: 40px; }
h3 { font-size: 2.2rem; margin-bottom: 15px; line-height: 1.2; } /* Restored tool title size */
h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; } /* Bolded Key Concepts headers */

/* SVG SIZE FIX */
.icon-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.icon-header svg {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0;
    color: #888;
}

/* THE 3-COLUMN GRID */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.tool-card {
    display: flex;
    flex-direction: column;
}

.tool-card ul {
    padding-left: 20px;
    margin: 15px 0 30px 0;
    flex-grow: 1;
}

/* BUTTONS */
.btn {
    display: block;
    width: 100%;
    padding: 18px 0;
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-align: center;
    border: 1px solid var(--primary);
    transition: 0.3s;
}

.btn:hover {
    background: transparent;
    color: var(--primary) !important;
}

.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

/* WORDSLEUTH SPECIFIC */
#word-input {
    width: 100%;
    padding: 22px;
    font-size: 2.2rem;
    font-family: inherit;
    border: 1px solid #ccc;
    background: var(--light-gray);
    outline: none;
    text-align: center;
}

/* FOOTER */
.site-footer {
    margin-top: auto;
    background: var(--primary);
    color: white;
    padding: 100px 0 60px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.6;
    transition: 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.3;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}