@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
    --bg: #f2efe7;
    --panel: #fffaf2;
    --ink: #16233a;
    --muted: #4e5a6c;
    --line: #d8d1c3;
    --blue: #005d86;
    --blue-soft: #d7edf8;
    --teal: #178c78;
    --teal-soft: #d7f2ec;
    --orange: #e9713f;
    --orange-soft: #ffe5d8;
    --shadow: 0 20px 44px -30px rgba(22, 35, 58, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Source Sans 3", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(23, 140, 120, 0.14), transparent 32%),
        radial-gradient(circle at 88% 14%, rgba(233, 113, 63, 0.17), transparent 36%),
        var(--bg);
    line-height: 1.45;
}

.shell {
    width: min(1120px, 92vw);
    margin: 1rem auto 2rem;
}

.hero {
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: linear-gradient(145deg, #fffaf2, #f9f2e8 58%, #f3ede4);
    box-shadow: var(--shadow);
    padding: clamp(1.1rem, 3.2vw, 2rem);
}

.topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.title {
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
}

.hero h1 {
    margin: 0.5rem 0 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.08;
}

.hero p {
    margin: 0.8rem 0 0;
    max-width: 70ch;
    color: var(--muted);
    font-size: 1.04rem;
}

.chips {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.chip {
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.chip-blue {
    background: var(--blue-soft);
    color: #0a4e73;
}

.chip-green {
    background: var(--teal-soft);
    color: #125f50;
}

.chip-orange {
    background: var(--orange-soft);
    color: #8e3d1f;
}

.section {
    margin-top: 0.95rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel);
    padding: 1rem;
}

.section h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.16rem;
}

.section p {
    margin: 0.54rem 0 0;
    color: var(--muted);
}

.projects {
    margin-top: 0.78rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.card {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.85rem;
    display: grid;
    gap: 0.62rem;
}

.card-upcoming {
    background: linear-gradient(160deg, #f9f7f2, #f3efe6);
    border-style: dashed;
    border-color: #ddd6ca;
}

.card-upcoming h3,
.card-upcoming p,
.card-upcoming .detail-list,
.card-upcoming .badge,
.card-upcoming .btn {
    opacity: 0.72;
}

.card-upcoming .detail-list li::before {
    color: #73829a;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.card h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.02rem;
}

.badge {
    font-size: 0.73rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.2rem 0.48rem;
}

.badge-active {
    background: var(--teal-soft);
    color: #0f5b4d;
}

.badge-soon {
    background: #eceff4;
    color: #4b5f7a;
}

.card p {
    margin: 0;
}

.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.93rem;
    color: var(--muted);
    display: grid;
    gap: 0.35rem;
}

.detail-list li::before {
    content: "- ";
    color: var(--blue);
}

.actions {
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.46rem 0.84rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-main {
    background: var(--ink);
    color: #fff;
}

.btn-sub {
    background: #fffaf2;
    color: var(--ink);
    border-color: var(--line);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.85rem;
}

.panel h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
}

.panel ul {
    margin: 0.56rem 0 0;
    padding: 0;
    list-style: none;
}

.panel li {
    padding: 0.56rem 0;
    border-top: 1px dashed var(--line);
}

.panel li:first-child {
    border-top: 0;
    padding-top: 0;
}

.panel li span {
    font-weight: 700;
}

.repo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.52rem;
    font-size: 0.93rem;
}

.repo-table th,
.repo-table td {
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0.36rem;
}

.repo-table th {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer {
    margin-top: 0.95rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(255, 250, 242, 0.84);
    padding: 0.82rem 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.55rem;
    color: var(--muted);
}

.footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].show {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {

    .projects,
    .split {
        grid-template-columns: 1fr;
    }
}
