/* 1. LOCAL FONT
   The font is downloaded with the page, rather than requested from Google.
   This variable font supports weights from 300 to 700. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* 2. DESIGN SETTINGS
   Change these values to restyle the whole page. rem follows the reader's
   browser font size: 1rem is usually 16px. */
:root {
  color-scheme: dark;
  --page: #131718;
  --surface: #1b2021;
  --surface-hover: #202829;
  --text: #eff1ec;
  --muted: #adb7b4;
  --accent: #92c9b9;
  --line: #35403e;
  --sample: #e5c68e;
  --font: "Space Grotesk", sans-serif;
  --content-width: 72rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-space: 4rem;
}

/* 3. SHARED ELEMENTS */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.02em; }
svg { display: block; }
::selection { background: var(--accent); color: var(--page); }
.page-shell { max-width: calc(var(--content-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .75rem 1rem; background: var(--text); color: var(--page); z-index: 2; }
.skip-link:focus { top: 1rem; }

/* 4. HEADER AND WORDMARK */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.site-label, .site-header nav { font-size: .875rem; }
.site-label { color: var(--muted); }
.site-header nav { display: flex; gap: 1.75rem; }
.introduction { padding-block: 3rem 3.8rem; }
.wordmark { width: fit-content; max-width: 100%; font-family: var(--font); font-weight: 600; font-size: clamp(2.4rem, 9vw, 8rem); line-height: 1.2; letter-spacing: -.075em; }
.wordmark:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 2px; }
.wordmark-visual { display: flex; align-items: center; white-space: nowrap; }
.wordmark-dot { color: var(--accent); }

/* The prefix slot opens smoothly, then all names use the same space.
   Each name appears for two seconds in a ten-second loop; the remaining
   two seconds show just .reqlabs. Leaving hover/focus resets the cycle.
   Only CSS is used, and this decoration does not change any service links. */
.wordmark-prefix { position: relative; display: inline-block; width: 0; height: 1.2em; overflow: hidden; color: var(--accent); transition: width .5s ease; }
.wordmark-prefix > span { position: absolute; right: 0; top: 0; opacity: 0; transform: translateY(.2em); }
.wordmark:is(:hover, :focus-visible) .wordmark-prefix { width: 3.1em; }
.wordmark:is(:hover, :focus-visible) .wordmark-prefix > span { animation: prefix-cycle 10s ease infinite; }
/* Use a variable for each delay: the animation shorthand would otherwise
   override a less-specific animation-delay rule and start every name at once. */
.wordmark-prefix .prefix-play { --prefix-delay: 1.5s; }
.wordmark-prefix .prefix-media { --prefix-delay: 3.5s; }
.wordmark-prefix .prefix-mail { --prefix-delay: 5.5s; }
.wordmark-prefix .prefix-boards { --prefix-delay: 7.5s; }
.wordmark:is(:hover, :focus-visible) .wordmark-prefix > span { animation-delay: var(--prefix-delay); }
@keyframes prefix-cycle {
  0% { opacity: 0; transform: translateY(.2em); }
  4%, 16% { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(-.2em); }
}
.introduction-bottom { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-top: 1.9rem; }
.intro-copy { font-size: clamp(1.25rem, 2.15vw, 1.65rem); line-height: 1.45; letter-spacing: -.03em; }
.intro-note { font-size: .875rem; color: var(--muted); line-height: 1.7; text-align: right; }

/* 5. SERVICE LINKS
   Grid divides the available width into three equal columns.
   minmax(0, 1fr) allows each column to shrink without overflowing. */
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-note { font-size: .875rem; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 1.6rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); transition: background .18s ease, border-color .18s ease; }
.service-card:hover { color: var(--text); background: var(--surface-hover); border-color: var(--accent); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.8rem; }
.service-icon { width: 1.75rem; height: 1.75rem; color: var(--accent); stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card-category { font-size: .875rem; color: var(--muted); }
.service-card h3 { font-size: 1.65rem; font-weight: 500; letter-spacing: -.04em; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; }
.card-action { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: auto; font-size: .875rem; font-weight: 500; }
.card-action span { color: var(--accent); font-size: 1.35rem; }
.system-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.75rem; row-gap: .75rem; padding-block: 1.2rem; font-size: .875rem; border-bottom: 1px solid var(--line); }
.system-label { color: var(--muted); margin-right: auto; }
.system-links a span { margin-left: .4rem; color: var(--muted); }

/* 6. EMBEDDED STATUS PAGE
   The iframe has its own HTML document. Its height is set here so the sample
   fits without nested scrolling at normal sizes; scrolling remains possible
   if the reader enlarges their text. */
.uptime-section { margin-top: var(--section-space); }
.sample-badge { color: var(--sample); background: #29271f; border: 1px solid #514936; border-radius: 2rem; padding: .3rem .7rem; font-size: .875rem; }
.status-frame { display: block; width: 100%; height: 23rem; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; }
.status-caption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .85rem; font-size: .875rem; }
.status-caption p { color: var(--muted); max-width: 35rem; }
.status-caption a { flex-shrink: 0; }

/* 7. FOOTER */
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1.25rem; border-top: 1px solid var(--line); margin-top: var(--section-space); padding-block: 1.8rem 2.2rem; font-size: .875rem; color: var(--muted); }
.footer-wordmark { font-size: 1.25rem; font-weight: 600; letter-spacing: -.06em; color: var(--text); }
.preview-label { margin-left: auto; }

/* 8. SAMPLE STATUS DOCUMENT
   These rules style sample-status.html inside the iframe. All readings there
   are illustrative. They are not calculated from your actual services. */
.status-document { background: var(--surface); }
.status-content { padding: 1.5rem 1.75rem; }
.status-summary { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.status-summary h1 { font-size: 1.05rem; font-weight: 500; }
.status-summary p { color: var(--muted); font-size: .875rem; }
.status-list { display: grid; gap: 1.1rem; }
.status-row-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; font-size: .875rem; }
.status-row-heading h2 { font-size: .875rem; font-weight: 400; }
.status-value { color: var(--accent); }
.sample-history { height: 1.1rem; border-radius: .15rem; background: repeating-linear-gradient(to right, #76a995 0, #76a995 calc(1.5% - 3px), transparent calc(1.5% - 3px), transparent 1.5%); }
.history-caption { display: flex; justify-content: space-between; color: var(--muted); font-size: .875rem; margin-top: .65rem; }

/* 9. RESPONSIVE LAYOUT
   Below 48rem, cards become one column. Flex items wrap instead of forcing
   horizontal scrolling. The same rules also help at browser zoom of 200%. */
@media (max-width: 48rem) {
  :root { --section-space: 3rem; }
  .site-label { max-width: 12rem; }
  .site-header nav { gap: 1rem; }
  .introduction { padding-block: 2.5rem 3rem; }
  .introduction-bottom { align-items: start; flex-direction: column; gap: 1rem; }
  .intro-note { text-align: left; }
  .intro-note br { display: none; }
  .section-heading { align-items: start; flex-wrap: wrap; gap: .6rem; }
  .section-note { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.5rem; }
  .card-top { margin-bottom: 1.25rem; }
  .service-card p { margin-bottom: 1.5rem; }
  .system-label { width: 100%; }
  .status-caption { flex-direction: column; }
  .status-content { padding: 1.25rem; }
  .status-frame { height: 24rem; }
  .preview-label { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card { transition: none; }
  .wordmark-prefix { transition: none; }
  .wordmark:is(:hover, :focus-visible) .wordmark-prefix { width: 0; }
  .wordmark:is(:hover, :focus-visible) .wordmark-prefix > span { animation: none; }
}
