:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #050505);
  --ink: light-dark(#000000, #f7f7f2);
  --muted: light-dark(#5a5a5a, #aaa69d);
  --line: light-dark(#d9d9d9, #2a2a2a);
  --line-strong: light-dark(#000000, #f7f7f2);
  --pattern: light-dark(rgba(0, 0, 0, 0.045), rgba(255, 255, 255, 0.06));
  --surface: light-dark(rgba(255, 255, 255, 0.72), rgba(5, 5, 5, 0.78));
  --container: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at center, transparent 0 2px, var(--bg) 2px 100%),
    linear-gradient(90deg, var(--pattern) 1px, transparent 1px),
    linear-gradient(180deg, var(--pattern) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 100%, 72px 72px, 72px 72px, auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 24%, var(--pattern) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 74% 18%, var(--pattern) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 54% 76%, var(--pattern) 0 1px, transparent 1px 100%);
  background-size: 38px 38px, 52px 52px, 46px 46px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.11em;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 500;
}

h1 {
  max-width: 1000px;
  margin-bottom: 0;
  font-size: clamp(2.82rem, 1.75rem + 5vw, 6.5rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.55rem, 1.92rem + 2.8vw, 4rem);
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 1.55rem + 0.7vw, 2rem);
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2rem);
  margin-inline: auto;
  padding-inline: clamp(0.875rem, 0.65rem + 1vw, 1rem);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  min-height: 100svh;
  border-bottom: 1px solid var(--line-strong);
}

.hero-inner {
  display: grid;
  align-content: space-between;
  min-height: 100svh;
  padding-block: clamp(2rem, 0.85rem + 5vw, 4rem) clamp(3.5rem, 2.65rem + 3.8vw, 5rem);
}

.hero-logo {
  display: block;
  width: clamp(13.5rem, 10.88rem + 11.65vw, 18rem);
  aspect-ratio: 296 / 147;
  height: auto;
  background: var(--ink);
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
  -webkit-mask: url("/assets/images/silin-software-logo.svg?v=20260710") left center / contain no-repeat;
  mask: url("/assets/images/silin-software-logo.svg?v=20260710") left center / contain no-repeat;
}

.hero-copy {
  max-width: 1000px;
}

.hero-copy h1 {
  margin-bottom: clamp(1rem, 0.72rem + 1.25vw, 1.5rem);
}

.hero-copy h1 em {
  font-style: italic;
  text-decoration-line: underline;
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.08em;
}

.hero-copy p {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.2rem);
  font-weight: 700;
  line-height: 1.4;
}

.hero-copy p a {
  color: var(--ink);
  text-decoration-thickness: 0.08em;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  font-weight: 800;
  text-transform: uppercase;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.03rem + 0.42vw, 1.45rem);
}

.section {
  padding-block: clamp(4rem, 2.85rem + 5vw, 6rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 1.42rem + 2.5vw, 3rem);
}

.product-list {
  border-top: 1px solid var(--line-strong);
}

.product-item {
  display: grid;
  grid-template-columns: minmax(13rem, 0.45fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 0.82rem + 1.9vw, 2rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.25rem, 0.96rem + 1.25vw, 1.75rem);
}

.product-item:hover {
  border-bottom-color: var(--line-strong);
}

.product-visual {
  display: block;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
}

.product-visual:hover {
  border-color: var(--line-strong);
}

.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.product-visual:hover img {
  filter: grayscale(0);
}

.product-item-small .product-visual {
  border-style: dashed;
}

.product-copy {
  min-width: 0;
}

.product-item h3 a {
  text-decoration: none;
}

.product-item h3 a:hover {
  text-decoration: underline;
}

.product-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.22vw, 1.15rem);
}

.compact-section {
  padding-block: clamp(4rem, 3.42rem + 2.5vw, 5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.65fr);
  gap: 4rem;
  align-items: start;
}

.split > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.06rem + 0.28vw, 1.32rem);
}

.contact-email {
  margin-bottom: 0;
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.2rem + 1.55vw, 2.45rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 2rem;
  background: var(--bg);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  h1 {
    max-width: 760px;
  }

  .section-heading,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  h1 {
    max-width: 22rem;
  }

  h2 {
    max-width: 20rem;
  }

  .hero,
  .hero-inner {
    min-height: 100svh;
  }

  .section-heading {
    gap: 0.75rem;
  }

  .product-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.25rem;
  }

  .split {
    gap: 1.25rem;
  }

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

@media (max-width: 420px) {
  h1 {
    max-width: 19rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
