/* Obzio one-page site, adapted from the 12-16 Oct holding page (Obzio-Control site/holding). Colours and type settings are World v3's identity tokens
   (world-recovery/v3/site/src/ui/css/tokens.css on cursor/world-v3-7053). Amber is a
   light only: never a fill behind text. */

@font-face {
  font-family: "Obzio Sans";
  src: url("fonts/obzio-sans.woff2") format("woff2");
  font-weight: 360 640;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --graphite: #17181b;
  --porcelain: #ece8e2;
  --porcelain-soft: #c9c4bc;
  --porcelain-lit: #f6f4f0;
  --rule: rgb(236 232 226 / 0.22);
  --rule-strong: rgb(236 232 226 / 0.55);
  --amber: #ffa62b;

  --system: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font: "Obzio Sans", var(--system);

      --display: clamp(2.25rem, 1.2rem + 5.33vw, 3.25rem);
  --lede: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --small: 0.9375rem;

  --margin: clamp(20px, 5vw, 72px);
  --cols: minmax(0, 1fr);
  --col-gap: 0px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  background: var(--graphite);
  color: var(--porcelain);
  font-family: var(--font);
  font-kerning: normal;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgb(236 232 226 / 0.12);
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  padding-left: max(var(--margin), env(safe-area-inset-left));
  padding-right: max(var(--margin), env(safe-area-inset-right));
  font-size: 1.0625rem;
  line-height: 1.55;
  touch-action: manipulation;
}

body > * {
  width: 100%;
  max-width: 82rem;
  justify-self: center;
}

::selection {
  background: var(--porcelain);
  color: var(--graphite);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--porcelain-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  inset-inline-start: max(12px, env(safe-area-inset-left));
  z-index: 1;
  width: auto;
  padding: 10px 14px;
  border-radius: 2px;
  background: var(--porcelain);
  color: var(--graphite);
  font-size: var(--small);
  font-weight: 500;
  text-decoration: none;
}

.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus-visible {
  outline-color: var(--graphite);
  outline-offset: -4px;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lockup {
  display: block;
  width: auto;
  height: clamp(26px, 22px + 0.6vw, 32px);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--porcelain);
  font-size: var(--small);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.nav a:hover {
  border-color: var(--rule-strong);
  background: rgb(236 232 226 / 0.06);
}

.main {
  display: grid;
  row-gap: 36px;
  align-content: start;
  padding-block: clamp(56px, 12vh, 112px) 48px;
}

h1 {
  margin: 0;
  font-size: var(--display);
  font-stretch: 116%;
  font-weight: 480;
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: balance;
}

/* Each half stays whole where it fits, so the headline breaks between what Obzio does and whom it serves. */
h1 > span {
  display: inline-block;
}

.cols {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: var(--col-gap);
  row-gap: 32px;
}

.block {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 34em;
  text-wrap: pretty;
}

h2 {
  margin: 0;
  color: var(--porcelain-soft);
  font-size: var(--small);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* The lit tick: the amber bar of the Coupling symbol's lit state, used once, beside the contact heading. */
.contact h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}

.contact h2::before {
  content: "";
  flex: none;
  width: 1.15em;
  height: 0.19em;
  background: var(--amber);
  transform: translateY(-0.3em);
}

.block p {
  font-size: var(--lede);
  line-height: 1.45;
}

/* One quiet line saying what kind of software this is. */
.block .soft {
  color: var(--porcelain-soft);
  font-size: 1.0625rem;
  line-height: 1.55;
}

:is(.block, .foot) a {
  padding-block: 6px;
  color: var(--porcelain-lit);
  text-decoration-line: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  overflow-wrap: anywhere;
}

:is(.block, .foot) a:hover {
  text-decoration-color: currentcolor;
  text-decoration-thickness: 2px;
}

.foot {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: var(--col-gap);
  row-gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--porcelain-soft);
  font-size: var(--small);
  line-height: 1.55;
}

.foot section {
  display: grid;
  gap: 4px;
  align-content: start;
  max-width: 38em;
}

.foot h2 {
  color: var(--porcelain);
}

address {
  font-style: normal;
}

@media (min-width: 60em) {
  :root {
    --display: min(4.8vw, 4.375rem);
    --cols: repeat(3, minmax(0, 1fr));
    --col-gap: clamp(32px, 4vw, 72px);
  }

  .main {
    align-content: center;
    row-gap: 56px;
    padding-block: 64px 96px;
  }

  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav a {
    transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
  }

  :is(.block, .foot) a {
    transition: text-decoration-color 180ms var(--ease);
  }
}
