/* WillowGrove.ICU - Federation Hub */
/* Same DNA as theshapeofthought.com */

:root {
    --bg:       #ffffff;
    --surface:  #f9f7f3;
    --raised:   #f4f1eb;
    --border:   #e4dfd5;
    --border-h: #d6cfbf;
    --text:     #1a1714;
    --dim:      #6b5e4a;
    --faint:    #a89a82;
    --accent:   #bf5b16;
    --copper:   #b87333;
    --rust:     #c45a2a;
    --gold:     #8a6c18;
    --green:    #4a7a32;
    --grove:    #2d5016;
    --sans:     -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    --mono:     'SF Mono', 'Fira Code', ui-monospace, monospace;
    --serif:    'Georgia', 'Palatino', 'Times New Roman', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
::selection { background: rgba(45,80,22,0.18); color: var(--grove); }

body {
    min-height: 100%;
    color: var(--text);
    font: 17px/1.8 var(--sans);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* Nav */

nav {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

nav .site-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--grove);
    text-decoration: none;
    letter-spacing: 0.02em;
}

nav .site-title:hover { color: var(--green); }

nav .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

nav .nav-links a {
    color: var(--dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

nav .nav-links a:hover { color: var(--text); }

/* Hero */

.hero {
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero h1 {
    font-family: var(--serif);
    font-size: 2.6em;
    font-weight: 400;
    color: var(--grove);
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-pitch {
    font-size: 1.1em;
    color: var(--dim);
    max-width: 620px;
    margin: 0 auto 12px;
    line-height: 1.7;
}

.hero-aside {
    font-size: 0.92em;
    color: var(--faint);
    font-style: italic;
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Sections */

.section {
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}

.section-surface { background: var(--surface); }

.section h2 {
    font-family: var(--serif);
    font-size: 1.6em;
    font-weight: 400;
    color: var(--grove);
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.section-lead {
    font-size: 1.08em;
    line-height: 1.75;
    max-width: 760px;
}

p { margin-bottom: 18px; line-height: 1.8; }

/* Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    transition: border-color 0.2s;
}

.card:hover { border-color: var(--green); }

.card h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 10px;
}

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

.card-icon {
    font-size: 2em;
    margin-bottom: 12px;
}

.section-surface .card { background: var(--bg); }

/* Steps */

.steps {
    counter-reset: step;
    list-style: none;
    margin: 28px 0 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 20px 0 20px 72px;
    border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--raised);
    border: 2px solid var(--green);
    color: var(--grove);
    font-family: var(--mono);
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.steps li strong {
    color: var(--grove);
    display: block;
    margin-bottom: 4px;
}

/* Terminal */

.terminal {
    max-width: 620px;
    margin: 28px auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-h);
    text-align: left;
}

.terminal-bar {
    background: var(--raised);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #c45a2a; }
.dot-amber { background: var(--gold); }
.dot-green { background: var(--green); }

.terminal-title {
    margin-left: 8px;
    font-size: 0.78em;
    color: var(--faint);
    font-family: var(--mono);
}

.terminal-body {
    background: var(--surface);
    padding: 20px 22px;
    font-family: var(--mono);
    font-size: 0.88em;
    line-height: 2;
    color: var(--text);
}

.terminal-prompt {
    color: var(--green);
    font-weight: 700;
    margin-right: 6px;
}

.terminal-comment { color: var(--faint); }

/* Equation box */

.equation-box {
    background: var(--raised);
    border: 1px solid var(--border-h);
    border-radius: 8px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

.equation-box .equation {
    font-family: var(--mono);
    font-size: 1.15em;
    color: var(--grove);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.equation-box .explanation {
    font-size: 0.92em;
    color: var(--dim);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--green);
    color: var(--bg);
}

.btn-primary:hover { background: var(--grove); }

.btn-secondary {
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
}

.btn-secondary:hover {
    background: var(--green);
    color: var(--bg);
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 32px 0;
}

/* Contact form */

.contact-form {
    max-width: 520px;
    margin: 28px auto 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-h);
    border-radius: 6px;
    font: 15px/1.6 var(--sans);
    color: var(--text);
    background: var(--bg);
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--faint);
    font-size: 0.85em;
}

footer a { color: var(--dim); }
footer a:hover { color: var(--green); }

.footer-motto {
    font-family: var(--serif);
    font-size: 1.05em;
    color: var(--grove);
    margin-bottom: 8px;
}

.footer-links { margin-top: 8px; }
.footer-sub { margin-top: 12px; color: var(--faint); font-size: 0.9em; }

/* Responsive */

@media (max-width: 768px) {
    .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 1.7em; }
    .hero-pitch { font-size: 0.95em; }
    .section { padding: 36px 0; }
    .section h2 { font-size: 1.35em; }

    .steps li { padding-left: 56px; }
    .steps li::before { width: 40px; height: 40px; font-size: 1em; }
}

@media (max-width: 400px) {
    nav .container { flex-direction: column; align-items: flex-start; }
    .hero h1 { font-size: 1.45em; }
    .btn-group { flex-direction: column; align-items: center; }
}
