/*
Theme Name: IntegratorHub
Theme URI: https://integratorhub.ru/
Author: IntegratorHub
Description: Minimal WordPress theme for IntegratorHub content, articles and Gutenberg blocks.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: integratorhub
*/

:root {
  --ih-bg: #02070d;
  --ih-panel: #03151b;
  --ih-panel-2: #031018;
  --ih-cyan: #13f4f0;
  --ih-cyan-2: #0aa7b5;
  --ih-cyan-3: #078b98;
  --ih-line: #075c61;
  --ih-text: #ffffff;
  --ih-muted: #b8c3cc;
  --ih-soft: #6f858d;
  --ih-container: min(1360px, calc(100vw - 80px));
  --ih-article: min(920px, calc(100vw - 48px));
  --ih-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ih-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--ih-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #00080b 0, #00080b 150px, rgba(0, 8, 11, 0) 310px),
    radial-gradient(circle at 64% 0%, rgba(5, 54, 60, 0.34), transparent 420px),
    radial-gradient(circle at 72% 24%, rgba(0, 244, 240, 0.13), transparent 360px),
    radial-gradient(circle at 5% 48%, rgba(11, 44, 53, 0.24), transparent 360px),
    linear-gradient(180deg, #00070a 0%, #02070d 38%, #02070d 78%, #031017 100%);
  color: var(--ih-text);
  font-family: var(--ih-font);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.ih-site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 12px 0 40px;
}

.ih-container {
  width: var(--ih-container);
  margin: 0 auto;
}

.ih-header {
  position: sticky;
  top: 16px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(108px, 1fr);
  align-items: center;
  column-gap: 28px;
  min-height: 52px;
  border: 1px solid rgba(19, 244, 240, 0.14);
  border-radius: 18px;
  background: rgba(3, 13, 17, 0.78);
  padding: 12px 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
}

.ih-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.ih-logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ih-cyan);
  font-family: var(--ih-mono);
  font-size: 12px;
  font-weight: 700;
  isolation: isolate;
}

.ih-logo-mark::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border: 1px solid rgba(19, 244, 240, 0.82);
  background: rgba(6, 25, 32, 0.54);
  clip-path: polygon(50% 0, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  box-shadow: 0 0 18px rgba(19, 244, 240, 0.10);
}

.ih-brand-name {
  color: var(--ih-text);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ih-brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--ih-cyan);
  font-family: var(--ih-mono);
  font-size: 9px;
  letter-spacing: .16em;
  opacity: .72;
}

.ih-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 64px;
  color: var(--ih-text);
  font-size: 16px;
}

.ih-nav a {
  opacity: 0.88;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.ih-nav a:hover {
  color: var(--ih-cyan);
  opacity: 1;
}

.ih-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 24px;
}

.ih-icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #0c4148;
  border-radius: 999px;
  background: #031017;
  color: var(--ih-text);
}

.ih-icon-btn.menu {
  border-color: var(--ih-cyan);
  color: var(--ih-cyan);
  font-size: 24px;
  line-height: 1;
}

.ih-main {
  width: var(--ih-article);
  margin: 72px auto 0;
}

.ih-main.wide {
  width: var(--ih-container);
}

.ih-page-title {
  margin: 0 0 28px;
  color: var(--ih-text);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.entry-content {
  color: var(--ih-muted);
  font-size: 18px;
  line-height: 1.7;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 24px;
}

.entry-content h2,
.entry-content h3 {
  color: var(--ih-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.entry-content h2 {
  margin-top: 56px;
  font-size: clamp(30px, 3vw, 46px);
}

.entry-content h3 {
  margin-top: 32px;
  font-size: clamp(22px, 2vw, 30px);
}

.entry-content code,
.entry-content pre {
  font-family: var(--ih-mono);
}

.entry-content .wp-block-code {
  overflow: auto;
  border: 1px solid rgba(19, 244, 240, .18);
  border-radius: 10px;
  background: rgba(3, 16, 22, .88);
  padding: 18px;
  color: #d9ffff;
}

.entry-content .wp-block-group {
  border-color: rgba(19, 244, 240, .20);
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
  border-radius: 10px;
  border: 1px solid rgba(19, 244, 240, .14);
  background: #061920;
}

.entry-content .wp-block-button__link {
  border-radius: 10px;
  background: linear-gradient(180deg, var(--ih-cyan-2), var(--ih-cyan-3));
  color: #fff;
  font-weight: 700;
}

.ih-footer {
  width: var(--ih-container);
  margin: 90px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(19, 244, 240, .12);
  color: var(--ih-soft);
  font-size: 13px;
}

@media (max-width: 760px) {
  :root {
    --ih-container: min(100% - 32px, 540px);
    --ih-article: min(100% - 32px, 540px);
  }

  .ih-site {
    padding-top: 16px;
  }

  .ih-header {
    grid-template-columns: 1fr auto;
    top: 12px;
    padding: 11px 14px;
  }

  .ih-brand {
    min-width: 0;
  }

  .ih-brand-name {
    font-size: 15px;
  }

  .ih-brand-sub {
    font-size: 7px;
  }

  .ih-nav,
  .ih-header-actions a:first-child {
    display: none;
  }

  .ih-header-actions {
    gap: 0;
  }

  .ih-main {
    margin-top: 48px;
  }

  .entry-content {
    font-size: 16px;
    line-height: 1.62;
  }
}
