:root {
    --bg: #f3f2f2;
    --text: #201f1d;
    --muted: #6b6866;
    --divider: rgba(32, 31, 29, 0.16);
    --accent: #b68235;
    --accent-strong: #7d5411;
    --accent-tint: rgba(182, 130, 53, 0.12);

    --font-heading: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-body: Georgia, "Times New Roman", Times, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

    --space-1: 4px;
    --space-2: 9px;
    --space-3: 14px;
    --space-4: 18px;
    --space-6: 28px;
    --space-8: 40px;

    --radius: 4px;
    --sidebar: 300px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #171615;
        --text: #efece7;
        --muted: #a39f99;
        --divider: rgba(239, 236, 231, 0.18);
        --accent: #d9a55e;
        --accent-strong: #e0ae6b;
        --accent-tint: rgba(217, 165, 94, 0.14);
    }
}

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

html {
    color-scheme: light dark;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, dt {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

a.plain {
    color: var(--text);
}

hr {
    height: 1px;
    border: 0;
    margin: 0;
    background: var(--divider);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection {
    background: var(--accent-tint);
}

.muted {
    color: var(--muted);
}

.tnum {
    font-family: var(--font-heading);
    font-feature-settings: "tnum";
}

.label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
}

.skip-link:focus {
    left: var(--space-2);
    z-index: 20;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    line-height: 1.2;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--divider);
    border-radius: var(--radius);
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-tint);
    text-decoration: none;
}

.btn:active {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
}

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

.layout {
    display: grid;
    grid-template-columns: var(--sidebar) 1fr;
    min-height: 100vh;
}

.card-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-8) var(--space-6);
    border-right: 1px solid var(--divider);
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}

.card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    border-radius: var(--radius);
}

.card h1 {
    font-size: 1.75rem;
}

.kicker {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.roles {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
}

address {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-style: normal;
    font-size: 0.9375rem;
}

address a {
    align-self: start;
}

address .muted {
    line-height: 1.6;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.links .btn {
    padding: var(--space-3);
    color: var(--muted);
}

.links .btn:hover {
    color: var(--text);
}

.links svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.domain {
    margin-top: auto;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

main {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-8) calc(var(--space-8) + var(--space-3));
    max-width: 62rem;
}

.plink {
    float: right;
    padding: 0 0 .7rem .7rem;;
}

.intro {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.intro p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.35;
}

.now {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.now time {
    font-family: var(--font-heading);
    color: var(--accent-strong);
}

.now p {
    text-wrap: pretty;
}

.now code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.posts, .photos {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.posts ul, .photos ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.posts li {

    border-top: 1px solid var(--divider);
}

.posts li:last-child {
    border-bottom: 1px solid var(--divider);
}

.posts a {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    line-height: 1.3;
    color: var(--text);
    padding: var(--space-3) 0;
}

.posts a:hover {
    text-decoration: none;
}

.posts a:hover .title {
    color: var(--accent);
    text-decoration: underline;
}

.photos ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6) var(--space-4);
}

.photos a {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--muted);
}

.photos a:hover {
    color: var(--text);
    text-decoration: none;
}

.photos img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--accent-tint);
}

.photos a:hover img {
    opacity: 0.85;
}

footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.78125rem;
    line-height: 1.7;
    color: var(--muted);
}

footer a {
    color: inherit;
    text-decoration: underline;
}

/* Mobil */
@media (max-width: 720px) {
    body {
        font-size: 1.0625rem;
    }

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

    .card-column {
        position: static;
        max-height: none;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--divider);
        padding: var(--space-8) var(--space-4) var(--space-6);
    }

    main {
        padding: var(--space-6) var(--space-4) var(--space-8);
        gap: var(--space-6);
    }

    .intro p {
        font-size: 1.25rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .skip-link {
        display: none;
    }

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

    .card-column {
        position: static;
        max-height: none;
    }
}
