/* ========================================
   ayumi.town — base styles
   ======================================== */

:root {
  --bg: #fafbf6;
  --bg-warm: #f1f0eb;
  --text: #2e3028;
  --text-muted: #6b6e62;
  --text-faint: #a3a59b;
  --heading: #2a3a45;
  --accent-teal: #3a7d6b;
  --accent-warm: #8a7258;
  --border: #d8d8d0;
  --mono: 'DM Mono', 'Courier New', monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset & base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  z-index: 9999;
}

/* --- Layout --- */
.container { max-width: 960px; margin: 0 auto; padding: 0 3rem; }

/* --- Links --- */
a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border); transition: border-color 0.3s ease, color 0.3s ease; }
a:hover { border-color: var(--accent-teal); color: var(--accent-teal); }

/* --- Init bar --- */
.init-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.2s forwards;
}

.init-bar code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.init-bar .prompt { color: var(--accent-teal); }

.init-bar .cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--accent-teal);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}

/* --- Sections --- */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 1.75rem;
}

.section-label::before { content: '// '; color: var(--accent-teal); }

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--heading);
}

h1 { font-size: 2.8rem; letter-spacing: -0.04em; line-height: 1.1; }
h2 { font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.3; }
h3 { font-size: 0.8rem; }

.body-text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 600px;
}

.body-text strong {
  font-weight: 400;
  color: var(--accent-teal);
}

/* --- Capabilities grid --- */
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.cap-card {
  padding: 1.75rem;
  background: var(--bg);
  transition: background 0.3s ease;
}

.cap-card:hover { background: var(--bg-warm); }

.cap-card h3 {
  margin-bottom: 0.6rem;
}

.cap-card p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Status grid --- */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.status-key {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.status-dot.pending { background: var(--accent-warm); }

.status-val {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text);
}

/* --- Header image --- */
.header-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  mix-blend-mode: multiply;
}

/* --- Footer --- */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

footer .mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

footer .epoch {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* --- Animations --- */
.fade-1 { opacity: 0; animation: fadeIn 0.8s ease 1.0s forwards; }
.fade-2 { opacity: 0; animation: fadeIn 0.8s ease 1.2s forwards; }
.fade-3 { opacity: 0; animation: fadeIn 0.8s ease 1.4s forwards; }
.fade-4 { opacity: 0; animation: fadeIn 0.8s ease 1.6s forwards; }

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .container { padding: 0 1.5rem; }
  h1 { font-size: 2rem; }
  .capabilities { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .section { padding: 3.5rem 0; }
  footer .footer-inner { flex-direction: column; gap: 0.5rem; }
}
