/*
Theme Name: SignalWire
Theme URI: https://deboprio.com/signalwire/
Author: Deboprio Ghosh
Author URI: https://deboprio.com/
Description: Created by Deboprio Ghosh. A lightning-fast, clean personal blog theme with system fonts, local assets, responsive essay covers, and native WordPress archives. Version 0.8.1 beta. Use at your own risk; supplied without warranty. Actual speed depends on hosting, content, and plugins.
Version: 0.8.1-beta
Requires at least: 6.4
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: signalwire
Tags: blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
Copyright: Deboprio Ghosh
*/

:root {
  --paper: #ffffff;
  --ink: #141814;
  --muted: #555f55;
  --line: #cdd6cc;
  --accent: #0a9e01;
  --green-text: #146509;
  --display: "Inter", "Arial", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --frame: 1160px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--display); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green-text); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--frame), calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 12px; left: 12px; padding: 8px 14px; transform: translateY(-180%); background: var(--ink); color: white; }
.skip:focus { transform: none; }
.masthead { border-top: 5px solid var(--accent); }
.masthead-inner { min-height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; background: var(--ink); padding: 9px 13px; text-decoration: none; font: 700 17px/1.3 var(--mono); letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { display: inline-block; width: 9px; height: 9px; background: #3fdf30; }
.nav { min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 22px; }
.nav a { text-decoration: none; font: 700 13px/1.4 var(--mono); padding-block: 9px; }
.nav a:hover, .nav a[aria-current] { color: var(--green-text); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 252px; gap: clamp(35px, 6.4vw, 96px); margin-block: 49px 74px; align-items: start; }
.mono, .kicker, .meta, .section-title, .rail h2 { font-family: var(--mono); }
.kicker { margin: 0; color: var(--green-text); font-size: 12px; font-weight: 700; line-height: 1.45; letter-spacing: .075em; text-transform: uppercase; }
.kicker span { color: var(--muted); }
.lead { padding: 25px 0 35px; border-top: 3px solid var(--accent); }
.headline { margin: 0; font-weight: 800; line-height: 1.075; letter-spacing: -.044em; overflow-wrap: break-word; }
.lead .headline { max-width: 15.5ch; margin-block: 15px 16px; font-size: clamp(43px, 5.5vw, 77px); line-height: 1.015; letter-spacing: -.067em; }
.headline a { text-decoration: none; }
.headline a:hover { color: var(--green-text); }
.deck { max-width: 57ch; margin: 9px 0 12px; color: var(--muted); line-height: 1.55; }
.lead .deck { font-size: clamp(17px, 2vw, 20px); max-width: 48ch; margin-bottom: 19px; }
.meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 14px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.meta strong { color: var(--ink); }
.share { margin-top: 13px; }
.share-buttons { display: grid; grid-template-columns: repeat(4, 33px) minmax(33px, 1fr); gap: 0 7px; align-items: start; }
.share-buttons > a, .share-instagram { grid-row: 1; }
.share-buttons .linkedin { grid-column: 1; }
.share-buttons .facebook { grid-column: 2; }
.share-buttons .x { grid-column: 3; }
.share-buttons .reddit { grid-column: 5; }
.share-instagram { grid-column: 1 / -1; min-width: 0; pointer-events: none; }
.share-instagram summary { margin-inline-start: 120px; list-style: none; cursor: pointer; }
.share-instagram summary::-webkit-details-marker { display: none; }
.share-instagram summary, .instagram-help { pointer-events: auto; }

.share-button {
  display: inline-grid; place-items: center; width: 33px; height: 33px; padding: 0;
  border: 1px solid #aeb8ae; border-radius: 0; background: var(--paper); color: var(--ink);
}
.share-button svg { width: 15px; height: 15px; }
.share-button:hover, .share-button[aria-expanded="true"] { background: var(--green-text); border-color: var(--green-text); color: #fff; }
.instagram-help { max-width: 29rem; margin-top: 10px; padding: 12px; border: 1px solid var(--line); font-size: 13px; }
.instagram-help p { margin: 0 0 8px; }
.instagram-help input { display: block; width: 100%; padding: 6px 8px; border: 1px solid #9ca89b; border-radius: 0; background: var(--paper); color: var(--ink); }
.instagram-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 9px; }
.instagram-actions button { border: 1px solid var(--ink); padding: 5px 9px; background: var(--ink); color: #fff; }
.instagram-actions a { color: var(--green-text); text-underline-offset: 3px; }
.instagram-help .copy-status:not(:empty) { margin: 8px 0 0; color: var(--green-text); }
.read-link { display: inline-block; margin-top: 24px; text-decoration: none; color: var(--green-text); font: 700 13px/1.5 var(--mono); }
.read-link:hover, .back:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 0; border-block: 1px solid var(--ink); }
.section-title { margin: 0; font-size: 13px; line-height: 1.4; text-transform: uppercase; letter-spacing: .07em; }
.result-count { color: var(--muted); font: 12px/1.4 var(--mono); }
.feed-post { padding-block: 23px 25px; border-bottom: 1px dashed var(--line); }
.feed-post .headline { margin-top: 8px; font-size: clamp(25px, 3.2vw, 37px); }
.feed-post .kicker { font-size: 11px; }
.empty { padding: 20px 0 25px; }
.empty a { color: var(--green-text); text-underline-offset: 3px; }
.rail { display: grid; gap: 30px; }
.rail h2 { margin: 0 0 12px; font-size: 12px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.rail section { border-top: 1px solid var(--line); padding-top: 15px; }
.rail .about { padding: 19px 17px 20px; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.about p { margin: 0; color: #394439; line-height: 1.5; font-size: 15px; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
.search-form input { min-width: 0; width: 100%; height: 40px; padding: 0 9px; border: 1px solid #9ca89b; border-radius: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-form button { border: 0; padding: 0 10px; color: white; background: var(--ink); font: 700 12px var(--mono); }
.search-form button:hover { background: var(--green-text); }
.index { list-style: none; margin: 0; padding: 0; }
.index li + li { border-top: 1px dashed var(--line); }
.index a { display: flex; align-items: center; justify-content: space-between; min-height: 41px; gap: 12px; text-decoration: none; font: 13px/1.35 var(--mono); }
.index a:hover, .index a[aria-current] { color: var(--green-text); text-decoration: underline; text-underline-offset: 4px; }
.index span { color: var(--muted); }
.back { display: inline-block; margin: 0 0 22px; color: var(--green-text); text-decoration: none; font: 700 13px/1.4 var(--mono); }
.filter { margin-bottom: 24px; border-top: 3px solid var(--accent); padding-top: 21px; }
.filter h1 { font-size: clamp(37px, 6vw, 60px); margin: 5px 0 0; }
.detail { border-top: 3px solid var(--accent); padding-top: 24px; }
.detail .headline { max-width: 17ch; margin: 12px 0 15px; font-size: clamp(39px, 5.9vw, 68px); letter-spacing: -.059em; }
.detail .deck { font-size: 20px; }
.post-body { max-width: 64ch; margin-top: 25px; }
.detail .post-body { border-top: 1px solid var(--line); padding-top: 13px; font-size: 18px; line-height: 1.7; }
.post-body h2, .post-body h3 { margin: 27px 0 5px; font-size: 1.23em; line-height: 1.3; letter-spacing: -.02em; }
.post-body p { margin: 12px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; padding: 18px 0 29px; border-top: 1px solid var(--ink); color: var(--muted); font: 12px/1.5 var(--mono); }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--green-text); text-underline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .page-grid { grid-template-columns: minmax(0, 1fr) 205px; gap: 36px; margin-top: 36px; }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 10px; padding: 15px 0 9px; }
  .nav { gap: 5px 17px; flex-wrap: wrap; }
  .nav a { font-size: 12px; padding-block: 5px; }
  .page-grid { display: block; margin: 29px auto 46px; }
  .lead { padding-top: 19px; padding-bottom: 26px; }
  .lead .headline { font-size: clamp(37px, 8.5vw, 55px); }
  .rail { margin-top: 41px; }
}
.topics-nav .nav-list { gap: 4px clamp(13px, 2.4vw, 33px); flex-wrap: wrap; min-height: 48px; padding-block: 5px; border-bottom: 1px solid var(--line); }
.topics-nav a { font-size: 12px; }
.about-link { display: inline-block; margin-top: 12px; color: var(--green-text); font: 700 12px/1.45 var(--mono); text-underline-offset: 4px; }
.profile-page .post-body { margin-top: 26px; }
.profile-page .post-body h2:first-child { margin-top: 11px; }
.profile-page .post-body a { color: var(--green-text); text-underline-offset: 4px; }
.contact-form { display: grid; gap: 17px; margin-top: 24px; }
.contact-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.contact-form label { display: grid; gap: 6px; color: var(--ink); font: 700 13px/1.5 var(--mono); }
.contact-form :is(input, textarea) { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #9ca89b; border-radius: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--display); }
.contact-form textarea { min-height: 125px; resize: vertical; }
.contact-body .contact-form p { color: var(--muted); margin: 0; font-size: 13px; }
.contact-form button { justify-self: start; padding: 10px 15px; border: 0; background: var(--ink); color: white; font: 700 13px/1.45 var(--mono); }
.contact-form button:hover { background: var(--green-text); }
@media (max-width: 670px) {
  .masthead-inner { flex-direction: row; justify-content: space-between; align-items: center; min-height: 0; }
  .site-nav { gap: 5px 12px; justify-content: flex-end; }
  .topics-nav .nav-list { gap: 3px 14px; padding-block: 8px; }
  .topics-nav a { line-height: 1.45; }
}
@media (max-width: 420px) { .contact-fields { grid-template-columns: 1fr; } }
.post-cover {
  margin: 0;
  background: #edf1ec;
  overflow: hidden;
}
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-cover--monochrome img { filter: grayscale(1); }
.post-intro { min-width: 0; }
.lead:has(.post-cover), .feed-post:has(.post-cover) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--cover-width));
  gap: 0 clamp(16px, 2.8vw, 36px);
  align-items: start;
}
.lead:has(.post-cover) { --cover-width: 50%; }
.lead .post-cover { margin-top: 1px; }
.lead:has(.post-cover) .headline { max-width: 16ch; font-size: clamp(36px, 4.2vw, 59px); }
.lead:has(.post-cover) .deck { font-size: clamp(16px, 1.6vw, 18px); }
.feed-post:has(.post-cover) { --cover-width: 27%; }
.feed-post:has(.post-cover) .headline { font-size: clamp(24px, 2.7vw, 34px); }
.lead .post-body, .feed-post .post-body { grid-column: 1 / -1; }
.detail .post-cover { margin-top: 27px; }
.detail .post-body { margin-top: 23px; }
@media (max-width: 1020px) {
  .lead:has(.post-cover) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .lead:has(.post-cover) .headline { font-size: clamp(36px, 6vw, 59px); }
}
@media (max-width: 440px) {
  .feed-post:has(.post-cover) { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .feed-post .post-cover { max-width: 100%; }
  .profile-heading .headline { font-size: clamp(27px, 8vw, 40px); }
}

.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { display: block; width: auto; height: auto; max-width: min(230px, 70vw); max-height: 54px; }
.kicker a, .meta a { text-decoration: none; }
.kicker a:hover, .meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.deck:empty { display: none; }
.deck p { margin: 0; }
.deck p + p { margin-top: 9px; }
.pagination .nav-links, .post-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; font: 13px/1.5 var(--mono); }
.page-numbers, .post-page-numbers { padding: 5px 9px; border: 1px solid var(--line); }
.page-numbers.current, .post-page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.post-body a, .post-tags a, .comments a { color: var(--green-text); text-underline-offset: 3px; }
.post-body img, .post-body video { max-width: 100%; height: auto; }
.post-body iframe { max-width: 100%; }
.post-image, .post-body figure { margin-inline: 0; }
.post-body :is(pre, .wp-block-table) { max-width: 100%; overflow: auto; }
.post-body pre { white-space: pre; padding: 12px; border: 1px solid var(--line); }
.post-body blockquote { margin-inline: 0; padding-inline-start: 16px; border-inline-start: 3px solid var(--accent); }
.post-body .alignwide, .post-body .alignfull { width: min(100%, 64rem); }
.post-body .alignleft { float: inline-start; margin-inline-end: 16px; }
.post-body .alignright { float: inline-end; margin-inline-start: 16px; }
.post-body .aligncenter { display: block; margin-inline: auto; }
.post-body::after { content: ""; display: block; clear: both; }
.post-tags, .post-pages { margin-top: 25px; font-family: var(--mono); font-size: 13px; }
.comments { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 14px; }
.comment-list, .comment-list .children { padding-inline-start: 20px; }
.comment-form label { display: block; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-form :is(input:not([type="checkbox"]), textarea) { max-width: 100%; padding: 7px 9px; border: 1px solid #9ca89b; border-radius: 0; font: inherit; }
.comment-form textarea { width: 100%; }
.comment-form input[type="submit"] { color: #fff; background: var(--ink); border-color: var(--ink); cursor: pointer; }

.footer-links { display:flex; flex-wrap:wrap; gap:8px 20px; }
.download-button { display:inline-block; padding:10px 15px; background:var(--ink); color:white!important; text-decoration:none; font:700 13px/1.5 var(--mono); }
.download-notice { border-left:3px solid var(--accent); padding-left:16px; }

.share-instagram[open] .share-button { background:var(--green-text); color:white; }
summary.share-button:focus-visible { outline:2px solid var(--green-text); outline-offset:4px; }

.contact-honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.contact-feedback { border-left:3px solid var(--accent); padding:10px 14px; }
