/*
Theme Name: Grafchokolo Classic
Theme URI: https://grafchokolo.com/
Author: Codex
Author URI: https://openai.com/
Description: A classic PHP WordPress theme for Grafchokolo. It preserves the clean editorial layout while fixing the hero message, CTA wording, long article cards, placeholder copy, and footer overlap.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grafchokolo-classic
*/

:root {
  --gchk-bg: #f7f7f7;
  --gchk-surface: #ffffff;
  --gchk-text: #09090b;
  --gchk-muted: #666a73;
  --gchk-soft: #ececec;
  --gchk-border: #e2e2e4;
  --gchk-primary: #1a67ff;
  --gchk-primary-hover: #0f56dc;
  --gchk-shadow: 0 16px 40px rgba(9, 9, 11, 0.04);
  --gchk-radius: 8px;
  --gchk-shell: 1116px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gchk-bg);
  color: var(--gchk-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.gchk-menu-open {
  overflow-x: hidden;
}

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

a:hover,
a:focus {
  color: var(--gchk-primary);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text,
.gchk-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gchk-skip-link:focus {
  z-index: 1000;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--gchk-radius);
  background: var(--gchk-text);
  color: #fff;
}

.gchk-shell {
  width: min(100% - 48px, var(--gchk-shell));
  margin: 0 auto;
}

.gchk-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--gchk-border);
  background: rgba(247, 247, 247, 0.96);
}

.gchk-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  min-height: 96px;
}

.gchk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--gchk-text);
  font-weight: 700;
}

.gchk-brand:hover,
.gchk-brand:focus {
  color: var(--gchk-text);
}

.gchk-brand-logo,
.gchk-brand-fallback {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
}

.gchk-brand-logo img,
img.gchk-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.gchk-brand-fallback {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #1a67ff 0%, #71d4ff 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.gchk-brand-name {
  display: inline-block;
  font-size: 31px;
  line-height: 1;
  white-space: nowrap;
}

.gchk-nav-list,
.gchk-footer-nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gchk-nav-list {
  justify-content: flex-start;
}

.gchk-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gchk-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.gchk-nav-list a:hover,
.gchk-nav-list a:focus {
  color: var(--gchk-primary);
}

.gchk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 0 24px;
  border: 1px solid var(--gchk-border);
  border-radius: var(--gchk-radius);
  background: var(--gchk-surface);
  color: var(--gchk-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gchk-button:hover,
.gchk-button:focus {
  border-color: var(--gchk-primary);
  color: var(--gchk-primary);
}

.gchk-button-primary {
  border-color: var(--gchk-primary);
  background: var(--gchk-primary);
  color: #fff;
}

.gchk-button-primary:hover,
.gchk-button-primary:focus {
  border-color: var(--gchk-primary-hover);
  background: var(--gchk-primary-hover);
  color: #fff;
}

.gchk-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--gchk-radius);
  background: transparent;
  color: var(--gchk-text);
  cursor: pointer;
}

.gchk-menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.gchk-header.is-open .gchk-menu-toggle {
  border-color: #d7ad24;
}

.gchk-header.is-open .gchk-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.gchk-header.is-open .gchk-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.gchk-header.is-open .gchk-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.gchk-mobile-nav {
  display: none;
}

.gchk-main {
  min-height: 55vh;
}

.gchk-hero {
  overflow: hidden;
  padding: 56px 0 0;
  text-align: center;
}

.gchk-hero-copy {
  width: min(100%, 760px);
  margin: 0 auto;
}

.gchk-hero-title,
.gchk-section-title,
.gchk-post-title,
.gchk-about-title,
.gchk-entry-title {
  margin: 0;
  font-family: Geist, Inter, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.gchk-hero-title {
  font-size: 43px;
  line-height: 1.1;
}

.gchk-hero-text {
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--gchk-muted);
  font-size: 17px;
  line-height: 1.45;
}

.gchk-hero-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.gchk-hero-media {
  width: min(100%, 898px);
  margin: 54px auto 0;
  overflow: hidden;
  border: 1px solid var(--gchk-border);
  border-radius: var(--gchk-radius);
  background: #fff;
  box-shadow: var(--gchk-shadow);
}

.gchk-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.gchk-hero-placeholder,
.gchk-post-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 32px;
  background: #eef3ff;
  color: #20447f;
  font-weight: 700;
  text-align: center;
}

.gchk-trust {
  margin: 54px auto 0;
  color: var(--gchk-muted);
  font-size: 16px;
  text-align: center;
}

.gchk-section {
  padding: 96px 0 0;
}

.gchk-section-heading {
  width: min(100%, 620px);
  margin: 0 auto 40px;
  text-align: center;
}

.gchk-section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.gchk-section-title {
  font-size: 40px;
  line-height: 1.2;
}

.gchk-section-description {
  margin: 16px 0 0;
  color: var(--gchk-muted);
  font-size: 17px;
  line-height: 1.5;
}

.gchk-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gchk-post-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gchk-border);
  border-radius: var(--gchk-radius);
  background: var(--gchk-surface);
  box-shadow: var(--gchk-shadow);
  flex-direction: column;
}

.gchk-post-media {
  display: block;
  overflow: hidden;
  background: #f1f3f6;
}

.gchk-post-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gchk-post-card:hover .gchk-post-media img {
  transform: scale(1.02);
}

.gchk-post-body {
  display: flex;
  gap: 12px;
  padding: 22px;
  flex: 1;
  flex-direction: column;
}

.gchk-post-date,
.gchk-entry-meta {
  color: var(--gchk-muted);
  font-size: 14px;
  line-height: 1.3;
}

.gchk-post-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gchk-text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.gchk-post-title a:hover,
.gchk-post-title a:focus {
  color: var(--gchk-primary);
}

.gchk-post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--gchk-muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gchk-about {
  padding-bottom: 70px;
}

.gchk-about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 40px;
  padding: 44px;
  border: 1px solid var(--gchk-border);
  border-radius: var(--gchk-radius);
  background: var(--gchk-surface);
  box-shadow: var(--gchk-shadow);
}

.gchk-eyebrow {
  margin: 0 0 12px;
  color: var(--gchk-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gchk-about-title {
  font-size: 34px;
  line-height: 1.2;
}

.gchk-about-text {
  margin: 4px 0 0;
  color: var(--gchk-muted);
  font-size: 17px;
  line-height: 1.55;
}

.gchk-footer {
  border-top: 1px solid var(--gchk-border);
  background: var(--gchk-surface);
}

.gchk-footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 44px;
  padding: 42px 0 28px;
}

.gchk-footer-brand {
  min-width: 0;
}

.gchk-footer-brand .gchk-brand {
  margin-bottom: 18px;
}

.gchk-footer-text {
  max-width: 300px;
  margin: 0;
  color: var(--gchk-muted);
}

.gchk-footer-nav {
  min-width: 0;
}

.gchk-footer-nav-list {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px 32px;
}

.gchk-footer-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--gchk-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.gchk-footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--gchk-border);
  color: var(--gchk-muted);
  font-size: 14px;
}

.gchk-listing,
.gchk-entry {
  padding-bottom: 90px;
}

.gchk-entry-header {
  width: min(100%, 820px);
  margin: 0 auto 36px;
  text-align: center;
}

.gchk-entry-title {
  margin-top: 10px;
  font-size: 42px;
  line-height: 1.12;
}

.gchk-entry-figure {
  width: min(100%, 898px);
  margin: 0 auto 40px;
  overflow: hidden;
  border: 1px solid var(--gchk-border);
  border-radius: var(--gchk-radius);
  background: #fff;
  box-shadow: var(--gchk-shadow);
}

.gchk-entry-figure img {
  width: 100%;
}

.gchk-entry-content {
  width: min(100%, 760px);
  margin: 0 auto;
  color: #202124;
  font-size: 18px;
  line-height: 1.72;
}

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

.gchk-entry-content a {
  color: var(--gchk-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gchk-entry-content h2,
.gchk-entry-content h3,
.gchk-entry-content h4 {
  margin: 1.8em 0 0.6em;
  color: var(--gchk-text);
  font-family: Geist, Inter, Arial, sans-serif;
  line-height: 1.2;
}

.gchk-entry-footer,
.gchk-pagination,
.gchk-post-nav {
  width: min(100%, 760px);
  margin: 36px auto 0;
}

.gchk-pagination .nav-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.gchk-pagination a,
.gchk-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gchk-border);
  border-radius: var(--gchk-radius);
  background: var(--gchk-surface);
}

.gchk-pagination .current {
  border-color: var(--gchk-primary);
  background: var(--gchk-primary);
  color: #fff;
}

.gchk-empty {
  width: min(100%, 640px);
  padding: 32px;
  border: 1px solid var(--gchk-border);
  border-radius: var(--gchk-radius);
  background: var(--gchk-surface);
  color: var(--gchk-muted);
}

@media (max-width: 1100px) {
  .gchk-header-inner {
    gap: 22px;
  }

  .gchk-brand-name {
    font-size: 28px;
  }

  .gchk-nav-list {
    gap: 20px;
  }

  .gchk-nav-list a {
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .gchk-shell {
    width: min(100% - 32px, var(--gchk-shell));
  }

  .gchk-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 80px;
  }

  .gchk-brand-name {
    font-size: 30px;
  }

  .gchk-header .gchk-nav,
  .gchk-header-cta {
    display: none;
  }

  .gchk-menu-toggle {
    display: inline-block;
  }

  .gchk-header.is-open .gchk-mobile-nav {
    display: block;
    padding: 24px 0 26px;
    border-top: 1px solid var(--gchk-border);
  }

  .gchk-mobile-nav .gchk-nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
    text-align: center;
    flex-direction: column;
  }

  .gchk-mobile-nav .gchk-header-cta {
    display: inline-flex;
    width: min(100%, 255px);
    margin-top: 10px;
  }

  .gchk-hero {
    padding-top: 54px;
  }

  .gchk-hero-title {
    font-size: 38px;
  }

  .gchk-hero-text {
    font-size: 16px;
  }

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

  .gchk-about-panel,
  .gchk-footer-inner {
    grid-template-columns: 1fr;
  }

  .gchk-footer-inner {
    gap: 28px;
  }

  .gchk-footer-nav-list {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .gchk-brand-name {
    font-size: 28px;
  }

  .gchk-hero {
    padding-top: 52px;
  }

  .gchk-hero-title {
    font-size: 35px;
    line-height: 1.16;
  }

  .gchk-hero-actions {
    flex-direction: column;
  }

  .gchk-hero-actions .gchk-button {
    width: 100%;
  }

  .gchk-hero-media {
    margin-top: 42px;
  }

  .gchk-trust {
    margin-top: 42px;
  }

  .gchk-section {
    padding-top: 76px;
  }

  .gchk-section-title {
    font-size: 35px;
  }

  .gchk-about-panel {
    padding: 28px;
  }

  .gchk-about-title,
  .gchk-entry-title {
    font-size: 31px;
  }

  .gchk-entry-content {
    font-size: 17px;
  }
}
