/* Happy Fun Zone — modern farmhouse theme (matches family sites) */

:root {
    --bg: #f6f1ea;
    --bg-alt: #efe7db;
    --bg-card: #fffdfa;
    --bg-hover: #f3ece0;
    --border: #e3d9cb;
    --border-strong: #d3c5b1;
    --text: #3e3630;
    --text-strong: #2b241e;
    --text-dim: #8a7b6b;
    --primary: #5f6f52;
    --primary-hover: #4e5d43;
    --accent: #b4835a;
    --green: #6b8e5a;
    --red: #b14a3b;
    --yellow: #c89b3c;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(96, 74, 49, 0.08);
    --shadow-hover: 0 8px 26px rgba(96, 74, 49, 0.16);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(148, 118, 82, 0.05) 1px, transparent 1px),
        linear-gradient(175deg, var(--bg) 0%, var(--bg-alt) 100%);
    background-size: 14px 14px, 100% 100%;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .brand, .page-title {
    font-family: var(--font-head);
    color: var(--text-strong);
    letter-spacing: -0.01em;
}

/* Nav */
.topnav { background: var(--bg-card); border-bottom: 1px solid var(--border); box-shadow: 0 2px 14px rgba(96,74,49,0.06); }
.nav-inner { display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem; min-height: 62px; max-width: 1200px; margin: 0 auto; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--text-strong); display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.nav-tabs { display: flex; gap: 0.35rem; flex: 1; flex-wrap: wrap; }
.nav-tab {
    display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem;
    border-radius: 999px; color: var(--text-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500;
    transition: all 0.18s; border: 1px solid transparent; cursor: pointer;
}
.nav-tab:hover { background: var(--bg-hover); color: var(--text-strong); }
.nav-tab.active { background: var(--primary); color: #fdfbf7; box-shadow: 0 3px 10px rgba(95,111,82,0.35); }

/* Content */
.content { max-width: 1100px; margin: 0 auto; padding: 2rem 1.75rem; width: 100%; flex: 1; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 2rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.card h2, .page-title { font-size: 1.4rem; margin-bottom: 0.9rem; font-weight: 600; }
.text-dim { color: var(--text-dim); }

/* Hero */
.hero { text-align: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.3rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--accent); font-weight: 600; margin-bottom: 0.8rem; }
.hero-description { max-width: 640px; margin: 0 auto 1.4rem; color: var(--text); }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 1.2rem; border: none;
    border-radius: 10px; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: var(--font-body); transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: #fdfbf7; box-shadow: 0 3px 10px rgba(95,111,82,0.25); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg-card); color: var(--text-strong); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Link tiles */
.link-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem; margin-top: 0.5rem; }
.link-tile {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem;
    text-decoration: none; display: flex; flex-direction: column; gap: 0.3rem; transition: all 0.18s;
}
.link-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.link-tile-name { font-weight: 700; color: var(--text-strong); font-family: var(--font-head); font-size: 1.05rem; }
.link-tile-desc { color: var(--text-dim); font-size: 0.85rem; }

/* Forms */
input, textarea {
    width: 100%; padding: 0.65rem 0.85rem; background: #fffefb; border: 1px solid var(--border-strong);
    border-radius: 10px; color: var(--text-strong); font-size: 0.94rem; font-family: var(--font-body); margin: 0.3rem 0 0.8rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(95,111,82,0.15); }
textarea { resize: vertical; }

/* Journal */
.journal-entries { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.journal-entry { border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.3rem; background: var(--bg-card); }
.journal-entry h3 { font-family: var(--font-head); color: var(--text-strong); margin-bottom: 0.4rem; font-size: 1.1rem; }
.journal-entry .j-date { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.journal-entry p { white-space: pre-wrap; }

/* Projects */
.project-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.project-item { border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.4rem; background: var(--bg-card); }
.project-item h3 { font-family: var(--font-head); color: var(--text-strong); margin-bottom: 0.3rem; }
.project-item p { color: var(--text); }

/* Link grid */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; margin-top: 0.5rem; }

/* Footer */
.footer { text-align: center; color: var(--text-dim); font-size: 0.82rem; padding: 1.5rem; border-top: 1px solid var(--border); background: var(--bg-card); }

input, textarea, .btn { font-family: var(--font-body); }
