:root {
    /* Layout width */
    --site-width: 900px;

    /* Global gutters (distance from glass edge) */
    --page-gutter: 38px;

    /* Internal rhythm */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 40px;

    /* Content padding (text breathing room) */
    --content-padding: 24px;
}

/* === Page Width Controller (new) === */
.page {
    width: clamp(760px, 72vw, var(--site-width));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
    position: relative;
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.35);

    border-left: 3px solid rgba(255, 255, 255, 0.35);
    border-right: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   base.css → FONTS
   ========================================================= */

@font-face {
    font-family: "DotGothic16";
    src: url("https://ghost-guacho.neocities.org/fonts/DotGothic16-Regular.ttf")
        format("truetype");
}
@font-face {
    font-family: "Doto";
    src: url("https://ghost-guacho.neocities.org/fonts/Doto-VariableFont_ROND,wght.ttf")
        format("truetype");
}


/* =========================================================
   base.css → GLOBAL PAGE STYLES / RESET-LIKE RULES
   ========================================================= */

body {
    background-image: url("https://ghost-guacho.neocities.org/images/ghost-background-1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a0a0a;
    color: #f0f0f0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Dark overlay for text readability */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -2;
    pointer-events: none;
}


/* =========================================================
   layout.css → BANNER / TOP STRUCTURE
   ========================================================= */

.banner-container {
    text-align: center;
    margin-bottom: var(--space-lg);
    box-sizing: border-box;
}
.banner {
    width: 100%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* =========================================================
   layout.css → MAIN TWO-COLUMN LAYOUT
   ========================================================= */

.main-container {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-sizing: border-box;
}


/* =========================================================
   layout.css → SIDEBAR COLUMN STRUCTURE
   ========================================================= */

.sidebar {
    flex: 0 0 clamp(200px, 22%, 240px);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}


/* =========================================================
   components.css → PROFILE MODULE
   ========================================================= */

.profile-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Japanese vertical text inside profile box */
#japanese {
    height: 150px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: "DotGothic16", sans-serif;
    font-size: 22px;
    letter-spacing: 5px;
    line-height: 1.8;
    margin: var(--space-xs);
    padding: 5px var(--space-xs);
    margin-inline-end: var(--space-xs);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}


/* =========================================================
   components.css → NAVIGATION MODULE
   ========================================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: "DotGothic16", monospace;
    font-size: 18px;
    letter-spacing: 3px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 15px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.sidebar-nav a {
    color: rgba(200, 200, 200, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: var(--space-xs) 0;
}

.sidebar-nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    transform: translateX(-2px);
}


/* =========================================================
   components.css → QUOTE / MEDIA BLOCKS
   ========================================================= */
   
   /* Any element that represents a visual "box" gets this */
:where(.profile-box, .sidebar-nav, .sidebar-quote, .content) {
    padding: var(--space-sm);
}

.sidebar-quote {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 15px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    margin: 0;
}

.sidebar-quote-img {
    width: 100%;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
}

.sidebar-quote-text {
    font-family: "DotGothic16", monospace;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(220, 220, 220, 0.9);
    margin-top: var(--space-xs);
}

.sidebar-quote figcaption {
    margin: 0;
}

.quote-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}


/* =========================================================
   layout.css → MAIN CONTENT AREA
   ========================================================= */

.content {
    flex: 1;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    padding: var(--space-md);
}

.content-image {
    display: block;
    max-width: 100%;
    margin-inline: auto;
    margin-top: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}


/* =========================================================
   typography.css → TEXT STYLING
   ========================================================= */
 
   /*  FLOW UTILITY → VERTICAL RHYTHM INSIDE CONTENT */

.flow > * + * {
    margin-top: var(--space-md);
}

h1 {
    font-family: "Doto", monospace;
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 15px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

p {
    font-family: "Doto", monospace;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
    text-align: justify;
    margin: 0 0 1em;
}


/* =========================================================
   base.css → GLOBAL LINK BEHAVIOR
   ========================================================= */

a {
    color: #8ab4f8;
    text-decoration: none;
}

a:hover {
    color: #ff9d9d;
    text-decoration: underline;
}