/*
Theme Name: Write A Do
Theme URI: https://example.com/write-a-do
Author: Write A Do
Author URI: https://example.com
Description: A custom editorial WordPress theme for technology, business, startups, and digital culture stories.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: write-a-do
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f9fc;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #ef4d3f;
  --border: #edf2f7;
  --soft: #eef2ff;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Manrope", Arial, sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  margin: auto;
  max-width: 1280px;
  width: 92%;
}

.site-header {
  background: rgba(247, 249, 252, 0.78);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: flex;
  justify-content: space-between;
  padding: 18px 28px;
}

.site-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.logo-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.site-title {
  color: var(--primary);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}

.site-description {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: #475569;
  font-size: 15px;
  font-weight: 600;
}

.nav-menu a:hover,
.current-menu-item > a {
  color: var(--primary);
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.icon-btn {
  align-items: center;
  background: var(--soft);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  font-size: 16px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.subscribe-btn,
.button,
.form-submit .submit,
.wp-block-search__button {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
}

.hero {
  padding: 74px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 54px);
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1.08;
  margin: auto;
  max-width: 1120px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: var(--muted);
  font-size: clamp(18px, 1vw, 28px);
  line-height: 1.8;
  margin: 30px auto 0;
  max-width: 1040px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding-bottom: 70px;
}

.pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 20px;
  text-transform: uppercase;
}

.pill:hover {
  background: var(--primary);
  color: #fff;
}

.content-grid {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: 2fr 0.9fr;
}

.post-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card,
.sidebar-widget,
.comment-respond {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.post-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
  transform: translateY(-6px);
}

.post-card img {
  height: 260px;
  object-fit: cover;
  width: 100%;
}

.post-card-content {
  padding: 28px;
}

.badge {
  background: var(--soft);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  padding: 8px 14px;
  text-transform: uppercase;
}

.meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 14px;
  margin-bottom: 16px;
}

.post-card h2,
.post-card h3 {
  font-size: clamp(23px, 3vw, 23px);
  line-height: 1.3;
  margin-bottom: 14px;
}

.post-card p,
.sidebar-widget p,
.archive-description,
.entry-content p {
  color: var(--muted);
  line-height: 1.85;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  padding: 32px;
}

.sidebar-widget h2,
.sidebar-widget h3,
.widget-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.sidebar-widget li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.newsletter {
  padding: 90px 0;
}

.newsletter-box {
  align-items: center;
  background: linear-gradient(135deg, #eef4ff, #f3e8ff);
  border-radius: 40px;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  padding: 70px;
}

.newsletter h2 {
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.newsletter p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 580px;
}

.newsletter-form,
.search-form {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  padding: 10px;
  width: min(480px, 100%);
}

input,
textarea,
.search-field {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  font: inherit;
  outline: none;
  padding: 16px 18px;
}

.newsletter-form input,
.search-field {
  border: 0;
  border-radius: 999px;
  flex: 1;
}

.newsletter-form button,
.search-submit {
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 16px 24px;
}

.site-footer {
  background: linear-gradient(135deg, #eef4ff, #f3e8ff);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
      margin-top: 25px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: var(--primary);
  font-size: 34px;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-brand p,
.footer-links a,
.copyright {
  color: var(--muted);
}

.footer-brand p {
  line-height: 1.8;
  max-width: 420px;
}

.footer-links h4 {
  font-size: 20px;
  margin-bottom: 22px;
  font-weight: 700;
}

.footer-links a {
  display: block;
  margin-bottom: 14px;
}

.copyright {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  text-align: center;
}

.archive-hero,
.single-hero {
  padding: 64px 0 48px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.archive-hero h1,
.single-hero h1,
.not-found h1 {
  font-size: clamp(42px, 5vw, 43px);
  letter-spacing: -3px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.single-hero-grid {
  align-items: center;
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1.15fr;
}

.single-hero-image {
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.single-hero-image img {
  height: 520px;
  object-fit: cover;
  width: 100%;
}

.entry-layout {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.7fr) 0.9fr;
  padding-bottom: 90px;
}

.entry-content {
  font-size: 18px;
}

.page-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 90px;
  padding: clamp(28px, 5vw, 58px);
}

.page-content > * {
  margin-bottom: 24px;
}

.page-content > *:last-child {
  margin-bottom: 0;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-top: 38px;
}

.page-content h2 {
  font-size: 38px;
}

.page-content h3 {
  font-size: 28px;
}

.page-content ul,
.page-content ol {
  margin-left: 24px;
}

.page-featured-image {
  border-radius: 26px;
  margin-bottom: 34px;
  overflow: hidden;
}

.page-featured-image img {
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  letter-spacing: -1px;
  margin: 46px 0 18px;
}

.entry-content h2 {
  font-size: 40px;
}

.entry-content ul,
.entry-content ol {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 30px 24px;
}

.entry-content p,
.entry-content .wp-block-image {
  margin-bottom: 28px;
  text-align: justify;
}

.entry-content img {
  border-radius: 28px;
}

.post-nav,
.author-card {
  border-top: 1px solid #e2e8f0;
  margin-top: 44px;
  padding-top: 34px;
}

.post-nav {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.post-nav a {
  color: var(--primary);
  font-weight: 800;
}

.author-card {
  align-items: flex-start;
  display: flex;
  gap: 22px;
}

.author-card img {
  border-radius: 50%;
  height: 82px;
  width: 82px;
}

.comments-area {
  margin-top: 64px;
}

.comments-title {
  font-size: 34px;
  margin-bottom: 28px;
}

.comment-list {
  list-style: none;
}

.comment-body {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 28px;
  padding-bottom: 28px;
}

.comment-author {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-author img {
  border-radius: 50%;
}

.comment-respond {
  margin-top: 36px;
  padding: 34px;
}

.comment-form-comment textarea {
  width: 100%;
}

.comment-form input {
  max-width: 100%;
  width: 100%;
}

.pagination,
.nav-links.pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 54px 0 0;
}

.page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  min-width: 48px;
  padding: 0 12px;
}

.page-numbers.current {
  background: var(--primary);
  color: #fff;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@media (max-width: 1100px) {
  .content-grid,
  .single-hero-grid,
  .entry-layout,
  .footer-grid,
  .newsletter-box {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .navbar {
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
  }

  .nav-menu {
    display: none;
  }

  .site-title {
    font-size: 24px;
  }

  .subscribe-btn {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1,
  .archive-hero h1,
  .single-hero h1 {
    letter-spacing: -1px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    padding: 38px 24px;
  }

  .newsletter-form,
  .search-form {
    border-radius: 24px;
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button,
  .search-field,
  .search-submit {
    width: 100%;
  }

  .single-hero-image img {
    height: 340px;
  }

  .post-nav,
  .author-card {
    flex-direction: column;
  }
}
