/*
Theme Name: Tech Tax Helper
Author: WalkTeaming LLC
Description: Site for the Tech Tax Helper app: 1099 tax guides for field techs.
Version: 1.0.5
*/

@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/plexmono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --plum: #3a1430;
  --plum-2: #5b2750;
  --ink: #24101f;
  --muted: #6b5565;
  --paper: #fbf6f1;
  --blush: #f5ebf0;
  --line: #e6d8de;
  --yellow: #f6d13c;
  --yellow-soft: #fff4c4;
  --pink: #d6457f;
  --pink-ink: #a82a5d;
  --white: #fff;
  --radius: 18px;
  --wrap: 1160px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--pink-ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--sans); color: var(--plum); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 800; font-stretch: 112%; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-weight: 800; font-stretch: 108%; font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-weight: 750; font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.kicker, .label { font: 600 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pink-ink); margin: 0 0 .9rem; }
.lede { font-size: 1.2rem; color: var(--ink); max-width: 38em; }
.text-link { font-weight: 700; }
.text-link::after { content: " →"; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum); font-weight: 800; font-stretch: 110%; font-size: 1.2rem; letter-spacing: -.01em; }
.brand .mark { border-radius: 10px; }
.site-nav { display: flex; gap: 2px; align-items: center; }
.brand span { white-space: nowrap; }
.site-nav a { text-decoration: none; font-weight: 650; font-size: .95rem; padding: 9px 10px; white-space: nowrap; border-radius: 999px; color: var(--ink); }
.site-nav a:hover { background: var(--blush); color: var(--plum); }
.menu-toggle { display: none; font: 700 .95rem var(--sans); color: var(--plum); background: var(--blush); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 .75rem; }
.stores.center { justify-content: center; }
.stores.stacked { flex-direction: column; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 182px; padding: 10px 20px 10px 16px; border-radius: 14px; background: var(--plum); color: #fff; text-decoration: none; line-height: 1.1; font-weight: 750; font-size: 1.12rem; border: 2px solid var(--plum); cursor: pointer; }
.store small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .02em; opacity: .85; }
.store:hover { background: var(--plum-2); color: #fff; }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"]:hover { background: var(--plum); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--blush) 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding: 72px 0 0; }
.hero-copy { padding-bottom: 72px; }
.hero-note { font: 500 .85rem/1.5 var(--mono); color: var(--muted); }
.hero-phone { align-self: end; justify-self: center; width: min(340px, 100%); }
.hero-phone img { border-radius: 40px 40px 0 0; border: 10px solid var(--plum); border-bottom: 0; box-shadow: 0 30px 60px -30px rgba(58, 20, 48, .55); aspect-ratio: 600 / 900; object-fit: cover; object-position: top; }

/* Receipt band */
.receipt-band { background: var(--plum); color: #f7eef3; padding: 80px 0; }
.receipt-band h2 { color: #fff; }
.receipt-band a { color: var(--yellow); }
.receipt-band-inner { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 64px; align-items: center; }
.receipt { position: relative; background: #fffdf9; color: var(--ink); padding: 30px 28px 44px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; font-family: var(--mono); font-weight: 500; transform: rotate(-1.5deg); }
.receipt-head { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; text-align: center; border-bottom: 2px dashed #cdbcc5; padding-bottom: 14px; margin-bottom: 18px; }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; font-size: .98rem; margin: 0 0 12px; }
.receipt-row.total { border-top: 2px dashed #cdbcc5; padding-top: 14px; margin-top: 18px; font-weight: 600; font-size: 1.15rem; }
.receipt-row:nth-child(3) span:last-child { background: var(--yellow); padding: 0 6px; }

/* Steps */
.steps { padding: 96px 0; }
.step-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.step-grid img { border-radius: 14px; aspect-ratio: 600 / 760; object-fit: cover; object-position: top; background: var(--blush); margin-bottom: 18px; border: 1px solid var(--line); }
.step-grid h3::before { content: counter(step, decimal-leading-zero); display: block; font: 600 .8rem var(--mono); color: var(--pink-ink); margin-bottom: 6px; }
.step-grid p { color: var(--muted); font-size: .98rem; margin: 0; }
.steps-more { margin-top: 28px; }

/* Dates */
.dates { background: var(--yellow-soft); padding: 88px 0; border-block: 1px solid #f0e2a3; }
.dates-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.date-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.date-tickets li { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: 14px; padding: 16px 20px; border: 1px solid #efdf98; }
.date-tickets .d { font: 600 1.05rem var(--mono); color: var(--plum); }
.date-tickets li.next { background: var(--plum); color: #fff; border-color: var(--plum); }
.date-tickets li.next .d { color: var(--yellow); }
.date-tickets em { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; font-style: normal; background: var(--yellow); color: var(--plum); padding: 4px 8px; border-radius: 6px; }

/* Guides */
.guides { padding: 96px 0; }
.guide-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; margin-top: 40px; }
.guide-group h3 { font: 600 .82rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pink-ink); border-bottom: 2px solid var(--plum); padding-bottom: 10px; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: 16px 0; text-decoration: none; color: var(--ink); }
.guide-list strong { display: block; color: var(--plum); font-size: 1.1rem; font-weight: 750; line-height: 1.25; }
.guide-list span { display: block; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.guide-list a:hover strong { color: var(--pink-ink); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq { background: var(--blush); padding: 88px 0; }
.faq-inner { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 750; color: var(--plum); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem/1 var(--mono); color: var(--pink-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink); }

/* Closing */
.closing { padding: 96px 0; text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing .mark { border-radius: 18px; margin-bottom: 20px; }

/* Articles */
.article-head { background: var(--blush); border-bottom: 1px solid var(--line); padding: 64px 0 48px; }
.article-head-inner { max-width: 880px; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.answer { margin: 24px 0 0; background: var(--yellow); color: var(--ink); padding: 20px 24px; border-radius: 14px; font-size: 1.15rem; line-height: 1.5; max-width: 760px; }
.answer-label { display: block; font: 600 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin-bottom: 6px; }
.checked { font: 500 .8rem var(--mono); color: var(--muted); margin: 18px 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 56px 0 80px; }
.article-layout.no-aside { grid-template-columns: minmax(0, 760px); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--pink-ink); font-weight: 700; }
.prose strong { color: var(--plum); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--plum); color: #fff; font-weight: 700; }
.prose td.num, .prose .num { font-family: var(--mono); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.prose .callout { background: #fff; border-left: 5px solid var(--yellow); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 1.6em 0; }
.prose .callout p:last-child { margin: 0; }
.prose .worked { font-family: var(--mono); font-size: .95rem; background: #fffdf9; border: 1px dashed #cdbcc5; border-radius: 12px; padding: 18px 22px; margin: 1.5em 0; }
.prose .worked p { margin: 0 0 .4em; }
.not-advice { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.article-aside { position: relative; }
.aside-card { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-card .mark { border-radius: 12px; margin-bottom: 14px; }
.aside-card .aside-title { font-weight: 800; font-stretch: 108%; color: var(--plum); font-size: 1.3rem; line-height: 1.15; margin-bottom: .5em; }
.aside-card p { font-size: .97rem; }
.aside-card .store { width: 100%; }
.app-callout { display: flex; gap: 20px; align-items: flex-start; background: var(--blush); border-radius: var(--radius); padding: 24px; margin: 2.2em 0; }
.app-callout .mark { border-radius: 12px; flex: none; }
.app-callout .label { margin-bottom: .4rem; }
.app-callout .stores { margin: 1rem 0 0; }
.related { background: var(--blush); padding: 64px 0; border-top: 1px solid var(--line); }
.related .guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.plain-page { padding: 64px 0 96px; max-width: 760px; }

/* Footer */
.site-footer { background: var(--plum); color: #e9d9e3; padding: 64px 0 32px; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-about p { margin-top: 16px; max-width: 32em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links .label { color: var(--yellow); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; }
.wtllc-footer-brand { display: block; margin: 0 0 14px; line-height: 0; }
.wtllc-footer-brand img { display: inline-block; width: 180px; height: auto; padding: 9px 10px; background: #fff; border-radius: 8px; box-sizing: content-box; }

@media (max-width: 960px) {
  .hero-inner, .receipt-band-inner, .dates-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { padding-top: 48px; }
  .hero-copy { padding-bottom: 0; }
  .receipt { max-width: 420px; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-groups, .related .guide-list { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .aside-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

#guides { scroll-margin-top: 80px; }

@media (max-width: 1240px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
}

@media (max-width: 720px) {
  body { font-size: 1.03rem; }
  .receipt-band, .steps, .guides, .dates, .faq, .closing { padding: 64px 0; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid img { aspect-ratio: 600 / 640; }
  .date-tickets li { grid-template-columns: 1fr auto; }
  .date-tickets li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .stores .store { flex: 1 1 100%; justify-content: center; }
  .app-callout { flex-direction: column; }
  .article-head { padding: 40px 0 32px; }
  .prose table { font-size: .88rem; }
  .prose th, .prose td { padding: 10px 8px; }
  .prose td.num { white-space: normal; }
  .prose .worked { padding: 14px 16px; font-size: .88rem; }
}
