:root {
  --tt-bg: #fbfaf8;
  --tt-bg-soft: #f0ebe4;
  --tt-surface: #ffffff;
  --tt-text: #1f1b24;
  --tt-muted: #655f6b;
  --tt-border: #e7dfd5;
  --tt-accent: #6f3d86;
  --tt-accent-dark: #39213f;
  --tt-gold: #b58a35;
  --tt-shadow: 0 18px 48px rgba(31, 27, 36, 0.1);
  --tt-radius: 8px;
  --tt-shell: min(1320px, calc(100vw - 64px));
  --tt-content: min(980px, calc(100vw - 64px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tt-bg);
  color: var(--tt-text);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  margin: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--tt-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tt-accent-dark);
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  color: var(--tt-text);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.35rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

p {
  margin: 0 0 1.1em;
}

.tt-shell {
  margin-inline: auto;
  width: var(--tt-shell);
}

.tt-content {
  margin-inline: auto;
  max-width: var(--tt-content);
}

.tt-front-page .tt-content {
  max-width: var(--tt-shell);
}

.tt-content > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--tt-content);
}

.tt-front-page .tt-content > * {
  max-width: var(--tt-shell);
}

.tt-front-page .tt-content > p,
.tt-front-page .tt-content > h1,
.tt-front-page .tt-content > h2,
.tt-front-page .tt-content > h3,
.tt-front-page .tt-content > h4,
.tt-front-page .tt-content > ul,
.tt-front-page .tt-content > ol {
  max-width: var(--tt-content);
}

.tt-content > .alignwide {
  max-width: var(--tt-shell);
}

.tt-content > .alignfull {
  max-width: none;
  width: 100%;
}

.tt-skip-link {
  background: var(--tt-text);
  color: #fff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: absolute;
  top: -100px;
  z-index: 1000;
}

.tt-skip-link:focus {
  top: 1rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.tt-site-header {
  background: rgba(251, 250, 248, 0.94);
  border-bottom: 1px solid rgba(231, 223, 213, 0.9);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tt-header-inner {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  min-height: 84px;
  padding-block: 0.85rem;
}

.tt-brand {
  align-items: center;
  color: var(--tt-text);
  display: inline-flex;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.tt-brand img {
  max-height: 70px;
  width: auto;
}

.tt-menu,
.tt-footer-menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-menu a {
  border-radius: 999px;
  color: var(--tt-text);
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.tt-menu a:hover,
.tt-menu .current-menu-item > a {
  background: var(--tt-bg-soft);
  color: var(--tt-accent-dark);
}

.tt-menu .sub-menu {
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  box-shadow: var(--tt-shadow);
  display: none;
  list-style: none;
  margin: 0;
  min-width: 220px;
  padding: 0.5rem;
  position: absolute;
}

.tt-menu li {
  position: relative;
}

.tt-menu li:hover > .sub-menu,
.tt-menu li:focus-within > .sub-menu {
  display: block;
}

.tt-menu-toggle {
  background: var(--tt-text);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: none;
  height: 44px;
  position: relative;
  width: 44px;
}

.tt-menu-toggle-line,
.tt-menu-toggle-line::before,
.tt-menu-toggle-line::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  left: 12px;
  position: absolute;
  width: 20px;
}

.tt-menu-toggle-line {
  top: 21px;
}

.tt-menu-toggle-line::before {
  left: 0;
  top: -7px;
}

.tt-menu-toggle-line::after {
  left: 0;
  top: 7px;
}

.tt-main {
  min-height: 60vh;
}

.tt-page,
.tt-post,
.tt-archive,
.tt-empty {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.tt-front-page {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.tt-page-header {
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  max-width: var(--tt-content);
  text-align: center;
}

.tt-eyebrow,
.tt-card-meta {
  color: var(--tt-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tt-featured-image {
  border-radius: var(--tt-radius);
  box-shadow: var(--tt-shadow);
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  max-width: var(--tt-shell);
  overflow: hidden;
}

.tt-post-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-card {
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  box-shadow: 0 10px 24px rgba(31, 27, 36, 0.07);
  overflow: hidden;
}

.tt-card-media {
  aspect-ratio: 4 / 3;
  background: var(--tt-bg-soft);
  display: block;
}

.tt-card-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tt-card-body {
  padding: 1.1rem;
}

.tt-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.tt-card-title a {
  color: var(--tt-text);
  text-decoration: none;
}

.tt-card-excerpt {
  color: var(--tt-muted);
  font-size: 0.95rem;
}

.tt-button,
.wp-block-button__link {
  background: var(--tt-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  padding: 0.78rem 1.2rem;
  text-decoration: none;
}

.tt-button:hover,
.wp-block-button__link:hover {
  background: var(--tt-accent-dark);
  color: #fff;
}

.tt-toc {
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  box-shadow: 0 12px 30px rgba(31, 27, 36, 0.06);
  margin: 0 auto 2rem;
  padding: 1rem 1.1rem;
}

.tt-toc summary {
  color: var(--tt-text);
  cursor: pointer;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.tt-toc ol {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.tt-toc li {
  margin: 0.35rem 0;
}

.tt-toc-child {
  margin-left: 1rem;
}

.tt-toc a {
  color: var(--tt-muted);
  text-decoration: none;
}

.tt-toc a:hover {
  color: var(--tt-accent);
}

.tt-related {
  border-top: 1px solid var(--tt-border);
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.tt-related-header {
  margin-bottom: 1.5rem;
  max-width: var(--tt-content);
}

.tt-related-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 0;
}

.tt-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-site-footer {
  background: var(--tt-text);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 2rem;
}

.tt-footer-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.tt-footer-copy {
  margin: 0;
}

.tt-footer-menu {
  flex-wrap: wrap;
  gap: 1rem;
}

.tt-footer-menu a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.tt-footer-menu a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .tt-menu-toggle {
    display: inline-flex;
  }

  .tt-primary-nav {
    background: var(--tt-surface);
    border-bottom: 1px solid var(--tt-border);
    box-shadow: var(--tt-shadow);
    display: none;
    inset: 84px 0 auto;
    padding: 1rem 20px 1.25rem;
    position: absolute;
  }

  .tt-menu-open .tt-primary-nav {
    display: block;
  }

  .tt-menu {
    display: grid;
    gap: 0.25rem;
  }

  .tt-menu a {
    border-radius: var(--tt-radius);
    padding: 0.8rem;
  }

  .tt-menu .sub-menu {
    border: 0;
    box-shadow: none;
    display: block;
    padding: 0 0 0 1rem;
    position: static;
  }

  .tt-post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tt-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tt-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root {
    --tt-shell: min(100vw - 28px, 1320px);
    --tt-content: min(100vw - 28px, 980px);
  }

  body {
    font-size: 16px;
  }

  .tt-header-inner {
    min-height: 74px;
  }

  .tt-brand img {
    max-height: 56px;
  }

  .tt-primary-nav {
    top: 74px;
  }

  .tt-post-grid {
    grid-template-columns: 1fr;
  }
}
