/* Design package — a document on the same plate. */

.doc {
  --gutter: clamp(24px, 6vw, 96px);
  --max: 1080px;

  padding: 0 var(--gutter) 96px;
}

.frame {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.frame i {
  position: absolute;
  width: 26px;
  height: 26px;
}

.frame i::before,
.frame i::after {
  content: '';
  position: absolute;
  background: var(--ink);
}

.frame i::before { width: 26px; height: 1px; }
.frame i::after { width: 1px; height: 26px; }

.frame i:nth-child(1) { top: 16px; left: 16px; }
.frame i:nth-child(2) { top: 16px; right: 16px; }
.frame i:nth-child(3) { bottom: 16px; left: 16px; }
.frame i:nth-child(4) { bottom: 16px; right: 16px; }
.frame i:nth-child(1)::before, .frame i:nth-child(1)::after { top: 0; left: 0; }
.frame i:nth-child(2)::before, .frame i:nth-child(2)::after { top: 0; right: 0; }
.frame i:nth-child(3)::before, .frame i:nth-child(3)::after { bottom: 0; left: 0; }
.frame i:nth-child(4)::before, .frame i:nth-child(4)::after { bottom: 0; right: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------------------------------------------------------------- head */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.bar a {
  color: var(--mute);
  transition: color 140ms ease;
}

.bar a:hover,
.bar a:focus-visible {
  color: var(--ink);
}

.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  display: grid;
  gap: 24px;
  max-width: 62ch;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

/* -------------------------------------------------------------- blocks */

section {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 32px;
  color: var(--ink);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.note {
  max-width: 62ch;
  line-height: 1.75;
}

.cap {
  color: var(--faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: var(--micro);
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------- asset */

.asset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 56px;
}

.asset + .asset {
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.asset__text {
  display: grid;
  gap: 14px;
  align-content: start;
}

.downloads {
  grid-column: 1 / -1;
  overflow-x: auto;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  min-height: 132px;
}

.tile--light { background: var(--paper); }
.tile--dark { background: var(--ink); }

.tile img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
}

.tile--mark img { max-width: 72px; }
.tile--byline img { max-width: 132px; }
.tile--profile img { max-width: 120px; outline: 1px solid var(--line); }
.tile--profile.tile--dark img { border-radius: 50%; outline: 0; }

/* ------------------------------------------------------------- tables */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--micro);
  letter-spacing: var(--track);
  text-transform: uppercase;
}

th,
td {
  padding: 9px 12px 9px 0;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--faint);
}

td a {
  color: var(--mute);
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

td a:hover,
td a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

td a + a {
  margin-left: 12px;
}

/* ------------------------------------------------------------- colour */

.stops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.swatch {
  background: var(--paper);
  padding: 0;
}

.swatch i {
  display: block;
  height: 72px;
}

.swatch dl {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 12px;
  font-size: var(--micro);
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.swatch dt {
  color: var(--ink);
}

.swatch dd {
  margin: 0;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.04em;
}

.ink-bg { background: #0a0a0a; }
.rule-bg { background: #c9c9c9; }
.paper-bg { background: #ffffff; box-shadow: inset 0 0 0 1px var(--line); }

/* the five signal stops of the front page */
.stops + .stops { margin-top: 24px; }
.signal-1 { background: #ff2383; }
.signal-2 { background: #360cfe; }
.signal-3 { background: #00efcb; }
.signal-4 { background: #1cb3ff; }
.signal-5 { background: #f7ce00; }

/* --------------------------------------------------------------- type */

.specimen {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.specimen p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specimen .w400 { font-weight: 400; font-size: 22px; }
.specimen .w500 { font-weight: 500; font-size: 22px; }
.specimen .label {
  font-size: var(--micro);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--mute);
}

/* -------------------------------------------------------------- badge */

.badge {
  display: grid;
  gap: 18px;
  padding-bottom: 48px;
}

.badge + .badge {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.badge__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.badge__previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 20px;
}

.preview--paper { background: var(--paper); color: var(--ink); }
.preview--ink { background: var(--ink); color: var(--paper); }
.preview--colour { background: #ff2383; color: #ffffff; }
.preview--photo {
  background: linear-gradient(120deg, #360cfe, #ff2383);
  color: #ffffff;
}

.preview a {
  color: inherit;
  display: inline-flex;
}

pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: #fafafa;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  tab-size: 2;
}

.copy {
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 14px;
  color: var(--mute);
  font: inherit;
  font-size: var(--micro);
  letter-spacing: var(--track);
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.copy:hover,
.copy:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

/* --------------------------------------------------------------- misc */

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.rules ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.rules li {
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}

.rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--rule);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* the privacy and cookie links, side by side in the middle of the foot */
.foot__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* language links in the top bar: plain links, the current one in ink */
.langs {
  display: flex;
  gap: 14px;
}

.langs a[aria-current] {
  color: var(--ink);
}

@media (max-width: 720px) {
  .asset,
  .tiles {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------- 02 motion · 03 system · 04 kit (Owner 25. 10. 2026) */

.forms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 32px 24px;
  margin: 32px 0;
}

.form, .el {
  display: grid;
  gap: 10px;
  align-content: start;
}

.form h3 .cap { margin-left: 6px; font-size: var(--micro); letter-spacing: var(--track); }

/* the loops carry a 1.2 × logo-height margin for the glow on every side;
   the negative margin takes it back out of the layout, the glow still shows */
.tile--anim { min-height: 96px; padding: 24px 12px; overflow: hidden; }
.tile--anim picture { display: block; }
.tile--anim img { width: auto; max-width: none; height: 61.2px; margin: -21.6px; } /* logo 18 px tall */

.dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: var(--micro);
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.dl span { color: var(--faint); }
.dl a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.dl span + a { margin-left: -4px; }

.system {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 20px;
  margin: 32px 0;
}

.tiles--el .tile { min-height: 96px; padding: 16px 12px; }
.tiles--el .tile img { width: 100%; max-width: 100%; max-height: 64px; object-fit: contain; }

.el__name { font-size: 13px; color: var(--ink); }
.el__name b { font-weight: 600; margin-right: 4px; }

.kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 32px 0 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.kit__pane { display: grid; gap: 16px; align-content: start; padding: 24px; min-width: 0; }
.kit__seg { padding: 9px 14px; border-left: 1.5px solid var(--ink); font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.kit__seg:first-child { border-left: 0; }
.kit__seg--on { background: var(--ink); color: var(--paper); }
.dl--kit { margin-bottom: 14px; }

.specimen .mono { font-family: 'Martian Mono', ui-monospace, monospace; font-variation-settings: 'wdth' 75; font-size: 18px; font-weight: 500; letter-spacing: .04em; }

@media (max-width: 720px) {
  .forms { grid-template-columns: 1fr; }
  .tiles--motion { grid-template-columns: 1fr 1fr; }
  .tile--anim img { height: 44.2px; margin: -15.6px; } /* logo 13 px tall */
  .system { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .tiles--el { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr; }
}

.kit__pane > .gx-seg { justify-self: start; }
