/* psohelp.it — blog refresh (brand: teal #00a99d, terracotta #c9472a, blue #608fd6) */

:root {
  --teal: #00a99d;
  --teal-dark: #008f85;
  --terra: #c9472a;
  --terra-dark: #a83820;
  --blue: #608fd6;
  --blue-dark: #4a73b8;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #2d2d2d;
  --muted: #6b6b6b;
  --border: #e2e2de;
  --font-head: "Oswald", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1180px;
  --sidebar: 300px;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-dark);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--terra);
  box-shadow: var(--shadow);
}

.header-top {
  padding: 1.25rem 0 0.75rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--terra);
}

.logo-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

.main-nav {
  background: var(--terra);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--terra-dark);
  color: #fff;
}

/* Layout */
.site-body {
  padding: 2rem 0 3rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: 2rem;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.page-heading {
  margin-bottom: 1.75rem;
}

.page-heading h1,
.page-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.page-heading .subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.post-card-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.post-card-meta a {
  font-weight: 600;
  text-decoration: none;
}

.post-card h2,
.post-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--teal);
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Article */
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.article-meta a {
  font-weight: 600;
  text-decoration: none;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-head);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.25;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--teal);
  background: #f0faf9;
  color: var(--text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tag-list a {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.widget h2,
.widget h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terra);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal);
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  margin-bottom: 0.45rem;
}

.widget li a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.widget li a:hover {
  color: var(--teal);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}

.search-form button {
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--teal-dark);
}

.sidebar-posts li {
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-posts .post-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.pagination a {
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--blue);
  color: #fff;
  padding: 1.75rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Static page */
.page-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.page-content p:last-child {
  margin-bottom: 0;
}

.cta-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #f0faf9;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .article,
  .page-content {
    padding: 1.35rem;
  }
}
