/*
Theme Name: Signal Orchard
Author: Rowan Field Works
Description: A lightweight classic WordPress theme with an airy editorial SaaS layout, dynamic category navigation, bundled visual assets, and mobile-first responsive templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: sc-theme
Tags: blog, custom-logo, featured-images, responsive-layout, translation-ready
*/

:root {
  --sc-bg: #eaf0f7;
  --sc-surface: #ffffff;
  --sc-surface-soft: rgba(255, 255, 255, 0.74);
  --sc-text: #101729;
  --sc-muted: #5e6c83;
  --sc-line: #d8e2ef;
  --sc-blue: #0b66f4;
  --sc-blue-dark: #084fd0;
  --sc-cyan: #45d0d5;
  --sc-lime: #dbff63;
  --sc-shadow: 0 22px 60px rgba(33, 56, 96, 0.14);
  --sc-shadow-soft: 0 12px 28px rgba(33, 56, 96, 0.1);
  --sc-radius: 12px;
  --sc-radius-large: 22px;
  --sc-font: "Nunito", "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(69, 208, 213, 0.12), transparent 24rem),
    linear-gradient(180deg, #f3f7fc 0%, var(--sc-bg) 52%, #f8fbff 100%);
  color: var(--sc-text);
  font-family: var(--sc-font);
  font-size: 16px;
  line-height: 1.6;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(11, 102, 244, 0.35);
  outline-offset: 3px;
}

.sc-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--sc-text);
  color: #ffffff;
  border-radius: 8px;
}

.sc-skip-link:focus {
  top: 16px;
}

.sc-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.sc-site-shell {
  width: min(100% - 24px, 1424px);
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(37, 67, 112, 0.12);
}

.sc-site-header {
  position: sticky;
  top: 10px;
  z-index: 50;
  padding: 16px;
}

.sc-header-bar {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(210, 223, 241, 0.9);
  border-radius: 18px;
  box-shadow: var(--sc-shadow-soft);
  backdrop-filter: blur(14px);
}

.sc-menu-toggle,
.sc-icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--sc-surface);
  color: var(--sc-text);
  box-shadow: 0 10px 24px rgba(24, 42, 70, 0.1);
  cursor: pointer;
}

.sc-menu-toggle span,
.sc-menu-toggle span::before,
.sc-menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.sc-menu-toggle span {
  position: relative;
}

.sc-menu-toggle span::before,
.sc-menu-toggle span::after {
  position: absolute;
  left: 0;
}

.sc-menu-toggle span::before {
  top: -7px;
}

.sc-menu-toggle span::after {
  top: 7px;
}

.sc-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  letter-spacing: 0;
  white-space: nowrap;
}

.sc-brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.sc-custom-logo {
  width: auto;
  max-width: 210px;
  max-height: 44px;
  object-fit: contain;
}

.sc-brand-text {
  line-height: 1;
}

.sc-nav-wrap {
  position: fixed;
  inset: 92px 24px auto 24px;
  z-index: 55;
  display: none;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  box-shadow: var(--sc-shadow);
}

.sc-nav-open .sc-nav-wrap {
  display: block;
}

.sc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-menu-items {
  display: contents;
}

.sc-nav a,
.sc-nav summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sc-text);
  font-weight: 700;
  cursor: pointer;
}

.sc-nav a:hover,
.sc-nav summary:hover {
  background: #f4f7fb;
}

.sc-nav-dropdown {
  position: relative;
}

.sc-nav-dropdown summary {
  list-style: none;
}

.sc-nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.sc-nav-dropdown summary::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.sc-nav-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.sc-nav-dropdown-list {
  display: grid;
  gap: 4px;
  padding: 4px 0 8px 12px;
}

.sc-header-actions {
  display: none;
}

.sc-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.sc-button:hover {
  transform: translateY(-1px);
}

.sc-button-primary {
  background: var(--sc-blue);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(11, 102, 244, 0.2);
}

.sc-button-primary:hover {
  background: var(--sc-blue-dark);
}

.sc-button-secondary {
  background: #ffffff;
  color: var(--sc-text);
  border-color: #b9c7da;
}

.sc-main {
  padding: 18px 16px 42px;
}

.sc-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 34px 8px 16px;
}

.sc-hero-copy {
  width: 100%;
  max-width: 560px;
  padding: clamp(26px, 5vw, 36px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(218, 227, 239, 0.88);
  border-radius: var(--sc-radius-large);
  box-shadow: var(--sc-shadow);
}

.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 14px;
  background: #f5f8fc;
  border: 1px solid #e3ebf5;
  border-radius: 999px;
  color: #172035;
  font-size: 0.93rem;
  font-weight: 800;
}

.sc-eyebrow::before {
  width: 9px;
  height: 9px;
  background: var(--sc-blue);
  border-radius: 999px;
  content: "";
}

.sc-hero-title {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.45rem, 8vw, 4.45rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

.sc-hero-text {
  max-width: 520px;
  margin: 20px 0 0;
  color: #53637b;
  font-size: clamp(1rem, 2.2vw, 1.16rem);
}

.sc-hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.sc-hero-media {
  position: relative;
  min-height: 420px;
}

.sc-hero-visual {
  width: min(100%, 760px);
  margin: 0 auto;
  border-radius: 18px;
  filter: drop-shadow(0 26px 54px rgba(35, 70, 116, 0.14));
}

.sc-mini-orbit {
  position: absolute;
  display: none;
  width: 50px;
  height: 50px;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  color: var(--sc-blue);
  box-shadow: var(--sc-shadow-soft);
}

.sc-mini-orbit-left {
  top: 36%;
  left: 0;
}

.sc-mini-orbit-top {
  top: 2%;
  left: 16%;
}

.sc-topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 18px;
}

.sc-topic-chip {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #ccd9eb;
  border-radius: 999px;
  color: #182033;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(38, 70, 110, 0.07);
}

.sc-topic-chip::before {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: #eef6ff;
  border-radius: 999px;
  color: var(--sc-blue);
  content: "⌕";
  font-size: 15px;
  line-height: 1;
}

.sc-topic-chip:nth-child(2)::before {
  background: var(--sc-lime);
  color: #5b7f00;
  content: "✎";
}

.sc-topic-chip:nth-child(3)::before {
  background: #f1efff;
  color: #4d2fe5;
  content: "↗";
}

.sc-topic-chip:nth-child(4)::before {
  background: #e7fbff;
  color: #1494a3;
  content: "◇";
}

.sc-section {
  margin-top: 28px;
}

.sc-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.sc-section-title {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.sc-section-link {
  color: var(--sc-blue);
  font-weight: 900;
}

.sc-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sc-post-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(218, 227, 239, 0.9);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(37, 67, 112, 0.09);
}

.sc-post-card:hover .sc-post-image img {
  transform: scale(1.035);
}

.sc-post-image {
  overflow: hidden;
  aspect-ratio: 2.08 / 1;
  background: #e9f1fb;
  border-radius: 8px;
}

.sc-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.sc-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 4px 0;
}

.sc-card-category {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  background: #eaf4ff;
  border-radius: 999px;
  color: #123063;
  font-size: 0.84rem;
  font-weight: 900;
}

.sc-card-category::before {
  width: 7px;
  height: 7px;
  background: var(--sc-blue);
  border-radius: 999px;
  content: "";
}

.sc-post-card:nth-child(2n) .sc-card-category {
  background: #ecffd1;
}

.sc-post-card:nth-child(2n) .sc-card-category::before {
  background: #9acd1d;
}

.sc-post-card:nth-child(3n) .sc-card-category {
  background: #eeeaff;
}

.sc-post-card:nth-child(3n) .sc-card-category::before {
  background: #6246ea;
}

.sc-card-title {
  margin: 0;
  font-size: clamp(1.18rem, 4.8vw, 1.38rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.sc-card-title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.sc-card-excerpt {
  margin: 12px 0 0;
  color: #53637b;
}

.sc-card-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: #53637b;
  font-weight: 700;
}

.sc-card-date::before {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, transparent 0 22%, currentColor 22% 34%, transparent 34%),
    linear-gradient(90deg, transparent 0 20%, currentColor 20% 32%, transparent 32% 68%, currentColor 68% 80%, transparent 80%),
    linear-gradient(currentColor, currentColor);
  background-size: 100% 100%, 100% 100%, 100% 1px;
  background-position: center, center, center 55%;
  background-repeat: no-repeat;
  border: 1.7px solid currentColor;
  border-radius: 3px;
  content: "";
}

.sc-empty-state {
  grid-column: 1 / -1;
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed #b9c7da;
  border-radius: 14px;
  color: var(--sc-muted);
}

.sc-single-wrap,
.sc-archive-wrap {
  width: min(80vw, 1080px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 0;
}

.sc-single-article {
  padding: clamp(24px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(218, 227, 239, 0.9);
  border-radius: var(--sc-radius-large);
  box-shadow: var(--sc-shadow);
}

.sc-single-title,
.sc-archive-title {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.sc-single-meta,
.sc-archive-description {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--sc-muted);
  font-weight: 700;
}

.sc-single-meta a {
  color: var(--sc-blue);
}

.sc-content {
  margin-top: clamp(24px, 5vw, 42px);
  color: #26344d;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

.sc-content > *:first-child {
  margin-top: 0;
}

.sc-content a {
  color: var(--sc-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sc-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: #f6f9fd;
  border-left: 4px solid var(--sc-blue);
  border-radius: 0 12px 12px 0;
}

.sc-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.sc-content th,
.sc-content td {
  padding: 12px;
  border: 1px solid var(--sc-line);
}

.sc-post-nav {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.sc-post-nav a {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  color: var(--sc-blue);
  font-weight: 900;
}

.sc-footer {
  padding: 20px 16px 30px;
}

.sc-footer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--sc-line);
  border-radius: 999px;
  color: #516076;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(37, 67, 112, 0.08);
}

.sc-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-footer-item::before {
  width: 16px;
  height: 16px;
  border: 2px solid var(--sc-blue);
  border-radius: 5px;
  content: "";
}

.sc-footer-copy {
  margin: 16px 0 0;
  color: var(--sc-muted);
  text-align: center;
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .sc-hero-actions {
    grid-template-columns: auto auto;
  }

  .sc-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .sc-site-shell {
    width: min(100% - 56px, 1450px);
    margin: 24px auto;
    border-radius: 28px;
  }

  .sc-header-bar {
    grid-template-columns: 60px 1fr auto;
    min-height: 76px;
    padding: 10px;
    border-radius: 22px;
  }

  .sc-brand {
    justify-self: center;
  }

  .sc-nav-wrap {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .sc-nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
  }

  .sc-nav a,
  .sc-nav summary {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.98rem;
  }

  .sc-nav-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    box-shadow: var(--sc-shadow-soft);
  }

  .sc-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
  }

  .sc-header-actions .sc-button {
    min-height: 48px;
  }

  .sc-main {
    padding: 34px 56px 56px;
  }

  .sc-hero {
    grid-template-columns: minmax(430px, 0.9fr) minmax(480px, 1.1fr);
    gap: 28px;
    padding-top: 42px;
  }

  .sc-hero-copy {
    margin-left: 24px;
  }

  .sc-hero-media {
    min-height: 520px;
  }

  .sc-mini-orbit {
    display: grid;
  }

  .sc-topic-strip {
    margin-left: 24px;
  }

  .sc-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sc-post-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .sc-site-shell {
    width: min(100% - 14px, 100%);
    margin: 7px auto;
    border-width: 6px;
    border-radius: 18px;
  }

  .sc-site-header {
    top: 0;
    padding: 8px;
  }

  .sc-header-bar {
    grid-template-columns: 48px 1fr 0;
    gap: 8px;
  }

  .sc-brand {
    gap: 8px;
    font-size: 1.24rem;
  }

  .sc-brand-mark {
    width: 28px;
    height: 28px;
  }

  .sc-nav-wrap {
    inset: 72px 12px auto;
  }

  .sc-main {
    padding: 12px 10px 32px;
  }

  .sc-hero {
    padding-top: 16px;
  }

  .sc-hero-copy {
    padding: 24px 20px;
  }

  .sc-hero-media {
    min-height: 300px;
  }

  .sc-hero-visual {
    width: 118%;
    max-width: none;
    margin-left: -9%;
  }

  .sc-single-wrap,
  .sc-archive-wrap {
    width: 88vw;
  }

  .sc-footer-strip {
    border-radius: 18px;
  }
}
