/*
Theme Name: Clona Blog
Description: Clona Blog v2 — dark design system.
Template: twentytwentyfive
Version: 2.0
*/

/* ---------- page canvas ---------- */
body {
  background-color: #0E1012;
  background-image: linear-gradient(180deg, #0d4557 0px, #0f2830 260px, #0e1012 620px);
  background-repeat: no-repeat;
  background-size: 100% 620px;
  -webkit-font-smoothing: antialiased;
}
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.clona-shell { width: 100%; max-width: 1120px; margin: 0 auto; box-sizing: border-box; padding-left: 24px; padding-right: 24px; }
main.clona-shell { flex: 1; padding-bottom: 96px; }

/* ---------- header pill ---------- */
.clona-header { padding-top: 24px; }
.clona-bar {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 14px 16px 14px 20px; border-radius: 20px; background: rgba(22,27,31,0.85);
}
.clona-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.clona-brand .wp-block-site-logo img { width: 30px; height: 30px; border-radius: 999px; display: block; }
.clona-brand .wp-block-site-title a { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.clona-brand__sub { font-size: 14px; color: #8A979E; margin: 0 0 0 -4px; }

.clona-nav .wp-block-navigation__container { gap: 28px; }
.clona-nav a { font-size: 15px; color: #B9C4C9; text-decoration: none; }
.clona-nav a:hover { color: #E8EEF1; }

.clona-actions { display: flex; gap: 8px; align-items: center; }
.clona-actions .wp-block-button__link {
  font-size: 15px; font-weight: 500; padding: 10px 16px; border-radius: 10px;
  background: transparent; color: #E8EEF1; border: 1px solid #2E383E; text-decoration: none;
}
.clona-actions .wp-block-button__link:hover { background: #1F262A; }
.clona-actions .is-style-fill .wp-block-button__link,
.clona-actions .clona-btn--solid .wp-block-button__link {
  background: #fff; color: #0E1012; border-color: #fff; padding: 10px 18px;
}
.clona-actions .clona-btn--solid .wp-block-button__link:hover { background: #DFE7EA; }

/* ---------- hero ---------- */
.clona-hero { padding: 72px 0 48px; max-width: 680px; }
.clona-hero h1 { font-size: 56px; line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 18px; color: #D6E6EC; }
.clona-hero p { font-size: 18px; line-height: 1.6; margin: 0; color: #9AA7AD; }

/* ---------- category filters ---------- */
.clona-filters { margin-bottom: 24px; }
.clona-filters ul, .clona-filters .wp-block-categories { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.clona-filters li { margin: 0; }
.clona-filters a, .clona-filters .clona-pill {
  display: inline-block; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid #273036; background: transparent; color: #B9C4C9; text-decoration: none; cursor: pointer;
}
.clona-filters a:hover { border-color: #3C4950; color: #E8EEF1; }
.clona-filters .clona-pill--active, .clona-filters .current-cat a {
  background: #E8EEF1; color: #0E1012; border-color: #E8EEF1;
}

/* ---------- post list ---------- */
.clona-list ul.wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.clona-card {
  display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 32px; align-items: center;
  padding: 28px 0; border-top: 1px solid #1E2529;
}
.clona-card:hover { opacity: 0.85; }
.clona-card__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.clona-card__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #7F8C92; flex-wrap: wrap; }
.clona-card__meta a { color: #8FD0E0; text-decoration: none; }
.clona-card__meta .wp-block-post-date { color: #7F8C92; }
.clona-card__text h2, .clona-card__text h2 a {
  font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; margin: 0; color: #F1F5F7; text-decoration: none;
}
.clona-card__text .wp-block-post-excerpt { margin: 0; }
.clona-card__text .wp-block-post-excerpt__excerpt { font-size: 16px; line-height: 1.55; color: #9AA7AD; max-width: 600px; margin: 0; }
.clona-card__text .wp-block-post-excerpt__more-text { display: none; }

/* cover card */
.clona-card__cover {
  width: 200px; height: 120px; border-radius: 14px; position: relative; overflow: hidden;
  box-sizing: border-box; padding: 14px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg,#0d4557,#16303a);
}
.clona-card__cover::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  border-radius: 999px; border: 18px solid rgba(255,255,255,0.06);
}
.clona-card__brand { display: flex; align-items: center; gap: 6px; position: relative; }
.clona-card__brand img { width: 16px; height: 16px; border-radius: 999px; display: block; }
.clona-card__brand span { font-size: 11px; color: rgba(255,255,255,0.8); }
.clona-card__cover .clona-card__covertitle,
.clona-card__cover .clona-card__covertitle a {
  font-size: 15px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  position: relative; margin: 0; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* rotating tints, matching the design */
.wp-block-post-template > li:nth-child(5n+1) .clona-card__cover { background: linear-gradient(135deg,#0d4557,#16303a); }
.wp-block-post-template > li:nth-child(5n+2) .clona-card__cover { background: linear-gradient(135deg,#123a47,#0f1a1f); }
.wp-block-post-template > li:nth-child(5n+3) .clona-card__cover { background: linear-gradient(135deg,#1a5366,#0e2229); }
.wp-block-post-template > li:nth-child(5n+4) .clona-card__cover { background: linear-gradient(135deg,#0f3542,#1b2226); }
.wp-block-post-template > li:nth-child(5n+5) .clona-card__cover { background: linear-gradient(135deg,#14495b,#101618); }

/* ---------- single post ---------- */
.clona-post { max-width: 720px; padding: 56px 0; }
.clona-back { font-size: 14px; color: #8FD0E0; margin-bottom: 32px; display: block; text-decoration: none; }
.clona-post__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #7F8C92; margin-bottom: 16px; flex-wrap: wrap; }
.clona-post__meta a { color: #8FD0E0; text-decoration: none; }
.clona-post h1 { font-size: 48px; line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 20px; color: #D6E6EC; }
.clona-post__excerpt p { font-size: 19px; line-height: 1.6; margin: 0 0 40px; color: #9AA7AD; }
.clona-banner {
  height: 360px; border-radius: 18px; margin-bottom: 48px; position: relative; overflow: hidden;
  box-sizing: border-box; padding: 36px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg,#0d4557,#16303a);
}
.clona-banner::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 380px; height: 380px;
  border-radius: 999px; border: 44px solid rgba(255,255,255,0.06);
}
.clona-banner::after {
  content: ""; position: absolute; right: 40px; bottom: -120px; width: 260px; height: 260px;
  border-radius: 999px; border: 30px solid rgba(143,208,224,0.08);
}
.clona-banner__brand { display: flex; align-items: center; gap: 10px; position: relative; }
.clona-banner__brand img { width: 28px; height: 28px; border-radius: 999px; display: block; }
.clona-banner__brand span { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.85); }
.clona-banner__foot { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.clona-banner__cat, .clona-banner__cat a { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #8FD0E0; text-decoration: none; }
.clona-banner__title { font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; color: #fff; margin: 0; }
.clona-post__body p { font-size: 17px; line-height: 1.75; margin: 0 0 22px; color: #C9D3D8; }
.clona-post__body h2, .clona-post__body h3 { color: #E8EEF1; margin: 40px 0 16px; }
.clona-post__body img { border-radius: 14px; }

/* ---------- newsletter ---------- */
.clona-news {
  margin-top: 72px; padding: 32px; border-radius: 20px; background: #161B1F;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
}
.clona-news__copy { flex: 1; min-width: 260px; }
.clona-news__copy h3 { font-size: 22px; font-weight: 500; margin: 0 0 6px; color: #F1F5F7; letter-spacing: normal; }
.clona-news__copy p { margin: 0; font-size: 15px; color: #9AA7AD; }
.clona-news__form { display: flex; gap: 8px; flex-wrap: wrap; }
.clona-news__form input[type="email"], .clona-news__form input[type="text"] {
  font-family: inherit; font-size: 15px; padding: 11px 16px; border-radius: 10px;
  border: 1px solid #2A3339; background: #0E1012; color: #E8EEF1; min-width: 220px;
}
.clona-news__form input::placeholder { color: #6F7A80; }
.clona-news__form button, .clona-news__form .wp-block-button__link {
  font-family: inherit; font-size: 15px; font-weight: 500; padding: 11px 18px; border-radius: 10px;
  border: 0; background: #fff; color: #0E1012; cursor: pointer; text-decoration: none;
}
.clona-news__form button:hover { background: #DFE7EA; }

/* ---------- footer ---------- */
.clona-footer { padding: 32px 24px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: #7F8C92; align-items: center; }
.clona-footer a { color: #7F8C92; text-decoration: none; }
.clona-footer a:hover { color: #B9C4C9; }
.clona-footer__copy { margin-right: auto; margin-top: 0; margin-bottom: 0; }
.clona-footer .wp-block-navigation__container { gap: 24px; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #3FA3BD; outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .clona-hero h1 { font-size: 44px; }
  .clona-post h1 { font-size: 36px; }
  .clona-banner { height: 280px; padding: 24px; }
  .clona-banner__title { font-size: 30px; }
}
@media (max-width: 720px) {
  .clona-bar { gap: 14px; padding: 12px 14px; }
  .clona-brand { margin-right: auto; }
  .clona-card { grid-template-columns: 1fr; gap: 16px; }
  .clona-card__cover { width: 100%; height: 140px; order: -1; }
  .clona-hero { padding: 48px 0 32px; }
  .clona-hero h1 { font-size: 36px; }
  .clona-post h1 { font-size: 30px; }
  .clona-banner { height: 200px; padding: 20px; }
  .clona-banner__title { font-size: 22px; }
  .clona-news { padding: 24px; }
}

/* ---------- header/footer (plain markup) ---------- */
.clona-brand { text-decoration: none; }
.clona-brand img { width: 30px; height: 30px; border-radius: 999px; display: block; }
.clona-brand__name { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.clona-nav { display: flex; gap: 28px; font-size: 15px; flex-wrap: wrap; }
.clona-signin, .clona-signup {
  font-size: 15px; font-weight: 500; border-radius: 10px; text-decoration: none; white-space: nowrap;
}
.clona-signin { color: #E8EEF1; padding: 10px 16px; border: 1px solid #2E383E; }
.clona-signin:hover { background: #1F262A; color: #E8EEF1; }
.clona-signup { background: #fff; color: #0E1012; padding: 10px 18px; border: 1px solid #fff; }
.clona-signup:hover { background: #DFE7EA; color: #0E1012; }
