/*
Theme Name: Technical Debt HQ
Description: A classic WordPress theme with an editable landing page and Field Notes.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: technical-debt-hq
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    color-scheme:dark;
    --bg:#101715;
    --panel:#17201d;
    --ink:#f1f4eb;
    --muted:#aebcb4;
    --line:#34443d;
    --acid:#d9fa77;
    --mono:ui-monospace,Consolas,monospace
}
* {
    box-sizing:border-box
}
html {
    scroll-behavior:smooth
}
body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font:16px/1.65 system-ui,sans-serif
}
a {
    color:inherit;
    text-decoration:none
}
a:focus-visible,button:focus-visible,summary:focus-visible {
    outline:2px solid var(--acid);
    outline-offset:5px
}
.wrap {
    width:min(1200px,90%);
    margin:auto
}
.site-header {
    border-bottom:1px solid var(--line)
}
.bar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    min-height:80px
}
.wordmark {
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:750;
    line-height:1.1
}
.mark {
    display:grid;
    place-items:center;
    width:37px;
    height:37px;
    background:var(--acid);
    color:var(--bg);
    font:900 17px var(--mono);
    border-radius:4px
}
nav {
    display:flex;
    gap:28px;
    color:var(--muted)
}
nav a:hover,summary:hover {
    color:var(--acid)
}
.hero {
    display:grid;
    grid-template-columns:1.08fr 1fr;
    gap:56px;
    align-items:center;
    padding:92px 0 86px
}
.label {
    font:600 .8rem/1.5 var(--mono);
    text-transform:uppercase;
    letter-spacing:.12em;
    color:var(--acid)
}
h1,h2,h3,p {
    margin:0
}
h1 {
    font-size:clamp(2.7rem,5.3vw,5.2rem);
    line-height:.98;
    letter-spacing:-.075em;
    margin:18px 0 26px
}
h1 span {
    color:var(--acid)
}
.intro {
    font-size:1.15rem;
    color:var(--muted);
    max-width:46ch
}
.actions {
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin-top:31px
}
.btn {
    padding:11px 17px;
    border:1px solid var(--line);
    border-radius:4px;
    font-weight:700
}
.primary {
    background:var(--acid);
    color:var(--bg);
    border-color:var(--acid)
}
.btn:hover {
    box-shadow:0 0 0 2px var(--acid)
}
.figure {
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden
}
.figtitle {
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding:15px 19px;
    border-bottom:1px solid var(--line);
    font: .79rem/1.4 var(--mono);
    color:var(--muted)
}
.figtitle strong {
    color:var(--acid);
    font-weight:500
}
.drawing {
    min-height:255px;
    display:grid;
    align-content:center;
    justify-items:center;
    gap:14px;
    padding:20px;
    background:linear-gradient(#60796c24 1px,transparent 1px),linear-gradient(90deg,#60796c24 1px,transparent 1px);
    background-size:24px 24px
}
.layer {
    width:min(67%,265px);
    transform:skew(-15deg);
    padding:9px 13px;
    border:1px solid #668475;
    background:#1c2a24;
    box-shadow:5px 6px #101715;
    font: .84rem var(--mono);
    color:var(--ink);
    cursor:pointer;
    text-align:left
}
.layer span {
    display:block;
    transform:skew(15deg)
}
.layer[aria-pressed=true] {
    border-color:var(--acid);
    background:#354423;
    color:var(--acid)
}
.figcopy {
    padding:17px 19px;
    min-height:105px;
    color:var(--muted);
    border-top:1px solid var(--line)
}
.figcopy strong {
    display:block;
    color:var(--ink)
}
.band {
    background:#e9eee4;
    color:#17211c;
    padding:70px 0
}
.band .label {
    color:#425934
}
.sectionlead {
    max-width:70ch;
    margin-top:12px
}
.heading {
    font-size:clamp(2rem,4.4vw,3.7rem);
    line-height:1.05;
    letter-spacing:-.055em;
    margin-top:9px
}
.steps {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-top:34px
}
.steps article {
    padding:21px 0;
    border-top:2px solid #86987d
}
.steps h3 {
    font-size:1.25rem;
    margin-bottom:6px
}
.steps p {
    color:#415247
}
.lower {
    padding:72px 0;
    display:grid;
    grid-template-columns:1fr 1.3fr;
    gap:45px
}
.lower p {
    color:var(--muted);
    margin-top:13px
}
.notes {
    border-top:1px solid var(--line)
}
details {
    border-bottom:1px solid var(--line);
    padding:16px 0
}
summary {
    font-weight:650;
    cursor:pointer
}
details p {
    padding-left:18px
}
footer {
    border-top:1px solid var(--line);
    padding:27px 0;
    color:var(--muted)
}
footer .wrap {
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap
}
@media(max-width:790px) {
    .hero,.lower {
        grid-template-columns:1fr;
        gap:32px;
        padding:54px 0
    }
    .steps {
        grid-template-columns:1fr;
        gap:8px
    }
    .band {
        padding:50px 0
    }
}
@media(max-width:490px) {
    .bar {
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        padding:15px 0;
        gap:12px
    }
    nav {
        gap:18px;
        flex-wrap:wrap
    }
    .drawing {
        min-height:235px
    }
    .figcopy {
        min-height:130px
    }
}
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }
}
.hero > *, .lower > *, .steps > * {
    min-width: 0;
    overflow-wrap: anywhere;
}
.steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.example-copy {
    white-space: pre-line;
}
.notes .empty-message {
    margin: 0;
    padding: 16px 0;
    white-space: pre-line;
}
.note {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.note h3 {
    font-size: 1.05rem;
}
.note p {
    margin: 4px 0 0;
}
.note a:hover {
    color: var(--acid);
}
.notes .all-notes {
    display: inline-block;
    margin-top: 16px;
}
.reading {
    min-height: 50vh;
    padding: 64px 0;
}
.reading article {
    max-width: 75ch;
    overflow-wrap: anywhere;
}
.reading article + article {
    margin-top: 36px;
}
.entry-content {
    margin-top: 20px;
}
.entry-content > * {
    margin-bottom: 1em;
}
.entry-content a, .navigation a, .all-notes {
    text-decoration: underline;
}
.entry-content img {
    max-width: 100%;
    height: auto;
}
.navigation {
    margin-top: 36px;
}
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100000;
    background: var(--acid);
    color: var(--bg);
    padding: 8px 12px;
}
.skip-link:not(:focus) {
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
@media (max-width: 790px) {
    .steps {
        grid-template-columns: 1fr;
    }
}
