/*
 * The openings documents: the pages a reader opens with no script at all.
 *
 * The words are the module's; the values are the kit's tokens, linked beside this file
 * from the one token source (`core/web/kit/src/tokens.css`). Nothing here paints a
 * second brand: a colour, a space and a radius are read by name, never restated.
 *
 * The page is a document, not the application screen: one column, one scroll, a real
 * heading order and links a reader can follow. It must stay readable at 320 px and at
 * 200 % text scaling, which is why every size below is in `rem` or a token.
 */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pehrom-colour-surface-base);
  color: var(--pehrom-colour-text-primary);
  font-family: var(--pehrom-font-body);
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: var(--pehrom-colour-accent-base);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--pehrom-colour-line-strong);
  outline-offset: 2px;
}

.document {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--pehrom-space-loose) var(--pehrom-space-roomy);
  box-sizing: border-box;
  flex: 1;
}

.document__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pehrom-space-snug);
  padding-bottom: var(--pehrom-space-roomy);
  border-bottom: 1px solid var(--pehrom-colour-line-subtle);
}

.document__brand {
  font-family: var(--pehrom-font-display);
  font-size: 1.125rem;
  margin: 0;
}

.document__tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pehrom-space-roomy);
  font-size: 0.9375rem;
}

.document h1 {
  font-family: var(--pehrom-font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: var(--pehrom-space-spacious) 0 var(--pehrom-space-base);
}

.document__intro {
  color: var(--pehrom-colour-text-secondary);
  margin: 0 0 var(--pehrom-space-spacious);
  max-width: 40rem;
}

.jobs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--pehrom-space-roomy);
}

.job {
  border: 1px solid var(--pehrom-colour-line-subtle);
  border-radius: var(--pehrom-radius-panel);
  padding: var(--pehrom-space-roomy);
  background: var(--pehrom-colour-surface-raised);
}

.job h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 var(--pehrom-space-snug);
}

.job__facts,
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--pehrom-space-tight) var(--pehrom-space-roomy);
  margin: var(--pehrom-space-roomy) 0;
}

.job__facts dt,
.facts dt {
  color: var(--pehrom-colour-text-secondary);
  font-weight: 600;
}

.job__facts dd,
.facts dd {
  margin: 0;
}

.section {
  margin: var(--pehrom-space-spacious) 0;
}

.section h2 {
  font-size: 1.125rem;
  margin: 0 0 var(--pehrom-space-snug);
}

.section p {
  margin: 0 0 var(--pehrom-space-base);
}

.note {
  color: var(--pehrom-colour-text-muted);
  margin: var(--pehrom-space-spacious) 0 0;
}

.action {
  display: inline-block;
  margin: var(--pehrom-space-roomy) var(--pehrom-space-roomy) 0 0;
  padding: 0.75rem 1.25rem;
  min-height: var(--pehrom-shell-target-minimum);
  box-sizing: border-box;
  border-radius: var(--pehrom-radius-control);
  background: var(--pehrom-colour-accent-base);
  color: var(--pehrom-colour-text-onAccent);
  font-weight: 600;
  text-decoration: none;
}

.foot {
  border-top: 1px solid var(--pehrom-colour-line-subtle);
  padding-top: var(--pehrom-space-roomy);
  margin-top: var(--pehrom-space-spacious);
  color: var(--pehrom-colour-text-muted);
  font-size: 0.9375rem;
}
