/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */

:root {
    --plum: #3d0e5a;
    --plum-faded: rgba(61, 14, 90, 0.2);
    --cream: #e2dfd9;
    --cream-dark: #ccc9c4;
    --text: #000;
    --muted: #9a9a9a;
    --sidebar-width: 44%;
    --content-max: 640px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }

body {
    font-family: "Noto Sans", sans-serif;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */

.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    overflow: hidden;
    z-index: 10;
}

.sidebar-strip {
    width: 84px;
    flex-shrink: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sidebar-name {
    writing-mode: vertical-rl;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 9px;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
}

.sidebar-photo {
    flex: 1;
    background-color: var(--cream-dark);
    background-size: cover;
    background-position: right top;
}

/* ═══════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════ */

.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

.content-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 48px;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 75px 0 0;
}

.site-nav a {
    font-family: "IBM Plex Mono", monospace;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 5.7px;
    color: var(--plum);
}

.site-nav a { opacity: 0.5; }
.site-nav a:hover { opacity: 1; }
.site-nav a.active { opacity: 1; }

/* ═══════════════════════════════════════════
   BRAND MARK
   ═══════════════════════════════════════════ */

.site-brand {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 75px 0 0;
}

.brand-workmark {
    height: 44px;
    width: auto;
    display: block;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   SHARED ELEMENTS
   ═══════════════════════════════════════════ */

.rule {
    border: none;
    border-top: 1px dotted var(--plum-faded);
    margin: 75px 0 75px;
}

.site-footer .rule {
    margin: 75px 0 25px;
}

/* ═══════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════ */

.home-headline {
    font-family: "Noto Sans", sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 38px;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.16px;
}

.home-subhead {
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 20px;
}

.home-intro {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 26px;
}

/* ═══════════════════════════════════════════
   WRITING / WORK LIST
   ═══════════════════════════════════════════ */

.writing-list { list-style: none; }

.writing-item {
    padding: 0;
    margin-bottom: 26px;
}

.writing-item:last-child {
    margin-bottom: 0;
}

.writing-item-title {
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 28px;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.writing-item-title a {
    color: var(--plum);
    text-decoration: underline;
    text-decoration-color: var(--plum-faded);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.writing-item-title a:hover {
    text-decoration-color: var(--plum);
}

.writing-item-excerpt {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: var(--text);
}

/* ═══════════════════════════════════════════
   WORK LIST PAGE
   ═══════════════════════════════════════════ */

.work-intro {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */

.about-headshot-photo {
    float: right;
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    margin-left: 38px;
    margin-bottom: 10px;
    display: block;
}

.about-section-label {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 36px;
}

.about-intro,
.about-body {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 20px;
}

.connect-links { list-style: none; }
.connect-links li { margin-bottom: 8px; }
.connect-links a {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    color: var(--plum);
}

/* ═══════════════════════════════════════════
   ARTICLE PAGES
   ═══════════════════════════════════════════ */

.article-back {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 32px;
}

.article-back:hover { opacity: 0.6; }

.article-more {
    display: inline-block;
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--plum);
    text-decoration: underline;
    text-decoration-color: var(--plum-faded);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    margin-top: 75px;
    margin-bottom: 0;
}

.article-more:hover {
    text-decoration-color: var(--plum);
}

.article-end-mark {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: baseline;
    position: relative;
    top: 2px;
    margin-left: 6px;
    opacity: 0.85;
}

.article-title {
    font-family: "Noto Sans", sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.16px;
    color: var(--text);
    margin-bottom: 40px;
}

.article-body a {
    color: var(--plum);
    text-decoration: underline;
    text-decoration-color: var(--plum-faded);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.article-body a:hover {
    text-decoration-color: var(--plum);
}

.article-body p {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 20px;
}

.article-body h2 {
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-top: 48px;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   FOOTER RULE GRAPHIC
   ═══════════════════════════════════════════ */

.footer-rule-graphic {
    display: block;
    width: 100%;
    height: auto;
    margin: 75px 0 0;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.site-footer {
    padding-top: 75px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 0;
    position: relative;
}

.footer-name {
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--plum);
    line-height: 26px;
    display: block;
}

.footer-name {
    text-decoration: underline;
    text-decoration-color: var(--plum-faded);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.footer-name:hover {
    opacity: 0.7;
    text-decoration-color: var(--plum);
}

.footer-role {
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    line-height: 26px;
}

.footer-tagline {
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    line-height: 26px;
    margin-top: 26px;
    margin-bottom: 26px;
}

.footer-linkedin,
.footer-github {
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 26px;
    color: var(--plum);
    display: block;
}

.footer-linkedin,
.footer-github {
    text-decoration: underline;
    text-decoration-color: var(--plum-faded);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.footer-linkedin:hover,
.footer-github:hover {
    opacity: 0.7;
    text-decoration-color: var(--plum);
}

.footer-owl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 38px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-nav a,
.footer-articles a {
    display: block;
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    line-height: 26px;
    color: var(--plum);
}

.footer-nav a { font-weight: 700; }

.footer-articles-label {
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 26px;
    color: var(--text);
    margin-top: 16px;
    margin-bottom: 4px;
}

.footer-articles a { font-weight: 400; margin-bottom: 8px; }

.footer-nav a,
.footer-articles a {
    text-decoration: underline;
    text-decoration-color: var(--plum-faded);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.footer-nav a:hover,
.footer-articles a:hover {
    opacity: 0.7;
    text-decoration-color: var(--plum);
}

.footer-copy {
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #5b5b5b;
    line-height: 26px;
    padding-bottom: 25px;
}

/* ═══════════════════════════════════════════
   PAGE LABEL
   ═══════════════════════════════════════════ */

.page-label {
    font-family: "Noto Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 26px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1100px) {
    :root { --sidebar-width: 40%; }
}

@media (max-width: 900px) {
    :root { --sidebar-width: 36%; }
    .content-inner { padding: 0 36px; }
}

@media (max-width: 768px) {
    :root { --spacing: 37px; }

    .site-nav { padding: 37px 0 0; }
    .site-brand { padding: 37px 0 0; }
    .rule { margin: 37px 0; }
    .site-footer { padding-top: 37px; }
    .footer-rule-graphic { margin: 37px 0 0; }
    .site-footer .rule { margin: 37px 0 12px; }
    .article-more { margin-top: 37px; }

    .site-wrapper { flex-direction: column; }

    .sidebar {
        position: relative;
        width: 100%;
        height: 300px;
        flex-shrink: 0;
        flex-direction: column;
    }

    .sidebar-strip {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px 24px;
        flex-shrink: 0;
    }

    .sidebar-name {
        writing-mode: horizontal-tb;
        font-size: 10px;
        letter-spacing: 0.3em;
        text-align: center;
        width: 100%;
    }

    .sidebar-photo { flex: 1; }

    .content { margin-left: 0; }

    .content-inner { padding: 0 24px; }

    .brand-workmark { height: 32px; }
    .brand-logo { height: 36px; }

    .home-headline { font-size: 26px; line-height: 30px; }

    .footer-inner { grid-template-columns: 1fr; }

    .footer-owl {
        position: static;
        display: block;
        margin-top: 32px;
    }

    .about-headshot-photo {
        float: none;
        width: 100%;
        height: 200px;
        margin-left: 0;
    }
}
