/* PAPAN SSD LTD — main.css */

/* Base */
html {
  min-width: 320px;
  background: var(--color-white);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(circle at 92% 0%, rgba(41, 170, 225, .10), transparent 30rem),
    radial-gradient(circle at 0% 42%, rgba(21, 71, 124, .055), transparent 34rem),
    var(--color-white);
}

body.is-menu-open {
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

::selection {
  color: var(--color-white);
  background: var(--color-deep-blue);
}

:focus-visible {
  outline: 3px solid rgba(41, 170, 225, .38);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

/* Containers */
.container,
.container-wide,
.container-narrow {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.container-wide {
  width: min(var(--container-wide), calc(100% - (var(--gutter) * 2)));
}

.container-narrow {
  width: min(880px, calc(100% - (var(--gutter) * 2)));
}

/* Sections */
.section,
.section-sm,
.section-lg {
  position: relative;
}

.section {
  padding-block: var(--section);
}

.section-sm {
  padding-block: var(--section-sm);
}

.section-lg {
  padding-block: var(--section-lg);
}

.section-light {
  background:
    radial-gradient(circle at 88% 18%, rgba(41, 170, 225, .08), transparent 24rem),
    var(--color-light);
}

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

.section-dark {
  color: rgba(255, 255, 255, .86);
  background: var(--gradient-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, .74);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  max-width: 100%;
  color: var(--color-deep-blue);
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h1 {
  max-width: 1020px;
  font-size: clamp(2.55rem, 6.2vw, 6.35rem);
}

h2 {
  font-size: clamp(2rem, 4.55vw, 4.25rem);
}

h3 {
  font-size: clamp(1.28rem, 2.2vw, 2rem);
  letter-spacing: -.03em;
}

h4 {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  letter-spacing: -.02em;
}

h5,
h6 {
  font-size: 1rem;
  letter-spacing: -.01em;
}

p {
  margin: 0;
  max-width: 74ch;
  line-height: 1.76;
  text-wrap: pretty;
}

p + p {
  margin-top: 1rem;
}

strong {
  color: var(--color-ink-soft);
  font-weight: 850;
}

small {
  font-size: .875rem;
}

.lead {
  max-width: 780px;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.82;
}

.section-dark .lead {
  color: rgba(255, 255, 255, .76);
}

/* Links */
a {
  transition:
    color var(--duration) var(--ease-soft),
    background var(--duration) var(--ease-soft),
    border-color var(--duration) var(--ease-soft);
}

.link-text {
  color: var(--color-deep-blue);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(41, 170, 225, .42);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.link-text:hover {
  color: var(--color-sky-blue);
}

/* Labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--color-sky-blue);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  flex: 0 0 34px;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.eyebrow.center {
  justify-content: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: .42rem .78rem;
  border: var(--line-blue);
  border-radius: var(--radius-pill);
  color: var(--color-deep-blue);
  background: rgba(41, 170, 225, .08);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.kicker-dark {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .10);
}

/* Text treatments */
.text-gradient {
  color: transparent;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
}

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

.text-deep {
  color: var(--color-deep-blue);
}

.text-sky {
  color: var(--color-sky-blue);
}

/* Page shell */
.page-shell {
  isolation: isolate;
  min-height: 100vh;
}

main {
  min-width: 0;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-black);
  font-weight: 850;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Media */
img,
video {
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;
  color: var(--color-muted);
}

img[data-loaded="false"],
.image-placeholder {
  background:
    linear-gradient(110deg, #edf3f8 0%, #f7fbfd 45%, #edf3f8 90%);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: .75rem;
  color: var(--color-muted);
  font-size: .92rem;
  line-height: 1.55;
}

/* Dividers */
.hr-line {
  width: 100%;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--color-border),
      rgba(41, 170, 225, .55),
      var(--color-border),
      transparent
    );
}

.hr-line-left {
  width: min(100%, 220px);
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
}

/* Common action row */
.hero-actions,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

/* Section headings */
.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

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

.section-heading.center p {
  margin-inline: auto;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

/* Content rhythm */
.content-flow > * + * {
  margin-top: 1.05rem;
}

.content-flow h2,
.content-flow h3 {
  margin-top: 2.2rem;
}

.content-flow ul,
.content-flow ol {
  display: grid;
  gap: .65rem;
  padding-left: 1.15rem;
}

.content-flow li {
  line-height: 1.7;
}

.content-flow blockquote {
  margin: 1.6rem 0;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--color-sky-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-deep-blue);
  background: rgba(41, 170, 225, .08);
  font-weight: 750;
}

/* Scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 12px;
  }

  ::-webkit-scrollbar-track {
    background: var(--color-light);
  }

  ::-webkit-scrollbar-thumb {
    border: 3px solid var(--color-light);
    border-radius: var(--radius-pill);
    background: rgba(21, 71, 124, .55);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-deep-blue);
  }
}

/* Tablet */
@media (max-width: 900px) {
  body {
    background:
      radial-gradient(circle at 96% 0%, rgba(41, 170, 225, .09), transparent 22rem),
      var(--color-white);
  }

  h1 {
    font-size: clamp(2.35rem, 8vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 6vw, 3.4rem);
  }

  .section,
  .section-lg {
    padding-block: clamp(64px, 10vw, 86px);
  }

  .section-sm {
    padding-block: 54px;
  }
}

/* Mobile */
@media (max-width: 680px) {
  body {
    font-size: 15.5px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 4rem);
    letter-spacing: -.055em;
  }

  h2 {
    font-size: clamp(1.85rem, 8.5vw, 3rem);
    letter-spacing: -.05em;
  }

  h3 {
    font-size: clamp(1.22rem, 5.5vw, 1.65rem);
  }

  .lead {
    font-size: 1.02rem;
    line-height: 1.76;
  }

  .eyebrow {
    gap: .5rem;
    font-size: .72rem;
    letter-spacing: .13em;
  }

  .eyebrow::before {
    width: 26px;
    flex-basis: 26px;
  }

  .hero-actions,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .action-row .btn {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 2rem;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .container,
  .container-wide,
  .container-narrow {
    width: min(100% - 28px, var(--container));
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(2.05rem, 12vw, 3.35rem);
  }

  .section,
  .section-lg {
    padding-block: 58px;
  }

  .section-sm {
    padding-block: 46px;
  }
}

/* Print */
@media print {
  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .site-footer,
  .site-loader,
  .skip-link,
  .hero-actions,
  .action-row {
    display: none !important;
  }

  .section,
  .section-sm,
  .section-lg {
    padding-block: 24px;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
