/* Naru — narufocus.com */

:root {
  --bg: #08080b;
  --ink-1: rgba(255, 255, 255, 0.96);
  --ink-2: rgba(235, 235, 245, 0.62);
  --ink-3: rgba(235, 235, 245, 0.38);
  --ink-4: rgba(235, 235, 245, 0.2);
  --hairline: rgba(255, 255, 255, 0.08);
  --focus: #ff6b57;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Clip (not hidden) on the root too: the drifting ember glows past the
   viewport edge, and body-only overflow doesn't contain them on mobile. `clip`
   stops the sideways scroll without disabling the smooth-scroll anchors. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* fine grain, so the black isn't flat */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; position: relative; }
.wrap.narrow { max-width: 680px; }

/* ---------- type ---------- */

.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.eyebrow.accent { color: var(--focus); }

h1 {
  font-size: clamp(46px, 8.5vw, 116px);
  font-weight: 700; letter-spacing: -0.042em; line-height: 0.95;
}

h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}

.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.45; }

/* ---------- header ---------- */

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0; position: relative; z-index: 3;
}
header nav { display: flex; gap: 24px; }
header a { color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 500; }
header a:hover { color: var(--ink-1); }

/* wordmark: the glyph + the name */
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.brand img {
  width: 30px; height: 30px;
  display: block;
  margin: -6px 0;             /* the art's glow padding shouldn't add height */
}
.brand span { color: var(--ink-1); }
.brand:hover span { color: var(--ink-1); }

footer .brand img { width: 24px; height: 24px; }
footer .brand span { color: var(--ink-4); font-weight: 600; letter-spacing: .22em; font-size: 11px; }

/* ---------- the ember: brand atmosphere, not UI ---------- */

.ember { position: absolute; pointer-events: none; z-index: 0; animation: drift 29s ease-in-out infinite; }

/* A round ball of light, matching the app: every layer is a circle on one
   shared centre and the whole ember moves as one, so it wanders without ever
   changing shape. */
.ember i {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
}
.ember i:nth-child(1) {
  width: 460px; height: 460px; margin: -230px 0 0 -230px;
  background: var(--focus); opacity: .20; filter: blur(100px);
}
.ember i:nth-child(2) {
  width: 320px; height: 320px; margin: -160px 0 0 -160px;
  background: var(--focus); opacity: .18; filter: blur(80px);
}
/* The bright heart trails the ball by a hair — liquid, never off round. */
.ember i:nth-child(3) {
  width: 170px; height: 170px; margin: -85px 0 0 -85px;
  background: #fff; opacity: .06; filter: blur(64px);
  animation: heart 13s ease-in-out infinite;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  22%  { transform: translate(38px, 18px) scale(1.03); }
  47%  { transform: translate(-12px, 36px) scale(1); }
  71%  { transform: translate(-40px, -8px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes heart {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(10px, -8px); }
}

/* ---------- hero ---------- */

.hero { position: relative; padding: 130px 0 150px; }
.hero .ember { width: 400px; height: 320px; left: 50%; top: -30px; margin-left: -290px; }
.hero-copy { position: relative; z-index: 2; }
.hero-mark {
  width: 92px; height: 92px;
  display: block; margin: 0 0 26px -10px;   /* offset the art's own padding */
  filter: drop-shadow(0 0 34px rgba(255,107,87,0.35));
}
/* ch resolves against each element's own size — set the measure on the
   elements themselves, never on a 16px parent (that crushes the children). */
.hero h1 { margin-top: 22px; max-width: 9ch; }
.hero .lead { margin-top: 28px; max-width: 30ch; }

.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }

/* The download button: Apple's official white badge, used as is. */
.dl { display: inline-flex; line-height: 0; transition: transform .15s ease; }
.dl img { display: block; width: auto; height: 48px; }
.dl:hover { transform: translateY(-1px); }
.cta-note { font-size: 13px; color: var(--ink-4); }

/* ---------- the loop: a real sequence, so it's numbered ---------- */

.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 20px 0 130px; }
.loop > div { border-top: 1px solid var(--hairline); padding-top: 22px; }
.loop .n {
  font-family: var(--rounded); font-size: 15px; font-weight: 700;
  color: var(--focus); font-variant-numeric: tabular-nums;
}
.loop h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 14px; }
.loop p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* ---------- statement ---------- */

.statement { position: relative; padding: 110px 0; text-align: center; }
.statement .ember { width: 400px; height: 300px; left: 50%; top: 20px; margin-left: -200px; }
.statement p {
  position: relative; z-index: 2;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.16;
  max-width: 18ch; margin: 0 auto;
  text-wrap: balance;   /* even lines, never a lone last word */
}
/* Its own block, so the second sentence balances by itself too. */
.statement p span { display: block; color: var(--ink-3); text-wrap: balance; }

/* ---------- feature rows ---------- */

.feature {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 60px; padding: 76px 0;
  border-top: 1px solid var(--hairline);
}
.feature h2 { margin-top: 14px; }
.feature .body { padding-top: 6px; }
.feature .body > p { color: var(--ink-2); font-size: 17px; max-width: 44ch; }

.points { margin-top: 26px; display: flex; flex-direction: column; }
.points div { padding: 15px 0; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink-2); }
.points div:first-child { border-top: 0; padding-top: 0; }
.points b { color: var(--ink-1); font-weight: 600; display: block; margin-bottom: 3px; }

/* ---------- close ---------- */

.close { position: relative; text-align: center; padding: 140px 0 60px; }
.close .ember { width: 400px; height: 300px; left: 50%; top: 40px; margin-left: -200px; }
.close h2, .close .lead, .close .cta-row { position: relative; z-index: 2; }
.close .lead { margin: 20px auto 0; max-width: 34ch; }
.close .cta-row { justify-content: center; }

/* ---------- prose ---------- */

.prose { padding: 24px 0 0; }
.prose h1 { font-size: 34px; letter-spacing: -0.03em; margin-top: 10px; }
.prose h2 { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--focus); text-decoration: none; }
.prose .updated { font-size: 13px; color: var(--ink-4); margin-top: 6px; }

/* ---------- blog ---------- */

/* Posts read as articles: real headings, roomier text. */
.post h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  text-transform: none; color: var(--ink-1); margin: 40px 0 12px;
}
.post h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-1); margin: 26px 0 6px; }
.post p, .post li { font-size: 16px; line-height: 1.65; }
.post ol, .post ul { padding-left: 22px; }
.post li { margin-bottom: 8px; }
.post strong { color: var(--ink-1); font-weight: 600; }
.post .cta-row { margin-top: 32px; }

.prose .intro { margin-top: 10px; }
.post-list { list-style: none; padding: 0 !important; margin-top: 28px; }
.post-list li { border-top: 1px solid var(--hairline); margin: 0; }
.post-list a { display: block; padding: 22px 0; color: inherit; }
.post-list .post-date { display: block; font-size: 12px; color: var(--ink-4); }
.post-list .post-title {
  display: block; margin-top: 6px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-1);
}
.post-list .post-sum { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.post-list a:hover .post-title { color: var(--focus); }

/* ---------- footer ---------- */

footer {
  margin-top: 40px; padding: 28px 0 46px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-4);
}
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-3); text-decoration: none; }
footer a:hover { color: var(--ink-1); }
.foot-brand { display: flex; align-items: center; gap: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 90px 0 100px; }
  .hero h1 { max-width: none; }
  .hero .ember { margin-left: -200px; }
  .loop { grid-template-columns: 1fr; gap: 0; padding-bottom: 90px; }
  .loop > div { padding: 22px 0; }
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 56px 0; }
  .statement { padding: 80px 0; }
  .close { padding: 100px 0 40px; }
  footer { flex-direction: column; gap: 14px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ember, .ember i { animation: none; }
}
