/* rocoregroup.com holding page. Colours are the issued tokens only
   (ROCORE-BRAND.pdf page 4): paper, graphite, iron. The page's one amber
   element is the logo's girder; nothing styled here is amber, in any state. */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F1F0EC;
  --graphite: #17191B;
  --iron: #3B3F43;
  /* The logo is shown at this width. Adam's issued file is 3964 x 984 with a
     transparent margin of 176 px left, 310 px right, 176 px top and 169 px
     bottom (source px; 6 u is 176 px). */
  --logo-w: min(100%, 640px);
}

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

html { background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--paper);
  color: var(--graphite);
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-variant-numeric: tabular-nums;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lockup {
  display: block;
  width: var(--logo-w);
  height: auto;
  aspect-ratio: 3964 / 984;
  /* The horizontal imbalance (310 - 176 = 134 px) is corrected by moving the
     image right by half of it, 67 of 3964 px, as a share of the image's own
     width so it holds at every size. The 7 px vertical imbalance (about
     1 css px at display size) is deliberately left as it is. */
  transform: translateX(calc(67 / 3964 * 100%));
}

/* 384 px: the longer label set on one line measures 340.5 px at 14 px
   (IBM Plex Mono 600, +0.16 em), plus 2 x 20 px padding and 2 x 1 px border
   is 382.5 px. Narrower than that, a label wraps and is balanced (.btn). */
.actions {
  width: min(100%, 384px);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--graphite);
  border-radius: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  /* A wrapped label splits into even lines, never one word left alone. */
  text-wrap: balance;
}

/* Primary: paper type on a graphite fill. Hover underlines the label;
   pressed adds an iron ring inside the edge. */
.btn-primary {
  background-color: var(--graphite);
  color: var(--paper);
}
.btn-primary:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-primary:active { box-shadow: inset 0 0 0 3px var(--iron); }

/* Secondary: graphite type on paper inside a 1 px graphite hairline.
   Hover doubles the hairline; pressed turns the type and hairline iron. */
.btn-secondary {
  background-color: var(--paper);
  color: var(--graphite);
}
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--graphite); }
.btn-secondary:active { color: var(--iron); border-color: var(--iron); box-shadow: inset 0 0 0 1px var(--iron); }

/* Keyboard focus: a graphite outline, never amber. */
.btn:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 3px;
}
