/*
Theme Name: FutureTechy
Theme URI: http://futuretechy.blog/
Author: FutureTechGirls
Author URI: http://futuretechy.blog/
Description: A complete, professional technology blogging theme built for FutureTechy — a magazine-style WordPress theme for tech news, reviews, how-to guides and the people building what's next. Includes custom homepage, category-colored archives, widgetized sidebar and footer, and full support for a modern editorial layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: futuretechy
Tags: blog, news, grid-layout, one-column, two-columns, right-sidebar, custom-menu, featured-images, footer-widgets, sticky-post, threaded-comments, translation-ready, custom-colors

FutureTechy is licensed under the GPL v2 or later.
Underlying CSS reset principles inspired by Normalize.css (MIT).
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root {
  --ink: #14132B;
  --ink-soft: #2B2A4A;
  --paper: #FAF8FF;
  --paper-dim: #F1EDFB;
  --card: #FFFFFF;
  --signal: #7C3AED;
  --signal-dark: #5B21B6;
  --signal-tint: #F1E9FE;
  --ember: #FF6B4A;
  --ember-dark: #E14E2E;
  --mint: #0EA57E;
  --mint-tint: #E4F8F1;
  --slate: #6B6880;
  --slate-light: #9793AC;
  --line: #E4DFF2;
  --line-soft: #EEEAF8;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-s: 6px;
  --radius-m: 10px;
  --container: 1180px;
  --measure: 68ch;
}

/* =========================================================
   1. RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol { padding-left: 1.2em; }
a { color: var(--signal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; font-size: 1rem; }
table { border-collapse: collapse; width: 100%; }
:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   2. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, .site-title, .display {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.entry-content { max-width: var(--measure); }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote { max-width: var(--measure); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--ember);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.entry-content code {
  background: var(--paper-dim);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.entry-content pre {
  background: var(--ink);
  color: #EDE9FE;
  padding: 1.2em;
  border-radius: var(--radius-m);
  overflow-x: auto;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-m); margin: 0.4em 0 1.2em; }

/* =========================================================
   3. LAYOUT SHELLS
   ========================================================= */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================
   4. HEADER
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.announce-bar {
  background: var(--ink);
  color: #E9E4FB;
  font-size: 0.82rem;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: 0.01em;
}
.announce-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.site-branding { display: flex; flex-direction: column; }
.site-title {
  font-size: 1.6rem;
  margin: 0;
  line-height: 1;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-title .accent { color: var(--signal); }
.site-description {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--signal-dark);
  border-bottom-color: var(--ember);
}
.main-navigation ul ul { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-search-toggle,
.menu-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle { display: none; }
.header-search {
  display: none;
  padding: 0 0 16px;
}
.header-search.is-open { display: block; }
.header-search .searchform { display: flex; }
.header-search input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s) 0 0 var(--radius-s);
  background: var(--card);
}
.header-search button {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  cursor: pointer;
}

/* =========================================================
   5. HOME HERO
   ========================================================= */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--signal-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { margin-bottom: 1.4em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-side-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.06em;
}
.hero-side-post { display: flex; gap: 12px; }
.hero-side-post .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--line);
  line-height: 1;
}
.hero-side-post a { color: var(--ink); font-weight: 600; line-height: 1.35; }
.hero-side-post a:hover { color: var(--signal-dark); }
.hero-side-post .cat { display: block; font-size: 0.75rem; color: var(--ember); font-weight: 600; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; }

/* =========================================================
   6. CATEGORY STRIP
   ========================================================= */
.cat-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cat-pill {
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.cat-pill:hover { border-color: var(--signal); color: var(--signal-dark); text-decoration: none; }

/* =========================================================
   7. CONTENT GRID
   ========================================================= */
.content-area { padding: 44px 0 64px; }
.layout-2col {
  display: grid;
  grid-template-columns: 2.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}
.section-heading h2 { margin: 0; }
.section-heading a { font-size: 0.9rem; font-weight: 600; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 28px;
}
.post-list { display: flex; flex-direction: column; gap: 28px; }

.post-card { display: flex; flex-direction: column; }
.post-card .thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper-dim);
  margin-bottom: 14px;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--signal-dark);
  margin-bottom: 6px;
  display: block;
}
.post-card h3, .post-list-item h3 { margin-bottom: 6px; }
.post-card h3 a, .post-list-item h3 a { color: var(--ink); }
.post-card h3 a:hover, .post-list-item h3 a:hover { color: var(--signal-dark); }
.post-meta {
  font-size: 0.82rem;
  color: var(--slate);
  display: flex;
  gap: 10px;
  align-items: center;
}
.excerpt { color: var(--ink-soft); font-size: 0.95rem; }

.post-list-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.post-list-item .thumb {
  width: 96px; height: 72px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--paper-dim);
}
.post-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Featured banner post */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  background: var(--ink);
  color: #F4F1FE;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 40px;
}
.featured-post .thumb { aspect-ratio: 4/3; }
.featured-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .fp-body { padding: 36px 36px 36px 0; display: flex; flex-direction: column; justify-content: center; }
.featured-post .kicker { color: var(--ember); }
.featured-post h2 { color: #fff; margin-bottom: 12px; }
.featured-post p { color: #C9C3E8; }
.featured-post a.readmore { color: #fff; font-weight: 600; }

/* =========================================================
   8. SIDEBAR / WIDGETS
   ========================================================= */
.widget { margin-bottom: 40px; }
.widget-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.widget li:last-child { border-bottom: none; }
.widget_search .search-form { display: flex; }
.widget-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
}
.newsletter-box { background: var(--signal-tint); border: none; }
.newsletter-box p { color: var(--ink-soft); font-size: 0.92rem; }
.newsletter-box input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  margin-bottom: 10px;
}
.author-widget { display: flex; gap: 14px; align-items: flex-start; }
.author-widget img { width: 56px; height: 56px; border-radius: 50%; }
.tagcloud a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 6px 12px;
  background: var(--paper-dim);
  border-radius: 50px;
  font-size: 0.82rem !important;
  color: var(--ink-soft);
}

/* =========================================================
   9. SINGLE POST / PAGE
   ========================================================= */
.entry-header { margin-bottom: 28px; }
.entry-header .kicker a { color: var(--signal-dark); }
.entry-title { margin-bottom: 14px; }
.entry-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--slate);
  font-size: 0.9rem;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.entry-meta .avatar { border-radius: 50%; }
.entry-meta .byline strong { color: var(--ink); }
.entry-thumb { margin-bottom: 32px; border-radius: var(--radius-m); overflow: hidden; }
.entry-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-links a {
  display: inline-block;
  background: var(--paper-dim);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  margin-right: 6px;
  color: var(--ink-soft);
}
.author-box {
  display: flex;
  gap: 18px;
  background: var(--paper-dim);
  border-radius: var(--radius-m);
  padding: 24px;
  margin: 40px 0;
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}
.post-nav a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  color: var(--ink);
}
.post-nav .label { font-size: 0.75rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 6px; }
.post-nav .next { text-align: right; }

/* =========================================================
   10. ARCHIVE / SEARCH HEADERS
   ========================================================= */
.archive-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.archive-header .kicker { font-size: 0.85rem; }
.archive-header h1 { margin-bottom: 10px; }
.archive-desc { color: var(--slate); max-width: var(--measure); }

/* =========================================================
   11. PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 48px 0 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0 8px;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--signal); color: var(--signal-dark); text-decoration: none; }

/* =========================================================
   12. COMMENTS
   ========================================================= */
.comments-area { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 40px; padding: 0; }
.comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
}
.comment-body .avatar { border-radius: 50%; }
.comment-meta { font-size: 0.85rem; color: var(--slate); margin-bottom: 6px; }
.comment-meta strong { color: var(--ink); }
.comment-reply-link {
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 4px 12px;
}
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  margin-bottom: 14px;
  background: var(--card);
}
.comment-form label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--slate); }
.comment-form textarea { min-height: 130px; resize: vertical; }

/* =========================================================
   13. FORMS / CONTACT / 404
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-method { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.contact-method .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--signal-tint); color: var(--signal-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.error-404 { text-align: center; padding: 60px 0; }
.error-404 .code {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--signal-tint);
  line-height: 1;
  -webkit-text-stroke: 2px var(--signal);
}

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #C9C3E8; margin-top: 40px; }
.footer-top { padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .site-title a { color: #fff; }
.footer-brand p { color: #A79EDB; font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C9C3E8; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #423E68;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--signal); border-color: var(--signal); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #2B2750;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8F87BD;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #8F87BD; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   15. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .layout-2col { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-body { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .main-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 24px 20px; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 4px; }
  .menu-toggle { display: inline-flex; }
  .post-grid { grid-template-columns: 1fr; }
  .post-list-item { grid-template-columns: 76px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .comment-body { grid-template-columns: 36px 1fr; }
}

/* Dark-mode-aware but keep brand background: leave default light editorial look intentionally */
