
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Space+Grotesk:wght@300..700&display=swap');


/* ============================================================================
   TROELS LENDA STRAND - PORTFOLIO STYLES
   Pure semantic CSS for markdown-generated HTML
   ============================================================================ */

/* Design System - Color Variables (HSL Format) */
:root {
       --background: 220 10% 6%;
    --foreground: 40 20% 92%;
    --card: 220 10% 8%;
    --card-foreground: 40 20% 92%;
    --popover: 220 10% 8%;
    --popover-foreground: 40 20% 92%;
    --primary: 40 20% 92%;
    --primary-foreground: 220 10% 6%;
    --secondary: 220 10% 12%;
    --secondary-foreground: 40 20% 92%;
    --muted: 220 8% 14%;
    --muted-foreground: 40 8% 62%;
    --accent: 220 10% 12%;
    --accent-foreground: 40 20% 92%;
    --destructive: 0 70% 50%;
    --destructive-foreground: 40 20% 92%;
    --border: 220 8% 16%;
    --input: 220 8% 16%;
    --ring: 280 70% 60%;
    --radius: 0.5rem;
    --gold: 42 92% 60%;
    --magenta: 322 85% 58%;
    --cyan: 188 90% 55%;
    --purple: 275 75% 62%;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5em 0;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    /* margin: 2em 0 1em; */
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

p {
    margin-bottom: 1.25em;
    line-height: 1.75;
}

strong {
    font-weight: 600;
    color: hsl(var(--gold));
}

em {
    font-style: italic;
}

code {
    /* font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background-color: hsl(220, 10%, 12%);
    padding: 0.2em 0.4em;
    border-radius: var(--radius); */
}

/* ============================================================================
   LAYOUT CONTAINER
   ============================================================================ */

main {
    min-height: 100vh;
    background-color: hsl(var(--background));
}

.container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================================================
   LINKS
   ============================================================================ */

a {
    color: hsl(var(--cyan));
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.mono-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: hsl(var(--foreground));
    opacity: 0.7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

section + section {
      border-top: 1px solid;
  border-image: linear-gradient(90deg, rgba(0, 0, 0, 0), rgb(38, 40, 44) 20%, rgb(38, 40, 44) 80%, rgba(0, 0, 0, 0)) 1;
    opacity: 1;
    margin-top: 4rem;
    padding-top: 4rem;
}



/* ============================================================================
   HERO SECTION
   ============================================================================ */

/* Logo */
header img {
    display: block;
    width: 14rem;
    height: 14rem;
    margin: 1rem auto;
    filter: drop-shadow(0 0 60px hsl(var(--purple) / 0.25)) drop-shadow(0 0 120px hsl(var(--magenta) / 0.15))
}

/* Mono label (// hands-on...) */
.intro blockquote {
    code {
        color: hsl(var(--magenta));
        font-weight: bold;
    }
}

.intro blockquote p, 
header p:nth-child(2){
    text-align: center;
    color: hsl(var(--foreground));
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;    
}
header p:nth-child(2){
text-transform: uppercase;
}

:root {
    --button {
        display: inline-block;
        padding: 0.625rem 1.25rem;
        border: 1px solid red;
    }
}

/* Main heading */
.intro {
    text-align: center;

    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
        list-style: none;
        margin: 2rem 0;
        padding: 0;
    }
     li:first-of-type a {
            background-color: hsl(var(--white));
            color: hsl(var(--background));
        }
        
    a {
        display: inline-block;
        padding: 0.625rem 1.25rem;
        border: 1px solid hsl(var(--light));
        border-radius: 2rem;
        color: hsl(var(--white));
        text-decoration: none;
        
    }

}

.content-section.intro > h1 {
    font-family: 'Adwaita Sans', system-ui, sans-serif;

    margin: 0.5em 0;
}

/* Subtitle */
.content-section.intro > p:nth-of-type(3) {
    text-align: center;
    font-size: 1.125rem;
    color: hsl(var(--foreground));
    opacity: 0.9;
    margin-bottom: 2rem;
    font-family: 'Adwaita Sans', system-ui, sans-serif;
}

/* First list (buttons) */
.content-section.intro > ul:first-of-type {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.content-section.intro > ul:first-of-type li a {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: 1px solid hsl(var(--cyan));
    border-radius: var(--radius);
    background-color: transparent;
    color: hsl(var(--cyan));
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.content-section.intro > ul:first-of-type li a:hover {
    background-color: hsla(188, 90%, 55%, 0.1);
    /* border-color: hsl(var(--foreground)); */
}

.content-section.intro > ul:first-of-type li:first-child a {
    background-color: hsl(var(--cyan));
    color: hsl(var(--background));
    /* border-color: hsl(var(--cyan)); */
}

.content-section.intro > ul:first-of-type li:first-child a:hover {
    opacity: 0.9;
}

/* Quote section */
.content-section.intro > blockquote {
        font-family: 'JetBrains Mono', monospace;

    margin: 2rem 0;
    padding: 1rem 1.25rem;
    /* //border-left: 2px solid hsl(var(--cyan)); */
    color: hsl(var(--foreground));
    opacity: 0.85;
    font-style: normal;
    font-size: 0.7rem;
    text-align: center;
}

.content-section.intro > blockquote code {
    color: hsl(var(--cyan));
    font-style: normal;
    background: none;
    padding: 0;
}

.content-section.intro > blockquote p {
    margin-bottom: 0;
}

/* ============================================================================
   DIVIDERS & SECTIONS
   ============================================================================ */

/* Section headings */
section > h2 {
    position: relative;
    padding-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

/* section > h2::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--gold)), transparent);
} */

/* ============================================================================
   LISTS
   ============================================================================ */

ul, ol {
    margin-bottom: 1.5rem;
}

/* Button group list (intro links) */
.content-section-intro > ul:first-of-type {
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.content-section-intro > ul:first-of-type li {
    margin-bottom: 0;
}

/* List in How I Think section (bullet list) */
.questions {
    margin-left: 1.5rem;
}

.questions li {
    margin-bottom: 0.75rem;
}



/* Environment list */
.content-section:nth-of-type(7) ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.content-section:nth-of-type(7) ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background-color: hsl(220, 10%, 10%);
    transition: background-color 0.2s ease;
}

.content-section:nth-of-type(7) ul li:hover {
    background-color: hsl(220, 10%, 12%);
}

.content-section:nth-of-type(7) ul li::before {
    content: '›';
    color: hsl(var(--cyan));
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.content-section:nth-of-type(7) ul li::marker {
    display: none;
}

/* Contact section links list */
.content-section:last-of-type ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
}

.content-section:last-of-type ul li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.content-section:last-of-type ul li a {
    color: hsl(var(--foreground));
    transition: color 0.2s ease;
}

.content-section:last-of-type ul li:first-child a {
    color: hsl(var(--magenta));
}

.content-section:last-of-type ul li:nth-child(2) a {
    color: hsl(var(--cyan));
}

.content-section:last-of-type ul li:nth-child(3) a {
    color: hsl(var(--purple));
}

/* ============================================================================
   CAPABILITIES (h3 with following p tags)
   ============================================================================ */
.skills h3 {
    color: hsl(var(--magenta));
    margin-top: 1.5rem;
}

.skills h3 + p {
    color: hsl(var(--foreground));
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* ============================================================================
   WORK SECTION (h3 with following p tags)
   ============================================================================ */

.selected-work h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.25rem;
    color: hsl(var(--foreground));
}

.selected-work h3 + p {
    font-size: 0.9rem;
    color: hsl(var(--foreground));
    opacity: 0.7;
    margin-bottom: 1rem;
}

.selected-work h3 + p + p,
.selected-work h3 + p + p + p {
    margin-bottom: 1rem;
}

/* Alternate colors for work items - pattern repeating every 3 h3s after h2:4 */
.selected-work li:nth-child(4n + 1) h3 {
    color: hsl(var(--magenta));
}

.selected-work li:nth-child(4n + 2) h3 {
    color: hsl(var(--gold));
}

.selected-work li:nth-child(4n + 3) h3 {
    color: hsl(var(--cyan));
}

.selected-work li:nth-child(4n) h3 {
    color: hsl(var(--purple));
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.site-footer p {
    text-align: center;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    color: hsl(var(--foreground));
    opacity: 0.6;
    margin-bottom: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1rem;
    }

    main > .container {
        padding: 1.5rem 1rem;
    }

    main > .container > img:first-child {
        width: 9rem;
        height: 9rem;
        margin: 0.75rem auto;
    }

    main > .container > h1 {
        margin: 0.75em 0;
    }

    main > .container > h1 + p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    main > .container > ul:first-of-type {
        gap: 0.5rem;
    }

    main > .container > ul:first-of-type li a {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    main > .container > h2 {
        margin: 1.5rem 0 1em;
    }

    main > .container > hr {
        margin: 2rem 0;
    }
}





.question-list li{
    margin: 0.75rem 0;
    padding: 0.75rem;
    border-radius: var(--radius);

    list-style: none;
    border: 1px solid hsl(var(--border));
    &::after{
        content: ' ?"';
        font-weight: bold;


    }
    &:nth-child(1n + 1)::after {
        color:hsl(var(--gold));
    }
    &:nth-child(2n + 2)::after {
        color:hsl(var(--magenta));
    }
    &:nth-child(3n + 3)::after {
        color:hsl(var(--cyan));
    }
    &::before{
        content: '" ';
        font-weight: bold;


    }
    &:nth-child(1n + 1)::before {
        color:hsl(var(--gold));
    }
    &:nth-child(2n + 2)::before {
        color:hsl(var(--magenta));
    }
    &:nth-child(3n + 3)::before {
        color:hsl(var(--cyan));
    }
}

.capabilities-list li {
        margin: 0.75rem 0;
    padding: 0.75rem;
       border-radius: var(--radius);

    /* list-style: none; */
    border: 1px solid hsl(var(--border));
}



.capabilities-list ol {

    list-style-type: none;
        counter-reset: item;


    li:before{
        content: "0" counter(item) "   "; 
    counter-increment: item;
    color: hsl(var(--magenta));
    
    }
    /* ::marker {
        color: hsl(var(--magenta));
    } */
    /* list-style-position: inside; */
    /* list-style-type: decimal-leading-zero; */

    h3 {
        margin-left: 0.75rem;
        display: inline;
        font-weight: bold;
        font-size: 1rem;
    }
    p {
        color: hsl(var(--muted-foreground));
    }

}

/* .capabilities-list li {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color 0.3s ease;
    display: flex;
    gap: 1rem;
} */

/* .capabilities-list li:hover {
    border-color: hsl(var(--foreground) / 0.3);
}

.capabilities-list li:nth-child(1)::before {
    content: '1';
}

.capabilities-list li:nth-child(2)::before {
    content: '2';
}

.capabilities-list li:nth-child(3)::before {
    content: '3';
}

.capabilities-list li:nth-child(4)::before {
    content: '4';
}

.capabilities-list li:nth-child(5)::before {
    content: '5';
} */

/* .capabilities-list li::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: hsl(var(--magenta));
    color: hsl(var(--background));
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
}

.capabilities-list li > * {
    flex: 1;
}

.capabilities-list li strong:first-child {
    display: block;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.capabilities-list li p {
    color: hsl(var(--foreground));
    opacity: 0.85;
    font-size: 0.95rem;
    margin-bottom: 0;
} */
