:root {
    --ink: #2d241f;
    --muted: #796e67;
    --paper: #fcf8f5;
    --white: #ffffff;
    --accent: #775743;
    --accent-soft: #eee4dc;
    --profile-ring-color: #775743;
    --profile-ring-soft: rgba(119, 87, 67, 0.18);
    --brown-1: #3a2c20;
    --brown-2: #5c4b3b;
    --brown-3: #877154;
    --brown-4: #877154;
    --brown-5: #775743;
    --brown-6: #513428;
    --line: rgba(58, 44, 32, 0.15);
    --shadow: 0 18px 60px rgba(72, 50, 48, 0.11);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { min-width: 320px; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.6; }
a { color: inherit; }
img, svg { max-width: 100%; }
a:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 4px; border-radius: 3px; }
.site-shell { overflow: hidden; }

.topbar { min-height: 70px; padding: 0 clamp(24px, 6vw, 90px); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font: 700 1.08rem/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; text-decoration: none; }
.brand span { color: var(--accent); margin-left: 3px; }
.social-nav, .page-nav { display: flex; align-items: center; }
.social-nav { gap: clamp(18px, 3vw, 36px); }
.social-nav a, .page-nav a { position: relative; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; }

.social-nav a::after, .page-nav a::after, .text-link::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; content: ""; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.social-nav a:hover, .page-nav a:hover, .text-link:hover { color: var(--ink); }
.social-nav a:hover::after, .page-nav a:hover::after, .text-link:hover::after { transform: scaleX(1); }
.icon-link { display: inline-flex; align-items: center; gap: 7px; }
.icon-link svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-link svg path { fill: currentColor; stroke: none; }
.icon-link .icon-dot { fill: currentColor; stroke: none; }
.icon-link .discord-icon { width: 20px; height: 20px; flex-basis: 20px; overflow: visible; }

.hero { position: relative; height: clamp(180px, 28vw, 320px); overflow: hidden; background: var(--brown-1); }
.hero-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 56%; filter: saturate(.72) contrast(.9); opacity: .8; }
.hero-glow { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(58, 44, 32, .55), transparent 55%, rgba(135, 113, 84, .3)); pointer-events: none; }
.page-nav { min-height: 70px; justify-content: center; gap: clamp(28px, 7vw, 90px); padding: 15px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-nav a { font-size: .84rem; }

.content-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 70px; }
.layout-grid { display: grid; grid-template-columns: 275px minmax(0, 1fr); align-items: start; gap: clamp(44px, 7vw, 84px); }
.profile-sidebar, .main-column { padding-top: 44px; }
.profile-sidebar { min-width: 0; }
.profile-ring { width: 176px; height: 176px; padding: 7px; background: var(--profile-ring-color); border-radius: 50%; box-shadow: 0 0 0 7px var(--profile-ring-soft); }
.profile-ring img { width: 100%; height: 100%; display: block; border: 4px solid var(--white); border-radius: 50%; object-fit: cover; object-position: center; }
.profile-sidebar h1 { margin: 20px 0 5px; font-size: clamp(2rem, 4vw, 2.7rem); }
.eyebrow { color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.1; letter-spacing: -.045em; }
h2 { margin-top: 7px; font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.05rem; }
.profile-meta { color: var(--muted); font-size: .84rem; font-weight: 600; }
.profile-meta span { margin: 0 3px; color: var(--accent); }
.profile-description { max-width: 250px; margin-top: 14px; color: var(--muted); font-size: .88rem; }

.sidebar-block { margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.sidebar-block h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.03em; }
.game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.game-tags span { padding: 5px 9px; color: var(--brown-6); background: var(--white); border: 1px solid rgba(135, 113, 84, .28); border-radius: 100px; font-size: .7rem; font-weight: 600; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-mark { color: var(--accent); font: 600 1.35rem/1 "Space Grotesk", sans-serif; letter-spacing: -.08em; }
.mini-character-list { display: grid; gap: 14px; margin-top: 18px; }
.mini-character { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mini-character-image { width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; background: var(--brown-2); border: 2px solid var(--accent-soft); border-radius: 50%; }
.mini-character-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mini-character h3 { overflow: hidden; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-character p { margin-top: 2px; color: var(--muted); font-size: .68rem; }

.main-column { min-width: 0; }
.section-block { padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.main-column .section-block + .section-block { padding-top: 42px; }
.intro-section > p:last-child { max-width: 600px; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.posts-list { display: grid; gap: 18px; }
.empty-posts { padding: 22px; color: var(--muted); background: #faf5f0; border: 1px solid rgba(169, 87, 67, .16); border-radius: 17px; font-size: .9rem; }
.featured-post { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 28px; padding: 22px; background: #faf5f0; border: 1px solid rgba(169, 87, 67, .16); border-radius: 17px; }
.featured-post--text-only { grid-template-columns: 1fr; }
.post-date { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.featured-post h3 { margin: 10px 0; font-size: 1.4rem; }
.featured-post .post-copy > p:not(.post-date) { max-width: 520px; color: var(--muted); font-size: .88rem; }
.featured-post img { width: 100%; height: 145px; object-fit: cover; border-radius: 12px; }
.text-link { position: relative; display: inline-block; margin-top: 20px; color: var(--accent); font-size: .82rem; font-weight: 700; text-decoration: none; }
.text-link::after { bottom: -4px; }
.contact-section { padding-bottom: 0; border-bottom: 0; }
.contact-copy { margin-top: 18px; }
.contact-copy > p { max-width: 450px; color: var(--muted); }
.nav-target { scroll-margin-top: 92px; border-radius: 16px; }
.nav-target.is-highlighted { animation: target-highlight 1.8s ease both; }
.page-nav a.is-active { color: var(--ink); }
.page-nav a.is-active::after { transform: scaleX(1); }

@keyframes target-highlight {
    0%, 100% { background: transparent; box-shadow: 0 0 0 0 transparent; }
    18%, 62% { background: rgba(119, 87, 67, .075); box-shadow: 0 0 0 13px rgba(119, 87, 67, .075); }
}
.footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px clamp(24px, 6vw, 90px) 28px; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); font-size: .7rem; }
.footer-powered { display: flex; align-items: center; gap: 13px; }
.powered-label { color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.studio-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.studio-mark img { width: 32px; height: 32px; display: block; object-fit: contain; }
.studio-name { display: flex; flex-direction: column; gap: 2px; color: var(--brown-2); font: 600 .61rem/.95 "Space Grotesk", sans-serif; letter-spacing: .18em; }
.footer-copyright { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; text-align: right; }

@media (max-width: 980px) {
    .layout-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 34px; }
    .profile-ring { width: 150px; height: 150px; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-post img { height: 155px; }
}

@media (max-width: 760px) {
    .topbar { align-items: flex-start; flex-direction: column; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
    .social-nav { width: 100%; justify-content: space-between; gap: 10px; }
    .social-nav a { min-height: 36px; display: inline-flex; align-items: center; font-size: .72rem; }
    .page-nav { gap: clamp(21px, 7vw, 48px); }
    .page-nav a { font-size: .72rem; }
    .content-wrap { width: min(100% - 32px, 1120px); }
    .layout-grid { display: block; }
    .profile-sidebar, .main-column { padding-top: 34px; }
    .profile-sidebar { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; column-gap: 26px; }
    .profile-ring { width: 138px; height: 138px; }
    .profile-sidebar h1 { align-self: end; margin: 8px 0 4px; }
    .profile-meta, .profile-description { grid-column: 2; }
    .profile-description { max-width: 420px; }
    .sidebar-block { width: 100%; grid-column: 1 / -1; }
    .mini-character-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-column { margin-top: 26px; }
    .featured-post { padding: 18px; }
    .footer { align-items: flex-start; flex-direction: column; gap: 16px; }
    .footer-copyright { align-items: flex-start; text-align: left; }
}

@media (max-width: 500px) {
    html { scroll-padding-top: 24px; }
    .topbar { padding: 16px 18px; }
    .social-nav .icon-link span { display: none; }
    .social-nav { justify-content: space-around; }
    .hero { height: 150px; }
    .page-nav { min-height: 58px; justify-content: flex-start; gap: 30px; padding: 12px 20px; overflow-x: auto; scrollbar-width: none; }
    .page-nav::-webkit-scrollbar { display: none; }
    .page-nav a { flex: 0 0 auto; }
    .content-wrap { width: min(100% - 24px, 1120px); }
    .profile-sidebar { grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; }
    .profile-ring { width: 104px; height: 104px; padding: 5px; box-shadow: 0 0 0 5px var(--profile-ring-soft); }
    .profile-ring img { border-width: 3px; }
    .profile-sidebar h1 { font-size: 1.75rem; }
    .profile-meta { font-size: .73rem; line-height: 1.45; }
    .profile-description { grid-column: 1 / -1; max-width: none; margin-top: 20px; }
    .sidebar-block { margin-top: 28px; padding-top: 20px; }
    .mini-character-list { grid-template-columns: 1fr; }
    .main-column .section-block + .section-block { padding-top: 34px; }
    .section-block { padding-bottom: 34px; }
    .featured-post img { height: 180px; }
    .footer { padding: 22px 18px 26px; }
    .footer-powered { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
