/*
Theme Name: PTW Dev
Theme URI: http://voorbeeld.com/
Text Domain: ptw-dev
Author: Pepijn te Winkel
Author URI: https://pepijntw.com/
Description: Een zelfgemaakt WordPress thema.
Version: 1.0
*/

@font-face {
    font-family: 'JetBrains Mono';
    src: url('assets/fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('assets/fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@keyframes fadeup {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to   {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --bg-color: #F4F4F6;
    --primary-color: #0B0B0C;
    --subtitle-color: #48484A;
    --border-color: #D7D7DD;
    --accent-background: #FFFFFF;

    --header-height: 80px;
    --sidebar-width: 160px;
}

[data-theme="dark"] {
    --bg-color: #0B0B0C;
    --primary-color: #F4F4F6;
    --subtitle-color: #98989C;
    --border-color: #2C2C2E;
    --accent-background: #1C1C1E;
}

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

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
}

.label {
    font-weight: 400;
    font-size: 18px;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
}

a {
 text-decoration: none;
}

ul {
    list-style: none;
}

.list li {
    font-size: 16px;
    color: var(--subtitle-color);
    font-family: 'JetBrains Mono', monospace;
    text-indent: 20px;
}

.list a { color: inherit; transition: color 0.2s ease; }
.list a:hover { color: var(--primary-color); text-decoration: underline; }

.display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.card {
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    opacity: 0;
    timeline-trigger: --trigger view() entry 100% exit 0%;
    animation-trigger: --trigger play-forwards;
    animation: fadeup 0.2s ease-out 0.2s forwards;
}

.metadata-card {
    width: min(360px, 100%);
    min-height: 360px;
    padding: 24px;
}

.project-card {
    height: 420px;
}

.specs-card,
.about-card {
    min-height: 420px;
    padding: 24px;
}

.chapter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section {
    min-height: calc(100vh - var(--header-height));
    padding: 220px clamp(20px, 6vw, 110px);


    display: flex;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    border-bottom: 1px solid var(--border-color);
}

.post-container {
    min-height: calc(100vh - var(--header-height));
    margin-left: var(--sidebar-width);
    padding: 220px clamp(20px, 6vw, 110px);
    display: flex;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    row-gap: 48px;
    column-gap: 24px;
    width: 100%;
}

.scroll-container {
    margin-left: var(--sidebar-width);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.hero-container {
    align-items: flex-start;
    justify-content: space-between;
}

.projects-container{
    padding-bottom: var(--header-height);
    flex-direction: column;
    justify-content: space-between;
}

.about-container {
    padding-bottom: var(--header-height);
    flex-direction: column;
    justify-content: space-between;

}

.contact-container {
    padding-top: var(--header-height);
    padding-bottom: var(--header-height);
    align-items: center;
}
.single-container {
    min-height: calc(100vh - var(--header-height));
    margin-left: var(--sidebar-width);
    padding: 60px clamp(20px, 6vw, 110px);
    display: flex;
    flex-direction: column;
}
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 99;
    padding: 0 20px;

    font-family: 'JetBrains Mono';

    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--primary-color);
    font-weight: 400;
    font-size: 18px;
}

.header-controls {
    display: flex;
    gap: 12px;
    font-weight: 400;
    font-size: 18px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.ghost-btn {
    background: none;
    border: 1px solid transparent;

    font-family: 'JetBrains Mono';
    font-size: 13px;
    color: var(--primary-color);

    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

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

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 0;
    top: calc(100% - 1px);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    min-width: 100%;
    width: max-content;
    flex-direction: column;
    white-space: nowrap;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.dropdown-content-btn {
    color: var(--primary-color);
    background-color: var(--bg-color);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    border: none;
    box-sizing: border-box;
    text-align: left;
    transition: border 0.2s ease;
}

.dropdown-content-btn:hover {
    background-color: var(--border-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    border-right: var(--border-color) solid 1px;
    z-index: 10;
}

.indicator {
  position: fixed; top: 1rem; right: 1rem;
  width: 32px; display: flex; flex-direction: column; gap: 6px;
}

.indicator span {
  height: 4px; border-radius: 2px;
  background: var(--border-color);
  transition: background .3s, transform .3s;
}

.indicator span.active {
  background: var(--subtitle-color);
  transform-origin: right;
}

.title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 5.25rem);
}

.subtitle {
    color: var(--subtitle-color);
    font-size: clamp(1.25rem, 3vw, 2.2rem);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: 220px;
    border: solid 1px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
}

.primary {
    background-color: var(--accent-background);
    border-color: var(--primary-color);
    transition: 0.2s ease;
}

.primary:hover {
    background-color: var(--primary-color);
    color: var(--accent-background);
    border-color: var(--primary-color);
}

.secondary {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    transition: border-color 0.2s ease;
}

.secondary:hover{
    border-color: var(--primary-color);
}

.cta-buttons{
    padding-top: 40px;
    display: flex;
    gap: 50px;
}

.grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}
.project-row {
    justify-content: space-between;
}
.about-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 24px;
}

.contact-row {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.contact-row .card {
    justify-content: flex-start;
    gap: 32px;
    min-height: 0;
}

.project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.project-info {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-top-wrapper {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: var(--primary-color);
    padding-bottom: 12px;
}

.project-bottom-wrapper {
    flex:1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--subtitle-color);
    font-size: 16px;
}

.project-links {
    padding-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.project-links > div {
    display: flex;
    gap: 12px;
}

.link-more {
    opacity: 0.6;
    align-self: flex-end;
    margin-top: 20px;
    color: var(--primary-color);
    font-size: 16px;
    transition: 0.2s ease;
}

.link-more:hover {
    opacity: 1;
    background: none;
    color: var(--primary-color);
}

.about-content {
    color: var(--subtitle-color);
    font-size: 16px;
}

.specs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.ascii{
    font-size: 12px;
}

.post-hero {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

time {
    color: var(--subtitle-color);
}

.post-content {
    display: flex;
    width: 100%;
    max-width: 800px;
    flex-direction: column;
    margin: 0 auto;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 400px;
    color: var(--primary-color);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    color: var(--subtitle-color)
}

.post-content img {
    width: 100%;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.post-content > * {
    margin-bottom: 1.5rem;
}

.post-content > *:last-child {
    margin-bottom: 0;
}
.post-content img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 1000px) {
    .sidebar,
    .indicator {
        display: none;
    }
    .scroll-container {
        margin-left: 0;
    }
    .post-container {
        margin-left: 0;
    }

}
@media (max-width: 900px) {
    :root { --header-height: 64px; }

    .sidebar,
    .indicator {
        display: none;
    }

    .scroll-container {
        margin-left: 0;
        scroll-snap-type: none;
    }

    .section {
        scroll-snap-align: none;
        padding: 48px 20px;
    }

    .hero-container {
        flex-direction: column;
        justify-content: flex-start;
        gap: 40px;
    }

    .cta-buttons {
        flex-wrap: wrap;
        gap: 16px;
        padding-top: 24px;
    }

    .action-btn {
        width: 100%;
    }

    .ascii {
        overflow-x: auto;
        max-width: 100%;
    }

    .site-header {
        padding: 0 12px;
    }

    .header-controls { gap: 4px; }
    .ghost-btn { padding: 8px 8px; font-size: 12px; }
    .logo { font-size: 15px; }


    .post-container {
        margin-left: 0;
        padding: 48px 20px;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-container {
        margin-left: 0px;
        padding: 48px 20px;
    }
}
@media (max-width: 500px) {
    .post-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
