:root {
    --bg-dark: #1f1f1f;
    --bg-panel: #2c2c2c;
    --text-light: #f0f0f0;
    --text-dark: #111;
    --brand-blue: #2d5fa4;
    --brand-blue-hover: #1a3b7a;
    --highlight: #fff8dc;
}

@font-face {
    font-family: 'BowlbyOne';
    src: url('fonts/BowlbyOne-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-light);
}
header, nav, footer {
    background-color: var(--bg-dark);
    color: var(--highlight);
    text-align: center;
    padding: 1em;
}
nav ul {
    list-style-type: none;
    padding: 0;
}
nav ul li {
    display: inline;
    margin: 0 1em;
}
nav ul li a {
    color: var(--brand-blue);
    text-decoration: none;
}
nav ul li a:hover {
    text-decoration: underline;
}
main {
    padding: 2em;
}
section {
    background-color: var(--bg-panel);
    color: var(--text-light);
    margin: 1em auto;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    max-width: 800px;
}
.section-image {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 1em auto;
    display: block;
}
.site-logo {
    display: block;
    margin: 0 auto 1em auto;
    max-width: 128px;
}
footer a {
    color: #000000;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.75em 1.25em;
    background: var(--bg-dark);
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6em;
    cursor: pointer;
    text-decoration: none;
}

.brand:visited {
    color: inherit;
}

.circle-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.brand-text{
    font-family: 'BowlbyOne', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;          /* REMORI */
    text-transform: uppercase;
    line-height: 1;
}
.brand-text span{
    font-size: 1rem;               /* smaller .io */
    color: var(--brand-blue, #2d5fa4);
    text-transform: lowercase;
    display: inline-block;         /* participate in baseline alignment */
    transform: translateY(0.05em);   /* slight downward nudge for baseline alignment */
    margin-left: 0.1em;            /* slight space from REMORI */
}

.main-header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1.5em 1em;
    text-align: center;
}

.page-title {
    font-family: 'BowlbyOne', sans-serif;
    font-size: 3.4rem;
    color: var(--text-light);
    margin: 0;
    text-align: center;
    line-height: 1.2;
}
.tagline{
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.4rem;   /* bigger text */
    line-height: 1.4;
    text-align: center;
}

/* Constrain chat textarea width */
.narrow-chat{
    width:100%;         /* full width of its parent column */
    max-width:600px;    /* never wider than 600px */
    margin:0 auto;      /* horizontally centered */
}

/* keep text wrapped and no horizontal scroll */
.chat-textarea{
    white-space:pre-wrap;  /* preserve \n but wrap */
    overflow-x:hidden;     /* don’t let long words push width */
}

nav a {
    font-family: 'BowlbyOne', sans-serif;
    font-size: 0.9rem;
    color: var(--brand-blue);
    text-decoration: none;
    margin: 0 0.75em;
    padding: 0.5em 0;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--brand-blue-hover);
}

/* Section & subsection headings */
h2,
h3 {
    font-family: 'BowlbyOne', sans-serif;
    text-transform: uppercase;      /* force uppercase */
    letter-spacing: 0.05em;         /* a bit of extra spacing */
}
