:root {
    --thp-slate: #718FA9;
    --thp-slate-soft: #DCE5EE;
    --thp-slate-deep: #34506B;
    --thp-ink: #17191E;
    --thp-ink-soft: #2A2E36;
    --thp-ginger: #E09A5B;
    --thp-ginger-soft: #F6DEC4;
    --thp-cream: #F7F2EA;
    --thp-paper: #FFFFFF;
    --thp-line: #D9DEE4;
    --thp-text: #23262D;
    --thp-muted: #59616D;
    --thp-font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --thp-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --thp-font-mono: "IBM Plex Mono", "Courier New", monospace;
    --thp-radius: 18px;
    --thp-radius-sm: 10px;
    --thp-section: 1200px;
    --thp-textw: 850px;
    --thp-shadow: 0 18px 40px -22px rgba(23, 25, 30, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--thp-cream);
    color: var(--thp-text);
    font-family: var(--thp-font-body);
    font-size: 17px;
    line-height: 1.4;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--thp-slate-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--thp-ginger);
    outline-offset: 3px;
}
.thp-skip { position: absolute; left: -9999px; top: 8px; background: var(--thp-ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.thp-skip:focus { left: 12px; }
.thp-mono { font-family: var(--thp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; font-size: 12.5px; }

.thp-wrap { width: 100%; max-width: var(--thp-section); margin: 0 auto; padding: 0 30px; }
.thp-text { max-width: var(--thp-textw); }
.thp-sec { padding: 96px 0; }
.thp-sec-tight { padding-top: 0; }

.thp-h1, .thp-h2, .thp-article-title {
    font-family: var(--thp-font-display);
    font-weight: 700;
    color: var(--thp-ink);
    letter-spacing: -0.015em;
    line-height: 1.08;
    margin: 0 0 18px;
}
.thp-h1 { font-size: clamp(38px, 5.4vw, 64px); }
.thp-h2 { font-size: clamp(30px, 3.8vw, 44px); }
.thp-lead { font-size: 19px; line-height: 1.45; color: var(--thp-muted); margin: 0 0 26px; max-width: 640px; }
.thp-lead strong { color: var(--thp-ink); }

.thp-pill {
    display: inline-block;
    font-family: var(--thp-font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--thp-slate-deep);
    background: var(--thp-slate-soft);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.thp-pill-light { background: rgba(255, 255, 255, 0.12); color: #E6EDF4; }
.thp-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--thp-ginger-soft);
    color: #6A3A12;
    border: 1.5px dashed #C9824A;
    padding: 7px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Buttons */
.thp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    border: 2px solid var(--thp-ink);
    border-radius: 999px;
    background: var(--thp-ink);
    color: #fff;
    font-family: var(--thp-font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}
.thp-btn:hover { background: var(--thp-slate-deep); border-color: var(--thp-slate-deep); transform: translateY(-2px); box-shadow: var(--thp-shadow); }
.thp-btn-ghost { background: transparent; color: var(--thp-ink); }
.thp-btn-ghost:hover { background: var(--thp-ink); color: #fff; border-color: var(--thp-ink); }
.thp-btn-small { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* Header */
.thp-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 234, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--thp-line); }
.thp-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.thp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--thp-ink); text-decoration: none; }
.thp-brand-name { font-family: var(--thp-font-display); font-weight: 700; font-size: 25px; letter-spacing: -0.01em; }
.thp-brand .thp-mark { color: var(--thp-slate-deep); }
.thp-logo-img { max-height: 42px; width: auto; }
.thp-menu { display: flex; align-items: center; gap: 28px; }
.thp-menu-list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.thp-menu-link { color: var(--thp-ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.thp-menu-link:hover, .thp-menu-link.is-current { border-bottom-color: var(--thp-ginger); }
.thp-burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 11px; }
.thp-burger span { display: block; height: 2px; background: var(--thp-ink); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.thp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.thp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.thp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Forms */
.thp-form { max-width: 540px; margin-bottom: 10px; }
.thp-form-row { display: flex; gap: 10px; background: var(--thp-paper); border: 2px solid var(--thp-ink); border-radius: 999px; padding: 6px; }
.thp-input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-family: var(--thp-font-body); font-size: 16px; color: var(--thp-ink); }
.thp-input::placeholder { color: #747C88; }
.thp-input:focus { outline: none; }
.thp-form-row:focus-within { box-shadow: 0 0 0 4px rgba(224, 154, 91, 0.45); }
.thp-success, .thp-error { display: none; margin: 12px 0 0 18px; font-size: 15px; }
.thp-form.success .thp-success { display: block; color: var(--thp-slate-deep); font-weight: 600; }
.thp-form.error .thp-error { display: block; color: #A1301E; }
.thp-form.loading .thp-btn { opacity: 0.65; pointer-events: none; }
.thp-form.success .thp-form-row { display: none; }

/* Hero */
.thp-hero { padding: 72px 0 96px; overflow: hidden; }
.thp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.thp-hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 0; color: var(--thp-muted); }
.thp-hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--thp-ginger); margin-right: 8px; vertical-align: 1px; }
.thp-hero-visual { position: relative; padding: 0 0 26px 26px; }
.thp-hero-visual::before { content: ""; position: absolute; left: 0; bottom: 0; width: 82%; height: 82%; border-radius: var(--thp-radius); background-image: radial-gradient(var(--thp-slate) 1.6px, transparent 1.8px); background-size: 16px 16px; opacity: 0.55; }
.thp-photo-frame { position: relative; border-radius: var(--thp-radius); overflow: hidden; background: var(--thp-slate); box-shadow: var(--thp-shadow); aspect-ratio: 4 / 5; }
.thp-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.thp-exhibit { position: absolute; top: 22px; left: 0; background: var(--thp-paper); color: var(--thp-ink); padding: 9px 16px; border-radius: 0 8px 8px 0; box-shadow: var(--thp-shadow); }
.thp-stamp {
    position: absolute;
    font-family: var(--thp-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 14px;
    color: #A44A16;
    border: 3px solid #A44A16;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(255, 248, 238, 0.92);
    transform: rotate(-8deg);
}
.thp-stamp-hero { right: -6px; bottom: 54px; }

/* Sample case folder */
.thp-sample { background: var(--thp-paper); }
.thp-headwrap { margin-bottom: 40px; }
.thp-folder { max-width: 960px; }
.thp-folder-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.thp-tab {
    font-family: var(--thp-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    padding: 15px 12px;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: var(--thp-slate-soft);
    color: var(--thp-slate-deep);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.thp-tab:hover { background: #C9D6E2; }
.thp-tab.is-active { background: var(--thp-ginger-soft); color: #5E3210; }
.thp-folder-body { position: relative; background: var(--thp-ginger-soft); border-radius: 0 0 var(--thp-radius) var(--thp-radius); padding: 40px; min-height: 240px; }
.thp-folder-meta { display: block; color: #6A3A12; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1.5px dashed #C9824A; }
.thp-panel p { font-family: var(--thp-font-display); font-size: clamp(21px, 2.4vw, 27px); line-height: 1.35; color: var(--thp-ink); margin: 0; max-width: 760px; }
.thp-next { margin-top: 26px; border: 0; background: transparent; color: #5E3210; cursor: pointer; padding: 6px 0; border-bottom: 2px solid #C9824A; }
.thp-next[hidden] { display: none; }

/* Dark split */
.thp-dark { background: var(--thp-ink); color: #E6EAF0; }
.thp-dark .thp-h2 { color: #fff; }
.thp-dark .thp-lead { color: #BCC5D1; }
.thp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.thp-split-photo { margin-top: 10px; border-radius: var(--thp-radius); overflow: hidden; }
.thp-split-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.thp-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.thp-rule { display: flex; gap: 20px; background: var(--thp-ink-soft); border: 1px solid #3A3F49; border-radius: var(--thp-radius); padding: 26px; }
.thp-rule-num { color: var(--thp-ginger); font-size: 15px; padding-top: 4px; }
.thp-rule h3 { font-family: var(--thp-font-display); font-size: 23px; margin: 0 0 6px; color: #fff; }
.thp-rule p { margin: 0; color: #BCC5D1; font-size: 16px; }

/* Cards */
.thp-headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.thp-headrow .thp-h2 { margin-bottom: 0; }
.thp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.thp-card { background: var(--thp-paper); border-radius: var(--thp-radius); overflow: hidden; border: 1px solid var(--thp-line); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.thp-card:hover { transform: translateY(-4px); box-shadow: var(--thp-shadow); }
.thp-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.thp-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--thp-slate); }
.thp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.thp-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255, 255, 255, 0.85); }
.thp-card-placeholder .thp-mark { width: 64px; height: 64px; }
.thp-card-tab { position: absolute; top: 14px; left: 14px; background: var(--thp-paper); color: var(--thp-ink); font-family: var(--thp-font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; }
.thp-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.thp-meta { font-size: 14px; color: var(--thp-muted); margin: 0 0 10px; }
.thp-card-title { font-family: var(--thp-font-display); font-size: 23px; line-height: 1.2; margin: 0 0 10px; color: var(--thp-ink); }
.thp-card-excerpt { font-size: 15.5px; color: var(--thp-muted); margin: 0 0 18px; }
.thp-card-more { margin-top: auto; font-weight: 600; color: var(--thp-slate-deep); }
.thp-card-more::after { content: " \2192"; }

.thp-empty { background: var(--thp-paper); border: 2px dashed var(--thp-slate); border-radius: var(--thp-radius); padding: 36px; text-align: center; color: var(--thp-muted); }
.thp-empty-wide { grid-column: 1 / -1; }
.thp-empty-title { font-family: var(--thp-font-display); font-size: 24px; color: var(--thp-ink); margin: 0 0 8px; }
.thp-empty .thp-btn { margin-top: 12px; }

/* CTA */
.thp-cta { background: var(--thp-slate-soft); }
.thp-cta-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.thp-cta-photo { position: relative; }
.thp-cta-photo img { border-radius: var(--thp-radius); box-shadow: var(--thp-shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.thp-cta-photo .thp-stamp { right: 18px; top: -14px; }

/* Archive */
.thp-archive { display: grid; gap: 14px; max-width: 1000px; }
.thp-archive-link { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: start; background: var(--thp-paper); border: 1px solid var(--thp-line); border-left: 6px solid var(--thp-ginger); border-radius: var(--thp-radius-sm); padding: 24px; text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.thp-archive-link:hover { transform: translateX(4px); box-shadow: var(--thp-shadow); }
.thp-archive-num { color: var(--thp-slate-deep); padding-top: 5px; }
.thp-archive-title { display: block; font-family: var(--thp-font-display); font-size: 23px; color: var(--thp-ink); line-height: 1.2; margin-bottom: 6px; }
.thp-archive-excerpt { display: block; color: var(--thp-muted); font-size: 15.5px; }
.thp-archive-date { color: var(--thp-muted); padding-top: 5px; white-space: nowrap; }

/* Article */
.thp-article { max-width: var(--thp-textw); margin: 0 auto; padding: 64px 30px 72px; }
.thp-article-head { margin-bottom: 30px; }
.thp-article-title { font-size: clamp(36px, 5vw, 56px); }
.thp-article-image { margin: 0 0 30px; }
.thp-article-image img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--thp-radius); }
.thp-article-image figcaption { font-size: 14px; color: var(--thp-muted); margin-top: 10px; text-align: center; }
.thp-article-body { padding: 0; }
.thp-article-foot { margin-top: 48px; padding-top: 30px; border-top: 1.5px dashed var(--thp-line); }

.gh-content { font-size: 19px; line-height: 1.6; color: var(--thp-text); }
.gh-content > * { margin: 0 0 1.1em; }
.gh-content h2, .gh-content h3 { font-family: var(--thp-font-display); color: var(--thp-ink); line-height: 1.2; margin: 1.8em 0 0.6em; }
.gh-content h2 { font-size: 31px; }
.gh-content h3 { font-size: 24px; }
.gh-content h2 + p, .gh-content h3 + p { margin-top: 0; }
.gh-content a { color: var(--thp-slate-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gh-content blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--thp-ginger-soft); border-left: 5px solid var(--thp-ginger); border-radius: 0 var(--thp-radius-sm) var(--thp-radius-sm) 0; font-family: var(--thp-font-display); font-size: 22px; color: var(--thp-ink); }
.gh-content hr { border: 0; border-top: 2px dashed var(--thp-line); margin: 2.4em 0; }
.gh-content img { border-radius: var(--thp-radius-sm); }
.gh-content figure { margin: 1.6em 0; }
.gh-content figcaption { font-size: 14px; color: var(--thp-muted); text-align: center; margin-top: 8px; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li { margin-bottom: 0.4em; }
.kg-width-wide { position: relative; width: 85vw; max-width: 1100px; left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; color: var(--thp-muted); }
.pagination a { color: var(--thp-ink); font-weight: 600; }

/* Footer */
.thp-footer { background: var(--thp-ink); color: #BCC5D1; padding: 64px 0 28px; }
.thp-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.thp-brand-light { color: #fff; }
.thp-brand-light .thp-mark { color: var(--thp-ginger); }
.thp-footer-note { max-width: 380px; margin: 14px 0 0; font-size: 15px; }
.thp-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: flex-end; }
.thp-footer-nav a { color: #E6EAF0; text-decoration: none; font-size: 15px; }
.thp-footer-nav a:hover { color: var(--thp-ginger); }
.thp-footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #343944; font-size: 14px; }
.thp-footer-base .thp-mono { color: var(--thp-ginger); }

/* Reveal */
.thp-reveal.is-armed { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.thp-reveal.is-armed.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
    .thp-hero-grid, .thp-split, .thp-cta-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .thp-hero-visual { max-width: 460px; }
    .thp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .thp-burger { display: block; }
    .thp-menu { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px; background: var(--thp-cream); padding: 24px 30px 30px; border-bottom: 1px solid var(--thp-line); box-shadow: var(--thp-shadow); display: none; }
    .thp-menu.is-open { display: flex; }
    .thp-menu-list { flex-direction: column; gap: 6px; }
    .thp-menu-link { display: block; padding: 10px 0; font-size: 18px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .thp-wrap { padding: 0 20px; }
    .thp-sec { padding: 64px 0; }
    .thp-hero { padding: 40px 0 64px; }
    .thp-lead { font-size: 17px; }
    .thp-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .thp-form-row { flex-direction: column; border-radius: 22px; padding: 8px; }
    .thp-input { min-height: 48px; }
    .thp-btn { width: 100%; }
    .thp-header .thp-btn, .thp-headrow .thp-btn { width: auto; }
    .thp-headrow { flex-direction: column; align-items: flex-start; }
    .thp-folder-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .thp-tab:nth-child(n+3) { border-radius: 0; }
    .thp-folder-body { padding: 26px 20px; border-radius: 0 0 var(--thp-radius) var(--thp-radius); }
    .thp-rule { padding: 20px; }
    .thp-archive-link { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px; }
    .thp-article { padding: 40px 20px 56px; }
    .thp-article-image { margin-bottom: 20px; }
    .gh-content { font-size: 18px; }
    .thp-footer-inner { grid-template-columns: minmax(0, 1fr); }
    .thp-footer-nav ul { justify-content: flex-start; }
    .thp-footer-base { flex-direction: column; }
    .thp-stamp { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .thp-reveal.is-armed { opacity: 1; transform: none; }
}

/* Scattered paw prints (decorative, sits behind all content) */
body,
.thp-sample,
.thp-cta {
    background-image: url("../images/paws.svg");
    background-size: 640px 640px;
    background-repeat: repeat;
    background-attachment: fixed;
}
.thp-dark {
    background-image: url("../images/paws-dark.svg");
    background-size: 640px 640px;
    background-repeat: repeat;
    background-attachment: fixed;
}
@media (max-width: 640px) {
    body, .thp-sample, .thp-cta, .thp-dark { background-size: 460px 460px; background-attachment: scroll; }
}
