:root {
  --bg: #7A6656;
  --ink: #f4f6f8;
  --muted: rgba(244, 246, 248, 0.55);
  --accent: #ECD078;
  --grid-line: rgba(244, 246, 248, 0.1);
  --blur-bg: rgba(65, 30, 15, 0.85);
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-mono: 'IBM Plex Sans', system-ui, sans-serif;
  --label-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
}

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

html, body {
    background-color: var(--bg);
    font-family: var(--font-mono);
    color: var(--ink);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
}

::selection {
    background: var(--accent);
    color: color-mix(in srgb, var(--bg) 80%, black);
}

a {
    text-decoration: none;
    color: inherit;
}





@keyframes scanline-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

.ui-layer {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glass-panel {
    background: var(--blur-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grid-line);
    position: sticky;
    top: 0;
    z-index: 50;
}

header.top-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem 3.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-transform: uppercase;
}
header.top-nav .nav-item { justify-self: start; }
header.top-nav .brand { justify-self: center; }

.brand {
    position: relative;
    z-index: 10;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    -webkit-text-stroke: 0.6px var(--ink);
    color: var(--ink);
    text-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
}

.allow-select {
    user-select: text;
    -webkit-user-select: text;
}

.content-section {
    padding: 4rem 3.5rem 8rem 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-header {
    margin-bottom: 5rem;
    padding: 4rem 3.5rem 6rem 3.5rem;
    background: linear-gradient(to bottom, var(--blur-bg) 0%, rgba(65, 30, 15, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    min-height: clamp(10rem, 22vw, 20rem);
}

.massive-title {
    font-family: var(--font-display);
    font-size: clamp(6rem, 16vw, 14rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 0.85;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.sub-text {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.5;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-card {
    display: block;
    border: 1px solid var(--grid-line);
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(244, 246, 248, 0.25);
}

.blog-card--disabled {
    cursor: default;
}

.blog-card--disabled:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--grid-line);
}

.blog-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.blog-excerpt {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.blog-tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    border: 1px solid var(--grid-line);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
    border-radius: 4px;
    color: var(--muted);
}

.blog-link {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.blog-link--soon {
    color: var(--muted);
    opacity: 0.5;
}

@media (max-width: 640px) {
    header.top-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .content-section { padding: 3rem 1.5rem 6rem 1.5rem; }
    .blog-card { padding: 1.5rem; }
}
.nav-item { text-decoration: none; color: var(--ink); text-shadow: var(--label-shadow); transition: color 0.2s ease; cursor: pointer; }
.nav-item:hover { color: var(--accent); }
.brand, .brand-inline { cursor: pointer; transition: color 0.2s ease; }

.scroll-hint {
    left: auto;
    right: var(--page-gutter, 3.5rem);
    bottom: max(32px, env(safe-area-inset-bottom)) !important;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    border: 1px solid var(--grid-line);
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(244, 246, 248, 0.25);
    transform: translateY(-2px);
}

.project-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.project-overview {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

.project-used {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-used-label {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-right: 0.4rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--grid-line);
    padding: 0.5rem 1.2rem;
    border-radius: 3px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.project-link:hover {
    color: #ffffff;
    border-color: var(--accent);
    background: rgba(209, 174, 109, 0.1);
}

@media (max-width: 640px) {
    .project-card { padding: 1.5rem; }
}
