/* Yuan Technology — site styles */

:root {
  --fog: #111310;
  --paper: #191d18;
  --ink: #f4f0e8;
  --slate: #b9b7af;
  --rule: #353a34;
  --tide: #b6d6bc;
  --accent: #d8a67d;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 36rem;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  overflow-x: clip;
}

a { color: var(--tide); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 1.5rem; font-size: 0.975rem; }
.site-nav a { color: var(--slate); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero {
  padding-top: clamp(3rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 12vw, 9rem);
}
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0 0 1.75rem;
  max-width: 9ch;
  max-width: 11ch;
}
.hero p {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--slate);
  max-width: 30rem;
  margin: 0;
}

/* Sections */
.section {
  border-top: 1px solid var(--rule);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 3rem;
}
@media (min-width: 52rem) {
  .section { grid-template-columns: 14rem 1fr; }
}
.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.section .body { max-width: var(--measure); }
.section .body p { margin: 0 0 1rem; }
.section .body p:last-child { margin-bottom: 0; }

/* Product line */
.product {
  display: grid;
  gap: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.product-copy { padding: 1.5rem 1.5rem 0; }
.product .kicker { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; margin: 0 0 0.75rem; text-transform: uppercase; }
.product h3 { margin: 0 0 0.35rem; font-size: 1.125rem; font-weight: 700; }
.product .status { color: var(--slate); font-size: 0.95rem; margin: 0 0 0.75rem; }
.product p { margin: 0; }
.product-visual { margin: 0; }
.product-visual img { display: block; width: 100%; height: 20rem; object-fit: cover; object-position: 50% 45%; border-top: 1px solid var(--rule); }
.product-visual figcaption { color: var(--slate); font-size: 0.78rem; padding: 0.75rem 1.5rem 1.25rem; }
@media (min-width: 40rem) {
  .product { grid-template-columns: 1fr 0.85fr; align-items: stretch; }
  .product-copy { padding: 1.75rem; }
  .product-visual img { height: 100%; min-height: 23rem; border-top: 0; border-left: 1px solid var(--rule); }
}

/* Company facts */
.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.25rem 2rem; }
@media (min-width: 40rem) { .facts { grid-template-columns: 11rem 1fr; } }
.facts dt { color: var(--slate); font-size: 0.95rem; padding-top: 0.6rem; }
.facts dd { margin: 0; padding: 0.6rem 0 0.6rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) {
  .facts dt { border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; }
}

/* Legal / support pages */
.page { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 4rem; }
.page h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
.page .updated { color: var(--slate); margin: 0 0 3rem; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em; }
.prose p, .prose li { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  color: var(--slate);
  font-size: 0.95rem;
}
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--slate); }

@media (max-width: 40rem) {
  .site-nav { gap: 1rem; font-size: 0.9rem; }
  .site-nav a[href$="#products"] { display: none; }
}
