/*
Theme Name: Suniko
Theme URI: https://t.me/MatthewKorshunov
Author: Suniko
Author URI: https://x.com/sunikoagency
Description: Suniko — a one-page theme for a web3 marketing agency. Cinematic animated background (drifting ink, red sun, katana slashes) in the logo's black / paper / crimson palette. Sections: hero, services, free audit, blog, FAQ, contact. Links are editable in Appearance → Customize.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suniko
Tags: one-page, dark, animated, landing, web3
*/

/* ── Suniko — black / paper / crimson ───────────────────────── */
:root {
  --ink: #0a0a0b;
  --ink-2: #131316;
  --paper: #f2f0ec;
  --paper-dim: rgba(242, 240, 236, 0.62);
  --red: #d7172f;
  --line: rgba(242, 240, 236, 0.14);
  --display: "Space Grotesk", sans-serif;
  --jp: "Shippori Mincho", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}



/* canvas background + grain */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  /* background-image is set from suniko-bg.js (data-URI noise) */
}
body.no-grain .grain { display: none; }

main { position: relative; z-index: 1; }

/* ── nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: linear-gradient(rgba(10, 10, 11, 0.85), rgba(10, 10, 11, 0));
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--paper);
}
.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: #000;
}
.nav-logo img {
  width: 108%;
  height: 108%;
  object-fit: cover;
  margin: -4%;
  display: block;
}
.nav-word {
  font-weight: 700;
  letter-spacing: 0.34em;
  font-size: 14px;
  text-transform: uppercase;
}
.nav-word i { color: var(--red); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.nav-links a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.nav-cta {
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-links a.nav-cta:hover { border-color: var(--red); background: rgba(215, 23, 47, 0.12); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(20px, 6vw, 96px) 80px;
  position: relative;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--red);
}
}
.hero h1 {
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 11ch;
}
.hero h1 .dot { color: var(--red); }
.hero-sub {
  margin-top: 32px;
  max-width: 52ch;
  color: var(--paper-dim);
  font-size: clamp(16px, 1.4vw, 19px);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 30px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: #fff; color: var(--ink); }
.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: #fff; color: var(--ink); }

.hero-kanji {
  position: absolute;
  right: clamp(16px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--jp);
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.5em;
  color: rgba(242, 240, 236, 0.28);
  user-select: none;
}
.hero-kanji b { color: rgba(215, 23, 47, 0.75); font-weight: 500; }
@media (max-width: 860px) { .hero-kanji { display: none; } }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: clamp(20px, 6vw, 96px);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.35);
}

/* ── shared section shell ───────────────────────────────────── */
.section {
  background: rgba(10, 10, 11, 0.9);
  border-top: 1px solid var(--line);
  padding: clamp(72px, 9vw, 128px) clamp(20px, 6vw, 96px);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.section-head .jp {
  font-family: var(--jp);
  color: rgba(242, 240, 236, 0.3);
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.4em;
  white-space: nowrap;
}

/* ── services ───────────────────────────────────────────────── */
.svc-list { display: grid; }
.svc {
  display: grid;
  grid-template-columns: 72px 1.1fr 0.9fr 1.4fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: background 0.25s, padding 0.25s;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:hover { background: rgba(242, 240, 236, 0.03); }
.svc-num {
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.svc-name {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.svc-meta {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.svc-desc {
  color: var(--paper-dim);
  font-size: 16px;
  text-wrap: pretty;
}
@media (max-width: 860px) {
  .svc { grid-template-columns: 48px 1fr; }
  .svc-meta { grid-column: 2; }
  .svc-desc { grid-column: 2; }
}

/* ── audit band ─────────────────────────────────────────────── */
.audit {
  background: var(--red);
  color: #fff;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.audit::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.18);
  pointer-events: none;
}
.audit-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.audit h2 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.audit p {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  text-wrap: pretty;
}
.audit-cta { justify-self: start; }
@media (max-width: 860px) {
  .audit-inner { grid-template-columns: 1fr; }
}

/* ── faq ────────────────────────────────────────────────────── */
.faq-list { max-width: 880px; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary .mark {
  flex: none;
  color: var(--red);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.25s;
}
.faq-item[open] summary .mark { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 48px 26px 0;
  color: var(--paper-dim);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ── blog ───────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--paper);
  background: rgba(242, 240, 236, 0.025);
  border: 1px solid var(--line);
  padding: 28px 28px 26px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.post-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.35s ease;
}
.post-card:hover { background: rgba(242, 240, 236, 0.055); border-color: rgba(242, 240, 236, 0.28); }
.post-card:hover::after { height: 100%; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 18px;
}
.post-meta .cat { color: var(--red); font-weight: 600; }
.post-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(242, 240, 236, 0.25); }

.post-card h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.post-card p {
  margin-top: 14px;
  color: var(--paper-dim);
  font-size: 15px;
  text-wrap: pretty;
}
.post-card .read {
  margin-top: auto;
  padding-top: 22px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-card .read::after {
  content: "→";
  transition: transform 0.25s;
}
.post-card:hover .read::after { transform: translateX(4px); }

.blog-all {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  justify-content: flex-start;
}

/* ── single post / archive ─────────────────────────────────── */
.post-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.post-wrap h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: 22px;
}
.post-wrap .post-meta { margin-bottom: 36px; }
.post-wrap .post-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(242, 240, 236, 0.86);
}
.post-wrap .post-body p,
.post-wrap .post-body ul,
.post-wrap .post-body ol,
.post-wrap .post-body blockquote,
.post-wrap .post-body figure { margin-bottom: 1.2em; }
.post-wrap .post-body h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 1.6em 0 0.5em;
  letter-spacing: -0.01em;
}
.post-wrap .post-body h3 {
  font-size: clamp(20px, 2vw, 24px);
  margin: 1.4em 0 0.4em;
}
.post-wrap .post-body a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.post-wrap .post-body blockquote {
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 22px;
  color: var(--paper);
  font-style: italic;
}
.post-wrap .post-body img { max-width: 100%; height: auto; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
}
.post-back:hover { color: var(--paper); }

/* ── contact / footer ───────────────────────────────────────── */
.contact { text-align: left; }
.contact h2 {
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.contact h2 .dot { color: var(--red); }
.contact p {
  margin-top: 24px;
  color: var(--paper-dim);
  max-width: 46ch;
  text-wrap: pretty;
}
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: 28px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
}
.footer-logo img {
  width: 108%;
  height: 108%;
  object-fit: cover;
  margin: -4%;
  display: block;
}
.footer small {
  color: rgba(242, 240, 236, 0.4);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero-eyebrow-text {
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 11ch;
  color: var(--paper);
}

.hero-eyebrow-text .dot {
  color: var(--red);
}

.hero h1 {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-dim);
  font-weight: 400;
  max-width: none;
  line-height: 1.4;
}

.single .contact {
  padding-top: 0;
}

.post-wrap nav.breadcrumbs,
.section nav.breadcrumbs {
  font-size: 12px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--paper-dim) !important;
  margin-bottom: 32px !important;
  font-weight: 700 !important;
}
.post-wrap nav.breadcrumbs a,
.section nav.breadcrumbs a {
  color: var(--paper-dim) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}
.post-wrap nav.breadcrumbs a:visited,
.section nav.breadcrumbs a:hover,
.section nav.breadcrumbs a:visited {
  color: var(--paper-dim) !important;
}
.post-wrap nav.breadcrumbs a:hover {
  color: var(--red) !important;
}
.post-wrap nav.breadcrumbs span,
.section nav.breadcrumbs span {
  color: var(--paper-dim) !important;
  font-weight: 700 !important;
  text-transform: none !important;
}
.post-wrap nav.breadcrumbs .sep,
.section nav.breadcrumbs .sep {
  margin: 0 10px !important;
  opacity: 0.3 !important;
}