/* Todays.gg base styles */
:root {
    --bg: #fafbfc;
    --ink: #1a202c;
    --muted: #718096;
    --accent: #059669;
    --accent-hover: #047857;
    --border: #e2e8f0;
    --paper: #ffffff;
    --paper-hover: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.15);
    --serif: 'Source Serif 4', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover::after {
    width: 100%;
}

h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    margin: 0 0 0.75rem;
    color: var(--ink);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin: 0 0 1.25rem;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.page-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -50px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    z-index: 100;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.lede-dek {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 720px;
}

.meta-line {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1rem 0;
    font-weight: 500;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 1rem 0;
}

.breadcrumb ol,
.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--muted);
    opacity: 0.6;
}

.breadcrumb a {
    color: var(--muted);
}

.page-hero {
    margin-bottom: 2rem;
}

.prose {
    font-family: var(--serif);
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.prose h2,
.prose h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--ink);
    font-weight: 600;
}

.prose p {
    margin-bottom: 1.5rem;
    text-align: left;
    hyphens: auto;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prose a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    word-break: break-word;
    overflow-wrap: break-word;
}

.prose a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent-hover);
}

.prose strong,
.prose b {
    font-weight: 600;
    color: var(--ink);
}

.prose em,
.prose i {
    font-style: italic;
}

.prose code {
    background: var(--bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.prose pre {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--gradient-accent);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.pill-btn::before {
    display: none;
}

.pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: transparent;
    color: white;
}

.pill-btn.liked {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.pill-btn.liked:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.pill:hover {
    background: var(--paper);
    border-color: var(--accent);
    color: var(--accent);
}

.pill-btn.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.pill-btn.secondary::before {
    display: none;
}

.pill-btn.secondary:hover {
    background: var(--paper-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0 2rem;
}

.tag-cloud,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #312e81;
    font-weight: 600;
    font-size: 0.9rem;
}

.chip.subtle {
    background: var(--border);
    color: var(--ink);
}

.legal-page {
    background: var(--paper);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dateline {
    color: var(--muted);
    margin-bottom: 1rem;
}

.datestamp {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-bar button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.search-bar button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar button:hover::before {
    left: 0;
}

.search-bar button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

input:focus,
button:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
