:root {
    --ink: #181818;
    --paper: #fffdf7;
    --yellow: #ffd43b;
    --blue: #1957d2;
    --aqua: #79d9d1;
    --coral: #ff8c70;
    --lilac: #c8b7ee;
    --lime: #cfe87c;
    --line: #181818;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

.navbar { position: sticky; z-index: 50; top: 0; border-bottom: 2px solid var(--line); background: var(--paper); }
.navbar > .container, .navbar-header, .navbar-brand, .navbar-nav { display: flex; align-items: center; }
.navbar > .container { min-height: 72px; }
.navbar-header { flex: 0 0 auto; }
.navbar-brand { gap: 10px; font-size: 18px; font-weight: 900; letter-spacing: -0.03em; text-decoration: none; }
.navbar-brand img { width: 32px; height: 32px; object-fit: contain; }
.navbar-collapse { margin-left: auto; }
.navbar-nav { gap: 2px; margin: 0; padding: 0; list-style: none; }
.navbar-nav a { display: block; padding: 10px 12px; font-size: 13px; font-weight: 800; text-decoration: none; }
.navbar-nav a:hover { background: var(--yellow); }
.navbar-toggle { display: none; width: 42px; height: 42px; margin-left: auto; padding: 10px; border: 2px solid var(--line); background: var(--yellow); cursor: pointer; }
.icon-bar { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
    min-height: 520px;
    margin: 34px 0 70px;
    border: 3px solid var(--line);
    background: var(--yellow);
    box-shadow: 10px 10px 0 var(--ink);
}

.hero-compact { min-height: 460px; }
.hero-copy { align-self: center; max-width: 880px; padding: clamp(42px, 7vw, 82px); }
.hero-logo { display: block; width: 116px; height: auto; margin-bottom: 28px; filter: saturate(0) contrast(1.35); }
.eyebrow { display: inline-block; padding: 7px 10px 6px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow-dark { color: #fff; background: var(--blue); }
.hero h1 { max-width: 820px; margin: 20px 0 24px; font-size: clamp(50px, 7.2vw, 94px); font-weight: 900; line-height: 0.91; letter-spacing: -0.065em; }
.hero p { max-width: 690px; margin: 0; font-size: clamp(17px, 2vw, 21px); font-weight: 600; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 32px; font-size: 13px; font-weight: 800; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 2px solid var(--line); color: #fff; background: var(--ink); font-size: 14px; font-weight: 900; text-decoration: none; }
.button:hover { color: var(--ink); background: #fff; text-decoration: none; }

.hero-note { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; border-left: 3px solid var(--line); color: #fff; background: var(--blue); text-align: center; }
.hero-note::before, .hero-note::after { position: absolute; border: 3px solid var(--ink); background: var(--coral); content: ""; }
.hero-note::before { width: 120px; height: 120px; top: -38px; right: -35px; border-radius: 50%; }
.hero-note::after { width: 78px; height: 78px; bottom: 28px; left: -24px; background: var(--aqua); transform: rotate(20deg); }
.hero-note strong { position: relative; z-index: 1; font-size: clamp(68px, 8vw, 110px); font-weight: 900; line-height: 0.9; letter-spacing: -0.08em; }
.hero-note span { position: relative; z-index: 1; max-width: 180px; margin-top: 16px; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }

.section-intro { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: end; margin-bottom: 32px; scroll-margin-top: 92px; }
.section-intro h2 { max-width: 760px; margin: 12px 0 0; font-size: clamp(42px, 6vw, 72px); font-weight: 900; line-height: 0.98; letter-spacing: -0.055em; }
.section-intro > p { max-width: 500px; margin: 0 0 5px auto; font-size: 17px; font-weight: 600; }

.content-grid, .accordion-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.portfolio-item { min-width: 0; padding: clamp(26px, 4vw, 42px); overflow-wrap: anywhere; border: 2px solid var(--line); background: #fff; }
.content-grid:nth-of-type(1) .portfolio-item:first-child { background: #fff2ad; }
.content-grid:nth-of-type(1) .portfolio-item:last-child { background: #dbe7ff; }
.portfolio-item:has(#Resources) { background: #c9eee9; }
.portfolio-item:has(#Blog) { background: #ffd8ce; }
.portfolio-item:has(#Tips) { background: #e5f1b9; }
.portfolio-item:has(#WeLoveTXP) { background: #e4d8ff; }
.portfolio-item h2, .portfolio-item h3 { scroll-margin-top: 94px; }
.portfolio-item h2 { margin: 0 0 22px; font-size: 34px; font-weight: 900; letter-spacing: -0.045em; }
.portfolio-item h2::after { display: block; width: 54px; height: 6px; margin-top: 14px; background: var(--ink); content: ""; }
.portfolio-item h3 { margin: 26px 0 10px; font-size: 19px; font-weight: 900; }
.portfolio-item p { margin: 0; padding: 17px 0; border-top: 1px solid rgba(24, 24, 24, 0.28); }
.portfolio-item h2 + p, .portfolio-item h3 + p { border-top: 0; padding-top: 0; }
.small { display: inline-block; margin: 5px 0 6px; font-size: 10px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.secondary-grid .portfolio-item { background: #f5f1e7; }

hr { height: 3px; margin: 54px 0; border: 0; background: var(--ink); }

.accordion-layout > .portfolio-item { padding: 0; background: #fff; }
.accordion-layout > .portfolio-item:first-child { background: #fff2ad; }
.accordion-layout > .portfolio-item:last-child { background: #c9eee9; }
.accordion-layout > .portfolio-item > .panel > .panel-heading { padding: 22px 26px; border-bottom: 2px solid var(--line); background: var(--ink); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.accordion-layout > .portfolio-item > .panel > .panel-body { padding: 12px 18px 18px; }
.panel-group > .panel { margin: 8px 0; border-bottom: 2px solid var(--line); }
.panel-title { margin: 0; font-size: 16px; line-height: 1.35; }
.panel-title a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 8px; font-weight: 900; text-decoration: none; }
.panel-title a::after { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 2px solid var(--line); background: #fff; font-size: 23px; line-height: 1; content: "+"; }
.panel-title a[aria-expanded="true"]::after { color: #fff; background: var(--blue); content: "−"; }
.panel-collapse { display: none; }
.panel-collapse.is-open { display: block; }
.panel-collapse > .panel-body { padding: 0 8px 20px; overflow-wrap: anywhere; }
.panel-collapse p { margin: 0; padding: 14px 0; border-top: 1px solid rgba(24, 24, 24, 0.25); }
.panel-collapse h2 + p, .panel-collapse h4 + p { border-top: 0; }

footer { margin: 0 0 38px; border: 2px solid var(--line); color: var(--ink); background: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.footer-grid > div { padding: 20px; text-align: center; }
.footer-grid > div + div { border-left: 2px solid var(--line); }
.footer-grid p { margin: 0; }
.footer-grid a { font-weight: 900; }

@media (max-width: 920px) {
    .navbar > .container { flex-wrap: wrap; }
    .navbar-toggle { display: block; }
    .navbar-collapse { display: none; flex-basis: 100%; margin: 0; padding: 8px 0 16px; }
    .navbar-collapse.is-open { display: block; }
    .navbar-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: minmax(0, 1fr) 220px; }
    .content-grid, .accordion-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 24px, 1240px); }
    .hero { display: block; min-height: 0; margin-top: 18px; box-shadow: 6px 6px 0 var(--ink); }
    .hero-copy { padding: 40px 24px; }
    .hero h1 { font-size: 50px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-note { min-height: 180px; border-top: 3px solid var(--line); border-left: 0; }
    .hero-note strong { font-size: 70px; }
    .section-intro { grid-template-columns: 1fr; gap: 16px; }
    .section-intro > p { margin-left: 0; }
    .portfolio-item { padding: 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div + div { border-top: 2px solid var(--line); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
