/*Colors*/
:root {
    color-scheme: light dark;

    --base-pr: #F5F3EF, #111110;
    --base-sc: #E8E4DE, #2A2926;

    --color-pr: #1A1A1A, #E8E4DE;
    --color-sc: #6B6560, #8A8480;

    --border: #D4CFC8, #333230;

    --font-heading: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

/*GENERAL*/
body {
    display: flex;
    flex-direction: column;
    background: light-dark(var(--base-pr));
    color: light-dark(var(--color-pr));
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 2;
}

/*scrollbar*/
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: light-dark(var(--color-sc));
}

#container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: auto;
    animation: fadeIn 0.5s ease both;
}

a {
    color: light-dark(var(--color-pr));
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a.clear {
    font-weight: 400;
    letter-spacing: 0.01em;
}

::selection {
    background: light-dark(var(--base-sc));
}

/*FONT*/
/*title*/
h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0.01em;
    margin: 0 0 20px;
}

/*subtitle*/
h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 22px;
    line-height: 30px;
    margin: 48px 0 24px 0;
}

h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    margin: 36px 0 16px 0;
}

em {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
}

q:before,
q:after {
    content: none;
}

q {
    display: block;
    font-style: italic;
    font-size: 18px;
    padding: 24px 48px;
}

/*foot*/
samp {
    font-family: inherit;
    display: block;
    font-weight: 300;
    font-style: italic;
    font-size: 16px;
    text-align: left;
    margin-top: 0px;
    margin-bottom: 24px;
}

/*note*/
small {
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
}

/*bold*/
b {
    font-weight: 600;
}


p {
    margin: 0 0 24px 0;
    color: light-dark(var(--color-pr));
}

/*COMPONENTS*/
button,
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: fit-content;
    height: fit-content;
    min-width: 32px;
    min-height: 32px;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    border-radius: 8px;
    background: light-dark(var(--color-sc));
    padding: 0 8px;
    cursor: pointer;
    color: light-dark(var(--base-pr));
    gap: 4px;
}

button:focus {
    outline: none;
}

button:disabled {
    cursor: default;
    background-color: transparent;
    color: light-dark(var(--color-sc));
}

button:disabled:hover {
    background-color: transparent;
    color: light-dark(var(--color-sc));
}

.btn_scn {
    background: transparent;
    border: none;
    color: light-dark(var(--color-sc));
}

/*LAYOUT*/
/*nav*/
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    box-sizing: border-box;
    width: inherit;
    max-width: inherit;
    margin: 0 auto;
    height: 56px;
    padding: 0 20px;
    z-index: 2;
    background: light-dark(rgba(245, 243, 239, 0.85), rgba(17, 17, 16, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    width: 48px;
    cursor: pointer;
}

.logo img {
    width: auto;
    height: 16px;
}

svg {
    color: light-dark(var(--color-pr));
}

.menu {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 28px;
    font-size: 15px;
}

.info {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 72px 20px 20px;
}

.info div {
    display: flex;
    align-items: center;
    min-height: 36px;
    height: auto;
    padding: 6px 0;
    border-bottom: 1px light-dark(var(--border)) solid;
}

.info div:first-child {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 0.01em;
}


/*main*/
main {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 20px 32px;
}

header {
    border-bottom: 1px solid light-dark(var(--border));
    padding: 32px 0 28px;
    margin-top: 24px;
}

header img {
    margin-bottom: 24px;
    border-radius: 8px;
}

article {
    max-width: 580px;
    margin: 28px 0 48px;
    color: light-dark(var(--color-sc));
    line-height: 28px;
}

article p:first-child {
    color: light-dark(var(--color-pr));
    font-weight: 500;
}

footer {
    display: flex;
    box-sizing: border-box;
    bottom: 0;
    width: 100%;
    max-width: inherit;
    padding: 0 20px 40px;
}

footer div {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    border-top: 1px solid light-dark(var(--border));
    padding-top: 28px;
    font-size: 14px;
    gap: 4px;
    color: light-dark(var(--color-sc));
}

footer div b {
    color: light-dark(var(--color-pr));
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    gap: 16px;
}

.social a {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social a:hover {
    opacity: 1;
}

.social img {
    height: 16px;
    width: auto;
}

.post {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: inherit;
    padding: 0 0 48px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.postText {
    display: block;
    padding-top: 4px;
}

.post .abstract {
    color: light-dark(var(--color-sc));
    line-height: 24px;
}

.tag {
    display: inline-block;
    background: light-dark(var(--base-sc));
    color: light-dark(var(--color-pr));
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 10px;
}

.tech-tag {
    display: inline-block;
    background: light-dark(#EDE8DC, #2D2A24);
    color: light-dark(#5C5445, #B8A98A);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 10px;
}

.post img {
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

img {
    width: 100%;
    border-radius: 6px;
}

.title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    margin: 0;
}

.date {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    height: 48px;
    font-weight: 700;
    margin: 0;
    border-top: 1px solid light-dark(var(--color-sc));
    color: light-dark(var(--color-sc));
}

ul {
    padding-left: 16px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    width: 100%;
    border-top: 1px solid light-dark(var(--color-sc));
}

.pagination a {
    display: flex;
    align-items: center;
    height: 100%;
}

/*Venture section*/
.venture {
    box-sizing: border-box;
    padding: 0 20px 32px;
    border-top: 1px solid light-dark(var(--border));
}

.venture h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 22px;
    line-height: 30px;
    margin: 28px 0 8px;
}

.venture p {
    margin: 0 0 24px 0;
    max-width: 580px;
    color: light-dark(var(--color-sc));
}

.venture-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 580px;
    flex-wrap: wrap;
}

.venture-form span {
    font-weight: 500;
    font-size: 15px;
}

.venture-form input[type="email"] {
    padding: 10px 14px;
    border: 1px solid light-dark(var(--border));
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    flex: 1;
    max-width: 300px;
    background: light-dark(var(--base-pr));
    color: light-dark(var(--color-pr));
    outline: none;
    transition: border-color 0.3s ease;
}

.venture-form input[type="email"]:focus {
    border-color: light-dark(var(--color-sc));
}

.venture-form input[type="email"]::placeholder {
    color: light-dark(var(--color-sc));
    opacity: 0.6;
}

.venture-form button {
    padding: 10px 14px;
    background: light-dark(var(--color-pr));
    color: light-dark(var(--base-pr));
    border: none;
    border-radius: 6px;
    font-family: inherit;
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.venture-form button svg {
    color: light-dark(var(--base-pr));
}

.venture-form button:hover {
    opacity: 0.8;
}

.venture-message {
    margin-top: 12px;
    font-size: 14px;
    display: none;
}

/*Animation*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info {
    animation: fadeIn 0.5s ease 0.1s both;
}

/*desktop*/
@media screen and (min-width: 704px) {
    .post {
        display: flex;
        flex-direction: row;
        gap: 28px;
    }

    .title {
        padding-bottom: 24px;
    }

    .postImg {
        width: 480px;
        min-width: 480px;
        z-index: 1;
    }

    h1 {
        font-family: var(--font-heading);
        font-weight: 400;
        font-size: 44px;
        line-height: 52px;
        letter-spacing: 0.01em;
    }

    h2 {
        font-size: 28px;
        line-height: 36px;
    }

    h3 {
        font-size: 22px;
        line-height: 30px;
    }

    button:hover,
    .button:hover {
        background: light-dark(var(--color-pr));
    }

    a:hover :not(.unhover) {
        text-decoration: underline;
    }

    .btn_scn:hover {
        color: light-dark(var(--color-pr));
        background: none;
    }

    .post:hover img {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .post:hover .title {
        text-decoration: underline;
    }

    .post:hover {
        transform: translateY(-2px);
    }
}