:root {
  --bg-deep: #0e0e11;
  --bg-surface: #17171d;
  --bg-card: #17171d;
  --line: #262630;

  --pastel-pink: #f4b8ca;
  --pastel-pink-hover: #fcd5e2;
  --pastel-pink-glow: rgba(244, 184, 202, 0.2);
  --pink: #f4b8ca;
  --pink-dim: #b88696;
  --pink-bg: rgba(244, 184, 202, 0.12);

  --text: #ededed;
  --text-muted: #8d8da0;
  --muted: #8d8da0;

  --font-display: 'Archivo Black', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  --bg-deep: #f5f6f8;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --line: #dbe0e6;

  --pastel-pink: #d6336c;
  --pastel-pink-hover: #b02555;
  --pastel-pink-glow: rgba(214, 51, 108, 0.15);
  --pink: #d6336c;
  --pink-dim: #992850;
  --pink-bg: rgba(214, 51, 108, 0.08);

  --text: #0f172a;
  --text-muted: #64748b;
  --muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--pastel-pink);
  color: #12080c;
}

:focus-visible {
  outline: 2px solid var(--pastel-pink);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header & Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--pastel-pink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.twitter-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.twitter-nav-link:hover {
  color: var(--pastel-pink);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--pink-bg);
  color: var(--pastel-pink);
  border-color: var(--pastel-pink);
}

:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

:root[data-theme="light"] .theme-icon-sun {
  display: none;
}

:root:not([data-theme="light"]) .theme-icon-sun {
  display: block;
}

:root:not([data-theme="light"]) .theme-icon-moon {
  display: none;
}

/* ---------- Dropdowns ---------- */
.dropdown-wrap {
  position: relative;
  display: inline-block;
}

.nav-menu-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.nav-menu-btn .pink-dash {
  width: 10px;
  height: 2px;
  background: var(--pastel-pink);
  display: inline-block;
}

.nav-menu-btn:hover,
.dropdown-wrap:hover .nav-menu-btn {
  border-color: var(--pastel-pink);
  color: var(--pastel-pink);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 6px;
  z-index: 50;
}

.dropdown-menu.nav-menu-right {
  left: auto;
  right: 0;
}

.dropdown-wrap:hover .dropdown-menu,
.dropdown-menu:hover,
.dropdown-menu.show {
  display: block;
}

.dropdown-inner {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

:root[data-theme="light"] .dropdown-inner {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--pink-bg);
  color: var(--pastel-pink);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 56px 0 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  color: var(--text);
}

h1 .accent {
  color: var(--pastel-pink);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 36px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-pink {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--pastel-pink);
  color: #141418;
  border: 1px solid var(--pastel-pink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-pink:hover {
  background: var(--pastel-pink-hover);
  border-color: var(--pastel-pink-hover);
}

.btn-browse {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-browse:hover,
.dropdown-wrap:hover .btn-browse {
  border-color: var(--pastel-pink);
  color: var(--pastel-pink);
}

/* ---------- Search Bar ---------- */
.search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 40px;
  width: 290px;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--pastel-pink);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 8px;
}

.search-box:focus-within .search-icon {
  color: var(--pastel-pink);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.search-shortcut {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  pointer-events: none;
  margin-left: 8px;
}

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 340px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  z-index: 200;
  padding: 6px;
}

:root[data-theme="light"] .search-dropdown {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.search-dropdown.show {
  display: block;
}

.search-result-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--pink-bg);
}

.search-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.search-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--pastel-pink);
  text-transform: uppercase;
}

.search-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

.search-title mark {
  background: var(--pink-bg);
  color: var(--pastel-pink);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

.search-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.search-empty {
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Sections & 2-Column Card Grids ---------- */
.section {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--pastel-pink);
  text-align: center;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.card:hover {
  border-color: var(--pastel-pink);
  transform: translateY(-2px);
}

.card-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.2s ease;
}

a.card:hover h3 {
  color: var(--pastel-pink);
}

.card-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.cat-card {
  padding: 40px 20px;
}

.cat-card h3 {
  font-size: 1.3rem;
}

/* ---------- Tags & Badges ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--line);
  color: var(--text-muted);
  text-transform: uppercase;
}

.tag.alt {
  background: var(--pastel-pink);
  color: #141418;
}

/* ---------- Review & Article Detail Pages ---------- */
.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--pastel-pink);
}

.meta-box {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 12px 0 20px;
}

.meta-box span b {
  color: var(--text);
}

.review-content,
.review-body,
.guide-content {
  margin-top: 24px;
}

.review-content h2,
.review-body h2,
.guide-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--pastel-pink);
  margin: 22px 0 8px;
}

.review-content h2:first-child,
.review-body h2:first-child,
.guide-content h2:first-child {
  margin-top: 0;
}

.review-content p,
.review-body p,
.guide-content p {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.review-content ul,
.review-body ul,
.guide-content ul {
  margin: 6px 0 16px 22px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.guide-content ul ul {
  margin: 2px 0 4px 18px;
}

.review-content li,
.review-body li,
.guide-content li {
  margin-bottom: 3px;
}

.guide-content .guide-note {
  color: var(--text-muted);
  font-size: 0.83rem;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 1px;
}

.review-image-wrap {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-surface);
}

.review-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.setup-img-wrap {
  max-width: 860px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-surface);
  margin: 16px auto 24px;
  position: relative;
  overflow: visible;
}

.setup-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* Setup Hotspot Base & Solid Pink Dot */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  outline: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotspot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pastel-pink);
  box-shadow: 0 0 8px var(--pastel-pink-glow), 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.hotspot:hover .hotspot-dot,
.hotspot:focus .hotspot-dot,
.hotspot.is-active .hotspot-dot {
  transform: scale(1.35);
  background: #ffffff;
  box-shadow: 0 0 12px var(--pastel-pink), 0 0 4px #ffffff;
}

/* Glassmorphic Tooltip Card */
.hotspot-tooltip {
  position: absolute;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pastel-pink);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: max-content;
  max-width: 220px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 12px var(--pink-bg);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 30;
  text-align: left;
}

/* Tooltip Directional Offsets */
.tooltip-top {
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
}

.tooltip-bottom {
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
}

.tooltip-left {
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
}

.tooltip-right {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
}

/* Active / Hover Tooltip Visibility & Elevate Stacking Context */
.hotspot:hover,
.hotspot:focus,
.hotspot:focus-within,
.hotspot.is-active {
  z-index: 100;
}

.hotspot:hover .hotspot-tooltip,
.hotspot:focus .hotspot-tooltip,
.hotspot:focus-within .hotspot-tooltip,
.hotspot.is-active .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hotspot:hover .tooltip-top,
.hotspot:focus .tooltip-top,
.hotspot.is-active .tooltip-top {
  transform: translateX(-50%) translateY(0);
}

.hotspot:hover .tooltip-bottom,
.hotspot:focus .tooltip-bottom,
.hotspot.is-active .tooltip-bottom {
  transform: translateX(-50%) translateY(0);
}

.hotspot:hover .tooltip-left,
.hotspot:focus .tooltip-left,
.hotspot.is-active .tooltip-left {
  transform: translateY(-50%) translateX(0);
}

.hotspot:hover .tooltip-right,
.hotspot:focus .tooltip-right,
.hotspot.is-active .tooltip-right {
  transform: translateY(-50%) translateX(0);
}

/* Tooltip Text Hierarchy */
.hotspot-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pastel-pink);
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
}

.hotspot-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
  display: block;
}

.hotspot-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: block;
}

/* ---------- 3-Column Equal Grid Under Setup Image ---------- */
.setup-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 24px 0 28px;
}

@media (max-width: 768px) {
  .setup-specs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.spec-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--pastel-pink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.spec-list li {
  color: var(--text);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

:root[data-theme="light"] .spec-list li {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.spec-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pastel-pink);
  margin-right: 6px;
  display: inline-block;
}

.spec-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.spec-link:hover {
  color: var(--pastel-pink);
  text-decoration: underline;
}

/* About & Contact Pages */
.about-box {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 28px 0;
}

.about-box p {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.about-box p:last-child {
  margin-bottom: 0;
}

.btn-other-projects {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  margin-top: 16px;
}

.btn-other-projects:hover {
  border-color: var(--pastel-pink);
  color: var(--pastel-pink);
}

.contact-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-subtext {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  padding-top: 48px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--pastel-pink);
}

@media (max-width: 768px) {

  .wrap,
  .nav-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .search-box {
    width: 100%;
  }

  .search-wrap {
    width: 100%;
  }

  .search-dropdown {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}