/* JAM Solutions — thejamsolutions.com
   Canvas #FFFFFF / band #F5F5F7. Ink #1D1D1F. Navy #1A2744. Gold #C59B42 (hairline only).
   No cream, no tan, no drop shadows, no gradient soup. Type and the official marks are the product. */

:root {
  --canvas: #ffffff;
  --band: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --navy: #1a2744;
  --navy-deep: #121b30;
  --gold: #c59b42;
  --rule: #d2d2d7;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --radius: 8px;
  color-scheme: only light;
}

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

html {
  background: var(--canvas);
  color-scheme: only light;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
.email,
.legal-name,
.offer-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-variation-settings: "opsz" 48;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-variation-settings: "opsz" 36;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

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

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

a:hover {
  color: var(--navy-deep);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

::selection {
  background: var(--navy);
  color: #fff;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-size: 0.875rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}

@media (min-width: 900px) {
  .wrap {
    width: min(100% - 5rem, var(--wrap));
  }
}

/* Header — gold hairline, official horizontal lockup */

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
}

.mast-bar {
  height: 2px;
  background: var(--gold);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
  padding: 0.55rem 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  opacity: 0.88;
}

img.brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .header-inner {
    min-height: 5rem;
    padding: 0.75rem 0;
  }

  img.brand-logo {
    height: 3.75rem;
  }
}

nav[aria-label="Primary"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem;
}

nav[aria-label="Primary"] a {
  display: inline-block;
  padding: 0.7rem 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.72;
  border-bottom: 2px solid transparent;
}

nav[aria-label="Primary"] a:hover {
  opacity: 1;
  color: var(--ink);
}

nav[aria-label="Primary"] a[aria-current="page"] {
  opacity: 1;
  color: var(--ink);
  border-bottom-color: var(--gold);
}

main {
  flex: 1;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38rem;
}

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

/* Bands */

.hero {
  padding: 6.5rem 0 6.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem 4.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3.15rem, 7.2vw, 5.15rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  max-width: 12ch;
  font-variation-settings: "opsz" 60;
}

.hero .lede {
  margin: 0;
}

.hero .actions {
  margin-top: 2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: min(100%, 28rem);
  height: auto;
}

.band {
  padding: 6.5rem 0;
}

.band-alt {
  background: var(--band);
}

.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  font-variation-settings: "opsz" 52;
  text-wrap: balance;
}

.page-head {
  padding: 6.5rem 0 4rem;
}

.page-head h1 {
  margin: 0;
}

.page-head .lede {
  margin: 1.15rem 0 0;
}

.page-head + .band-alt {
  padding-top: 5.5rem;
}

.page-head + .band:not(.band-alt),
.page-head + .wrap {
  padding-top: 2.25rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.section-head a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 38rem;
}

.note {
  margin-top: 2.5rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1rem;
}

.hint {
  max-width: 38rem;
  margin-top: 1rem;
}

/* Buttons — 44px, 8px radius, milled */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.2rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .brand {
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, opacity 120ms ease;
  }
}

/* Home — offer index as a product grid */

.offer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.offer-grid li {
  grid-column: span 2;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.offer-grid li:nth-child(n + 4) {
  grid-column: span 3;
}

.offer-grid a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 10.5rem;
  padding: 1.75rem 1.6rem 1.85rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.offer-name {
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.offer-grid a:hover .offer-name {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.offer-blurb {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.split article {
  padding-right: 3.5rem;
}

.split article + article {
  padding-left: 3.5rem;
  padding-right: 0;
  border-left: 1px solid var(--rule);
}

.split h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
}

.split .muted,
.split p {
  max-width: 38rem;
}

/* Work */

.shop-grid,
.contact-shops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.shop-card,
.contact-shops a {
  display: flex;
  flex-direction: column;
  padding: 1.85rem 2rem 1.9rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.shop-card h2,
.contact-shops h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.shop-card p,
.contact-shops p {
  color: var(--muted);
  max-width: 28rem;
}

.go {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.35rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.shop-card:hover .go,
.contact-shops a:hover h2 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.steps li {
  padding: 1.15rem 2.5rem 0 0;
  border-top: 1px solid var(--navy);
}

.steps li + li {
  padding-left: 2.5rem;
  padding-right: 0;
}

.steps .num {
  display: block;
  margin-bottom: 0.85rem;
}

.steps h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--muted);
  max-width: 22rem;
}

.num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Solutions */

.offers {
  padding-bottom: 3rem;
}

article.offer {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 38rem);
  gap: 0.15rem 1.5rem;
  padding: 3.25rem 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 5.5rem;
}

.offer-copy h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.offer-copy p {
  color: var(--ink);
}

.offer-copy p + p {
  color: var(--muted);
}

/* About */

.about-intro {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: center;
}

img.about-emblem {
  width: 16rem;
  height: auto;
  max-width: 16rem;
  justify-self: start;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.fact {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 38rem);
  gap: 0.5rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.fact dt {
  margin: 0;
  padding-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.fact dd {
  margin: 0;
}

.fact strong {
  font-weight: 600;
  color: var(--ink);
}

/* Contact */

.mail-block {
  padding-bottom: 0.5rem;
}

.email {
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  letter-spacing: -0.028em;
  line-height: 1.15;
  text-decoration: none;
  color: var(--navy);
}

.email:hover {
  color: var(--navy-deep);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-name {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

address.prose {
  font-style: normal;
}

/* Footer — light so the navy/gold wordmark reads; navy bar to close the page */

.site-footer {
  margin-top: auto;
  background: var(--canvas);
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--navy);
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.75rem 0 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

img.footer-mark {
  height: 2.5rem;
  width: auto;
  max-width: none;
}

.footer-legal {
  margin: 0;
  font-weight: 500;
  color: var(--navy);
}

.footer-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.55rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.dot {
  color: var(--rule);
  user-select: none;
}

/* Breakpoints */

@media (max-width: 860px) {
  .hero {
    padding: 3.75rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.75rem, 11vw, 4rem);
  }

  .hero-visual {
    order: -1;
    justify-content: flex-start;
  }

  .hero-visual img {
    width: min(100%, 18rem);
  }

  .band {
    padding: 4.5rem 0;
  }

  .page-head {
    padding: 4rem 0 3rem;
  }

  .page-head + .band-alt {
    padding-top: 3.5rem;
  }

  .page-head + .band:not(.band-alt),
  .page-head + .wrap {
    padding-top: 1.75rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  img.about-emblem {
    width: 11rem;
    max-width: 11rem;
  }

  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .offer-grid li,
  .offer-grid li:nth-child(n + 4) {
    grid-column: auto;
  }

  .offer-grid li:last-child {
    grid-column: 1 / -1;
  }

  .offer-grid a {
    min-height: 9.5rem;
  }

  .split,
  .shop-grid,
  .contact-shops,
  .steps {
    grid-template-columns: 1fr;
  }

  .split article,
  .split article + article,
  .steps li,
  .steps li + li {
    padding: 0;
  }

  .split article + article {
    margin-top: 2.75rem;
    padding-top: 2.75rem;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .steps li + li {
    margin-top: 1.75rem;
  }

  .display {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }

  .wrap {
    width: min(100% - 2rem, var(--wrap));
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
    min-height: 0;
    padding: 0.55rem 0 0.35rem;
  }

  img.brand-logo {
    height: 2.5rem;
  }

  nav[aria-label="Primary"] {
    width: 100%;
  }

  nav[aria-label="Primary"] ul {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  nav[aria-label="Primary"] a {
    padding: 0.55rem 0.15rem 0.7rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 2.75rem 0 3rem;
  }

  .hero-visual img {
    width: min(100%, 15.5rem);
  }

  .page-head {
    padding: 3.25rem 0 2.5rem;
  }

  .band {
    padding: 3.5rem 0;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid li:last-child {
    grid-column: auto;
  }

  .offer-grid a {
    min-height: 0;
    padding: 1.4rem 1.2rem;
  }

  .shop-card,
  .contact-shops a {
    padding: 1.5rem 1.25rem;
  }

  .fact {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  article.offer {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 2.25rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.35rem;
  }

  .footer-links .dot {
    display: none;
  }
}

@media print {
  html,
  body,
  .mast,
  .site-footer,
  .band-alt {
    background: #fff;
    color: #000;
  }

  .mast-bar {
    background: #000;
  }

  h1,
  h2,
  h3,
  .display,
  .offer-name,
  .email,
  .legal-name,
  .footer-legal {
    color: #000;
  }

  .skip,
  nav[aria-label="Primary"],
  .actions {
    display: none;
  }

  a,
  .footer-links a {
    color: inherit;
  }

  .footer-links a[href]::after,
  .email[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    font-weight: 400;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
