:root {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f3f6f9;
    --text: #111827;
    --text-soft: #4b5563;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --accent: #c8a75b;
    --accent-soft: #f5eedc;
    --accent-strong: #a3843f;
    --max-width: 1160px;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--accent-strong);
}

.hero {
    padding: 88px 0 56px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfaf4 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
    gap: 28px;
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 16ch;
}

.hero-lead {
    margin: 0;
    max-width: 75ch;
    font-size: 1.12rem;
    color: var(--text-soft);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(200, 167, 91, 0.24);
    color: var(--text-soft);
    font-size: 0.92rem;
    box-shadow: var(--shadow-soft);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(200, 167, 91, 0.18);
    border-radius: 20px;
    background: #ffffff;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    border: 1px solid rgba(200, 167, 91, 0.25);
    overflow: hidden;
    margin: 0 auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo span {
    max-width: 20ch;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-card {
    padding: 0;
    border: 10px;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.hero-card-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent-strong);
}

.hero-card-title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.25;
}

.hero-card p {
    margin: 0;
    color: var(--text-soft);
}

.page-hero {
    padding: 88px 0 40px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfaf4 100%);
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 14ch;
}

.page-hero p {
    max-width: 72ch;
    color: var(--text-soft);
    font-size: 1.08rem;
}

.hero-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.hero-list li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--text-soft);
}

.hero-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--accent-strong);
    display: block;
}

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

.section:first-of-type {
    border-top: 0;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
    margin-bottom: 34px;
    align-items: start;
}

.section-kicker {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-intro {
    margin: 0;
    color: var(--text-soft);
    max-width: 68ch;
    font-size: 1.03rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 167, 91, 0.5);
}

.card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.project-card .card-index {
    margin-bottom: 0;
}

.project-meta {
    display: grid;
    gap: 10px;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.project-link:hover {
    background: #efe4c7;
    transform: translateY(-1px);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
}

.panel {
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fffdf8 0%, var(--bg-soft) 100%);
    border: 1px solid rgba(200, 167, 91, 0.16);
}

.panel h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.panel p {
    margin: 0;
    color: var(--text-soft);
}

.number-list {
    display: grid;
    gap: 16px;
}

.number-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.number-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.number-item .num {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(200, 167, 91, 0.28);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.number-item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.number-item p {
    margin: 0;
    color: var(--text-soft);
}

.process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.process-step {
    position: relative;
    padding: 22px 20px;
    border: 1px solid rgba(200, 167, 91, 0.18);
    border-radius: var(--radius-sm);
    background: #fff;
    min-height: 150px;
}

.process-step span {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.process-step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.process-step p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.contact-item {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-item a {
    color: var(--accent-strong);
}

.contact-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.legal-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-soft);
}

.legal-links a:hover {
    color: var(--accent-strong);
}

.footer {
    padding: 36px 0 60px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .hero-grid,
    .section-head,
    .split,
    .cards,
    .process,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 64px;
    }
}

.hero {
    padding-top: 64px;
}


@media (max-width: 720px) {
    .site-header {
        position: static;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .nav {
        gap: 12px 16px;
    }

    .hero {
        padding: 48px 0 34px;
    }

    .section {
        padding: 52px 0;
    }

    .hero-visual {
        border-radius: 20px;
    }

    .profile-photo {
        min-height: 0;
    }

    .hero-card,
    .card,
    .panel,
    .process-step {
        padding: 20px;
    }
}
.project-actions {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
}

.project-meta p + p {
    margin-top: 10px;
}

.project-name {
    margin: -4px 0 4px;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.project-actions {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-content,
.knowledge-article {
    max-width: 880px;
    margin: 0 auto;
    padding: 72px 1.25rem 84px;
    line-height: 1.7;
    color: var(--text);
}

.article-content h1,
.knowledge-article h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text);
}

.article-content h2,
.knowledge-article h2 {
    margin: 3rem 0 1rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
}

.article-content h3,
.knowledge-article h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--text);
}

.article-content p,
.knowledge-article p {
    margin: 0 0 1.1rem;
}

.article-content a,
.knowledge-article a {
    color: var(--accent-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.article-content code,
.knowledge-article code {
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    background: var(--surface-alt);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.article-content pre,
.knowledge-article pre {
    margin: 1rem 0 2rem;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #0f172a;
    color: #e5e7eb;
    font-size: 0.94rem;
    line-height: 1.6;
}

.article-content p + pre,
.knowledge-article p + pre {
    margin-top: 0.5rem;
}

.article-content pre code,
.knowledge-article pre code {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.article-content table,
.knowledge-article table {
    width: 100%;
    margin: 1.25rem 0 2rem;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow: hidden;
}

.table-wrapper {
    margin: 1.25rem 0 2rem;
    overflow-x: auto;
}

.table-wrapper table {
    min-width: 640px;
    margin: 0;
}

.article-content thead,
.knowledge-article thead {
    border-bottom: 3px solid var(--line-strong);
}

.article-content th,
.knowledge-article th {
    background: var(--surface-alt);
    color: var(--text);
    font-weight: 700;
    text-align: left;
}

.article-content th:not(:first-child),
.knowledge-article th:not(:first-child) {
    text-align: left;
}

.article-content th,
.article-content td,
.knowledge-article th,
.knowledge-article td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
    vertical-align: top;
}

.article-content tr:last-child td,
.knowledge-article tr:last-child td {
    border-bottom: 0;
}

.article-content th:first-child,
.article-content td:first-child,
.knowledge-article th:first-child,
.knowledge-article td:first-child {
    width: 28%;
    font-weight: 600;
    color: var(--text);
}

.knowledge-article .rules-table th:first-child {
    background: #eef8f0;
}

.knowledge-article .rules-table th:last-child {
    background: #fdeeee;
}

.info-box {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-soft);
}

.info-box p {
    margin-bottom: 0.55rem;
}

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

.article-lead {
    max-width: 76ch;
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-soft);
}

.section-anchor {
    display: block;
    margin: 1.8rem 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.highlight-box,
.clarity-box,
.warning-box,
.acceptance-box {
    margin: 1.6rem 0;
    padding: 1.15rem 1.25rem;
    border-left: 5px solid var(--accent-strong);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #fffdf8 0%, var(--bg-soft) 100%);
}

.clarity-box {
    border-left-color: #2563eb;
    background: #eff6ff;
}

.warning-box {
    border-left-color: #b45309;
    background: #fffbeb;
}

.acceptance-box {
    border-left-color: #047857;
    background: #ecfdf5;
}

.box-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 800;
    color: var(--text);
}

.task-example {
    margin: 1.8rem 0;
    display: grid;
    gap: 1.2rem;
}

.task-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.task-card.bad {
    border-left: 5px solid #b45309;
}

.task-card.good {
    border-left: 5px solid #047857;
}

.task-prompt {
    margin: 0.8rem 0;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 0.65rem;
    background: var(--surface-alt);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.check-list {
    margin: 1rem 0 1.4rem;
    padding-left: 1.2rem;
}

.check-list li {
    margin-bottom: 0.55rem;
}

.definition-list {
    margin: 1rem 0 1.4rem;
    padding-left: 0;
    list-style: none;
}

.definition-list li {
    margin-bottom: 0.85rem;
    padding-left: 1rem;
    border-left: 3px solid var(--line-strong);
}

.quote-line {
    margin: 1.4rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--line-strong);
    font-weight: 700;
    color: var(--text);
}

@media (max-width: 640px) {
    .article-content,
    .knowledge-article {
        padding: 48px 1rem 60px;
    }

    .article-content table,
    .knowledge-article table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }

    .article-content th,
    .article-content td,
    .knowledge-article th,
    .knowledge-article td {
        min-width: 180px;
    }

    .highlight-box,
    .clarity-box,
    .warning-box,
    .acceptance-box,
    .task-card {
        padding: 1rem;
    }
}
