/*
Theme Name: NiwaChat Site
Theme URI: https://niwachat.com
Author: NiwaChat
Author URI: https://niwachat.com
Description: React-powered landing page and extensible WordPress theme for Niwa AI.
Version: 1.0.69
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietary
Text Domain: niwachat
*/

:root {
  --niwa-bg: #0a0a0a;
  --niwa-surface: #101010;
  --niwa-surface-soft: #151515;
  --niwa-text: #ffffff;
  --niwa-muted: rgba(255, 255, 255, 0.62);
  --niwa-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--niwa-bg);
}

body {
  margin: 0;
  background: var(--niwa-bg);
  color: var(--niwa-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
iframe,
video {
  max-width: 100%;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #000;
}

.niwa-site-header,
.niwa-site-footer {
  border-color: var(--niwa-border);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
}

.niwa-site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--niwa-border);
}

.niwa-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.niwa-header-inner,
.niwa-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.niwa-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.niwa-brand img {
  width: auto;
  height: 12px;
  filter: brightness(0) invert(1);
}

.niwa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
  color: var(--niwa-muted);
  font-size: 14px;
  list-style: none;
}

.niwa-nav a {
  text-decoration: none;
  transition: color 180ms ease;
}

.niwa-nav a:hover {
  color: #fff;
}

.niwa-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 96px;
}

.niwa-content-wide {
  width: min(1180px, calc(100% - 40px));
}

.niwa-entry {
  border: 1px solid var(--niwa-border);
  border-radius: 28px;
  background: var(--niwa-surface);
  padding: clamp(28px, 5vw, 56px);
}

.niwa-entry + .niwa-entry {
  margin-top: 28px;
}

.niwa-entry-title {
  margin: 0 0 28px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.niwa-entry-content {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.niwa-entry-content > *:first-child {
  margin-top: 0;
}

.niwa-entry-content > *:last-child {
  margin-bottom: 0;
}

.niwa-entry-content a {
  color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.niwa-entry-content iframe,
.niwa-entry-content .wp-block-embed,
.niwa-entry-content .wp-block-video,
.niwa-entry-content .wp-block-image {
  overflow: hidden;
  border-radius: 18px;
}

.niwa-entry-content img {
  display: block;
  height: auto;
}

.niwa-entry-content .alignwide,
.niwa-entry-content .alignfull {
  width: 100%;
  max-width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.niwa-entry-content pre,
.niwa-entry-content code {
  border-radius: 12px;
  background: #050505;
  color: #fff;
}

.niwa-entry-content pre {
  overflow: auto;
  padding: 18px;
}

.niwa-post-meta {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.niwa-pagination {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  color: var(--niwa-muted);
}

.niwa-site-footer {
  border-top: 1px solid var(--niwa-border);
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
}

.niwa-site-footer a {
  text-decoration: none;
}

.niwa-react-root {
  min-height: 100vh;
}

@media (max-width: 720px) {
  .niwa-header-inner,
  .niwa-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .niwa-nav {
    gap: 14px;
  }
}
