@font-face {
  font-family: "Rufina";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/rufina-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Rufina";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/rufina-700-latin.woff2") format("woff2");
}

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

:root {
  --paper: #ffffff;
  --surface: #f8f6fe;
  --surface-strong: #efecfb;
  --ink: #171728;
  --ink-deep: #10101c;
  --ink-2: #34324a;
  --muted: #5d5b72;
  --border: #ddd8ee;
  --border-strong: #c7c0e6;
  --control: #7d78a0;
  --accent: #4f4fb8;
  --accent-strong: #3a3894;
  --accent-soft: #e6e3fa;
  --error: #a61b1b;
  --success: #1f6b4a;
  --font-display: "Rufina", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 6px rgba(23, 23, 40, 0.05);
  --shadow-md: 0 18px 44px rgba(23, 23, 40, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --wrap: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-synthesis: none;
  overflow-wrap: break-word;
}

body.menu-open {
  overflow: hidden;
}

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

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

h1,
h2,
h3 {
  margin: 0 0 0.45em;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 5.4vw, 4.9rem);
  line-height: 0.99;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.15rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.18;
}

h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

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

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

strong {
  font-weight: 700;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

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

.section-ink :focus-visible,
.site-footer :focus-visible,
.visit-band :focus-visible {
  outline-color: #ffffff;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 500;
  transform: translateY(-180%);
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  transform: none;
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(calc(100% - 48px), 860px);
  margin-inline: auto;
}

.lede {
  max-width: 58ch;
  font-size: clamp(1.075rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
}

.measure {
  max-width: 66ch;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section-tint {
  background: var(--surface);
}

.section-soft {
  background: var(--surface-strong);
}

.section-ink {
  background: var(--ink);
  color: #e9e6f6;
}

.section-ink h2,
.section-ink h3 {
  color: #ffffff;
}

.section-ink .lede,
.section-ink p {
  color: #d7d3e8;
}

.section-ink a {
  color: #ffffff;
}

.section-ink a:hover {
  color: #cfc9f2;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2 {
  max-width: 20ch;
  margin: 0;
}

.section-head p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
}

.section-head .link-arrow {
  flex: none;
  margin-bottom: 6px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-arrow:hover {
  color: var(--accent-strong);
  border-bottom-color: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.btn-primary:active {
  background: #2e2d7d;
  border-color: #2e2d7d;
}

.btn-secondary {
  background: transparent;
  border-color: var(--control);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.btn-sm {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: auto;
  height: 68px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  margin: 0;
}

.primary-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav ul a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.primary-nav ul a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #ffffff;
}

.header-phone {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.header-phone:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1.5px solid var(--control);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* High contrast mode */
html.contrast-high {
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f1f1f1;
  --ink: #000000;
  --ink-deep: #000000;
  --ink-2: #000000;
  --muted: #2f2f2f;
  --border: #000000;
  --border-strong: #000000;
  --control: #000000;
  --accent: #26268a;
  --accent-strong: #11116b;
  --accent-soft: #e9e9f5;
}

html.contrast-high .site-header {
  background: #ffffff;
  border-bottom-color: #000000;
}

html.contrast-high .site-footer {
  background: #000000;
  color: #ffffff;
}

html.contrast-high .site-footer p,
html.contrast-high .site-footer a,
html.contrast-high .site-footer address,
html.contrast-high .site-footer li,
html.contrast-high .site-footer summary,
html.contrast-high .site-footer .language-list,
html.contrast-high .site-footer .footer-name,
html.contrast-high .site-footer .footer-sub,
html.contrast-high .site-footer .footer-legal p {
  color: #ffffff;
}

html.contrast-high .site-footer a {
  text-decoration: underline;
}

html.contrast-high .footer-legal,
html.contrast-high .footer-bottom {
  border-color: #ffffff;
}

html.contrast-high .social-list a {
  border-color: #ffffff;
}

html.contrast-high .hero-card {
  border-color: #000000;
}

html.contrast-high .footer-bottom a[href="https://pickjohn.com"] {
  color: #ffffff !important;
}

html.contrast-high .footer-bottom img {
  filter: brightness(0) invert(1);
}
