/*
Theme Name: Capability Networks
Description: An editable holding page for Capability Networks.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: capability-networks
*/

.cn-shell {
  --ink: #eef6f2;
  --muted: #aac1ba;
  --accent: #a9f2cf;
  --line: #325048;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at 90% 10%, #193c32, transparent 50%), #101d1b;
  padding-inline: clamp(1.25rem, 6vw, 6rem);
}

.cn-header, .cn-main, .cn-footer {
  max-width: 72rem;
  margin-inline: auto;
}

.cn-header, .cn-footer {
  padding-block: 1.5rem;
  font-size: .9rem;
}

.cn-header { border-bottom: 1px solid var(--line); }
.cn-brand { color: var(--accent); font-weight: 700; }
.cn-footer { border-top: 1px solid var(--line); color: var(--muted); }

.cn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 9vw, 7rem);
}

.cn-shell p, .cn-shell h1, .cn-shell h2 { margin: 0; }
.cn-kicker, .cn-diagram-label {
  color: var(--accent);
  font: .8rem/1.5 ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cn-shell .cn-title {
  margin-block: .9rem 1.3rem;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.cn-shell .cn-intro { max-width: 33rem; color: var(--muted); font-size: 1.125rem; }

.cn-diagram {
  padding: clamp(1rem, 3vw, 2rem);
  background: #132622;
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.cn-diagram .cn-diagram-label { margin-bottom: 1rem; }
.cn-diagram .cn-node {
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  text-align: center;
  font-weight: 600;
}

.cn-diagram .cn-gateway { border-color: var(--accent); color: var(--accent); }
.cn-node + .cn-node { position: relative; margin-top: 1rem; }
.cn-node + .cn-node::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 1.05rem;
  border-left: 1px solid var(--accent);
}

.cn-focus { padding-block: 2rem 3rem; border-top: 1px solid var(--line); }
.cn-focus h2 { margin-bottom: .75rem; font-size: 1.6rem; }
.cn-focus p { max-width: 46rem; color: var(--muted); }
.cn-shell a { color: var(--accent); text-underline-offset: .15em; }

@media (max-width: 48rem) {
  .cn-hero { grid-template-columns: minmax(0, 1fr); }
}
