:root {
    --color-bg: #fdfbf7;
    --color-surface: #fff0f5;
    --color-text: #4a042e;
    --color-text-muted: #8e4d73;
    --color-primary: #e673ba;
    --color-primary-dark: #b84d8f;
    --color-secondary: #fce7f3;
    --color-border: #fbcfe8;
    --color-success: #10b981;
    --color-danger: #ef4444;

    --font-main: 'Atkinson Hyperlegible', sans-serif;
    --font-mono: 'Courier New', monospace;

    --shadow-lamp: 0 4px 20px rgba(230, 115, 186, 0.25), 0 0 10px rgba(230, 115, 186, 0.1);
    --shadow-sm: 2px 2px 0px rgba(230, 115, 186, 0.15);

    --radius: 2px;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 30%, #fffefc 0%, #fdfbf7 70%);
    cursor: crosshair;
}

/* Lowercase override */
h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.nav-link,
.logo-text,
.subtitle,
label,
th,
td {
    text-transform: lowercase;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed var(--color-primary);
    transition: all 0.2s;
}

a:hover {
    background-color: var(--color-secondary);
    border-bottom-style: solid;
    font-style: italic;
}

/* Header */
.app-header {
    background: transparent;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(4px);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 3rem;
    color: var(--color-primary);
    font-family: var(--font-mono);
    letter-spacing: -0.05em;
}

.app-nav {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 400;
    border-bottom: none;
}

.nav-link:hover {
    color: var(--color-text);
    text-decoration: line-through;
}

/* Layout */
.app-content {
    margin-top: var(--header-height);
    padding: 4rem 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - var(--header-height) - 80px);
}

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 2px 255px 3px 25px / 255px 5px 225px 3px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    position: relative;
    animation: breathe 8s infinite alternate ease-in-out;
}

@keyframes breathe {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.002) rotate(0.05deg);
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-weight: 400;
    text-align: center;
    letter-spacing: -0.08em;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Poem */
.poem-container {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.poem-container p {
    margin-bottom: 0.5rem;
}

.poem-container p:nth-child(odd) {
    margin-left: 20px;
}

.poem-container p:nth-child(even) {
    margin-right: 20px;
    text-align: right;
}

/* Status Indicators */
.status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status.online {
    background-color: var(--color-success);
    box-shadow: 0 0 5px var(--color-success);
}

.status.peered {
    background-color: var(--color-primary);
    box-shadow: 0 0 5px var(--color-primary);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "->";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 0.8em;
}

footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    opacity: 0.7;
}