/*
Theme Name: Three Knights
Theme URI: https://3k-us.com
Author: Three Knights Inc
Description: A minimal, responsive corporate theme for Three Knights Inc.
Version: 1.0.1
Text Domain: three-knights
*/

:root {
  --ink: #14233b;
  --muted: #56637a;
  --blue: #173f73;
  --blue-light: #315b8a;
  --surface: #f5f7fb;
  --line: #dfe5ee;
  --white: #ffffff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-nav a { color: var(--ink); font-size: .94rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover,
.site-nav a:focus { color: var(--blue); }

.site-main { min-height: 70vh; }
.page-shell {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding: 72px 0 88px;
}
.page-title {
  margin: 0 0 28px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.entry-content > * { max-width: 820px; }
.entry-content > .alignwide { max-width: var(--max); }
.entry-content h1,
.entry-content h2,
.entry-content h3 { line-height: 1.15; letter-spacing: -.03em; }
.entry-content h2 { margin-top: 2.6em; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.entry-content h3 { font-size: 1.35rem; }
.entry-content p { color: var(--muted); }
.entry-content .wp-block-group.has-background { overflow: hidden; }
.wp-block-button__link {
  display: inline-block;
  padding: .8em 1.15em;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--blue);
  background: transparent;
  border: 2px solid var(--blue);
}

.site-footer { color: #dce6f3; background: var(--ink); }
.footer-inner {
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-name { margin: 0; color: var(--white); font-weight: 750; }
.footer-note { margin: 3px 0 0; font-size: .88rem; color: #b8c6d9; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--white); font-size: .9rem; text-decoration: none; }

.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 {
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--ink);
  background: var(--white);
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { min-height: 68px; align-items: flex-start; flex-direction: column; padding: 16px 0; gap: 10px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .86rem; }
  .page-shell { padding-top: 48px; }
  .entry-content .wp-block-group { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}
