/* Skeg Software — Midnight & Brass. Dark editorial studio site.
   Deliberately distinct from DepositDesk (light/sea-green/Inter). */

:root {
  --bg: #0a0f1e;
  --bg-raised: #121a30;
  --bg-inset: #0e1526;
  --line: rgba(234, 238, 247, 0.1);
  --line-strong: rgba(234, 238, 247, 0.16);
  --fg: #eaeef7;
  --fg-muted: #96a2bd;
  --brass: #cf9f52;
  --brass-bright: #e6b968;
  --steel: #64789c;
  --radius: 12px;
  --max: 68rem;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brass);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

/* waterline hairlines between sections */
section + section {
  border-top: 1px solid var(--line);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.headerInner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 26px;
  height: 26px;
  display: block;
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.nav a:hover {
  color: var(--fg);
}

.navToggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

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

.hero .inner {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
  position: relative;
}

/* faint keel contour lines */
.hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%2364789c' stroke-opacity='0.08'%3E%3Cpath d='M-50 480 C 300 400, 700 560, 1250 440'/%3E%3Cpath d='M-50 530 C 300 450, 700 610, 1250 490'/%3E%3Cpath d='M900 -40 C 900 160, 1000 280, 1250 340'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.heroKicker {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  max-width: 16em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brass);
}

.heroSub {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--fg-muted);
}

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

.sectionHead {
  margin-bottom: 3rem;
}

.sectionHead h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-top: 0.9rem;
}

.sectionHead p {
  margin-top: 0.9rem;
  max-width: 38rem;
  color: var(--fg-muted);
  font-size: 1.05rem;
}

/* products */

.productGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.productCard {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.15s ease;
}

.productCard:hover {
  border-color: var(--brass);
}

.productLabel {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.productCard h3 {
  font-size: 1.45rem;
  margin-top: 0.9rem;
}

.productCard p {
  margin-top: 0.8rem;
  color: var(--fg-muted);
  font-size: 0.98rem;
}

.productCard p strong {
  color: var(--fg);
}

.productLink {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brass);
}

.productCard:hover .productLink {
  color: var(--brass-bright);
}

.productSoon {
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  align-content: center;
}

.productSoon h3 {
  font-size: 1.15rem;
  color: var(--fg-muted);
}

.productSoon p {
  margin-top: 0.7rem;
  color: var(--steel);
  font-size: 0.95rem;
}

/* studio */

.studio {
  background: var(--bg-inset);
}

.studioLede {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 30em;
  margin-top: 0.9rem;
}

.studioLede em {
  font-style: normal;
  color: var(--brass);
}

.studioBody {
  margin-top: 1.5rem;
  max-width: 42rem;
  color: var(--fg-muted);
  font-size: 1.05rem;
}

.principles {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
}

.principles li {
  border-top: 2px solid var(--brass);
  padding-top: 1.25rem;
}

.principles h3 {
  font-size: 1.05rem;
}

.principles p {
  margin-top: 0.6rem;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* contact */

.contact .inner {
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-top: 0.9rem;
}

.contact p {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--fg-muted);
}

.contactBtn {
  display: inline-block;
  margin-top: 2.25rem;
  background: var(--brass);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: 10px;
}

.contactBtn:hover {
  background: var(--brass-bright);
}

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

.footer {
  border-top: 1px solid var(--line);
}

.footerInner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footerBrand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
}

.footerBrand img {
  width: 22px;
  height: 22px;
}

.footerNav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.footerNav a:hover {
  color: var(--fg);
}

.footerLegal {
  width: 100%;
  font-size: 0.84rem;
  color: var(--steel);
}

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

@media (max-width: 60rem) {
  .productGrid,
  .principles {
    grid-template-columns: 1fr;
  }

  .inner {
    padding: 4.5rem 1.5rem;
  }

  .hero .inner {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 47.5rem) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.5rem 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1.5rem;
  }

  .navToggle {
    display: block;
  }

  .headerInner {
    position: relative;
  }
}
