/* Tennink homepage - plain CSS, no frameworks, no animations. */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #f7f5ee;
}

/* ---------- Nav ---------- */

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f7f5ee;
    border-bottom: 2px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 14px 24px;
}

nav .wrap {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

/* ---------- Hero with yellow bloom ---------- */

.hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 72px 24px 48px;
    text-align: center;
    background: radial-gradient(circle at 50% 28%, rgba(255, 234, 0, 0.95) 0%, rgba(255, 234, 0, 0.35) 42%, rgba(255, 234, 0, 0) 68%);
}

.hero h1 {
    font-size: clamp(34px, 5.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.intro {
    max-width: 660px;
    margin: 0 auto 20px;
    color: #333;
    font-size: 18px;
}

.facts {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.facts li {
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid #1a1a1a;
    border-radius: 999px;
    padding: 4px 14px;
    background: #fffdf4;
}

.hero img {
    width: 100%;
    height: auto;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    display: block;
    background: #fff;
}

.caption {
    font-size: 14px;
    color: #5a574a;
    margin-top: 10px;
}

/* ---------- Sections ---------- */

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

section {
    padding: 48px 0;
    border-top: 1px solid #d8d4c4;
}

.label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    margin-bottom: 8px;
    border-left: 6px solid #ffea00;
    padding-left: 10px;
}

section h2 {
    font-size: clamp(26px, 3.5vw, 34px);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

section p {
    margin-bottom: 14px;
    color: #333;
    max-width: 68ch;
}

/* ---------- Project cards ---------- */

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

.card {
    background: #fffdf4;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    padding: 20px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.card p {
    font-size: 15px;
    margin-bottom: 0;
}

/* ---------- Build steps ---------- */

.steps {
    list-style: none;
    margin-top: 24px;
}

.steps li {
    background: #fffdf4;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.steps h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step-num {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 26px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    background: #ffea00;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: 2px;
}

.steps p {
    margin-bottom: 0;
}

.steps img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #999;
    border-radius: 8px;
    margin-top: 16px;
    background: #fff;
}

.steps img + img {
    margin-top: 12px;
}

/* ---------- Screenshots + video ---------- */

.screenshots {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    margin: 24px 0 8px;
}

.screenshots figure {
    text-align: center;
}

.screenshots img {
    display: block;
    border: 2px solid #1a1a1a;
    background: #fff;
}

.screenshots figure:first-child img {
    width: 220px;
    height: auto;
    border-radius: 24px;
}

.screenshots figure:last-child img {
    width: 220px;
    height: auto;
    border-radius: 50%;
    margin-top: 60px;
}

.screenshots figcaption {
    font-size: 14px;
    font-weight: 600;
    color: #5a574a;
    margin-top: 10px;
}

video {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 20px auto;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    background: #000;
}

#app .caption,
#testing .caption {
    text-align: center;
    max-width: none;
}

#testing img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    background: #fff;
    margin-top: 20px;
}

/* ---------- Spec table ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fffdf4;
}

th,
td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #1a1a1a;
    font-size: 15px;
}

th {
    background: #ffea00;
    width: 140px;
}

/* ---------- Footer ---------- */

footer {
    border-top: 2px solid #1a1a1a;
    background: #1a1a1a;
    color: #f7f5ee;
    text-align: center;
    padding: 32px 24px;
    font-size: 14px;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: #ffea00;
    text-decoration: none;
}

/* ---------- Small screens ---------- */

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

    .hero {
        padding-top: 48px;
    }

    .steps li {
        padding: 18px;
    }

    .screenshots figure:last-child img {
        margin-top: 0;
    }

    video {
        max-width: 300px;
    }
}
