:root {
  --tpj-bg: #F4F0E6;
  --tpj-surface: #FFFFFF;
  --tpj-ink: #1C1A16;
  --tpj-ink-soft: #4A463D;
  --tpj-muted: #7A7466;
  --tpj-border: #E4DFD0;
  --tpj-dark: #17140F;
  --tpj-dark-hover: #322C22;
  --tpj-green: #1E2B20;
  --tpj-gold: #B9862F;
  --tpj-gold-dark: #9C6F23;
  --tpj-radius-lg: 18px;
  --tpj-radius: 14px;
  --tpj-radius-sm: 8px;
  --tpj-shadow: 0 1px 2px rgba(20,17,10,.05), 0 10px 30px rgba(20,17,10,.06);
  --tpj-container: 1240px;
  --tpj-font-body: 'Lexend', sans-serif;
  --tpj-font-display: 'Fraunces', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tpj-font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tpj-ink-soft);
  background: var(--tpj-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, .tpj-display {
  font-family: var(--tpj-font-display);
  font-weight: 600;
  color: var(--tpj-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(32px, 4.5vw, 52px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 21px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.tpj-skip-link {
  position: fixed; top: -100px; left: 10px; z-index: 9999;
  background: var(--tpj-dark); color: #fff; padding: 12px 20px; border-radius: var(--tpj-radius-sm);
  transition: top .2s;
}
.tpj-skip-link:focus { top: 10px; }

.tpj-container {
  max-width: var(--tpj-container);
  margin: 0 auto;
  padding: 0 24px;
}

.tpj-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.tpj-btn:active { transform: scale(.98); }
.tpj-btn--dark {
  background: var(--tpj-dark);
  color: #fff;
  border-color: var(--tpj-dark);
}
.tpj-btn--dark:hover { background: var(--tpj-dark-hover); border-color: var(--tpj-dark-hover); }
.tpj-btn--gold {
  background: var(--tpj-gold);
  color: #fff;
  border-color: var(--tpj-gold);
}
.tpj-btn--gold:hover { background: var(--tpj-gold-dark); border-color: var(--tpj-gold-dark); }
.tpj-btn--outline {
  background: transparent;
  color: var(--tpj-ink);
  border-color: var(--tpj-border);
}
.tpj-btn--outline:hover { border-color: var(--tpj-ink); }

.tpj-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tpj-gold-dark);
  margin-bottom: 10px;
}
.tpj-dot { color: var(--tpj-border); margin: 0 2px; }

/* Header */
.tpj-header {
  background: var(--tpj-surface);
  border-bottom: 1px solid var(--tpj-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.tpj-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}
.tpj-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.tpj-logo__img { max-height: 44px; width: auto; }
.tpj-logo img { max-height: 44px; width: auto; }

.tpj-nav { flex: 1; display: flex; justify-content: center; }
.tpj-nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tpj-nav__menu > li { position: relative; }
.tpj-nav__link {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--tpj-ink);
  border-radius: var(--tpj-radius-sm);
  transition: background-color .2s;
}
.tpj-nav__link:hover, .tpj-current > .tpj-nav__link { background: var(--tpj-bg); }
.tpj-nav__notice { font-size: 13px; color: var(--tpj-muted); }

.tpj-submenu-toggle {
  display: none;
  position: absolute;
  right: -2px;
  top: 6px;
  background: none;
  border: none;
  color: var(--tpj-muted);
  padding: 6px;
}
.tpj-has-children > .tpj-nav__link { padding-right: 30px; }

.tpj-sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--tpj-surface);
  border: 1px solid var(--tpj-border);
  border-radius: var(--tpj-radius-sm);
  box-shadow: var(--tpj-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 20;
}
.tpj-has-children:hover > .tpj-sub-menu,
.tpj-has-children.is-open > .tpj-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tpj-sub-menu .tpj-nav__link { padding: 10px 12px; }
.tpj-sub-menu .tpj-sub-menu { top: 0; left: calc(100% + 8px); }

.tpj-header__tools { display: flex; align-items: center; gap: 6px; }
.tpj-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--tpj-border);
  background: var(--tpj-surface);
  color: var(--tpj-ink);
}
.tpj-icon-btn:hover { background: var(--tpj-bg); }
.tpj-menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 0; }
.tpj-menu-toggle span { width: 18px; height: 2px; background: var(--tpj-ink); border-radius: 2px; }

.tpj-header__search {
  border-top: 1px solid var(--tpj-border);
  background: var(--tpj-bg);
  padding: 18px 0;
}
.tpj-search-form { position: relative; display: flex; max-width: 560px; margin: 0 auto; }
.tpj-search-input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--tpj-border);
  border-radius: 100px 0 0 100px;
  background: var(--tpj-surface);
  outline: none;
}
.tpj-search-input:focus { border-color: var(--tpj-ink); }
.tpj-search-submit {
  border: 1px solid var(--tpj-dark);
  background: var(--tpj-dark);
  color: #fff;
  padding: 0 20px;
  border-radius: 0 100px 100px 0;
}

.tpj-live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--tpj-surface);
  border: 1px solid var(--tpj-border);
  border-radius: var(--tpj-radius);
  box-shadow: var(--tpj-shadow);
  padding: 8px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 50;
}
.tpj-live-search__list { display: flex; flex-direction: column; gap: 2px; }
.tpj-live-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--tpj-radius-sm);
}
.tpj-live-search__item:hover { background: var(--tpj-bg); }
.tpj-live-search__item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.tpj-live-search__item em { display: block; font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--tpj-gold-dark); margin-bottom: 2px; }
.tpj-live-search__item strong { font-weight: 400; color: var(--tpj-ink); font-size: 14px; }
.tpj-live-search__empty { padding: 14px; color: var(--tpj-muted); font-size: 14px; margin: 0; }
.tpj-live-search__view-all {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tpj-gold-dark);
  border-top: 1px solid var(--tpj-border);
  margin-top: 4px;
}

/* Breadcrumbs */
.tpj-breadcrumbs { font-size: 13px; color: var(--tpj-muted); margin-bottom: 18px; }
.tpj-breadcrumbs a { color: var(--tpj-muted); }
.tpj-breadcrumbs a:hover { color: var(--tpj-ink); }
.tpj-breadcrumbs__current { color: var(--tpj-ink); }
.tpj-breadcrumbs__sep { margin: 0 8px; }

/* Section heading */
.tpj-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.tpj-section-heading h2 { margin: 0; }
.tpj-view-all { font-size: 14px; font-weight: 500; color: var(--tpj-gold-dark); white-space: nowrap; }
.tpj-view-all:hover { text-decoration: underline; }
.tpj-home-section { padding: 56px 24px; }

/* Card grid (vertical cards) */
.tpj-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tpj-card { display: flex; flex-direction: column; }
.tpj-card__thumb {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--tpj-radius);
  overflow: hidden;
  background: var(--tpj-border);
  margin-bottom: 16px;
}
.tpj-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tpj-card:hover .tpj-card__thumb img { transform: scale(1.04); }
.tpj-card__title { font-size: 19px; margin: 0 0 8px; }
.tpj-card__title a:hover { color: var(--tpj-gold-dark); }
.tpj-card__meta { font-size: 13px; color: var(--tpj-muted); margin: 0; }

/* Horizontal card list */
.tpj-card-h-list { display: flex; flex-direction: column; gap: 20px; }
.tpj-card-h {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background: var(--tpj-surface);
  border: 1px solid var(--tpj-border);
  border-radius: var(--tpj-radius-lg);
  padding: 16px;
  align-items: center;
}
.tpj-card-h__thumb {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--tpj-radius);
  overflow: hidden;
  background: var(--tpj-bg);
}
.tpj-card-h__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tpj-card-h__title { font-size: 22px; margin: 0 0 8px; }
.tpj-card-h__title a:hover { color: var(--tpj-gold-dark); }
.tpj-card-h__meta { font-size: 13px; color: var(--tpj-muted); margin: 0 0 8px; }
.tpj-card-h__excerpt { font-size: 15px; color: var(--tpj-ink-soft); margin: 0; }

/* Pill list */
.tpj-pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tpj-pill {
  padding: 9px 18px;
  border: 1px solid var(--tpj-border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--tpj-ink-soft);
  background: var(--tpj-surface);
}
.tpj-pill:hover { border-color: var(--tpj-ink); color: var(--tpj-ink); }

/* Pagination */
.tpj-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.tpj-pagination__item {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 50%;
  border: 1px solid var(--tpj-border);
  background: var(--tpj-surface);
  color: var(--tpj-ink);
  font-size: 14px;
}
.tpj-pagination__item.is-current { background: var(--tpj-dark); border-color: var(--tpj-dark); color: #fff; }
.tpj-pagination__item:hover:not(.is-current) { border-color: var(--tpj-ink); }
.tpj-pagination span.tpj-pagination__item { border: none; background: none; }

/* Empty state */
.tpj-empty-state {
  text-align: center;
  padding: 60px 20px;
  max-width: 460px;
  margin: 0 auto;
}
.tpj-empty-state img { margin: 0 auto 20px; border-radius: var(--tpj-radius); }
.tpj-empty-state p { color: var(--tpj-muted); }

/* Social icons */
.tpj-social { display: flex; gap: 10px; }
.tpj-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tpj-border);
  color: var(--tpj-ink);
}
.tpj-social a:hover { background: var(--tpj-ink); color: #fff; border-color: var(--tpj-ink); }
.tpj-social--sm a { width: 32px; height: 32px; }

/* Footer */
.tpj-footer { background: var(--tpj-surface); border-top: 1px solid var(--tpj-border); margin-top: 40px; }
.tpj-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.tpj-footer__desc { color: var(--tpj-muted); font-size: 15px; margin: 14px 0 20px; max-width: 360px; }
.tpj-footer__heading { font-size: 16px; margin-bottom: 18px; }
.tpj-footer__menu, .tpj-footer__legal-menu { display: flex; flex-direction: column; gap: 12px; }
.tpj-footer__legal-menu { flex-direction: row; gap: 20px; }
.tpj-footer__menu a, .tpj-footer__legal-menu a { color: var(--tpj-muted); font-size: 14px; }
.tpj-footer__menu a:hover, .tpj-footer__legal-menu a:hover { color: var(--tpj-ink); }
.tpj-widget { font-size: 14px; color: var(--tpj-muted); }
.tpj-widget__title { font-size: 16px; margin-bottom: 14px; }

.tpj-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--tpj-border);
  padding: 22px 24px;
  flex-wrap: wrap;
}
.tpj-footer__copyright { margin: 0; font-size: 13px; color: var(--tpj-muted); }

/* Entry content (shared by single, page, legal) */
.tpj-entry-content { font-size: 17px; line-height: 1.75; color: var(--tpj-ink-soft); }
.tpj-entry-content h2 { margin-top: 1.6em; }
.tpj-entry-content h3 { margin-top: 1.4em; }
.tpj-entry-content p { margin-bottom: 1.3em; }
.tpj-entry-content img { border-radius: var(--tpj-radius); margin: 1.5em 0; }
.tpj-entry-content a { color: var(--tpj-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.tpj-entry-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--tpj-gold);
  font-style: italic;
  color: var(--tpj-ink);
}
.tpj-entry-content ul, .tpj-entry-content ol { margin: 0 0 1.3em; padding-left: 1.4em; list-style: revert; }
.tpj-entry-content li { margin-bottom: .4em; }
.tpj-entry-content figcaption { font-size: 13px; color: var(--tpj-muted); text-align: center; margin-top: -1em; }

/* Forms (contact + comments share) */
.tpj-field { margin-bottom: 18px; }
.tpj-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tpj-field label { display: block; font-size: 14px; font-weight: 500; color: var(--tpj-ink); margin-bottom: 8px; }
.tpj-field input[type="text"],
.tpj-field input[type="email"],
.tpj-field input[type="url"],
.tpj-field textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--tpj-border);
  border-radius: var(--tpj-radius-sm);
  background: var(--tpj-bg);
  outline: none;
  color: var(--tpj-ink);
}
.tpj-field input:focus, .tpj-field textarea:focus,
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--tpj-ink); }
.tpj-field.has-error input, .tpj-field.has-error textarea { border-color: #C0392B; }
.tpj-field__error { display: block; font-size: 13px; color: #C0392B; margin-top: 6px; min-height: 1em; }
.tpj-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tpj-form-notice { margin-top: 16px; padding: 12px 16px; border-radius: var(--tpj-radius-sm); font-size: 14px; }
.tpj-form-notice--success { background: #E7F3E8; color: #256029; }
.tpj-form-notice--error { background: #FBEAE8; color: #A32A22; }

/* Comments */
.tpj-comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--tpj-border); }
.tpj-comments__heading { margin-bottom: 24px; }
.tpj-comment-list, .tpj-comment-list ul.children { list-style: none; margin: 0; padding: 0; }
.tpj-comment-list ul.children { padding-left: 40px; margin-top: 20px; }
.tpj-comment-list > li { margin-bottom: 24px; }
.comment-body { display: flex; gap: 14px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-style: normal; font-weight: 500; color: var(--tpj-ink); }
.comment-metadata { font-size: 12px; color: var(--tpj-muted); margin-bottom: 6px; }
.comment-metadata a { color: inherit; }
.reply a { font-size: 13px; color: var(--tpj-gold-dark); }
.comment-reply-title { margin-bottom: 6px; }

@media (max-width: 1024px) {
  .tpj-card-grid { grid-template-columns: repeat(2, 1fr); }
  .tpj-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .tpj-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--tpj-surface);
    padding: 90px 24px 24px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    justify-content: flex-start;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
  }
  .tpj-nav.is-open { transform: translateX(0); }
  .tpj-nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .tpj-has-children > .tpj-sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 14px;
  }
  .tpj-has-children.is-open > .tpj-sub-menu { display: block; }
  .tpj-submenu-toggle { display: inline-flex; }
  .tpj-menu-toggle { display: flex; }
  .tpj-card-h { grid-template-columns: 1fr; }
  .tpj-card-h__thumb { max-height: 220px; }
}

@media (max-width: 640px) {
  .tpj-card-grid { grid-template-columns: 1fr; }
  .tpj-footer__top { grid-template-columns: 1fr; padding: 48px 24px; }
  .tpj-field-row { grid-template-columns: 1fr; }
  .tpj-footer__bottom { flex-direction: column; align-items: flex-start; }
}
