/* ABOUTME: Styles for all pages of disequi.com: fonts, colors, layout, pages.
   ABOUTME: The home page, document pages and company page share this file. */
@font-face {
  font-family: "Jersey 25";
  src: url("/assets/fonts/jersey-25-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Chivo;
  src: url("/assets/fonts/chivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Chivo;
  src: url("/assets/fonts/chivo-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("/assets/fonts/azeret-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: oklch(15% 0 0);
  --ink: oklch(96% 0 0);
  --muted: oklch(72% 0 0);
  --line: oklch(30% 0 0);
  --flame: oklch(66% 0.229 35);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0 auto;
  width: min(1120px, calc(100% - 96px));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 Chivo,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
p,
h1 {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease-out;
}
a:hover {
  color: var(--flame);
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
.mono {
  font:
    11px/1.6 "Azeret Mono",
    monospace;
  color: var(--muted);
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Same height as the 44px back link, so that the wordmark does not move. */
  min-height: 44px;
  box-sizing: content-box;
  padding-block: 44px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
/* The mark is 16px high: the bottom row is on the baseline and the top row
   is at the x-height. Keep the size in whole pixels so that the gaps stay sharp. */
.wordmark-mark {
  display: block;
  flex: none;
  color: var(--flame);
}
.wordmark:hover {
  color: var(--ink);
}
/* On hover the bottom row moves one step left and the mark becomes "=". */
.wordmark-shift {
  transition: transform 0.18s ease-out;
}
.wordmark:hover .wordmark-shift,
.wordmark:focus-visible .wordmark-shift {
  transform: translateX(-7px);
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 72px 100px;
}
.statement {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
h1 {
  font-family: "Jersey 25", Chivo, sans-serif;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.mark {
  display: block;
  flex: none;
  width: 256px;
  height: auto;
  color: var(--flame);
}
.details {
  margin-top: 44px;
  max-width: 440px;
}
.details p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: 24px;
}
.links a {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.links .reading {
  color: var(--muted);
}
.links .reading:hover {
  color: var(--ink);
}
.links span {
  font-size: 18px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer .company-link span {
  margin-left: 20px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 2;
}
.skip-link:focus {
  transform: none;
}
::selection {
  background: var(--flame);
  color: var(--ink);
}
@media (max-width: 700px) {
  body {
    width: calc(100% - 48px);
  }
  .site-header {
    padding-block: 30px;
  }
  main {
    padding-block: 56px 72px;
  }
  .statement {
    gap: 20px;
  }
  h1 {
    font-size: clamp(56px, 11vw, 76px);
  }
  .details {
    margin-top: 36px;
    max-width: 380px;
  }
  .details p {
    font-size: 16px;
  }
  .site-footer .company-link span {
    display: block;
    margin: 0;
  }
}
@media (max-width: 420px) {
  .statement {
    align-items: flex-end;
    gap: 12px;
  }
  h1 {
    font-size: clamp(48px, 13vw, 56px);
  }
  .links {
    gap: 22px;
  }
  .links a {
    font-size: 12px;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (min-width: 701px) {
  .details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
    max-width: none;
    margin-top: 72px;
  }
  .details p {
    max-width: 400px;
  }
  .links {
    flex-shrink: 0;
    flex-direction: column;
    gap: 2px;
    margin-top: 0;
    min-width: 190px;
  }
  main {
    padding-block: 90px 110px;
  }
}

.site-footer .company-link {
  display: block;
  padding-block: 8px;
}
@media (min-width: 701px) {
  /* Use the same box as the legal links, so that the two text baselines align. */
  .site-footer .company-link {
    display: inline-flex;
    align-items: center;
    padding-block: 0;
  }
}
@media (max-width: 700px) {
  .statement {
    position: relative;
  }
  .statement h1 {
    font-size: clamp(40px, 8vw, 64px);
  }
  .statement {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .statement .mark {
    display: none;
  }
}

.external-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}

/* Company details */
.company-main {
  max-width: 960px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
}
.company-main {
  display: block;
  padding-block: 48px 32px;
}
.company-heading {
  margin-bottom: 40px;
}
.company-heading h1 {
  font-size: clamp(40px, 6vw, 64px);
}
.company-heading p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 14px;
}
.company-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  margin: 0;
}
.company-field {
  border-top: 1px solid var(--line);
  padding-block: 22px 26px;
  min-width: 0;
}
.company-field dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.company-field dd {
  margin: 0;
}
.vat-field {
  grid-column: 1 / -1;
  padding-block: 24px 32px;
}
.copy-value {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 0;
  margin: 0;
  min-height: 44px;
  font: inherit;
  font-size: 17px;
  text-align: left;
  color: var(--ink);
  cursor: copy;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: color 0.18s ease-out;
}
.copy-value:hover {
  color: var(--flame);
}
.copy-value:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 4px;
}
.vat-value {
  font-size: clamp(27px, 4.5vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.country-prefix {
  color: oklch(70% 0 0);
}
.account-value {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.copy-status {
  min-height: 48px;
  padding-top: 14px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .company-main {
    padding-top: 28px;
  }
  .company-heading {
    margin-bottom: 28px;
  }
  .company-details {
    grid-template-columns: 1fr;
  }
  .company-field {
    padding-block: 18px;
  }
  .company-page .site-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .copy-value {
    transition: none;
  }
}

.company-page .copy-status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  min-height: 0;
  width: max-content;
  max-width: calc(100% - 48px);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
}
.company-page .copy-status:empty {
  padding: 0;
}

.company-field dt {
  font-size: 14px;
}
.copy-value {
  font-size: 22px;
  line-height: 1.45;
}
.vat-value {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.2;
}
.account-value {
  font-size: 22px;
  letter-spacing: -0.02em;
}
@media (max-width: 360px) {
  .account-value {
    font-size: 20px;
  }
}

/* Large values for reading company details on a phone. */
.company-page .copy-value {
  font-size: 30px;
  line-height: 1.4;
  padding-block: 10px;
}
.company-page .vat-value {
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1.2;
}
.company-page .account-value {
  font-size: 30px;
  letter-spacing: 0;
}
.company-page .account-value span {
  display: inline-block;
  white-space: nowrap;
}
.company-page .company-field dt {
  font-size: 15px;
}

/* Shared document pages. The page width is the same as the home page, so that
   the header does not move. The text column aligns with the wordmark. */
.document-main {
  display: block;
  width: min(100%, 660px);
  padding-block: 52px 80px;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.document-main h1 {
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.12;
  margin: 0 0 52px;
}
.document-main h2,
.document-main h3,
.document-main h4 {
  font-family: Chivo, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
  color: var(--ink);
}
.document-main h2 {
  font-family: "Jersey 25", Chivo, sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 56px 0 18px;
}
.document-main h3 {
  font-size: 23px;
  margin: 32px 0 14px;
}
.document-main h4 {
  font-size: 20px;
  margin: 28px 0 12px;
}
.document-main p {
  margin: 0 0 18px;
  color: oklch(83% 0 0);
}
.document-main li {
  color: oklch(83% 0 0);
  margin-block: 8px;
}
.document-main ul,
.document-main ol {
  padding-left: 26px;
  margin-block: 18px 26px;
}
.document-main a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.document-main strong {
  font-weight: 600;
  color: var(--ink);
}
.document-main hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 40px;
}
.concept-figure {
  margin: 38px 0 46px;
}
.concept-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.concept-figure .diagram-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.concept-figure .diagram-muted {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0.48;
}
.concept-figure .diagram-fill {
  fill: var(--ink);
}
.concept-figure .diagram-accent {
  fill: var(--flame);
}
.concept-figure .diagram-accent-line {
  fill: none;
  stroke: var(--flame);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.concept-figure figcaption {
  margin-top: 12px;
  font: 11px/1.55 "Azeret Mono", monospace;
  letter-spacing: 0.035em;
  color: var(--muted);
}
.document-main blockquote {
  margin: 30px 0;
  padding: 24px;
  background: oklch(20% 0 0);
}
.document-main code {
  font-size: 0.85em;
}
.document-main pre {
  max-width: 100%;
  overflow: auto;
  padding: 20px;
  background: oklch(20% 0 0);
}
.document-copy {
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 6px 12px;
  margin: 4px 8px;
  cursor: copy;
}
.document-copy:hover {
  border-color: var(--flame);
}
.document-copy:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 4px;
}
.document-page .copy-status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  min-height: 0;
  width: max-content;
  max-width: calc(100% - 48px);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
}
.document-page .copy-status:empty {
  padding: 0;
}
.external-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -0.2em;
  flex-shrink: 0;
  color: var(--ink);
}
.links a {
  gap: 12px;
}
.document-main .external-icon {
  width: 16px;
  height: 16px;
  margin-left: 0.2em;
}
/* Keep the last word of a link and its icon on the same line. */
.link-end {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .document-main {
    font-size: 18px;
    padding-block: 30px 48px;
  }
  .document-main h1 {
    margin-bottom: 36px;
  }
  .document-main h2 {
    font-size: 30px;
    margin-top: 40px;
  }
  .document-page .site-footer {
    flex-wrap: wrap;
  }
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.price-list-link {
  max-width: 220px;
}
@media (max-width: 600px) {
  .site-footer {
    flex-wrap: wrap;
  }
  .site-footer nav {
    justify-content: flex-start;
    gap: 8px 20px;
  }
}
