/* namaenonaionnatachi.com — Ocean minimal
   Palette: deep navy + azure + white, generous whitespace, hairline dividers.
   Sans-serif system stack, card TOC, subtle numbered sections.
*/

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-mist: #f8fafc;
  --bg-card: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-mute: #64748b;
  --ink-faint: #94a3b8;
  --navy: #0a2540;
  --navy-2: #1a365d;
  --azure: #0891b2;
  --azure-2: #06b6d4;
  --azure-tint: #ecfeff;
  --coral: #f97066;
  --rule: #e2e8f0;
  --rule-2: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1 {
  font-size: 2.85rem;
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 3.8rem 0 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  position: relative;
  padding-top: 0.4rem;
  counter-increment: section;
}
article > h2::before {
  content: "0" counter(section);
  position: absolute;
  top: -0.3rem;
  left: 0;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--azure);
  font-weight: 500;
}
article > h2 { padding-top: 1.6rem; }
article > h2:nth-of-type(n+10)::before { content: counter(section); }

article { counter-reset: section; }
h2#toc-heading, .faq-h, .related h2, aside h2 { padding-top: 0; }
h2#toc-heading::before, .faq-h::before, .related h2::before, aside h2::before { content: none; }

h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  color: var(--navy-2);
  font-weight: 600;
}
p { margin: 0 0 1.15rem; color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; color: var(--ink-2); }
a { color: var(--azure); text-decoration: none; border-bottom: 1px solid var(--azure); padding-bottom: 1px; transition: border-color 0.15s; }
a:hover { border-bottom-color: transparent; color: var(--navy); }

/* Layout */
.wrap { max-width: 820px; margin: 0 auto; padding: 0 28px; }
main { padding: 2.5rem 0 3rem; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255, 255, 255, 0.9);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.logo {
  color: var(--navy);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--azure);
  border-radius: 50%;
  display: inline-block;
}
nav.primary {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
nav.primary a {
  color: var(--ink-mute);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
}
nav.primary a:hover { color: var(--navy); border-bottom-color: var(--azure); }
nav.primary a.active { color: var(--navy); border-bottom-color: var(--navy); }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 1.2rem 0 0;
  letter-spacing: 0.01em;
}
.breadcrumbs a { color: var(--ink-mute); border: none; }
.breadcrumbs a:hover { color: var(--azure); }
.breadcrumbs span[aria-current] { color: var(--ink); }
.breadcrumbs .sep { margin: 0 0.5rem; color: var(--ink-faint); }

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  margin-bottom: 2rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  font-weight: 600;
  margin-bottom: 1.2rem;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
}
.hero-meta {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-top: 0.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta .sep {
  width: 3px;
  height: 3px;
  background: var(--ink-faint);
  border-radius: 50%;
  display: inline-block;
}
.hero-image, .article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0 0.6rem;
  border-radius: 6px;
}
.hero-image + .caption, .article-image + .caption {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

/* Card TOC — signature element */
.toc {
  margin: 3rem 0;
  padding: 0;
  background: transparent;
}
.toc-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.3rem;
  font-weight: 600;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
}
.toc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  counter-reset: toc-counter;
}
.toc-grid li {
  padding: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  counter-increment: toc-counter;
}
.toc-grid a {
  display: block;
  padding: 1rem 1.2rem 1rem 3rem;
  color: var(--ink);
  border: none;
  font-size: 0.95rem;
  position: relative;
  transition: background 0.12s;
  line-height: 1.4;
}
.toc-grid a::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  color: var(--azure);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.toc-grid a:hover {
  background: var(--azure-tint);
  color: var(--navy);
}

/* FAQ */
.faq { margin: 2.5rem 0; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.3rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--azure);
  border-bottom: 2px solid var(--azure);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: transform 0.2s;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0.9rem 0 0; color: var(--ink-2); }

/* Author bio */
.author-bio {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin: 3.5rem 0 1rem;
  padding: 1.6rem;
  background: var(--bg-mist);
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.author-bio img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.author-bio .who-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}
.author-bio .who-role {
  font-size: 0.75rem;
  color: var(--azure);
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
}
.author-bio .who-desc {
  font-size: 0.93rem;
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 0;
}

/* RG box */
.rg {
  background: var(--azure-tint);
  padding: 1.2rem 1.4rem;
  border-radius: 6px;
  margin: 2.5rem 0 1rem;
  font-size: 0.94rem;
  color: var(--ink-2);
  border-left: 3px solid var(--azure);
}
.rg strong { color: var(--navy); font-weight: 700; }

/* Related cards */
.related {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.related-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.2rem;
  font-weight: 600;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
}
.related-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-grid li { padding: 0; }
.related-grid a {
  display: block;
  padding: 1.2rem;
  background: var(--bg-mist);
  border-radius: 6px;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.45;
  transition: all 0.15s;
}
.related-grid a:hover {
  background: var(--azure-tint);
  border-color: var(--azure-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.related-grid a::after {
  content: " →";
  color: var(--azure);
  margin-left: 4px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  font-weight: 600;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
}
.site-footer p { color: #94a3b8; font-size: 0.94rem; line-height: 1.65; margin: 0; }
.site-footer a { color: #cbd5e1; border: none; }
.site-footer a:hover { color: var(--azure-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.55rem; font-size: 0.93rem; }
.footer-disclaimer {
  max-width: 1180px;
  margin: 2.2rem auto 0;
  padding: 1.5rem 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Contact form */
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--navy);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule-2);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  border-radius: 6px;
  transition: border 0.15s, box-shadow 0.15s;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--azure);
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.15s;
}
.btn:hover { background: var(--azure); transform: translateY(-1px); box-shadow: var(--shadow); }

/* Article body */
article p, article ul, article ol { max-width: 66ch; }
article ul, article ol { margin: 0 0 1.4rem; padding-left: 1.5rem; }
article li { margin-bottom: 0.5rem; color: var(--ink-2); }
article li::marker { color: var(--azure); }

blockquote {
  border-left: 3px solid var(--azure);
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: var(--ink-mute);
  font-size: 1.1rem;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; margin-top: 3rem; }
  h3 { font-size: 1.05rem; }
  .header-inner { padding: 12px 20px; }
  nav.primary { gap: 18px; width: 100%; }
  nav.primary a { font-size: 0.82rem; }
  .wrap { padding: 0 20px; }
  .hero { padding: 2rem 0 1.5rem; }
  .toc-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .author-bio { flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }
}

/* Print */
@media print {
  .site-header, .site-footer, nav.primary, .toc, .rg, .related { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  h1, h2, h3 { color: #000; }
  a { color: #000; border: none; text-decoration: none; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 3px; }
