@font-face {
    font-family: "Swis721 BT";
    src: local("Swis721 BT"), local("Swiss 721"), local("Swis721BT-Roman");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Swis721 BT";
    src: local("Swis721 BT Bold"), local("Swiss 721 Bold"), local("Swis721BT-Bold");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #FD7014;
    --brand-light: #FD8F47;
    --brand-dark: #DE600E;
    --ink: #111111;
    --ink-2: #2C2C2C;
    --paper: #F3EFE8;
    --paper-dim: #d9d3c8;
    --line: rgba(243, 239, 232, 0.12);
    --font: "Swis721 BT", "Swiss 721", Helvetica, Arial, sans-serif;
    --max: 1120px;
    --header-h: 4.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--ink);
    color: var(--paper);
    line-height: 1.55;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-light);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--brand);
}

.skip {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--brand);
    color: var(--ink);
    padding: 0.5rem 0.8rem;
    z-index: 20;
}

.skip:focus {
    top: 0.6rem;
}

.wrap {
    width: min(var(--max), calc(100% - 2.4rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--paper);
    text-decoration: none;
}

.brand:hover {
    color: var(--paper);
}

.brand img.mark {
    width: 2.1rem;
    height: 2.1rem;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--paper);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav a {
    color: var(--paper);
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.nav a:hover,
.nav a.is-active {
    color: var(--brand);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.72rem 1.15rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-brand {
    background: var(--brand);
    color: var(--ink);
}

.btn-brand:hover {
    background: var(--brand-light);
    color: var(--ink);
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--paper);
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.2rem;
}

.hero {
    position: relative;
    padding: 5.5rem 0 4.2rem;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -8rem;
    top: -4rem;
    width: 28rem;
    height: 28rem;
    background: url("../images/nibite.png") center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.eyebrow {
    color: var(--brand);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin: 0 0 1rem;
}

.hero h1,
.page-head h1 {
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 1.2rem;
    font-weight: 700;
    max-width: 14ch;
}

.lede {
    font-size: 1.15rem;
    max-width: 38rem;
    color: var(--paper-dim);
    margin: 0 0 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.section {
    padding: 4.2rem 0;
    border-top: 1px solid var(--line);
}

.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}

.section-kicker {
    color: var(--brand);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.prose {
    max-width: 42rem;
    color: var(--paper-dim);
}

.prose :first-child {
    margin-top: 0;
}

.prose h2,
.prose h3 {
    color: var(--paper);
    letter-spacing: -0.02em;
}

.prose pre,
.prose code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.88em;
}

.prose pre {
    background: var(--ink-2);
    padding: 1rem;
    overflow: auto;
    border-left: 3px solid var(--brand);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}

.service-list article {
    padding: 1.6rem 1.4rem 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.service-list h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.service-list p {
    margin: 0;
    color: var(--paper-dim);
    font-size: 0.95rem;
}

.project-rows {
    display: flex;
    flex-direction: column;
    margin-top: 1.6rem;
}

.project-row {
    display: grid;
    grid-template-columns: 7rem 1fr auto;
    gap: 1.2rem;
    align-items: center;
    padding: 1.35rem 0;
    border-top: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.project-row:last-child {
    border-bottom: 1px solid var(--line);
}

.project-row:hover {
    color: inherit;
}

.project-row:hover .project-title {
    color: var(--brand);
}

.project-index {
    font-variant-numeric: tabular-nums;
    color: var(--brand);
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.project-title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--paper);
}

.project-meta {
    margin: 0.25rem 0 0;
    color: var(--paper-dim);
    font-size: 0.9rem;
}

.chip {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-right: 0.3rem;
}

.chip-muted {
    color: var(--paper-dim);
    border-color: var(--line);
}

.stack-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stack-groups h3 {
    margin: 0 0 0.8rem;
    color: var(--brand);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stack-groups ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stack-groups li {
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.form {
    display: grid;
    gap: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--paper-dim);
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--line);
    background: var(--ink-2);
    color: var(--paper);
    border-radius: 0;
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--brand);
    outline-offset: 0;
}

.hp {
    position: absolute;
    left: -9999px;
}

.alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--brand);
    background: rgba(253, 112, 20, 0.08);
}

.alert-error {
    border-left-color: #c44;
}

.field-error {
    color: #f3a0a0;
    font-size: 0.8rem;
}

.contact-aside p {
    margin: 0.35rem 0;
    color: var(--paper-dim);
}

.contact-aside a {
    color: var(--paper);
}

.page-head {
    padding: 3.5rem 0 1rem;
}

.status-pausado::after {
    content: "pausado";
    margin-left: 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-light);
    vertical-align: middle;
}

.cover {
    margin: 1.5rem 0 2rem;
    border: 1px solid var(--line);
}

.cover img {
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.4rem 0 2.8rem;
    margin-top: 2rem;
    color: var(--paper-dim);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-grid h2 {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 0.8rem;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li {
    margin: 0.35rem 0;
}

.footer-grid a {
    color: var(--paper-dim);
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--brand);
}

.copy {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
}

.footer-brand {
    max-width: 22rem;
}

@media (max-width: 800px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header-h);
        background: var(--ink);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem 1.4rem;
        border-bottom: 1px solid var(--line);
        gap: 0.9rem;
    }

    .nav.is-open {
        display: flex;
    }

    .service-list,
    .stack-groups,
    .contact-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .project-row {
        grid-template-columns: 3.2rem 1fr;
    }

    .project-row .arrow {
        display: none;
    }

    .hero {
        padding-top: 3.2rem;
    }
}

/* Admin — mesmo fundo e tipografia do site */
body.admin {
    background: var(--ink);
    color: var(--paper);
}

.admin-shell {
    display: grid;
    grid-template-columns: 14.5rem 1fr;
    min-height: 100vh;
}

.admin-side {
    background: #0c0c0c;
    color: var(--paper);
    padding: 1.4rem 1rem;
    border-right: 1px solid var(--line);
}

.admin-side-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.admin-side a {
    color: var(--paper-dim);
    text-decoration: none;
    display: block;
    padding: 0.45rem 0.3rem;
}

.admin-side a:hover,
.admin-side a.is-active {
    color: var(--brand);
}

.admin-main {
    padding: 1.6rem 1.8rem 3rem;
    min-width: 0;
}

.admin-main h1 {
    margin-top: 0;
    letter-spacing: -0.03em;
    color: var(--paper);
}

.admin-main .form {
    max-width: 44rem;
}

.admin-main .form h2 {
    margin: 1.4rem 0 0.2rem;
    font-size: 1.1rem;
    color: var(--paper);
}

.admin-main .form > p {
    color: var(--paper-dim);
    font-size: 0.9rem;
}

label.check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ink-2);
    color: var(--paper);
}

.table th,
.table td {
    text-align: left;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--paper);
    vertical-align: middle;
}

.table th {
    color: var(--brand-light);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #1a1a1a;
}

.table tbody tr:hover td {
    background: rgba(253, 112, 20, 0.08);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table a {
    color: var(--brand-light);
}

.table .btn {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
}

.login-box {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--ink);
}

.login-card {
    width: min(24rem, calc(100% - 2rem));
    background: #1a1a1a;
    padding: 2rem;
    border-top: 3px solid var(--brand);
}

.login-card h1 {
    margin: 0.4rem 0 1.2rem;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-side {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    body.admin .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-nav {
        display: none;
        flex-direction: column;
        gap: 0.15rem;
        padding-bottom: 0.6rem;
    }

    .admin-nav.is-open {
        display: flex;
    }
}
