:root {
  --bg: #0a0a0a;
  --fg: #ece9e4;
  --muted: rgba(236, 233, 228, 0.62);
  --dim: rgba(236, 233, 228, 0.34);
  --line: rgba(236, 233, 228, 0.14);

  --s-1: 1.25rem;
  --s-2: 2.5rem;
  --s-3: 5rem;
  --s-4: 7.5rem;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Avenir', 'Avenir Next', 'Nunito Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* MASTHEAD ----------------------------------------------------------- */
/* Border lives on the inner row so it aligns with the content inset,
   matching the app-list and footer hairline widths. Jost is used here
   so the "S6" monogram renders with the same geometric straight-edge
   "6" as the wordmark SVG, on every platform. */
.masthead-row {
  font-family: 'Jost', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  padding-top: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}
.masthead-row .mono { color: var(--muted); }

main { flex: 1; }

/* HERO --------------------------------------------------------------- */
.hero {
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
}

.hero-mark { display: block; line-height: 0; }
.hero-mark img { width: 100%; height: auto; display: block; }

.tagline {
  margin-top: var(--s-1);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  max-width: 44ch;
}

/* SECTIONS ----------------------------------------------------------- */
section.shipping,
section.contact { padding-bottom: var(--s-4); }

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--s-2);
}

/* APPS --------------------------------------------------------------- */
ul.apps { list-style: none; }

ul.apps > li {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2.5rem;
  align-items: baseline;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--line);
}
ul.apps > li:last-child { border-bottom: 1px solid var(--line); }

ul.apps h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

ul.apps .desc {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0.65rem;
  max-width: 52ch;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.sep {
  display: inline-block;
  margin: 0 0.7em;
  color: var(--dim);
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
a:focus-visible {
  outline: 1px dashed var(--fg);
  outline-offset: 4px;
  border-radius: 1px;
}

ul.apps a {
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
ul.apps a:hover { color: var(--fg); border-bottom-color: var(--fg); }

.arr { display: inline-block; transition: transform 200ms ease; }
ul.apps a:hover .arr { transform: translate(2px, -2px); }

/* CONTACT ------------------------------------------------------------ */
/* Jost here too — "s6industries" contains the brand "6", so the email
   reads as part of the brand mark, not body copy. */
.contact .email {
  font-family: 'Jost', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--dim);
  padding-bottom: 4px;
}
.contact .email:hover { border-bottom-color: var(--fg); }

/* FOOTER ------------------------------------------------------------- */
/* Jost here too so the "S6 Industries" line renders with the
   brand-correct geometric "6" cross-platform. */
.footer-row {
  font-family: 'Jost', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

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

@media (max-width: 720px) {
  .container { padding: 0 1.25rem; }

  .masthead-row { font-size: 0.625rem; }

  .hero { padding-top: var(--s-3); padding-bottom: var(--s-3); }

  ul.apps > li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: var(--s-2) 0;
  }

  section.shipping,
  section.contact { padding-bottom: var(--s-3); }

  .footer-row { font-size: 0.625rem; flex-direction: row; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  a, .arr { transition: none; }
}
