:root {
    --page: #f5f6f6;
    --surface: #ffffff;
    --surface-muted: #f0f2f2;

    --text: #17191a;
    --text-muted: #62696c;

    --line: #d9dede;

    --teal: #159d9b;
    --teal-dark: #075d70;
    --orange: #e95c17;

    --max-width: 1920px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--page);
    color: var(--text);

    font-family: "Noto Sans", "Liberation Sans", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-shell {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--surface);

    border: 0;
}

/* Header + Navigation */

.site-header {
    min-height: 125px;

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

    gap: 3rem;

    padding: 1rem 3rem;

    background: var(--surface);

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

.brand {
    display: inline-block;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;

    width: min(430px, 38vw);
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 0.25rem;

    min-width: 0;
}

.site-nav a {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 1rem;

    color: #26343a;

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
    color 160ms ease,
    background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--teal-dark);

    background: rgba(21, 157, 155, 0.04);
}

.site-nav a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.site-nav a.active {
    color: var(--teal-dark);
}

.site-nav a.active::after {
    content: "";

    position: absolute;

    left: 1rem;
    right: 1rem;
    bottom: 0;

    height: 3px;

    background: var(--orange);
}

/* Interior layout */

.site-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);

    flex: 1;
}

.sidebar {
    padding: 2rem;

    border-right: 1px solid var(--line);

    background: var(--surface-muted);
}

.sidebar-section + .sidebar-section {
    margin-top: 2rem;
    padding-top: 2rem;

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

.sidebar h2 {
    margin: 0 0 1rem;

    color: var(--teal-dark);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.company-facts {
    margin: 0;
}

.company-facts div {
    margin-bottom: 0.9rem;
}

.company-facts dt {
    color: var(--text-muted);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.company-facts dd {
    margin: 0.15rem 0 0;

    font-size: 0.9rem;
}

.philosophy {
    color: var(--text-muted);

    font-size: 0.82rem;
    line-height: 1.8;
}

.philosophy p {
    margin: 0;
}

.philosophy p + p {
    margin-top: 0.2rem;
}

.philosophy span {
    margin: 0 0.25rem;

    color: var(--orange);
}

.project-name {
    margin: 0;

    font-weight: 700;
}

.project-version {
    margin: 0.2rem 0 0;

    color: var(--text-muted);

    font-size: 0.82rem;
}

.sidebar-motto {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.sidebar-motto p {
    margin: 0;
}

.sidebar-motto span {
    color: var(--orange);
}

/* Main content */

.content {
    width: 100%;
    max-width: none;

    padding: 3.5rem 4rem 5rem;
}

.eyebrow {
    margin: 0 0 1.5rem;

    color: var(--orange);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

h1.eyebrow {
    margin: 0 0 0.7rem;
}

.founder-quote {
    width: min(100%, 920px);

    margin: 0 0 3rem;
    padding: 0;

    border: 0;

    text-align: center;
}

.founder-quote p {
    margin: 0;

    color: #172d33;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.35;
}

.founder-quote footer {
    margin-top: 1.25rem;

    color: var(--text-muted);

    font-size: 0.95rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.lead {
    max-width: 760px;

    margin: 1.4rem 0 0;

    color: var(--text-muted);

    font-size: 1.12rem;
    line-height: 1.75;
}

.content-section {
    max-width: 780px;

    margin-top: 3rem;
}

.content-section h2 {
    margin: 0 0 0.7rem;

    color: var(--teal-dark);

    font-size: 1.15rem;
}

.content-section p {
    margin: 0;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

/* Footer */

.site-footer {
    padding: 1.15rem 2rem;

    border-top: 1px solid var(--line);

    background: #17191a;

    color: #bfc5c7;

    text-align: center;

    font-size: 0.72rem;
}

.site-footer p {
    margin: 0;
}

.site-footer span {
    margin: 0 0.65rem;

    color: #70777a;
}

.site-footer a {
    color: #dce0e1;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

/* About */

.about-intro {
    max-width: 1000px;
}

.about-intro > p {
    max-width: 820px;

    margin: 0;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

.about-intro > p + p {
    margin-top: 1.25rem;
}

.about-section {
    max-width: 1000px;
}

.about-section > p + p {
    margin-top: 1rem;
}

.page-title {
    margin: 0 0 1.5rem;

    color: var(--orange);

    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1rem;

    margin-top: 2rem;
}

.principle-card {
    padding: 1.4rem 1.5rem;

    border: 1px solid var(--line);

    background: #fafbfb;
}

.principle-card h3 {
    margin: 0 0 0.55rem;

    color: var(--teal-dark);

    font-size: 1rem;
}

.principle-card p {
    margin: 0;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Projects */

.project-feature {
    max-width: 1050px;

    margin-top: 2rem;
}

.project-feature h2 {
    margin: 0;

    color: var(--teal-dark);

    font-size: 1.8rem;
    line-height: 1.25;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;

    margin: 0.65rem 0 0;

    color: var(--text-muted);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-meta span {
    color: var(--orange);
}

.project-description {
    max-width: 900px;

    margin-top: 2rem;
}

.project-description p {
    margin: 0;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

.project-description p + p {
    margin-top: 1.25rem;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    max-width: 900px;

    margin: 2.5rem 0 0;
    padding: 1.25rem 0;

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

.project-details div {
    padding: 0 1.25rem;

    border-right: 1px solid var(--line);
}

.project-details div:first-child {
    padding-left: 0;
}

.project-details div:last-child {
    padding-right: 0;
    border-right: 0;
}

.project-details dt {
    color: var(--text-muted);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-details dd {
    margin: 0.35rem 0 0;

    color: var(--text);

    font-size: 0.9rem;
    font-weight: 600;
}

.project-details dd span {
    color: var(--orange);
}

.sidebar-project-focus {
    margin-top: 1.25rem;
}

.project-github {
    margin: 2rem 0 0;
}

.project-github a {
    color: var(--teal-dark);

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;
}

.project-github a:hover,
.project-github a:focus-visible {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Company */

.company-section {
    max-width: 1000px;

    margin-top: 2.75rem;
}

.company-section + .company-section {
    margin-top: 3.5rem;
}

.company-section h2 {
    margin: 0 0 1.25rem;

    color: var(--teal-dark);

    font-size: 1.3rem;
}

.company-statement {
    max-width: 920px;

    margin: 0;
    padding: 0;

    border: 0;
}

.company-statement p {
    margin: 0;

    color: #172d33;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.65;
}

.company-commitment {
    max-width: 900px;

    margin: 1.75rem 0 0;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

.company-commitment-followup {
    margin-top: 1.25rem;
}

/* Portfolio */

.portfolio-preview {
    max-width: 900px;

    margin-top: 2rem;
}

.portfolio-preview h2 {
    margin: 0;

    color: var(--teal-dark);

    font-size: 1.8rem;
    line-height: 1.25;
}

.portfolio-status {
    margin: 0.65rem 0 0;

    color: var(--orange);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-description {
    max-width: 760px;

    margin: 1.5rem 0 0;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

/* Contact */

.contact-intro {
    max-width: 900px;

    margin-top: 2rem;
}

.contact-intro p,
.contact-section > p {
    margin: 0;

    font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-section {
    max-width: 900px;

    margin-top: 3rem;
}

.contact-section h2 {
    margin: 0 0 0.75rem;

    color: var(--teal-dark);

    font-size: 1.3rem;
}

.contact-link {
    margin-top: 0.9rem !important;
}

.contact-link a {
    color: var(--teal-dark);

    font-family: "Noto Sans", "Liberation Sans", Arial, sans-serif;
    font-weight: 700;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-link a:hover,
.contact-link a:focus-visible {
    color: var(--orange);
}

.contact-note {
    margin-top: 1rem !important;

    color: var(--text-muted);

    font-size: 0.9rem !important;
}

/* Large desktop */

@media (min-width: 1600px) {
    .site-layout {
        grid-template-columns: 340px minmax(0, 1fr);
    }

    .site-header {
        min-height: 150px;

        padding: 1.25rem 4rem;
    }

    .brand-logo {
        width: 460px;
    }

    .site-nav {
        gap: 0.5rem;
    }

    .site-nav a {
        min-height: 58px;

        padding: 0 1.25rem;

        font-size: 0.9rem;
    }

    .sidebar {
        padding: 2.5rem;
    }

    .sidebar h2 {
        font-size: 0.9rem;
    }

    .company-facts dt {
        font-size: 0.8rem;
    }

    .company-facts dd {
        font-size: 1rem;
    }

    .philosophy {
        font-size: 0.9rem;
    }

    .project-name {
        font-size: 1rem;
    }

    .project-version {
        font-size: 0.9rem;
    }

    .content {
        padding: 4.5rem 5rem 6rem;
    }

    .eyebrow {
        font-size: 0.82rem;
    }

    .founder-quote {
        width: min(100%, 1180px);

        margin-bottom: 3.5rem;
    }

    .founder-quote p {
        font-size: clamp(2.8rem, 2.7vw, 4rem);
    }

    .founder-quote footer {
        font-size: 1.05rem;
    }

    .lead {
        max-width: 980px;

        font-size: 1.25rem;
    }

    .content-section {
        max-width: 1000px;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .content-section p {
        font-size: 1.08rem;
    }

    .site-footer {
        padding: 1.35rem 2rem;

        font-size: 0.8rem;
    }

    .about-intro > p {
        font-size: 1.08rem;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .project-feature {
        max-width: 1200px;
    }

    .project-feature h2 {
        font-size: 2rem;
    }

    .project-description {
        max-width: 1000px;
    }

    .project-description p {
        font-size: 1.08rem;
    }

    .project-details {
        max-width: 1000px;
    }

    .company-section {
        max-width: 1100px;
    }

    .company-statement {
        max-width: 1000px;
    }

    .company-statement p {
        font-size: 1.5rem;
    }

    .company-commitment {
        max-width: 1000px;

        font-size: 1.08rem;
    }

    .portfolio-preview {
        max-width: 1000px;
    }

    .portfolio-preview h2 {
        font-size: 2rem;
    }

    .portfolio-description {
        max-width: 850px;

        font-size: 1.08rem;
    }

    .contact-intro,
    .contact-section {
        max-width: 1000px;
    }

    .contact-intro p,
    .contact-section > p {
        font-size: 1.08rem;
    }

    .contact-note {
        font-size: 0.95rem !important;
    }

}

/* Responsive */

@media (max-width: 1100px) {
    .site-header {
        min-height: auto;

        flex-direction: column;
        align-items: stretch;

        gap: 1.25rem;

        padding: 1.25rem;
    }

    .brand {
        align-self: center;
    }

    .brand-logo {
        width: min(330px, 88vw);
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);

        width: 100%;

        gap: 0;

        overflow: visible;
    }

    .site-nav a {
        min-width: 0;

        padding: 0.65rem 0.25rem;

        text-align: center;
    }

    .site-layout {
        display: flex;
        flex-direction: column;
    }

    .content {
        order: 1;

        padding: 2.5rem 1.5rem 4rem;
    }

    .sidebar {
        order: 2;

        width: 100%;

        border-right: 0;
        border-top: 1px solid var(--line);
        border-bottom: 0;
    }

    .founder-quote {
        margin-bottom: 2.5rem;
    }

    .founder-quote p {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .founder-quote footer {
        margin-top: 1rem;

        font-size: 0.9rem;
    }

    .site-footer {
        padding-inline: 1rem;
    }

    .site-footer span {
        margin-inline: 0.35rem;
    }

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

    .principles-grid .principle-card:nth-child(1) {
        order: 1;
    }

    .principles-grid .principle-card:nth-child(3) {
        order: 2;
    }

    .principles-grid .principle-card:nth-child(5) {
        order: 3;
    }

    .principles-grid .principle-card:nth-child(2) {
        order: 4;
    }

    .principles-grid .principle-card:nth-child(4) {
        order: 5;
    }

    .principles-grid .principle-card:nth-child(6) {
        order: 6;
    }

    .project-feature {
        margin-top: 1.5rem;
    }

    .project-feature h2 {
        font-size: 1.6rem;
    }

    .project-details {
        grid-template-columns: 1fr;

        gap: 1rem;
    }

    .project-details div {
        padding: 0 0 1rem;

        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .project-details div:last-child {
        padding-bottom: 0;

        border-bottom: 0;
    }

    .company-section {
        margin-top: 2.25rem;
    }

    .company-statement p {
        font-size: 1.2rem;
    }

}
