/* ==========================================================================
   QRToolWorks.com — page chrome
   Navy / blue / white. No webfonts, no third-party requests.
   The tool itself is styled by tool.css (scoped to .qrtw-app).
   ========================================================================== */

:root {
  --navy-900: #071528;
  --navy-800: #0b1f3a;
  --blue-600: #1a6fd4;
  --blue-700: #14559f;
  --blue-050: #eaf2fd;
  --white: #ffffff;
  --paper: #f5f8fc;
  --ink: #16233a;
  --ink-soft: #4a5c78;
  --muted: #5f7191;
  --line: #d7e1ee;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(7, 21, 40, .06), 0 2px 8px rgba(7, 21, 40, .05);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--navy-800);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 650;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--navy-800); }

.brand__mark {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
}

.brand__dotcom { color: var(--muted); font-weight: 600; }

.site-header__tag {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 320px at 78% -40%, rgba(26, 111, 212, .55), transparent 65%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--white);
  padding: 56px 0 96px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a9c8f2;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 780;
  max-width: 20ch;
  margin-bottom: 16px;
}

.hero p {
  color: #d3e1f4;
  max-width: 56ch;
  font-size: 1.06rem;
  margin-bottom: 0;
}

/* ---------- Tool placement ---------- */

.tool-shell {
  margin-top: -64px;
  padding-bottom: 8px;
}

/* ---------- Info strip ---------- */

.info { padding: 56px 0 12px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}

.info-card h2 {
  font-size: 1.02rem;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.info-card p {
  margin: 0;
  font-size: .93rem;
  color: var(--ink-soft);
}

.info-card__icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-050);
  color: var(--blue-700);
  margin-bottom: 12px;
}
.info-card__icon svg { width: 19px; height: 19px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 48px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: .89rem;
  color: var(--muted);
}

.site-footer p { margin: 0; }
.site-footer__contact { color: var(--ink-soft); }

.noscript-note { padding: 16px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 40px 0 88px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header__tag { display: none; }
  .hero h1 { max-width: none; }
  .tool-shell { margin-top: -56px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   WordPress-specific additions (appended to the site styles by tools/build.sh)
   ========================================================================== */

.site-nav { margin: 0; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list li { margin: 0; }
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy-800);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--blue-700); text-decoration: underline; }

.page-shell { padding: 40px 0 8px; max-width: 860px; }
.page-shell__header { margin-bottom: 24px; }
.tool-shell--inline { margin-top: 32px; padding-bottom: 0; }

.entry { margin-bottom: 40px; }
.entry__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.entry__meta { color: var(--muted); font-size: .9rem; }
.entry__content > *:last-child { margin-bottom: 0; }
.entry__content h2 { margin-top: 1.6em; }
.entry__content ul,
.entry__content ol { padding-left: 1.3em; }
.entry__content blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 4px solid var(--line);
  color: var(--ink-soft);
}
.entry__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.entry__content pre {
  background: var(--navy-900);
  color: #eaf2fd;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.entry__content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry__content img,
.entry__content .wp-block-image img { height: auto; border-radius: var(--radius-sm); }

.post-list { display: grid; gap: 28px; }
.entry--summary { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 0; }

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--blue-600);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.btn-link:hover { background: var(--blue-700); color: #fff; }

/* WordPress core helpers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--navy-800);
  display: block;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 14px 20px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}
.alignwide { margin-left: auto; margin-right: auto; max-width: 1100px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .88rem; color: var(--muted); }

/* Admin bar keeps the fixed header clear of the toolbar. */
body.admin-bar .site-header { margin-top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { margin-top: 46px; }
}
