/* aya-bot site — Style C shared */
:root {
  --paper: #efeae2;
  --ink: #2a2430;
  --accent: #c45c4a;
  --hush: #5b7c99;
  --spark: #d4783c;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(42, 36, 48, 0.14);
  --ok: #2f7a55;
  --sans: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  --display: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.brand-bar {
  background: var(--ink);
  color: var(--paper);
}

.brand-bar-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-name {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: inherit;
  text-decoration: none;
}

.brand-sub {
  font-size: 0.7rem;
  opacity: 0.5;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}

.site-nav-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  font-size: 0.875rem;
}

.site-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.75rem 1rem;
  border-bottom: 4px solid transparent;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.4);
}

.site-nav a.is-active {
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
  font-weight: 700;
}

.site-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 0.85rem 3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  font-size: 0.75rem;
}

.site-footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-footer a {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { filter: brightness(0.98); }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.muted { color: color-mix(in srgb, var(--ink) 62%, transparent); }
.tiny { font-size: 0.75rem; }
.display { font-family: var(--display); }

input, select, textarea, button {
  font: inherit;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  padding: 0.5rem 0.7rem;
}

.field:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%) translateY(120%);
  background: #e8f6ee;
  color: var(--ok);
  border: 1px solid var(--ok);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  pointer-events: none;
  z-index: 60;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (min-width: 640px) {
  .brand-bar-inner,
  .site-main,
  .site-footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
