/* Omarchy Design type page: a specimen sheet on the same surface as the homepage. */
@import "tokens.css";
@import "base.css";

:root {
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1100px;
  --pad: 24px;
  --gap: 56px;
  /* distance from the viewport's left edge to the content column; full-width rules subtract it */
  --page-left: calc((100vw - min(var(--max), 100vw)) / 2 + var(--pad));
}

html,
body {
  height: auto;
  min-height: 100%;
}
body {
  background: var(--brand-surface);
  color: #fff;
  position: relative;
  overflow-x: hidden;
}
/* guide lines as on the homepage: a vertical one just left of the content column, full page height */
body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #2a2e30;
  z-index: 0;
  left: calc(var(--page-left) - 16px);
}
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: var(--grain);
  z-index: 0;
}
.head,
.page {
  position: relative;
  z-index: 1;
}

.head {
  display: flex;
  align-items: center;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px var(--pad) 0;
}
.head .home {
  display: block;
  line-height: 0;
}
.mark {
  display: block;
  height: 24px;
  width: auto;
}

.page {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--pad) clamp(48px, 10vh, 120px);
}

/* headings in Geist, everything else in JetBrains Mono: the page demonstrates the rule */
.lede {
  color: var(--ink2);
  font-size: 13px;
  margin: 0;
  line-height: 1.7;
}

.specimens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  position: relative;
  margin-top: 20px;
  padding-top: 32px;
}
/* section rule runs across the whole page */
.specimens::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-1 * var(--page-left));
  width: 100vw;
  height: 1px;
  background: #2a2e30;
}
.specimen {
  min-width: 0;
}
.specimen .meta {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.specimen .name {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.specimen .glyph {
  font-size: clamp(120px, 18vw, 220px);
  line-height: 1;
  margin: 18px 0 0;
  letter-spacing: -0.03em;
  color: var(--neutral-200);
}
.specimen .alphabet {
  position: relative;
  display: grid;
  gap: 6px;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  margin: 28px 0 0;
  padding-top: 24px;
}
.specimen .alphabet span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.specimen .alphabet::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-1 * var(--col-left));
  width: 100vw;
  height: 1px;
  background: #2a2e30;
}
.sans {
  --col-left: var(--page-left);
}
.mono {
  --col-left: calc(
    var(--page-left) + (min(var(--max), 100vw) - 2 * var(--pad) - var(--gap)) / 2 + var(--gap)
  );
}
.specimen .weights {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.specimen .use {
  color: var(--dim);
  font-size: 12px;
  margin: 28px 0 0;
}
.specimen .links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  font-size: 12px;
  margin: 14px 0 0;
  color: var(--dim2);
}
.specimen .links a {
  color: var(--ink2);
  text-decoration: none;
  border-bottom: 1px solid var(--neutral-700);
  padding-bottom: 1px;
}
.specimen .links a:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.specimen .links .lic {
  margin-left: auto;
}

.sans .name,
.sans .glyph,
.sans .alphabet,
.sans .weights {
  font-family: var(--sans);
}
.mono .name,
.mono .glyph,
.mono .alphabet,
.mono .weights {
  font-family: var(--mono);
}
.w300 {
  font-weight: 300;
}
.w400 {
  font-weight: 400;
}
.w500 {
  font-weight: 500;
}
.w700 {
  font-weight: 700;
}

/* the pair in use: Geist headline beside JetBrains Mono copy */
.pairing {
  position: relative;
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: 32px;
}
.pairing::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-1 * var(--page-left));
  width: 100vw;
  height: 1px;
  background: #2a2e30;
}
.pairing .meta {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
  margin-top: 28px;
}
.pair .headline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.pair .body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
  max-width: 58ch;
}

@media (max-width: 900px) {
  .pair {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .specimens {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .mono {
    --col-left: var(--page-left);
  }
}
