/* --- 0. PALETTE --- */
:root {
    --accent:       #cc4e00;
    --accent-pale:  #ef8f52; 
    --ink:          #000;
    --paper:        #fff;
    --rule:         #000;
    --grid-dot:     #cfcfcf;
    --grid-paper:   #e5e5e5;
    --muted:        #666;
}

/* --- 0b. SHELL ASSEMBLY ---
   Pages start hidden so the content is not seen bare for the instant
   before shell.js wraps it. shell.js clears the attribute either way;
   a <noscript> override in each page covers scripting being off. */
body[data-shell="pending"] {
    visibility: hidden;
}

/* --- 1. STATIC CUSTOM CURSOR --- */
html {
    cursor: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' stroke='%23000000' stroke-width='1.5' d='M7,2 L7,22 L11,18 L14,24 L17,22 L14,16 L20,16 L7,2 Z'/%3E%3C/svg%3E"), auto;
}

/* --- 2. BASE AESTHETICS --- */
body {
    margin: 0;
    padding: 20px;
    background-color: var(--grid-paper);
    background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
    background-size: 15px 15px;

    font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
    color: var(--ink);
    line-height: 1.5;
    font-size: 15px;
}

/* --- 3. THE LAYOUT CONTAINER --- */
.wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
}

/* Header Area */
header {
    background: var(--accent);
    color: var(--paper);
    padding: 32px 24px 24px 32px;
    text-align: left;
    border-bottom: 1px solid var(--rule);
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

header h1 {
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: lowercase;
    color: var(--accent-pale);
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}
     
.heading {
    display: flex;
    flex-direction: row;
    align-items: center;       
    gap: 12px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
    margin-bottom: 18px;
}

.imgheading {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 18px;
}


.imgheading h2 {
    flex: 1;                  
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.drawing {
    height: 1.5em;             
    width: auto;
    flex: none;                 
}

/* Main Content Split */
.columns {
    display: flex;
    min-height: 400px;
}

/* Sidebar Navigation */
nav {
    width: 180px;
    background: var(--paper);
    border-right: 1px solid var(--rule);
    padding: 24px 20px;
    font-size: 0.8em;
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

nav h3 {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

nav h3 + ul { margin-top: 0; }
nav ul + h3 { margin-top: 28px; }

nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

nav li { margin-bottom: 6px; }

nav a {
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
    padding: 1px 3px;
    margin-left: -3px;
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

nav a:hover {
    background: var(--accent);
    color: var(--paper);
}

nav a[aria-current="true"],
nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* Content Area */
main {
    flex: 1;
    padding: 24px;
    background: var(--paper);
}

main :first-child { margin-top: 0; }

h2 {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
    margin-bottom: 18px;
    color: var(--ink);
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

h3 {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

main p { max-width: 62ch; }

main a { color: var(--accent); }

blockquote {
    margin: 22px 0;
    padding: 2px 0 2px 16px;
    border-left: 3px solid var(--accent);
    font-size: 1.05em;
    line-height: 1.4;
    max-width: 52ch;
}

main ul {
    list-style: none;
    padding-left: 0;
    max-width: 62ch;
}

main ul li {
    padding-left: 16px;
    position: relative;
    margin-bottom: 5px;
}

main ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

/* Status Box */
.status-box {
    border: none;
    border-top: 1px solid var(--rule);
    background: transparent;
    padding: 12px 0 0;
    margin: 28px 0 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--muted);
}

.status-box strong {
    color: var(--ink);
    letter-spacing: 0.01em;
}

/* --- 3bis REDIRECT NOTICE --- */
.redirect-notice {
    box-sizing: border-box;
    max-width: 800px;
    height: 30px;
    line-height: 28px;        
    margin: 0 auto 10px;
    padding: 0 12px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--rule);
    font-size: 0.75em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
    transition: opacity 0.4s linear;
}


/* --- 4. FOOTER & BUTTONS --- */
footer {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    padding: 20px 24px;
    text-align: left;
    font-size: 0.75em;
    color: var(--muted);
    line-height: 1.6;
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

footer p { margin: 0; }
footer p + p { margin-top: 2px; }

.button-grid {
    margin: 0 0 16px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
}

.button-grid img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 600px) {
    body { padding: 10px; }
    .columns { flex-direction: column; }
    nav { width: auto; border-right: none; border-bottom: 1px solid var(--rule); }
    header h1 { font-size: 2.2em; }
}
