/* emdur.com layout and components. Colours and fonts come from tokens.css only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter Variable", var(--emdur-font-ui);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: var(--emdur-radius-sm);
}
.skip:focus { top: 1rem; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--hairline); }
/* Same bar as console.emdur.com: full width, 1rem x 1.5rem padding. Wordmark 26px tall = 96px wide, the brand minimum. */
.masthead-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; padding: 1rem 1.5rem;
}
@media (max-width: 40rem) { .masthead-row { padding-inline: 1rem; } }
.brand { display: inline-block; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: 0.35rem 0;
  color: var(--text-secondary); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: var(--text-primary); }
.nav a[aria-current="page"] {
  color: var(--text-primary);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---------- type ---------- */
main { padding-block: 3rem 5rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 650; max-width: 20ch; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 620; }
h3 { font-size: 1.125rem; font-weight: 620; }
p, ul, ol, dl { margin: 0; }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--text-secondary); max-width: 40em; }
.prose { max-width: 42em; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.muted { color: var(--text-secondary); }

.page-head { padding-bottom: 2.25rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--hairline); }
.page-head h1 + p { margin-top: 1rem; }

/* ---------- home ---------- */
.hero { padding-block: clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero-mark { width: min(100%, 46rem); }
.hero-mark img { width: 100%; }
.hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.75rem); font-weight: 680; letter-spacing: -0.025em; }
.hero-mark + h1 { margin-top: clamp(1.75rem, 4vw, 3rem); }
.hero .lede { margin-top: 1.25rem; }

.section { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--hairline); scroll-margin-top: 1rem; }

/* three capabilities side by side; two-by-two principles */
.trio, .pairs { display: grid; gap: 2rem 2.5rem; }
@media (min-width: 52rem) {
  .trio { grid-template-columns: repeat(3, 1fr); }
  .pairs { grid-template-columns: repeat(2, 1fr); }
}
.trio p, .pairs p { margin-top: 0.5rem; color: var(--text-secondary); }
.intro { margin-bottom: 2rem; }
.section-grid { display: grid; gap: 1.25rem 3rem; }
@media (min-width: 52rem) {
  .section-grid { grid-template-columns: 14rem 1fr; }
}
.section-grid > h2 { font-size: 1.25rem; }

/* ---------- entities (company facts) ---------- */
.entities { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 52rem) { .entities { grid-template-columns: 1fr 1fr; } }
.entity h3 { font-size: 1.25rem; }
.entity > p { margin-top: 0.6rem; color: var(--text-secondary); }
.facts { margin-top: 1.25rem; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.55rem 1.25rem; }
.facts dt { color: var(--text-secondary); }
.facts dd { margin: 0; }
.section-grid > .facts { margin-top: 0; }

/* ---------- products ---------- */
.products { list-style: none; padding: 0; margin: 0; }
.product { padding-block: 1.75rem; border-bottom: 1px solid var(--hairline); display: grid; gap: 0.6rem 2rem; }
.product:first-child { padding-top: 0; }
@media (min-width: 52rem) {
  .product { grid-template-columns: 10rem 1fr; }
  .product .status { grid-column: 1; }
  .product > div { grid-column: 2; grid-row: 1 / span 2; }
}
.product h3 { font-size: 1.2rem; }
.product p { color: var(--text-secondary); max-width: 40em; }
.product div > * + * { margin-top: 0.5rem; }

.status {
  justify-self: start; align-self: start;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.875rem; font-weight: 600; line-height: 1;
  padding: 0.4rem 0.7rem; border-radius: var(--emdur-radius-pill);
  border: 1px solid var(--hairline);
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status.live { color: var(--positive); }
.status.dev { color: var(--text-primary); }
.status.dev::before { background: var(--warning); }

/* ---------- button: the console's primary button ---------- */
.btn {
  display: inline-block;
  background: var(--btn-primary-bg); color: var(--btn-primary-text);
  padding: 0.5rem 1rem; border-radius: 0.375rem;
  font-weight: 500; text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 1.75rem; }

/* ---------- contact block ---------- */
.contact-line { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 600; }
.contact-line a { text-decoration-thickness: 2px; }

.note {
  border-left: 3px solid var(--warning);
  background: var(--surface);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--emdur-radius-sm) var(--emdur-radius-sm) 0;
}

/* ---------- colophon ---------- */
.colophon { border-top: 1px solid var(--hairline); background: var(--surface); }
.colophon-grid {
  display: grid; gap: 1rem 2rem; padding-block: 2rem 2.5rem;
  color: var(--text-secondary); font-size: 0.9375rem;
}
@media (min-width: 52rem) { .colophon-grid { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
.colophon-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.colophon a { color: var(--text-secondary); }
.colophon a:hover { color: var(--text-primary); }

@media (prefers-reduced-motion: no-preference) {
  .nav a, .colophon a { transition: color 0.15s ease; }
}
