/* === Reset & Base === */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif; --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'PingFang SC', 'Hiragino Sans', 'Meiryo', sans-serif; --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace; --color-bg: #f8f7f4; --color-surface: #ffffff; --color-text: #1a1a1a; --color-text-secondary: #4a4a4a; --color-text-muted: #8a8a8a; --color-accent: #d35233; --color-accent-soft: #fff0ec; --color-border: #e8e6e1; --color-border-light: #f2f1ed; --color-tag-bg: #f0eeea; --color-tag-text: #555; --color-hero-bg: #1c2432; --color-hero-text: #f8f7f4; --color-eli5-bg: #fefcf3; --color-eli5-border: #ede4c4; --color-eli5-accent: #e6a817; --max-width: 1080px; --content-width: 720px; --radius: 8px; --radius-lg: 12px; --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04); --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05); } /* === Dark Mode === */ [data-theme="dark"] { --color-bg: #1a1a1e; --color-surface: #242428; --color-text: #e8e6e1; --color-text-secondary: #b0ada6; --color-text-muted: #7a776f; --color-accent: #e06b50; --color-accent-soft: #3a2520; --color-border: #3a3a3e; --color-border-light: #2e2e32; --color-tag-bg: #2e2e32; --color-tag-text: #b0ada6; --color-hero-bg: #111318; --color-hero-text: #e8e6e1; --color-eli5-bg: #2a2720; --color-eli5-border: #4a4230; --color-eli5-accent: #e6a817; --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15); --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.2); color-scheme: dark; } html { font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; } /* Fallback: hide KaTeX MathML even if CDN CSS fails to load */ .katex-mathml { display: none; } body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); min-height: 100dvh; display: flex; flex-direction: column; } .main { flex: 1 0 auto; } .footer { flex-shrink: 0; } a { color: var(--color-accent); text-decoration: none; } a:hover { text-decoration: underline; } img { max-width: 100%; } .container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; } /* === Navigation === */ .nav { border-bottom: 1px solid var(--color-border); background: var(--color-surface); position: sticky; top: 0; z-index: 100; } .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; } .nav-logo { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 600; text-decoration: none; letter-spacing: -0.03em; } .nav-logo:hover { text-decoration: none; } .nav-logo-gist { color: var(--color-text); } .nav-logo-dot { color: var(--color-accent); font-weight: 700; } .nav-logo-science { color: var(--color-text); } .nav-links { display: flex; align-items: center; gap: 1.25rem; } .nav-links > a { color: var(--color-text-secondary); font-size: 0.88rem; font-weight: 500; text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; } .nav-links > a:hover { color: var(--color-text); text-decoration: none; border-bottom-color: var(--color-accent); } .nav-bottom-row { display: contents; } /* Language dropdown */ .lang-dropdown { position: relative; margin-left: 0.5rem; } .lang-dropdown-toggle { display: flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; font-size: 0.75rem; font-weight: 500; color: var(--color-text-muted); background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius); cursor: pointer; transition: background 0.15s, color 0.15s; font-family: inherit; } .lang-dropdown-toggle:hover { background: var(--color-tag-bg); color: var(--color-text); } .lang-dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 100%; list-style: none; margin: 0; padding: 0.25rem 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); z-index: 100; } .lang-dropdown-menu.lang-dropdown-open { display: block; } .lang-dropdown-item { padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 500; white-space: nowrap; color: var(--color-text-muted); cursor: pointer; transition: background 0.15s, color 0.15s; } .lang-dropdown-item:hover { background: var(--color-tag-bg); color: var(--color-text); } .lang-dropdown-item-active { color: var(--color-text); font-weight: 600; } /* === Main === */ .main { padding-top: 2rem; padding-bottom: 4rem; } .main > *:not(.hero):not(.paper-hero):not(.page-header):not(.about-hero) { max-width: var(--max-width); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; } /* === Footer === */ .footer { border-top: 1px solid var(--color-border); padding: 2.5rem 0; background: var(--color-surface); } .footer-inner { display: flex; flex-direction: column; gap: 1.5rem; } .footer-top { display: flex; align-items: center; justify-content: space-between; } .footer-brand { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 600; color: var(--color-text); } .footer-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.85rem; } .footer-x-link { display: inline-flex; } .footer-links a { color: var(--color-text-muted); text-decoration: none; transition: color 0.15s; } .footer-links a:hover { color: var(--color-text); text-decoration: none; } .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border-light); } .footer-attribution { font-size: 0.82rem; color: var(--color-text-muted); } .footer-company { width: 100%; font-size: 0.78rem; color: var(--color-text-muted); line-height: 1.6; margin-top: 0.5rem; } .footer-company a { color: var(--color-text-muted); text-decoration: underline; } .footer-made { font-size: 0.82rem; color: var(--color-text-muted); } /* === Hero — Full Bleed with Animated Gradient === */ .hero { margin-top: -2rem; margin-bottom: 0; /* Animated gradient bg */ background: linear-gradient(-45deg, #1c2432, #1e1f3a, #1a2f30, #1c2432); background-size: 400% 400%; animation: hero-gradient 30s ease infinite; color: var(--color-hero-text); padding: 5.5rem 2rem 4.5rem; text-align: center; position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(211, 82, 51, 0.12) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(46, 134, 171, 0.1) 0%, transparent 60%); z-index: 0; pointer-events: none; } @keyframes hero-gradient { 0% { background-position: 0% 50%; } 25% { background-position: 50% 100%; } 50% { background-position: 100% 50%; } 75% { background-position: 50% 0%; } 100% { background-position: 0% 50%; } } .hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; } .hero-eyebrow { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(248, 247, 244, 0.45); margin-bottom: 1.5rem; } .hero h1 { font-family: var(--font-serif); font-size: 3.2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.25rem; line-height: 1.1; } .hero-sub { font-size: 1.1rem; color: rgba(248, 247, 244, 0.65); max-width: 520px; margin: 0 auto; line-height: 1.65; } /* Hero search */ .hero-search { max-width: 440px; margin: 2rem auto 0; position: relative; } .hero-search-input { width: 100%; padding: 0.85rem 3.5rem 0.85rem 1.25rem; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50px; color: #fff; font-size: 0.95rem; font-family: var(--font-sans); transition: background 0.2s, border-color 0.2s; } .hero-search-input::placeholder { color: rgba(255, 255, 255, 0.35); } .hero-search-input:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); } .hero-search-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: var(--color-accent); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: background 0.15s, transform 0.1s; } .hero-search-btn:hover { background: #b8462e; } .hero-search-btn:active { transform: translateY(-50%) scale(0.95); } /* Hero stats */ .hero-stats { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 2rem; font-family: var(--font-mono); font-size: 0.76rem; color: rgba(248, 247, 244, 0.4); } .hero-stats-sep { color: rgba(248, 247, 244, 0.2); } .hero-stat-live { color: rgba(248, 247, 244, 0.55); } .hero-stat-live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; margin-right: 0.4rem; animation: pulse-dot 2s ease-in-out infinite; } @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } /* === Featured Section — Hero Card === */ .featured-section { margin-top: 3.5rem; margin-bottom: 3.5rem; } .featured-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 280px; display: flex; align-items: flex-end; } .featured-card-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 100%); z-index: 1; } .featured-card-body { position: relative; z-index: 2; padding: 2.5rem 3rem; color: #fff; width: 100%; } .featured-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; } .featured-label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.12); padding: 0.2rem 0.75rem; border-radius: 20px; } .featured-category { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); } .featured-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 1rem; } .featured-title a { color: #fff; text-decoration: none; } .featured-title a:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.5); text-underline-offset: 3px; } .featured-eli5 { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.75; color: rgba(255, 255, 255, 0.8); margin-bottom: 1.5rem; max-width: 600px; } .featured-eli5 .markdown p:last-child { margin-bottom: 0; } .featured-cta { display: inline-block; font-size: 0.88rem; font-weight: 600; color: #fff; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid rgba(255, 255, 255, 0.4); transition: border-color 0.15s; } .featured-cta:hover { text-decoration: none; border-bottom-color: #fff; } /* === How It Works === */ .how-it-works { display: flex; gap: 2.5rem; padding: 2rem 0 2.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--color-border); } .how-step { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; } .how-icon { font-size: 1.4rem; margin-bottom: 0.35rem; } .how-step strong { font-family: var(--font-sans); font-size: 0.88rem; font-weight: 600; color: var(--color-text); } .how-desc { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.45; } /* === Section Headers === */ .section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border); } .section-header h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; } .section-header a { font-size: 0.85rem; font-weight: 500; } /* === Paper Cards === */ .paper-list { display: flex; flex-direction: column; gap: 0; } .paper-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 2px var(--radius) var(--radius) 2px; margin-bottom: 0.5rem; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; position: relative; overflow: hidden; } .paper-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-gradient, transparent); opacity: 0.6; } .paper-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-border); } .paper-card-link { display: block; padding: 1.25rem 1.5rem; text-decoration: none; color: inherit; } .paper-card-link:hover { text-decoration: none; } .paper-card-headline { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.3rem; line-height: 1.35; letter-spacing: -0.01em; } .paper-card-title { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 400; color: var(--color-text-muted); margin-bottom: 0.5rem; line-height: 1.4; } .paper-card-eli5 { font-family: var(--font-serif); font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.55; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .paper-card-summary { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.55; margin-bottom: 0.75rem; } .paper-card-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.78rem; color: var(--color-text-muted); } .paper-card-category { background: var(--color-tag-bg); padding: 0.1rem 0.55rem; border-radius: var(--radius); color: var(--color-tag-text); font-family: var(--font-mono); font-size: 0.72rem; } /* === Paper Grid (Homepage) === */ .paper-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } .paper-grid .paper-card { margin-bottom: 0; } .paper-grid .paper-card--wide { grid-column: 1 / -1; } .paper-grid .paper-card--wide .paper-card-eli5 { -webkit-line-clamp: 3; } .paper-grid .paper-card--wide .paper-card-headline { font-size: 1.3rem; } .latest-section { margin-bottom: 4rem; } /* === Paper Hero === */ .paper-hero { margin-top: -2rem; margin-bottom: 2rem; padding: 5rem 2rem 2.5rem; position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; /* Animated gradient bg — matches homepage hero */ background: linear-gradient(-45deg, #1c2432, #1e1f3a, #1a2f30, #1c2432) !important; background-size: 400% 400% !important; animation: hero-gradient 30s ease infinite; } .paper-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(211, 82, 51, 0.12) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(46, 134, 171, 0.1) 0%, transparent 60%); z-index: 0; pointer-events: none; } .paper-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.58) 100%); pointer-events: none; } .paper-hero-content { position: relative; z-index: 1; max-width: var(--content-width); margin: 0 auto; width: 100%; } .paper-hero-categories { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; } .paper-hero-tag { display: inline-block; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: rgba(255, 255, 255, 0.9); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.65rem; border-radius: var(--radius); text-decoration: none; transition: background 0.15s; } .paper-hero-tag:hover { background: rgba(255, 255, 255, 0.25); text-decoration: none; } .paper-hero-title { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; color: #fff; } .paper-hero-subtitle { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, 0.75); margin-top: 0.75rem; max-width: 600px; } /* === Paper Page === */ .paper-page { max-width: var(--content-width); margin: 0 auto; } .paper-page-header { margin-bottom: 2.5rem; } .paper-page-authors { font-size: 0.95rem; color: var(--color-text-secondary); margin-bottom: 0.75rem; line-height: 1.5; } .paper-page-meta-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border-light); } .paper-page-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; font-size: 0.85rem; color: var(--color-text-muted); } .paper-page-indicators { display: flex; gap: 0.75rem; align-items: center; } .reading-time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); } .difficulty-badge { font-size: 0.78rem; font-weight: 500; padding: 0.15rem 0.6rem; border-radius: 20px; } .difficulty-coffee { background: #fef3c7; color: #92400e; } .difficulty-deep { background: #ede9fe; color: #5b21b6; } .paper-page-categories { display: flex; flex-wrap: wrap; gap: 0.4rem; } .category-tag { background: var(--color-tag-bg); padding: 0.2rem 0.65rem; border-radius: var(--radius); color: var(--color-tag-text); font-family: var(--font-mono); font-size: 0.78rem; text-decoration: none; transition: background 0.15s; } .category-tag:hover { text-decoration: none; background: var(--color-border); } .paper-page-links { display: flex; gap: 0.75rem; font-size: 0.85rem; } .paper-link-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 1.1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text-secondary); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: border-color 0.15s, background 0.15s, color 0.15s; } .paper-link-btn:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-soft); text-decoration: none; } /* === Paper Tabs === */ .paper-tabs { margin-bottom: 2.5rem; } .tab-bar { display: flex; background: #eeecea; border-bottom: 2px solid var(--color-border); border-radius: var(--radius) var(--radius) 0 0; padding: 0; gap: 0; } .lang-note { margin: 0 0 1rem 0; padding: 0; font-size: 0.75rem; color: #999; font-family: var(--font-sans); line-height: 1.4; } .tab-button { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.6rem; background: transparent; border: none; border-top: 3px solid transparent; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -2px; margin-top: 0; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; color: #888; cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; white-space: nowrap; min-height: 48px; } .tab-button:hover { color: var(--color-text-secondary); background: rgba(255, 255, 255, 0.45); } .tab-button .tab-icon { font-size: 1.15em; line-height: 1; } .tab-button.active { font-weight: 700; font-size: 0.93rem; color: var(--color-text); border-top-color: var(--tab-accent, var(--color-accent)); border-bottom: 2px solid transparent; } .tab-button.active[data-tab="tab-gist"] { background: var(--color-eli5-bg); } .tab-button.active[data-tab="tab-technical"] { background: #f8fafc; } .tab-content { transition: opacity 0.15s ease; } .tab-content.tab-fade-out { opacity: 0; } .tab-panel { padding: 2rem 2rem 1.5rem; border: 1px solid var(--color-border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); } .tab-panel-gist { background: var(--color-eli5-bg); border-left: 4px solid var(--color-eli5-accent); } .tab-panel-gist .markdown { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.8; color: var(--color-text); } .tab-panel-technical { background: #f8fafc; border-left: 4px solid #94a3b8; } /* === Markdown === */ .markdown h1, .markdown h2, .markdown h3 { font-family: var(--font-serif); letter-spacing: -0.02em; margin-top: 1.5rem; margin-bottom: 0.75rem; } .markdown h1 { font-size: 1.5rem; } .markdown h2 { font-size: 1.25rem; } .markdown h3 { font-size: 1.1rem; } .markdown p { margin-bottom: 1rem; } .markdown ul, .markdown ol { margin-bottom: 1rem; padding-left: 1.5rem; } .markdown li { margin-bottom: 0.4rem; } .markdown strong { font-weight: 600; } .markdown code { font-family: var(--font-mono); font-size: 0.88em; background: var(--color-tag-bg); padding: 0.15em 0.4em; border-radius: 3px; } .markdown pre { background: var(--color-tag-bg); padding: 1rem; border-radius: var(--radius); overflow-x: auto; margin-bottom: 1rem; } .markdown pre code { background: none; padding: 0; } .markdown blockquote { border-left: 3px solid var(--color-eli5-accent); padding-left: 1rem; color: var(--color-text-secondary); margin-bottom: 1rem; font-style: italic; } /* === Key Points === */ .key-points-section { margin-bottom: 2.5rem; } .key-points-label { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); } /* === Share === */ .share-links { display: flex; gap: 0.6rem; align-items: center; margin: 2.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--color-border); } .share-label { font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; } .share-btn { display: inline-block; padding: 0.4rem 0.85rem; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--color-border); border-radius: 20px; color: var(--color-text-secondary); text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; } .share-btn:hover { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; } /* === Related Papers === */ .related-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); } .related-section h2 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; } /* === Category Domains (Homepage) === */ .categories-section { margin-bottom: 3rem; } .category-domains { display: flex; flex-direction: column; gap: 1.25rem; } .category-domain { display: flex; align-items: baseline; gap: 1rem; } .category-domain-label { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; min-width: 130px; flex-shrink: 0; } .category-domain-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; } .category-pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; } .category-pill:hover { border-color: var(--pill-color, var(--color-accent)); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); transform: translateY(-1px); text-decoration: none; } .category-pill-icon { font-size: 0.85rem; } .category-pill-count { font-family: var(--font-sans); font-size: 0.65rem; color: var(--color-text-muted); background: var(--color-tag-bg); padding: 0.05rem 0.4rem; border-radius: 10px; margin-left: 0.1rem; } /* === Category Grid (Category/Today pages) === */ .category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; margin-bottom: 2.5rem; } .category-card { display: flex; align-items: baseline; justify-content: space-between; padding: 0.85rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--color-text); font-family: var(--font-mono); font-size: 0.88rem; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; } .category-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); text-decoration: none; } .category-card-icon { font-size: 1rem; margin-right: 0.15rem; } .category-count { font-family: var(--font-sans); font-size: 0.75rem; color: var(--color-text-muted); } /* === Search === */ .search-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; } .search-input { flex: 1; font-family: var(--font-sans); font-size: 1rem; padding: 0.75rem 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text); transition: border-color 0.15s, box-shadow 0.15s; } .search-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); } .search-btn { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; padding: 0.75rem 1.75rem; background: var(--color-accent); color: white; border: none; border-radius: var(--radius); cursor: pointer; transition: background 0.15s, transform 0.1s; } .search-btn:hover { background: #b8462e; } .search-btn:active { transform: scale(0.98); } /* === Pagination === */ .pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; } .pagination a { padding: 0.55rem 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.85rem; color: var(--color-text-secondary); text-decoration: none; transition: border-color 0.15s, background 0.15s; } .pagination a:hover { background: var(--color-surface); border-color: var(--color-accent); text-decoration: none; } /* === Category Groups === */ .category-group { margin-bottom: 2.5rem; } .category-group-header { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; color: var(--color-text); padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); margin-bottom: 0.75rem; } /* === Page Header (shared across category/today/search/about/privacy) === */ .page-header { margin-top: -2rem; margin-bottom: 2.5rem; background: linear-gradient(-45deg, #1c2432, #1e1f3a, #1a2f30, #1c2432); background-size: 400% 400%; animation: hero-gradient 30s ease infinite; color: var(--color-hero-text); padding: 3.5rem 2rem 2.5rem; text-align: center; position: relative; overflow: hidden; } .page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(211, 82, 51, 0.1) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(46, 134, 171, 0.08) 0%, transparent 60%); z-index: 0; pointer-events: none; } .page-header-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; } .page-header-eyebrow { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(248, 247, 244, 0.4); margin-bottom: 0.75rem; } .page-header h1 { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.5rem; } .page-header-sub { font-size: 1rem; color: rgba(248, 247, 244, 0.6); line-height: 1.6; } /* === About === */ .about-hero { background: linear-gradient(135deg, #faf8f5 0%, #f5efe8 50%, #faf8f5 100%); padding: 4rem 2rem 3rem; text-align: center; margin-top: -2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--color-border-light); } .about-hero-inner { max-width: 600px; margin: 0 auto; } .about-hero h1 { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--color-text); margin-bottom: 0.5rem; } .about-hero-sub { font-family: var(--font-serif); font-size: 1.15rem; color: var(--color-text-secondary); font-style: italic; } .about-content { max-width: var(--content-width); margin: 0 auto; padding-bottom: 2rem; } .about-content h2 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 0.75rem; color: var(--color-text); } .about-content p { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.8; color: var(--color-text-secondary); margin-bottom: 1rem; } .about-content a { color: var(--color-accent); } .about-story { margin-bottom: 1rem; } .about-emphasis { font-size: 1.15rem !important; font-weight: 600; color: var(--color-text) !important; font-style: italic; } .about-closing { font-style: italic; margin-top: 0.5rem; } .about-how { background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2rem; margin-bottom: 2rem; } .about-how h2 { margin-top: 0; } .about-steps { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; } .about-step { display: flex; align-items: flex-start; gap: 1rem; } .about-step-num { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-accent); color: white; font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; margin-top: 0.15rem; } .about-step strong { font-family: var(--font-sans); font-size: 0.95rem; display: block; margin-bottom: 0.15rem; } .about-step-desc { font-family: var(--font-serif); font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.5; } .about-credentials { text-align: center; font-family: var(--font-sans) !important; font-size: 0.9rem !important; font-weight: 500; color: var(--color-text-muted) !important; letter-spacing: 0.02em; padding: 1rem 0; border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); margin: 2rem 0; } .about-tech { margin-bottom: 1rem; } .about-ack { margin-bottom: 1rem; } .about-ack p, .about-contact p { font-size: 0.95rem !important; color: var(--color-text-muted) !important; } /* === Testimonials === */ .testimonials-content { max-width: var(--content-width); margin: 0 auto; padding-bottom: 3rem; display: flex; flex-direction: column; gap: 2rem; } .testimonial-card { background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 2.5rem 2rem 2rem; position: relative; } .testimonial-card::before { content: '\201C'; font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--color-accent); opacity: 0.25; position: absolute; top: 0.75rem; left: 1.5rem; } .testimonial-quote { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.8; color: var(--color-text); font-style: italic; margin-bottom: 1.25rem; } .testimonial-attribution { display: flex; flex-direction: column; gap: 0.15rem; } .testimonial-name { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; color: var(--color-text); } .testimonial-role { font-family: var(--font-sans); font-size: 0.85rem; color: var(--color-text-muted); } @media (max-width: 600px) { .testimonials-content { padding-left: 1rem; padding-right: 1rem; } .testimonial-card { padding: 2rem 1.5rem 1.5rem; } .testimonial-quote { font-size: 1.05rem; } } /* === Newsletter Signup (Hero) === */ .newsletter-hero { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.08); max-width: 480px; margin-left: auto; margin-right: auto; } .newsletter-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; } .newsletter-sub { font-size: 0.9rem; color: rgba(248, 247, 244, 0.6); line-height: 1.55; margin-bottom: 1.25rem; } .newsletter-form { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 420px; margin: 0 auto; } .newsletter-form-row { display: flex; gap: 0.5rem; width: 100%; } .newsletter-input { flex: 1; padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50px; color: #fff; font-size: 0.9rem; font-family: var(--font-sans); transition: background 0.2s, border-color 0.2s; } .newsletter-input::placeholder { color: rgba(255, 255, 255, 0.35); } .newsletter-input:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); } .newsletter-btn { padding: 0.75rem 1.5rem; background: var(--color-accent); color: white; border: none; border-radius: 50px; font-family: var(--font-sans); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s; white-space: nowrap; } .newsletter-btn:hover { background: #b8462e; } .newsletter-btn:active { transform: scale(0.97); } .newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; } .newsletter-msg { display: none; font-size: 0.85rem; margin-top: 0.75rem; text-align: center; } .newsletter-success { color: #4ade80; } .newsletter-error { color: #f87171; } .newsletter-privacy { font-size: 0.75rem; color: rgba(248, 247, 244, 0.35); margin-top: 0.6rem; text-align: center; } /* === Newsletter Signup (Inline — paper/category pages) === */ .newsletter-inline { text-align: center; padding: 2rem; margin: 2.5rem 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); } .newsletter-inline-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--color-text); margin-bottom: 1rem; } .newsletter-form-inline .newsletter-input { background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text); } .newsletter-form-inline .newsletter-input::placeholder { color: var(--color-text-muted); } .newsletter-form-inline .newsletter-input:focus { border-color: var(--color-accent); background: var(--color-surface); box-shadow: 0 0 0 3px var(--color-accent-soft); } .newsletter-inline .newsletter-privacy { color: var(--color-text-muted); } .newsletter-inline .newsletter-success { color: #16a34a; } .newsletter-inline .newsletter-error { color: var(--color-accent); } /* === No Results === */ .no-results { text-align: center; padding: 3rem 0; color: var(--color-text-muted); } .no-results p { font-size: 1.1rem; margin-bottom: 0.5rem; } /* === Responsive === */ @media (max-width: 768px) { html { font-size: 16px; } .hero { padding: 3.5rem 1.5rem 3rem; } .hero h1 { font-size: 2.2rem; } .hero-sub { font-size: 1rem; } .hero-search { max-width: 100%; } .nav-links { gap: 0.75rem; } .paper-card-link { padding: 1rem; } .paper-grid { grid-template-columns: 1fr; } .paper-grid .paper-card--wide { grid-column: auto; } .paper-grid .paper-card--wide .paper-card-headline { font-size: 1.15rem; } .tab-button { flex: 1; justify-content: center; text-align: center; padding: 0.65rem 0.5rem; font-size: 0.82rem; min-height: 48px; } .tab-button .tab-icon { font-size: 1.25em; } .tab-button.active { font-size: 0.85rem; } .tab-panel { padding: 1.25rem 1.25rem 1rem; } .paper-hero { padding: 3.5rem 1.5rem 1.75rem; min-height: 160px; } .paper-hero-title { font-size: 1.5rem; } .paper-hero-subtitle { font-size: 0.95rem; } .page-header { padding: 2.5rem 1.5rem 2rem; } .page-header h1 { font-size: 1.8rem; } .paper-page-meta-bar { flex-direction: column; align-items: flex-start; } .featured-card { min-height: 200px; } .featured-card-body { padding: 1.5rem; } .featured-title { font-size: 1.5rem; } .how-it-works { flex-direction: column; gap: 1.25rem; } .how-step { flex-direction: row; align-items: center; gap: 0.75rem; } .how-icon { margin-bottom: 0; font-size: 1.2rem; } .hero-stats { flex-wrap: wrap; gap: 0.3rem 0.6rem; font-size: 0.72rem; } .paper-page-indicators { flex-wrap: wrap; } .category-domain { flex-direction: column; gap: 0.5rem; } .category-domain-label { min-width: auto; } .category-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .search-form { flex-direction: column; } .share-links { flex-wrap: wrap; } .newsletter-form-row { flex-direction: column; } .newsletter-hero { margin-top: 2rem; padding-top: 1.5rem; } .footer-top { flex-direction: column; gap: 1rem; align-items: flex-start; } .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.35rem; } } /* === Hamburger menu (mobile) === */ .nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 2rem; height: 2rem; background: none; border: none; cursor: pointer; padding: 0.25rem; z-index: 110; } .nav-hamburger-line { display: block; width: 100%; height: 2px; background: var(--color-text); border-radius: 1px; transition: transform 0.25s, opacity 0.25s; } .nav-hamburger-open .nav-hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); } .nav-hamburger-open .nav-hamburger-line:nth-child(2) { opacity: 0; } .nav-hamburger-open .nav-hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); } @media (max-width: 480px) { .nav-hamburger { display: flex; } .nav-links { display: none; position: absolute; top: 3.5rem; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); padding: 0.5rem 0; z-index: 100; } .nav-links-open { display: flex; } .nav-links > a { display: block; padding: 0.75rem 1.5rem; font-size: 0.95rem; color: var(--color-text-secondary); border-bottom: none; } .nav-links > a:hover { background: var(--color-bg); color: var(--color-text); border-bottom: none; } .nav-bottom-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1.5rem 0.75rem; border-top: 1px solid var(--color-border-light); margin-top: 0.25rem; } .lang-dropdown { margin-left: 0; padding: 0; border-top: none; margin-top: 0; } .lang-dropdown-toggle { font-size: 0.75rem; } .theme-toggle { margin-left: 0; width: auto; padding: 0.25rem 0.5rem; flex-shrink: 0; } } /* === Theme Toggle === */ .theme-toggle { display: flex; align-items: center; justify-content: center; width: auto; padding: 0.25rem 0.5rem; margin-left: 0.25rem; background: none; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text-muted); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; } .theme-toggle:hover { color: var(--color-accent); border-color: var(--color-accent); background: var(--color-accent-soft); } .theme-toggle svg { width: 16px; height: 16px; } .theme-toggle .icon-moon, [data-theme="dark"] .theme-toggle .icon-sun { display: none; } [data-theme="dark"] .theme-toggle .icon-moon { display: block; } /* === Dark Mode Overrides (hardcoded colors) === */ [data-theme="dark"] .tab-bar { background: #2e2e32; } [data-theme="dark"] .lang-note { color: #7a776f; } [data-theme="dark"] .tab-button { color: #7a776f; } [data-theme="dark"] .tab-button:hover { background: rgba(255, 255, 255, 0.06); } [data-theme="dark"] .tab-button.active[data-tab="tab-technical"] { background: #1e2028; } [data-theme="dark"] .tab-panel-technical { background: #1e2028; border-left-color: #5a6578; } [data-theme="dark"] .difficulty-coffee { background: #3a3020; color: #e6a817; } [data-theme="dark"] .difficulty-deep { background: #2a2040; color: #a78bfa; } [data-theme="dark"] .lang-dropdown-menu { background: var(--color-surface); } [data-theme="dark"] .about-hero { background: linear-gradient(-45deg, #1c2432, #1e1f3a, #1a2f30, #1c2432); background-size: 400% 400%; animation: hero-gradient 30s ease infinite; border-bottom-color: var(--color-border); color: var(--color-hero-text); } [data-theme="dark"] .about-hero h1 { color: var(--color-hero-text); } [data-theme="dark"] .about-hero-sub { color: rgba(248, 247, 244, 0.6); } [data-theme="dark"] img { opacity: 0.9; } /* Smooth transition for theme switching */ html.theme-transition, html.theme-transition *, html.theme-transition *::before, html.theme-transition *::after { transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important; } /* === Admin Toolbar === */ .admin-toolbar { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; margin-bottom: 1rem; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 6px; font-size: 0.8rem; } [data-theme="dark"] .admin-toolbar { background: #422006; border-color: #b45309; } .admin-label { font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; } [data-theme="dark"] .admin-label { color: #fbbf24; } .admin-btn { padding: 0.25rem 0.75rem; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; cursor: pointer; font-size: 0.8rem; font-family: inherit; } .admin-btn:hover { background: #f3f4f6; } [data-theme="dark"] .admin-btn { background: #1f2937; border-color: #4b5563; color: #e5e7eb; } [data-theme="dark"] .admin-btn:hover { background: #374151; } .admin-btn-block { border-color: #ef4444; color: #dc2626; } .admin-btn-block:hover { background: #fef2f2; } [data-theme="dark"] .admin-btn-block { border-color: #991b1b; color: #f87171; } [data-theme="dark"] .admin-btn-block:hover { background: #451a1a; } .admin-btn-edit { border-color: #3b82f6; color: #2563eb; } .admin-btn-edit:hover { background: #eff6ff; } [data-theme="dark"] .admin-btn-edit { border-color: #1d4ed8; color: #60a5fa; } [data-theme="dark"] .admin-btn-edit:hover { background: #1e3a5f; } .admin-status { color: #6b7280; font-style: italic; } .admin-dialog { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 480px; width: 90vw; background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); margin: auto; inset: 0; } .admin-dialog::backdrop { background: rgba(0, 0, 0, 0.5); } .admin-dialog-form { display: flex; flex-direction: column; gap: 1rem; } .admin-dialog-title { font-size: 1.1rem; font-weight: 700; margin: 0; } .admin-dialog-label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--color-text-secondary); } .admin-dialog-textarea { font-family: var(--font-sans); font-size: 0.9rem; padding: 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); resize: vertical; } .admin-dialog-select { font-family: var(--font-sans); font-size: 0.85rem; padding: 0.35rem 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); } .admin-dialog-row { display: flex; gap: 1rem; } .admin-dialog-row > * { flex: 1; } .admin-dialog-actions { display: flex; gap: 0.5rem; justify-content: flex-end; } .admin-btn-submit { background: #2563eb; color: #fff; border-color: #2563eb; } .admin-btn-submit:hover { background: #1d4ed8; } .admin-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; } [data-theme="dark"] .admin-btn-submit { background: #1d4ed8; border-color: #1d4ed8; color: #fff; } [data-theme="dark"] .admin-btn-submit:hover { background: #1e40af; } .admin-dialog-status { font-size: 0.8rem; color: var(--color-text-secondary); font-style: italic; min-height: 1.2em; } .admin-revisions-dialog { max-width: 640px; } .admin-revisions-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; } .admin-revisions-tab { font-family: var(--font-sans); font-size: 0.8rem; padding: 0.3rem 0.6rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); color: var(--color-text-secondary); cursor: pointer; } .admin-revisions-tab.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); } .admin-revisions-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; } .admin-revisions-table th, .admin-revisions-table td { padding: 0.4rem 0.5rem; border: 1px solid var(--color-border); text-align: left; } .admin-revisions-table th { background: var(--color-bg); font-weight: 600; color: var(--color-text-secondary); } .admin-btn-revert { border-color: #f59e0b; color: #d97706; } .admin-btn-revert:hover { background: #fffbeb; } [data-theme="dark"] .admin-btn-revert { border-color: #b45309; color: #fbbf24; } [data-theme="dark"] .admin-btn-revert:hover { background: #451a03; }