/* 0pen1 holding page. Colours, wordmark and knot follow the 0pen1 brand
   (.claude/skills/0pen1-studio/references/brand.md): light by default, dark
   when the visitor's system is dark. */

@font-face {
  font-family: Blanka;
  src: url('/assets/fonts/Blanka-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #17141c;
  --ink-2: #36313f;
  --accent: #7544bc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050408;
    --ink: #f1ebde;
    --ink-2: #c4bccf;
    --accent: #b68be9;
  }
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 120px);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  text-align: center;
}

.brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3.2vw, 36px);
  font-weight: 400;
}

/* The knot as a mask, so it takes the ink colour in either theme. The mask's
   knot fills about 85% of the image, so the box is sized by the knot. */
.knot {
  display: block;
  width: clamp(76px, 11vw, 132px);
  aspect-ratio: 1;
  background: var(--ink);
  -webkit-mask: url('/assets/knot-mask.png') center / contain no-repeat;
  mask: url('/assets/knot-mask.png') center / contain no-repeat;
}

/* The wordmark: Blanka with a drawn slash through the zero (Blanka's own zero
   has none, and without it the zero reads as a letter O). */
.wordmark {
  display: inline-block;
  font-family: Blanka, sans-serif;
  font-size: clamp(44px, 7.5vw, 92px);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark .z {
  position: relative;
  display: inline-block;
}

.wordmark .z::after {
  content: '';
  position: absolute;
  left: 0.232em;
  top: 0.6em;
  width: 0.065em;
  height: 0.76em;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(24deg);
}

.wordmark .one {
  color: var(--accent);
}

.line {
  margin: clamp(20px, 2.6vw, 32px) 0 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 0.94rem + 0.36vw, 1.3rem);
  line-height: 1.45;
  text-wrap: balance;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
