@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;1,400&family=Fira+Code:wght@400;500&display=swap');

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

body {
    font-family: 'Nunito', Arial, sans-serif;
    background-color: #FAF3E4;
    color: #2C1F14;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
    background-color: #506030;
    color: #ffffff;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
nav .brand img {
    height: 34px;
    width: auto;
    display: block;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.75rem;
}
nav ul a {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 160ms;
}
nav ul a:hover { color: #ffffff; }

/* ── Hero ── */
.hero {
    background-color: #506030;
    color: #ffffff;
    padding: 3.5rem 2rem 3rem;
    border-bottom: 4px solid #EB5D29;
}
.hero-inner {
    max-width: 860px;
    margin: 0 auto;
}
.hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 1rem;
    color: #ffffff;
}
.hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    max-width: 640px;
    line-height: 1.7;
}
.hero p + p { margin-top: 0.75rem; }

/* ── Page ── */
.page {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8C6E4A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 3rem 0 1.25rem;
}
h2:first-child { margin-top: 0; }

/* ── Cards ── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.card {
    background: #ffffff;
    border: 1px solid #C9A96A;
    border-radius: 7px;
    padding: 1.4rem 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 160ms, border-color 160ms;
    box-shadow: 0 1px 3px rgba(44,31,20,0.07);
}
.card:hover {
    border-color: #EB5D29;
    box-shadow: 0 3px 10px rgba(44,31,20,0.12);
}
.card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6B3D2A;
    margin-bottom: 0.4rem;
    letter-spacing: 0;
}
.card .card-desc {
    font-size: 0.9rem;
    color: #5A4030;
    line-height: 1.55;
}
.card .card-tags {
    margin-top: 0.75rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #8C6E4A;
}
.card-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #EB5D29;
    letter-spacing: 0.02em;
}

/* ── Link list ── */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.link-row {
    background: #ffffff;
    border: 1px solid #C9A96A;
    border-radius: 7px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 160ms, box-shadow 160ms;
    box-shadow: 0 1px 3px rgba(44,31,20,0.07);
}
.link-row:hover {
    border-color: #EB5D29;
    box-shadow: 0 3px 10px rgba(44,31,20,0.12);
}
.link-row h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #EB5D29;
    white-space: nowrap;
    min-width: 10rem;
    letter-spacing: 0;
}
.link-row p {
    font-size: 0.9rem;
    color: #5A4030;
    line-height: 1.5;
}

/* ── Divider ── */
.divider {
    border: none;
    border-top: 1px solid #C9A96A;
    margin: 3rem 0 0;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #8C6E4A;
    border-top: 1px solid #C9A96A;
}
