/*
Theme Name: 1099 Basics
Theme URI: https://1099basics.com
Author: Dodson Development
Description: Content theme for a freelancer and self-employed tax guide. Built-in ad slots managed under Appearance > Customize > Ad Slots.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: basics1099
*/

:root{
  --paper:#F7F8F5; --ink:#17202E; --muted:#5B6575; --rule:#D9DDE3;
  --blue:#2F4FD8; --blue-dark:#1F37A6; --marker:#FFE45C; --white:#FFFFFF;
  --sans:"Public Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --measure:68ch;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--serif);font-size:1.125rem;line-height:1.7}
img{max-width:100%;height:auto}
a{color:var(--blue)}
a:hover{color:var(--blue-dark)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:1rem;top:1rem;background:var(--white);padding:.5rem 1rem;z-index:100}
.wrap{max-width:1160px;margin:0 auto;padding:0 1.25rem}

/* Header */
.site-header{background:var(--white);border-bottom:1px solid var(--rule)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:1rem;padding-bottom:1rem;flex-wrap:wrap}
.brand{font-family:var(--sans);font-weight:800;font-size:1.35rem;text-decoration:none;color:var(--ink);letter-spacing:-.01em}
.brand span{background:var(--marker);padding:0 .25em}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.25rem;flex-wrap:wrap}
.main-nav a{font-family:var(--sans);font-size:.95rem;font-weight:600;color:var(--ink);text-decoration:none}
.main-nav a:hover{color:var(--blue)}

/* Ads */
.ad-slot{margin:1.75rem auto;text-align:center;clear:both}
.ad-slot--placeholder{border:2px dashed #B7BEC9;background:repeating-linear-gradient(45deg,#fff,#fff 10px,#F1F3F6 10px,#F1F3F6 20px);color:var(--muted);font-family:var(--sans);font-size:.85rem;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:.75rem}
.ad-slot--placeholder strong{color:var(--ink)}
.ad-header{max-width:728px;min-height:90px}
.ad-sidebar{max-width:300px;min-height:250px}
.ad-sidebar-sticky{max-width:300px;min-height:600px}
.ad-content{max-width:336px;min-height:280px}
.ad-footer{max-width:970px;min-height:90px}
.ad-home{max-width:728px;min-height:90px}
.ad-label{font-family:var(--sans);font-size:.7rem;color:var(--muted);margin-bottom:.25rem}

/* Layout */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:3rem;padding-top:2rem;padding-bottom:3rem}
.sidebar .sticky-zone{position:sticky;top:1.5rem}
@media (max-width:900px){.layout{grid-template-columns:1fr}.sidebar .sticky-zone{position:static}.ad-sidebar-sticky{min-height:250px}}

/* Home hero: the ledger line */
.hero{background:var(--white);border-bottom:1px solid var(--rule)}
.hero .wrap{padding-top:3rem;padding-bottom:2.5rem}
.hero h1{font-family:var(--sans);font-weight:800;font-size:clamp(2rem,5vw,3.25rem);line-height:1.1;letter-spacing:-.02em;margin:0 0 1rem;max-width:20ch}
.hero p{max-width:56ch;color:var(--muted);margin:0 0 2rem}
.dates{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--rule);background:var(--paper)}
.dates div{padding:1rem 1.1rem;border-right:1px solid var(--rule);font-family:var(--sans)}
.dates div:last-child{border-right:0}
.dates b{display:block;font-size:1.4rem}
.dates b mark{background:var(--marker);color:var(--ink);padding:0 .15em}
.dates small{color:var(--muted);font-size:.85rem}
@media (max-width:640px){.dates{grid-template-columns:repeat(2,1fr)}.dates div:nth-child(2){border-right:0}.dates div:nth-child(-n+2){border-bottom:1px solid var(--rule)}}

/* Post lists */
.section-title{font-family:var(--sans);font-size:1.3rem;font-weight:800;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:2px solid var(--ink)}
.post-list{list-style:none;margin:0 0 2.5rem;padding:0}
.post-list li{padding:1.1rem 0;border-bottom:1px solid var(--rule)}
.post-list h2,.post-list h3{font-family:var(--sans);font-size:1.2rem;line-height:1.3;margin:0 0 .35rem}
.post-list h2 a,.post-list h3 a{color:var(--ink);text-decoration:none}
.post-list h2 a:hover,.post-list h3 a:hover{color:var(--blue)}
.post-list p{margin:0;color:var(--muted);font-size:1rem}
.cat-tag{font-family:var(--sans);font-size:.8rem;font-weight:600;color:var(--blue);text-decoration:none}

/* Article */
.entry-header h1{font-family:var(--sans);font-weight:800;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.15;letter-spacing:-.015em;margin:.4rem 0 .75rem}
.entry-meta{font-family:var(--sans);font-size:.9rem;color:var(--muted);margin-bottom:1.5rem}
.entry-content{max-width:var(--measure)}
.entry-content h2{font-family:var(--sans);font-size:1.5rem;line-height:1.25;margin:2.25rem 0 .75rem}
.entry-content h3{font-family:var(--sans);font-size:1.2rem;margin:1.75rem 0 .5rem}
.entry-content table{width:100%;border-collapse:collapse;font-family:var(--sans);font-size:.95rem;margin:1.5rem 0;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid var(--rule);padding:.6rem .75rem;text-align:left;vertical-align:top}
.entry-content th{background:var(--white)}
.entry-content mark{background:var(--marker);color:var(--ink);padding:0 .15em}
.callout{background:var(--white);border-left:4px solid var(--blue);padding:1rem 1.25rem;margin:1.5rem 0;font-size:1rem}
.callout p:last-child{margin-bottom:0}
.tax-disclaimer{font-family:var(--sans);font-size:.85rem;color:var(--muted);border-top:1px solid var(--rule);margin-top:2.5rem;padding-top:1rem;max-width:var(--measure)}

/* Sidebar */
.widget{margin-bottom:2rem;font-family:var(--sans);font-size:.95rem}
.widget h2{font-size:1rem;font-weight:800;margin:0 0 .75rem}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:.4rem 0;border-bottom:1px solid var(--rule)}
.widget a{color:var(--ink);text-decoration:none}
.widget a:hover{color:var(--blue)}

/* Search */
.search-form{display:flex;gap:.5rem}
.search-form input[type=search]{flex:1;padding:.6rem .75rem;border:1px solid #B7BEC9;font:inherit;font-family:var(--sans)}
.search-form button{background:var(--blue);color:#fff;border:0;padding:.6rem 1rem;font-family:var(--sans);font-weight:700;cursor:pointer}

/* Footer */
.site-footer{background:var(--ink);color:#C9D0DB;font-family:var(--sans);font-size:.9rem;margin-top:2rem}
.site-footer .wrap{padding-top:2rem;padding-bottom:2rem}
.site-footer a{color:#fff}
.footer-nav ul{list-style:none;margin:0 0 1rem;padding:0;display:flex;gap:1.25rem;flex-wrap:wrap}
.pagination{font-family:var(--sans);margin:2rem 0}
.pagination .page-numbers{padding:.4rem .7rem;border:1px solid var(--rule);text-decoration:none;margin-right:.25rem}
.pagination .current{background:var(--ink);color:#fff}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
