/*
 * 617 Interactive: white and black, with gold as an accent only (the brand's
 * one-colour black logo, brand/README.md). Streamroid keeps its own black and
 * gold look, so its card is the one dark panel on the page.
 * Fonts are self-hosted, SIL OFL (assets/fonts/LICENSE-*.txt).
 */

@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(fonts/sora-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 100 700;
  src: url(fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  /* Page: white and a faintly warm off-white, black text. */
  --paper: #ffffff;
  --paper-2: #f7f6f3;
  --ink: #140e03;
  --text: #2a2722;
  --muted: #6b665d;
  --line: #e7e4dd;
  --line-strong: #140e03;
  /* Gold, used sparingly. --gold-text is dark enough for small text on white. */
  --gold-2: #f7dc94;
  --gold-5: #e4b241;
  --gold-text: #8a6114;
  /* Streamroid's own dark panel. */
  --sr-bg: #0f0f12;
  --sr-text: #e6e3dc;
  --sr-ivory: #fff3d6;
  --sr-muted: #9a968e;
  --sr-line: rgba(255,255,255,.08);
  --sr-line-gold: rgba(228,178,65,.35);
  --metal-btn: linear-gradient(180deg, #f7dc94 0%, #e4b241 42%, #b5841f 100%);

  --f-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 72rem;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-5); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); text-wrap: balance; margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 500 .75rem/1.4 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.label::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--gold-5); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--paper); padding: 8px 12px; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.site-header .logo img { height: 30px; width: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold-5); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Hero: white, with the Boston skyline in pale gold on a gold ground line. */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 40%, var(--paper-2));
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 168px 200px; display: grid; justify-items: start; }
.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 13ch;
  margin-block: 22px 26px;
}
/* A gold highlighter stroke under the last words. */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 68%, var(--gold-2) 68%, var(--gold-2) 92%, transparent 92%);
  padding-inline: .04em;
}
.hero .lede { max-width: 36rem; font-size: 1.1875rem; margin: 0 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(1000px, 92vw);
  opacity: .32;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(228,178,65,0) 20%, var(--gold-5));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 6px;
  font: 600 .9375rem/1 var(--f-display);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: inset 0 -2px 0 var(--gold-5); }
.btn-ink:hover { box-shadow: inset 0 -2px 0 var(--gold-5), 0 10px 24px -12px rgba(20,14,3,.5); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Sections */
section { scroll-margin-top: 24px; }
.section { padding-block: 112px; border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 52px; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.section-head p { margin: 0; color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.product {
  min-width: 0;
  border-radius: 8px;
  padding: 40px;
  display: grid;
  align-content: start;
  gap: 22px;
}
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.product-brand .wordmark { height: 44px; width: auto; }
.product p { margin: 0; max-width: 36rem; }

/* Streamroid shows in its own black and gold. */
.product-streamroid { background: var(--sr-bg); color: var(--sr-text); border: 1px solid var(--sr-bg); }
.product-streamroid .chip {
  font: 500 .6875rem/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--sr-line-gold);
  color: var(--gold-2);
  background: rgba(228,178,65,.08);
}
.platforms { font: 500 .8125rem/1.4 var(--f-mono); color: var(--sr-muted); letter-spacing: .04em; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.features li { display: flex; gap: 10px; align-items: baseline; font-size: .9875rem; }
.features li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--gold-5); transform: translateY(-2px) rotate(45deg); }
.btn-gold { background: var(--metal-btn); color: var(--ink); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(228,178,65,.6); }

.product-next { background: var(--paper-2); border: 1px dashed #cfc9bd; align-content: center; }
.product-next h3 { font-size: 1.375rem; font-weight: 600; }
.product-next p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.about-mark { max-width: 320px; }
.about-text { display: grid; gap: 18px; }
.about-text p { margin: 0; max-width: 38rem; }
.founder { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.founder strong { font-family: var(--f-display); color: var(--ink); font-weight: 600; font-size: 1.125rem; }
.founder span { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 8px 0 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card { min-width: 0; padding: 32px 0; border-top: 2px solid var(--ink); display: grid; gap: 8px; }
.contact-card h3 { font-size: 1.125rem; font-weight: 600; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a {
  font: 500 clamp(1.05rem, .9rem + .7vw, 1.375rem)/1.4 var(--f-display);
  text-decoration: underline;
  text-decoration-color: var(--gold-5);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.contact-card a:hover { text-decoration-color: var(--ink); }

/* Footer */
.site-footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .legal { display: flex; align-items: center; gap: 12px; }
.site-footer .legal img { width: 36px; height: auto; }
.site-footer .coords { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; }

/* 404 */
.notfound .wrap { padding-block: 168px 120px; gap: 20px; }
.notfound h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.5rem); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.notfound p { margin: 0; max-width: 32rem; }

@media (max-width: 860px) {
  .products, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .about { gap: 36px; }
  .about-mark { max-width: 200px; }
  .hero .wrap { padding-block: 128px 160px; }
  .section { padding-block: 80px; }
}
@media (max-width: 560px) {
  .site-nav { gap: 18px; }
  .site-nav a.hide-sm { display: none; }
  .site-header .logo img { height: 24px; }
  .product { padding: 28px 22px; }
  .features { grid-template-columns: minmax(0, 1fr); }
}
