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

body {
    font-family: 'Space Mono', monospace;
    background: #000;
    color: #fff;
    min-height: 100vh;
    padding: 40px;
    line-height: 1.7;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
}

.header h1 {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #666;
}

.back-btn {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #fff;
}

/* Language Toggle Slot */
[data-i18n-toggle-slot] {
    display: flex;
    align-items: center;
}

/* Content */
.content {
    font-size: 13px;
}

[data-lang="en"] { display: none; }
html[lang="ja"] [data-lang="ja"] { display: block; }
html[lang="ja"] [data-lang="en"] { display: none; }
html[lang="en"] [data-lang="ja"] { display: none; }
html[lang="en"] [data-lang="en"] { display: block; }

/* Markdown Styling - Ryoji Ikeda minimal */
h1 {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fff;
    margin: 80px 0 40px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

h2 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    margin: 60px 0 30px 0;
}

h3 {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #888;
    margin: 40px 0 20px 0;
}

h4 {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    margin: 30px 0 15px 0;
}

p {
    margin: 20px 0;
    color: #aaa;
}

strong {
    color: #fff;
    font-weight: 400;
}

em {
    color: #888;
    font-style: normal;
}

hr {
    border: none;
    border-top: 1px solid #222;
    margin: 60px 0;
}

/* Code blocks */
pre {
    background: #0a0a0a;
    border-left: 1px solid #333;
    padding: 20px;
    margin: 30px 0;
    overflow-x: auto;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #666;
    line-height: 1.8;
}

code {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #888;
}

/* Equation boxes */
.equation {
    background: #050505;
    border-left: 1px solid #333;
    padding: 20px;
    margin: 30px 0;
}

.equation pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #888;
}

/* Lists */
ul, ol {
    margin: 20px 0 20px 20px;
    color: #888;
}

li {
    margin: 10px 0;
    padding-left: 10px;
}

li::marker {
    color: #444;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 11px;
}

th, td {
    border-bottom: 1px solid #222;
    padding: 12px 15px;
    text-align: left;
}

th {
    color: #666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

td {
    color: #888;
}

/* Blockquote */
blockquote {
    border-left: 1px solid #444;
    padding-left: 20px;
    margin: 30px 0;
    color: #666;
}

/* Links */
a {
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: all 0.2s;
}

a:hover {
    color: #fff;
    border-color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
}

/* Noise overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
