@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans.woff2") format("woff2");
}

:root {
  --ittc-dark: #4d4f52;
  --ittc-light: #fdfdfd;
  --ittc-accent: #af8023;
  --ittc-ink: var(--ittc-dark);
  --ittc-muted: var(--ittc-dark);
  --ittc-surface: var(--ittc-light);
  --ittc-soft-surface: var(--ittc-light);
  --ittc-border: rgb(77 79 82 / 20%);
  --ittc-white: var(--ittc-light);
  --ittc-content: 72rem;
  --ittc-wide: 88rem;
  --ittc-gutter: clamp(1rem, 3vw, 2rem);
  --ittc-shadow: 0 0.75rem 2rem rgb(27 27 27 / 10%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ittc-light); color: var(--ittc-dark); font-family: Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; }
body.menu-is-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
button, input, textarea, select { font: inherit; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; display: block; top: 0.75rem; left: 0.75rem; width: auto; height: auto; padding: 0.75rem 1rem; margin: 0; overflow: visible; clip: auto; background: var(--ittc-white); color: var(--ittc-ink); box-shadow: var(--ittc-shadow); }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--ittc-dark); border-bottom: 3px solid var(--ittc-accent); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
html { scroll-padding-top: 7.5rem; }
.site-header__inner, .site-footer__inner, .newsletter__inner { width: min(100% - (var(--ittc-gutter) * 2), var(--ittc-wide)); margin-inline: auto; }
/* Wider than the content column but capped, so logo and nav sit near the edges without drifting apart on large screens. */
.site-header__inner { display: flex; min-height: 6rem; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100% - (var(--ittc-gutter) * 2), 92rem); }
.site-branding { flex-shrink: 0; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-height: 2.5rem; }
.site-branding__text { display: grid; color: var(--ittc-ink); text-decoration: none; }
.site-branding__image { width: auto; max-height: 2.5rem; }
.site-branding__name { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em; }
.site-branding__tagline { margin-top: 0.1rem; color: var(--ittc-muted); font-size: 0.72rem; font-weight: 600; }
.primary-navigation { margin-left: 0; }
.primary-menu, .primary-menu .sub-menu, .footer-menu { padding: 0; margin: 0; list-style: none; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: clamp(1.25rem, 2.15vw, 2.25rem); justify-content: flex-end; }
.primary-menu a { display: inline-flex; padding: 0.65rem 0 0.55rem; border-top: 2px solid transparent; color: var(--ittc-dark); font-family: Helvetica, Arial, sans-serif; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }
.primary-menu > li > a { white-space: nowrap; }
.primary-menu a:hover, .primary-menu a:focus-visible { border-top-color: var(--ittc-dark); color: var(--ittc-ink); }
/* Top-level links sit on the charcoal header bar; submenu links keep the dark-on-white palette above. */
.primary-menu > li > a { color: var(--ittc-light); }
.primary-menu > li > a:hover, .primary-menu > li > a:focus-visible { border-top-color: var(--ittc-light); color: var(--ittc-white); }
/* Declared after the top-level hover rule (equal specificity) so the current page keeps its accent overline while hovered. */
.primary-menu > li.current-menu-item > a, .primary-menu > li.current-menu-ancestor > a { border-top-color: var(--ittc-accent); color: var(--ittc-white); }
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .menu-item-has-children > a::after { display: inline-block; width: 0.38rem; height: 0.38rem; margin: 0.12rem 0 0 0.45rem; content: ''; border-right: 2px solid currentcolor; border-bottom: 2px solid currentcolor; transform: rotate(45deg); vertical-align: top; }
.primary-menu .sub-menu { position: absolute; top: calc(100% + 0.6rem); left: -1rem; display: grid; min-width: 15rem; padding: 0.65rem 1rem; background: var(--ittc-white); border-top: 1px solid var(--ittc-border); box-shadow: var(--ittc-shadow); opacity: 0; pointer-events: none; transform: translateY(-0.25rem); transition: opacity 160ms ease, transform 160ms ease; }
/* The 0.6rem visual offset above the panel belongs to no element, so hover would drop while the pointer crosses it; this transparent bridge keeps the flyout open. */
.primary-menu .sub-menu::before { content: ''; position: absolute; top: -0.6rem; left: 0; right: 0; height: 0.6rem; }
.primary-menu .sub-menu a { width: 100%; padding: 0.6rem 0; border-top: 0; font-size: 0.8rem; transition: color 120ms ease, padding-left 120ms ease; }
.primary-menu .sub-menu a:hover, .primary-menu .sub-menu a:focus-visible { padding-left: 0.4rem; color: var(--ittc-accent); }
.primary-menu .menu-item-has-children:hover > .sub-menu, .primary-menu .menu-item-has-children:focus-within > .sub-menu, .primary-menu .menu-item-has-children.is-open > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.menu-toggle { position: relative; z-index: 40; display: none; align-items: center; padding: 0.75rem; border: 0; background: transparent; color: var(--ittc-accent); font-weight: 800; cursor: pointer; }
/* The label stays in the DOM for assistive tech; the visible control is the icon alone. */
.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 1.35rem; height: 2px; background: currentcolor; content: ''; transition: transform 160ms ease; }
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before { position: absolute; top: -0.42rem; }
.menu-toggle__icon::after { position: absolute; top: 0.42rem; }

.site-main { min-height: 45vh; }
.content-shell { width: min(100% - (var(--ittc-gutter) * 2), var(--ittc-content)); padding-block: clamp(3rem, 7vw, 6rem); margin-inline: auto; }
.entry-header { max-width: 58rem; padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.75rem); margin-inline: auto; }
.page-content .entry-header, .entry-single .entry-header { max-width: var(--ittc-content); }
.entry-title, .archive-title, .not-found h1 { margin: 0; color: var(--ittc-ink); font-size: clamp(2.2rem, 4vw, 4.4rem); letter-spacing: -0.035em; }
.entry-content { max-width: 52rem; padding-bottom: clamp(3rem, 7vw, 6rem); margin-inline: auto; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 2.5em; color: var(--ittc-ink); font-size: clamp(1.6rem, 2.5vw, 2.4rem); }
.entry-content h3 { margin-top: 2em; color: var(--ittc-ink); font-size: clamp(1.25rem, 1.8vw, 1.65rem); }
.entry-content li + li { margin-top: 0.45rem; }
.entry-content .wp-block-separator { width: 6rem; margin: 2.5rem 0; }
.entry-meta, .eyebrow { margin: 0 0 0.6rem; color: var(--ittc-muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.entry-featured-image { max-width: var(--ittc-content); margin: 0 auto clamp(2rem, 5vw, 4rem); }
.entry-featured-image img { width: 100%; border-radius: 0.35rem; }
.entry-footer { max-width: 52rem; padding-top: 1.5rem; padding-bottom: 4rem; margin-inline: auto; border-top: 1px solid var(--ittc-border); }
.entry-footer:empty { display: none; }

.archive-header { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.archive-description { color: var(--ittc-muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
.post-card { overflow: hidden; border: 1px solid var(--ittc-border); border-radius: 0.25rem; background: var(--ittc-white); box-shadow: 0 0.25rem 1rem rgb(27 27 27 / 4%); }
.post-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ittc-surface); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.post-card:hover .post-card__image img { transform: scale(1.03); }
.post-card__body { padding: 1.35rem; }
.post-card__title { margin: 0.3rem 0 0.75rem; color: var(--ittc-ink); font-size: 1.28rem; line-height: 1.25; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card p { color: var(--ittc-muted); font-size: 0.95rem; }
.text-link { display: inline-flex; margin-top: 0.5rem; color: var(--ittc-ink); font-size: 0.9rem; text-decoration: none; }
.nav-links { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2.5rem; }
.nav-links a { display: inline-flex; font-weight: 700; }

.button-link, .wp-element-button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0.7rem 2rem; border: 1px solid var(--ittc-dark); border-radius: 0.25rem; background: var(--ittc-dark); color: var(--ittc-white); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.01em; text-align: center; text-decoration: none; text-transform: uppercase; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.button-link:hover, .button-link:focus-visible, .wp-element-button:hover, .wp-block-button__link:hover { border-color: var(--ittc-accent); background: var(--ittc-accent); color: var(--ittc-light); text-decoration: none; }
.button-link--light { border-color: var(--ittc-dark); background: var(--ittc-white); color: var(--ittc-ink); }
.button-link--light:hover, .button-link--light:focus-visible { border-color: var(--ittc-ink); background: var(--ittc-ink); color: var(--ittc-white); }

.newsletter { padding-block: clamp(3rem, 6vw, 4.25rem); background: var(--ittc-dark); color: var(--ittc-light); }
.newsletter__inner { max-width: 52rem; text-align: center; }
.newsletter h2 { margin: 0; color: var(--ittc-light); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.18; }
.newsletter p:not(.eyebrow) { margin: 1rem 0 0; color: var(--ittc-light); }
.newsletter .eyebrow { color: var(--ittc-light); }
.newsletter__action { margin-top: 2.4rem; }
.newsletter__action .button-link { width: 100%; border-color: var(--ittc-light); background: var(--ittc-light); color: var(--ittc-dark); letter-spacing: .16em; }
.newsletter__action .button-link:hover, .newsletter__action .button-link:focus-visible { border-color: var(--ittc-accent); background: var(--ittc-accent); color: var(--ittc-light); }

.site-footer { background: var(--ittc-light); color: var(--ittc-dark); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 2rem; padding-block: 2.2rem 2rem; border-top: 1px solid var(--ittc-border); }
.site-footer__legal-copy { max-width: 36rem; font-size: .9rem; line-height: 1.55; }
.site-footer__legal-copy p { margin: 0; }
.site-footer__legal-copy a { color: var(--ittc-dark); }
.site-footer__linkedin { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; border-radius: 50%; background: var(--ittc-accent); color: var(--ittc-light); font-size: .75rem; font-weight: 800; line-height: 1; text-decoration: none; }
.site-footer__linkedin:hover, .site-footer__linkedin:focus-visible { background: var(--ittc-dark); color: var(--ittc-light); text-decoration: none; }

.content-callout, .not-found { max-width: 52rem; padding: clamp(2rem, 5vw, 4rem); border-left: 0.3rem solid var(--ittc-dark); background: var(--ittc-surface); }
.content-callout h1, .not-found h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.not-found form { display: flex; max-width: 35rem; gap: 0.5rem; margin: 1.5rem 0; }
.not-found input[type="search"] { flex: 1; min-width: 0; padding: 0.65rem; border: 1px solid var(--ittc-border); border-radius: 0.25rem; }
.not-found input[type="submit"] { padding: 0.65rem 0.9rem; border: 1px solid var(--ittc-dark); border-radius: 0.25rem; background: var(--ittc-dark); color: var(--ittc-white); font-weight: 700; }

:focus-visible { outline: 3px solid var(--ittc-accent); outline-offset: 3px; }

/* Drawer navigation below 1360px: the measured width where the single-line nav would wrap to two rows. */
@media (max-width: 1360px) {
  .site-header__inner { position: relative; min-height: 4.75rem; justify-content: center; }
  /* Symmetric clearance for the absolutely positioned toggle keeps the centered brand from colliding with it on narrow portrait screens. */
  .site-branding { max-width: calc(100% - 9rem); }
  .menu-toggle { position: absolute; top: 50%; right: var(--ittc-gutter); display: inline-flex; transform: translateY(-50%); }
  .site-branding__image, .custom-logo { max-height: 2rem; }
  .primary-navigation { position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; left: auto; display: block; width: min(88vw, 23rem); padding: 5.5rem var(--ittc-gutter) 1.5rem; overflow-y: auto; background: #161616; box-shadow: var(--ittc-shadow); transform: translateX(105%); transition: transform 200ms ease; }
  .primary-navigation.is-open { transform: translateX(0); }
  .primary-menu { display: block; }
  .primary-menu > li { border-bottom: 1px solid rgb(255 255 255 / 18%); }
  .primary-menu a { width: 100%; padding: 0.85rem 0; border-top: 0; color: var(--ittc-white); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; text-transform: none; }
  .primary-menu > li > a { white-space: normal; }
  .primary-menu > .current-menu-item > a, .primary-menu > .current-menu-ancestor > a, .primary-menu a:hover, .primary-menu a:focus-visible { border-top-color: transparent; color: var(--ittc-white); }
  .primary-menu .sub-menu { position: static; display: none; min-width: 0; padding: 0 0 0.4rem 1rem; border: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .primary-menu .sub-menu::before { display: none; }
  .primary-menu .sub-menu a { color: rgb(255 255 255 / 78%); font-size: 1rem; }
  .primary-menu .menu-item-has-children.is-open > .sub-menu { display: grid; }
  .primary-menu .menu-item-has-children > a::after { margin-left: auto; }
  .menu-toggle[aria-expanded="true"] { position: fixed; top: 1.1rem; right: var(--ittc-gutter); color: var(--ittc-accent); transform: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 767px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .site-header__inner { min-height: 4.75rem; }
  .site-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer__balance { display: none; }
  .footer-menu { justify-content: flex-start; margin-top: 1.5rem; }
  .post-grid { grid-template-columns: 1fr; }
  .not-found form { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
