/* Sqwark Industries LLC — company profile page.
   Static CSS, no build step. See DESIGN.md for the rules this implements. */

/* ---------- fonts (self-hosted, latin subset, from Google Fonts) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;              /* variable */
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Mochiy Pop One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/mochiy-pop-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  --teal:      #00C8BC;   /* brand accent: rules, card accent, focus ring */
  --teal-ink:  #0B7C74;   /* the same accent, darkened to pass AA as text / button bg */
  --teal-deep: #0A6F68;   /* button hover */
  --amber:     #FFAE00;   /* project-card accent only */
  --lime:      #7AF400;   /* project-card accent only */
  --blue:      #1A5799;   /* project-card accent only */
  --red:       #FF0000;   /* one 6px decorative dot, nothing else */

  --ink:       #0F172A;
  --ink-soft:  #475569;
  --bg:        #FFFFFF;
  --bg-alt:    #F8FAFC;
  --line:      #E2E8F0;

  --wrap:      1120px;
  --pad:       clamp(1.25rem, 5vw, 2.5rem);
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display:   'Mochiy Pop One', 'Inter', system-ui, sans-serif;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* paints the canvas, so any area past the end of <body> (short pages,
     overscroll) reads as an extension of the footer rather than bare white */
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ---------- header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}

.brand { display: inline-flex; }
.brand img { display: block; height: 40px; width: auto; }

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--teal-ink);
  border-bottom-color: var(--teal);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy { max-width: 40rem; }

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.125rem, 4.2vw, 3.25rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.dot {
  display: inline-block;
  width: 0.16em;          /* ~6-8px across the H1's clamp range */
  height: 0.16em;
  margin-left: 0.2em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: baseline;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero-cta { margin: 2.25rem 0 0; }

.button {
  display: inline-block;
  background: var(--teal-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8125rem 1.5rem;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.button:hover { background: var(--teal-deep); color: #fff; }

.hero-art { flex: 0 0 auto; }

.hero-art img {
  display: block;
  width: clamp(180px, 22vw, 280px);
  height: auto;
}

/* ---------- sections ---------- */

section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

.band { background: var(--bg-alt); }
.band + .band { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.section-intro {
  margin: 0.75rem 0 0;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* ---------- what we do ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.col h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.col h3::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 0.875rem;
  background: var(--teal);
  border-radius: 2px;
}

.col p {
  margin: 0.625rem 0 0;
  color: var(--ink-soft);
}

/* ---------- projects ---------- */

.cards {
  list-style: none;
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.5rem, 2.5vw, 1.875rem);
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0.625rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.card--amber { border-top-color: var(--amber); }
.card--teal  { border-top-color: var(--teal); }
.card--blue  { border-top-color: var(--blue); }
.card--lime  { border-top-color: var(--lime); }

/* ---------- company ---------- */

.company-block {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  max-width: 42rem;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--teal);
}

.company-block p { margin: 0; }
.company-block p + p { margin-top: 1.125rem; }

.contact { color: var(--ink-soft); }
.contact a { font-weight: 600; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #CBD5E1;
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-mark { display: block; width: 32px; height: 32px; }

.site-footer p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .hero-art img { width: 176px; }
  .cols { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .site-nav { display: none; }
  .header-inner { min-height: 68px; }
  .brand img { height: 34px; }
  .cards { grid-template-columns: 1fr; }
  .hero-art { align-self: center; }
}

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
