/* shared/base.css — layout skeleton, shared by all home-section sites. */ :root { --bg: #fafafa; --text: #1a1a1a; --card-bg: #ffffff; --card-border: #e2e2e2; --accent: #3b6ea5; } * { box-sizing: border-box; } @font-face { font-family: 'Lobster'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lobster-latin.woff2') format('woff2'); } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; } .site-header { background: var(--accent); color: #fff; } .site-banner { padding: 1.5rem 2rem 0.5rem; } .site-title { font-family: 'Lobster', cursive; font-size: 3em; color: #FFFFFF; text-transform: lowercase; display: block; margin: 5px 0 0; } .site-switcher { display: flex; gap: 1.25rem; padding: 0.75rem 2rem; background: rgba(0,0,0,0.12); } .site-switcher a { color: #fff; text-decoration: none; font-size: 0.9rem; opacity: 0.85; } .site-switcher a:hover { opacity: 1; text-decoration: underline; } main { max-width: 1100px; margin: 0 auto; padding: 2rem; } main > h1 { margin: 0 0 1rem; font-size: 1.8rem; color: var(--text); } .site-intro { margin-bottom: 2rem; font-size: 1rem; color: #555; line-height: 1.6; } .intro { display: flex; gap: 2.5rem; align-items: center; margin-bottom: 2.5rem; } .intro-text h1 { font-size: 1.8rem; margin: 0 0 0.75rem; color: var(--text); } .intro-text p { margin: 0 0 0.6rem; font-size: 0.95rem; color: #444; line-height: 1.6; } .intro-photo { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); flex-shrink: 0; } @media (max-width: 700px) { .intro { flex-direction: column-reverse; text-align: center; } .intro-photo { width: 180px; height: 180px; } } .card-section { margin-bottom: 2.5rem; } .card-section h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: #666; border-bottom: 1px solid var(--card-border); padding-bottom: 0.5rem; margin-bottom: 1rem; } .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; } .card { display: block; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; padding: 1.25rem; text-decoration: none; color: var(--text); transition: box-shadow 0.15s ease, transform 0.15s ease; position: relative; } .card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); transform: translateY(-1px); } .card-emoji { position: absolute; top: 0.75rem; right: 0.85rem; font-size: 1.3rem; } .card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--accent); } .card p { margin: 0; font-size: 0.9rem; color: #555; } .card-stack { display: block; margin-top: 0.6rem; font-size: 0.75rem; color: #888; } .wip-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; color: #8a5b00; background: #fff3d6; border: 1px solid #f0d68a; border-radius: 6px; padding: 0.15rem 0.5rem; margin-left: 0.5rem; } .note { font-size: 0.85rem; color: #666; background: #f0f4f8; border-left: 3px solid var(--accent); padding: 0.6rem 0.9rem; margin: 1.25rem 0; } .site-footer { text-align: center; padding: 2rem; color: #888; font-size: 0.85rem; } .site-footer a { color: var(--accent); } .detail-content { max-width: 800px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; padding: 2rem; } .detail-content h1 { color: var(--accent); margin: 0 0 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--accent); font-size: 1.8rem; } .detail-content h2 { margin-top: 2rem; padding-left: 0.75rem; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.2rem; } .detail-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.9rem; } .detail-content th, .detail-content td { border: 1px solid var(--card-border); padding: 0.5rem 0.75rem; text-align: left; } .detail-content th { background: var(--accent); color: #fff; font-weight: 600; } .detail-content code { background: #f0f4f8; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; } .detail-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; } .detail-content a:hover { color: var(--text); } .detail-content img { display: block; max-width: 100%; height: auto; margin: 1.5rem 0 0.5rem; border-radius: 8px; } .detail-content .caption { font-size: 0.85rem; color: #666; margin: 0 0 1.5rem; } .back-link { display: inline-block; margin-bottom: 1.25rem; padding: 0.35rem 0.75rem; font-size: 0.85rem; color: var(--accent); background: rgba(0, 0, 0, 0.04); border: 1px solid var(--card-border); border-radius: 6px; text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease; } .back-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); } .error-page { text-align: center; padding: 4rem 2rem; } .error-page h1 { font-size: 6rem; font-weight: 700; color: var(--accent); margin: 0 0 1rem; line-height: 1; } .error-page p { font-size: 1.1rem; color: #666; margin: 0 0 2rem; } .about-expanded { margin-top: 3rem; max-width: 800px; } .about-expanded h2 { font-size: 1.1rem; color: var(--accent); margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--card-border); } .about-expanded h2:first-child { margin-top: 0; } .about-expanded p { font-size: 0.95rem; color: #444; line-height: 1.7; margin: 0 0 1rem; } .about-expanded a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; } .about-expanded a:hover { color: var(--text); }