/* Nicolson Web Services — 2026-11 redesign */

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JBMono";
  src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #fbf7f1;
  --paper-2: #f3ecdf;
  --ink: #082040;
  --ink-2: #0d2d55;
  --muted: #56606e;
  --line: #d9cfbf;
  --orange: #e8722c;
  --orange-dark: #b9541a;
  --orange-tint: #fde6d6;
  --white: #ffffff;
  --sans: "Jakarta", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JBMono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
}

h1 em,
h2 em {
  color: var(--orange);
  font-style: italic;
  font-weight: 480;
}

h3 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 12px;
}

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

.draft-banner {
  padding: 8px 16px;
  background: var(--ink);
  color: #f6c9a8;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-align: center;
}

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

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

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
}

.brand img {
  width: 184px;
  height: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  padding-block: 6px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--orange);
}

.nav-links a.nav-cta {
  padding: 10px 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.nav-links a.nav-cta:hover {
  border-color: var(--orange);
  background: var(--orange);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}

.button::after {
  content: "\2192";
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button.ghost {
  background: transparent;
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--ink);
  color: var(--white);
  transform: none;
}

.on-ink .button {
  border-color: var(--white);
  box-shadow: 5px 5px 0 var(--white);
}

.on-ink .button:hover {
  box-shadow: 3px 3px 0 var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

/* ---------- Labels ---------- */

.eyebrow,
.kicker {
  margin-bottom: 18px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.on-ink .eyebrow,
.on-ink .kicker {
  color: #f6a877;
}

.section-lead {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-block: clamp(52px, 8vw, 104px);
}

.hero-lead {
  max-width: 54ch;
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-facts li::before {
  content: "+ ";
  color: var(--orange);
}

/* Browser mock */

.browser {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--orange);
  transform: rotate(1.5deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}

.browser-bar i {
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.browser-bar span {
  flex: 1;
  margin-left: 8px;
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  padding: 22px;
}

.wf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.wf-logo {
  width: 64px;
  height: 14px;
  background: var(--ink);
}

.wf-links {
  display: flex;
  gap: 8px;
}

.wf-links i {
  width: 26px;
  height: 6px;
  background: var(--line);
}

.wf-links i:last-child {
  width: 40px;
  height: 14px;
  background: var(--orange);
}

.wf-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.wf-line {
  height: 7px;
  margin-top: 9px;
  background: var(--paper-2);
}

.wf-line.first {
  margin-top: 16px;
}

.wf-line.short {
  width: 62%;
}

.wf-btn {
  width: 96px;
  height: 26px;
  margin-top: 18px;
  background: var(--ink);
}

.wf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.wf-cards i {
  height: 58px;
  border: 1.5px solid var(--line);
  background: var(--paper);
}

.wf-cards i:nth-child(2) {
  border-color: var(--orange);
  background: var(--orange-tint);
}

/* ---------- Ticker strip ---------- */

.strip {
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  padding: 22px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.strip-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.strip-item strong {
  display: block;
  font-size: 1.02rem;
}

.strip-item span {
  color: #b7c4d4;
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* ---------- Sections ---------- */

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

.section.tinted {
  background: var(--paper-2);
}

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

.section.ink .section-lead {
  color: #b7c4d4;
}

.section-heading {
  margin-bottom: 52px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: col;
}

.columns > * {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  counter-increment: col;
}

.columns > *::before {
  content: counter(col, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1;
}

.columns h3 {
  margin-bottom: 10px;
}

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

.section.ink .columns > * {
  border-top-color: rgba(255, 255, 255, 0.5);
}

.section.ink .columns p {
  color: #b7c4d4;
}

.panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.panel {
  padding: 36px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.panel:nth-child(2) {
  background: var(--orange-tint);
}

.panel .kicker {
  margin-bottom: 12px;
}

.panel h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.panel p:not(.kicker) {
  color: var(--muted);
}

/* ---------- Price list (home teaser) ---------- */

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.price-list h3 {
  font-size: 1.3rem;
}

.price-list p {
  grid-column: 1;
  color: var(--muted);
}

.price-list .amount {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-list .amount small {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

/* ---------- Pricing page ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom: 2px solid var(--ink);
}

.page-hero p:not(.eyebrow) {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.14rem;
}

.pricing-grid {
  display: grid;
  gap: 28px;
}

.pricing-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.pricing-card.highlight {
  background: var(--ink);
  color: var(--white);
  box-shadow: 10px 10px 0 var(--orange);
}

.pricing-label {
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card.highlight .pricing-label {
  color: #f6a877;
}

.pricing-card h3 {
  font-size: 1.4rem;
}

.item-range {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.pricing-card.highlight .item-range,
.pricing-card.highlight .description {
  color: #b7c4d4;
}

.price {
  margin: 22px 0 16px;
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-from {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
}

.price-suffix {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

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

.note-box {
  padding: 26px 30px;
  border: 2px dashed var(--ink);
}

.note-box h3 {
  margin-bottom: 8px;
}

.note-box p {
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
}

.cta h2 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.cta p:not(.eyebrow) {
  max-width: 52ch;
  margin: 24px auto 0;
  color: #b7c4d4;
  font-size: 1.12rem;
}

.cta .actions {
  justify-content: center;
}

.cta-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 34px;
  background: var(--ink);
  color: var(--white);
}

.cta-split h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
}

.cta-split p {
  color: #b7c4d4;
}

.cta-split .actions {
  margin-top: 0;
}

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

.site-footer {
  padding-block: 44px;
  border-top: 2px solid var(--ink);
  font-size: 0.94rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.site-footer p {
  margin-top: 14px;
  color: var(--muted);
}

.site-footer .legal {
  font-family: var(--mono);
  font-size: 0.76rem;
}

.site-footer h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer a {
  font-weight: 700;
}

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

@media (max-width: 960px) {
  .hero-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .browser {
    max-width: 480px;
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .strip-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .columns,
  .pricing-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .panels,
  .pricing-grid.two {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 4px 18px;
    font-size: 0.9rem;
  }

  .nav-links a.nav-cta {
    padding: 8px 14px;
  }

  .browser {
    box-shadow: 8px 8px 0 var(--orange);
    margin-right: 8px;
  }

  .panel,
  .pricing-card {
    padding: 26px;
  }

  .price-list li {
    grid-template-columns: 1fr;
  }

  .price-list .amount {
    grid-column: 1;
    grid-row: auto;
  }

  .actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

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

  * {
    transition: none !important;
  }
}
