@import url("./tokens.css");
@import url("./base.css");

/* A working drawing, not a dashboard: fine rules, clear hierarchy, quiet detail. */
html {
  font-size: 106.25%;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  background: var(--color-paper);
  color: var(--color-ink);
}

h1,
h2 {
  text-transform: uppercase;
  line-height: 1.06;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 6px;
}

.num,
.eyebrow {
  font-family: var(--font-outlier);
  font-variant-numeric: tabular-nums;
}

.num {
  white-space: nowrap;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: var(--color-ink);
  color: var(--color-paper-3);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.slab {
  background: var(--color-paper-3);
  border-bottom: 1px solid var(--color-rule-2);
}

.slab__in {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 88px;
  padding-block: 16px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: auto;
  text-decoration: none;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.wordmark__dot,
.heading-dot,
.mast__mark span {
  color: var(--color-highlight);
}

.wordmark__sub {
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: .035em;
}

.slab__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.slab__nav a {
  padding-block: 10px;
  color: var(--color-ink-2);
  font-size: 15px;
  text-decoration: none;
  text-underline-offset: 6px;
}

.slab__nav a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--color-rule);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color var(--dur-short), border-color var(--dur-short);
}

.btn span {
  font-size: 20px;
  line-height: 1;
}

.btn--primary {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-accent-ink);
}

.btn--primary:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
}

.btn:active {
  transform: translateY(1px);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(850px, calc(100svh - 89px));
  padding-top: 72px;
  border-bottom: 1px solid var(--color-rule-2);
  background-image: radial-gradient(ellipse at 72% 42%, oklch(44% .105 256 / .2), transparent 65%);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: 56px;
  flex: 1;
}

.crosshair {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--color-highlight);
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.crosshair::before {
  top: 6px;
  width: 13px;
  height: 1px;
}

.crosshair::after {
  left: 6px;
  width: 1px;
  height: 13px;
}

.hero__text h1 {
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 5.5vw, 4.8rem);
  line-height: .99;
  letter-spacing: -.035em;
}

.hero__text .lead {
  max-width: 36ch;
  margin-bottom: 32px;
  color: var(--color-ink-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  font-size: 15px;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.text-link span {
  color: var(--color-muted);
  font-size: 18px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--color-muted);
  font-size: 13px;
}

.hero__note-rule {
  width: 24px;
  height: 1px;
  background: var(--color-muted);
}

.technical-sheet {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--color-rule-2);
  background: oklch(28% .09 256 / .28);
}

.technical-sheet__header,
.technical-sheet__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  font-family: var(--font-outlier);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.technical-sheet__header {
  border-bottom: 1px solid var(--color-rule-2);
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.technical-sheet__header span:last-child {
  white-space: nowrap;
}

.technical-sheet__drawing {
  padding: 12px;
}

.machine-drawing {
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--color-ink);
}

.drawing-guides {
  opacity: .3;
}

.drawing-object {
  stroke-opacity: .85;
}

.drawing-face {
  fill: var(--color-drawing-face);
}

.drawing-fine {
  stroke-width: 1;
  opacity: .65;
}

.drawing-leaders {
  color: var(--color-highlight);
  opacity: .75;
}

.drawing-point {
  fill: var(--color-highlight);
  stroke: none;
}

.drawing-labels {
  font-family: var(--font-outlier);
  font-size: 12px;
  font-weight: 400;
}

.drawing-number {
  fill: var(--color-highlight);
}

.drawing-subtitle {
  fill: var(--color-muted);
  font-size: 9px;
  letter-spacing: .08em;
}

.drawing-registration {
  opacity: .35;
}

.technical-sheet__caption {
  border-top: 1px solid var(--color-rule-2);
}

.technical-sheet__caption span:last-child {
  color: var(--color-muted);
  font-size: 10px;
  text-align: right;
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding-block: 20px;
  color: var(--color-muted);
  font-family: var(--font-outlier);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero__bottom a {
  display: flex;
  gap: 30px;
  text-decoration: none;
}

.intro {
  padding-block: 88px;
  border-bottom: 1px solid var(--color-rule-2);
}

.intro__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 80px;
}

.intro__in > .eyebrow {
  grid-column: 1 / -1;
}

.intro h2 {
  font-size: clamp(1.75rem, 2.55vw, 2.5rem);
  max-width: 25ch;
}

.intro__copy {
  max-width: 53ch;
  color: var(--color-ink-2);
}

.intro__copy p + p {
  margin-top: 16px;
  color: var(--color-muted);
}

.register,
.practice,
.contact {
  padding-block: 104px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  margin-bottom: 16px;
}

.section-heading h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.section-heading > p {
  flex-shrink: 0;
  padding-bottom: 3px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-rule);
}

.ledger th,
.ledger td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-rule-2);
}

.ledger thead th {
  padding: 14px 20px;
  color: var(--color-muted);
  font-family: var(--font-outlier);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ledger thead th:first-child {
  width: 7%;
}

.ledger thead th:nth-child(2) {
  width: 43%;
}

.ledger tbody th,
.ledger tbody td {
  padding: 25px 20px;
}

.ledger tbody th {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.ledger tbody td {
  color: var(--color-ink-2);
  font-size: 16px;
  line-height: 1.8;
}

.ledger tbody td.num {
  padding-top: 29px;
  color: var(--color-muted);
  font-size: 12px;
}

.ledger tbody tr {
  transition: background-color var(--dur-short);
}

.ledger tbody tr:hover {
  background: var(--color-grid);
}

.ledger .service-ledger__primary th {
  color: var(--color-highlight);
  font-weight: 600;
}

.ledger .service-ledger__primary .num {
  color: var(--color-highlight);
}

.register__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  margin-top: 22px;
  color: var(--color-muted);
  font-size: 14px;
}

.register__note > span {
  margin-right: 9px;
}

.register__note a {
  color: var(--color-ink);
  text-underline-offset: 4px;
}

.practice {
  background: var(--color-paper-2);
  border-block: 1px solid var(--color-rule-2);
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stages li {
  border-top: 1px solid var(--color-rule-2);
  padding-top: 18px;
}

.stages__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  color: var(--color-muted);
}

.stages__top .num {
  font-size: 12px;
}

.stages__connector {
  font-size: 21px;
  line-height: 1;
}

.stages h3 {
  margin-bottom: 14px;
  font-size: 25px;
  font-weight: 500;
}

.stages p {
  max-width: 36ch;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.8;
}

.contact {
  padding-block: 112px;
}

.contact__in {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 100px;
}

.contact h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}

.contact__intro {
  max-width: 43ch;
  color: var(--color-ink-2);
  font-size: 18px;
}

.contact__email {
  display: inline-flex;
  align-items: baseline;
  gap: 30px;
  margin-block: 32px 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-rule);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -.025em;
  text-decoration: none;
  transition: color var(--dur-short), border-color var(--dur-short);
}

.contact__email:hover {
  color: var(--color-highlight);
  border-color: var(--color-highlight);
}

.contact__email span {
  color: var(--color-highlight);
}

.contact__hint {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.8;
}

.contact-details {
  align-self: start;
  margin-top: 42px;
  padding: 28px 32px;
  border: 1px solid var(--color-rule-2);
  background: var(--color-paper-2);
}

.contact-details h3 {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 500;
}

.contact-details dl {
  margin: 0;
}

.contact-details dl > div + div {
  margin-top: 22px;
}

.contact-details dt {
  margin-bottom: 6px;
  color: var(--color-muted);
  font-family: var(--font-outlier);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.contact-details__register {
  border-top: 1px solid var(--color-rule-2);
  padding-top: 22px;
}

.contact-details__register dd > span:nth-of-type(odd) {
  display: inline-block;
  width: 65px;
  color: var(--color-muted);
  font-size: 12px;
}

.contact-details__register .num {
  font-size: 13px;
}

.mast {
  background: var(--color-paper-3);
  border-top: 1px solid var(--color-rule-2);
}

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

.mast__in {
  min-height: 112px;
  padding-block: 28px;
}

.mast__mark {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.04em;
  text-decoration: none;
}

.mast__in > p {
  color: var(--color-muted);
  font-size: 14px;
}

.mast__back {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
}

.mast__back:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.mast__legal {
  position: relative;
  padding-block: 18px;
  color: var(--color-muted);
  font-size: 11px;
}

.mast__legal::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: var(--color-rule-2);
}

@media (min-width: 100rem) {
  .hero {
    min-height: 810px;
  }
}

@media (max-width: 75rem) {
  .slab__in {
    gap: 28px;
  }

  .hero__in {
    gap: 32px;
  }

  .hero__text h1 {
    font-size: clamp(3rem, 5.4vw, 4.5rem);
  }

  .hero__text .eyebrow {
    font-size: 11px;
  }

  .technical-sheet__header,
  .technical-sheet__caption {
    padding-inline: 12px;
  }

  .technical-sheet__caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .intro__in {
    column-gap: 48px;
  }

  .contact__in {
    gap: 56px;
  }
}

@media (max-width: 60rem) {
  .hero {
    min-height: 0;
    padding-top: 56px;
  }

  .hero__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .hero__text h1 {
    font-size: clamp(2.2rem, 5.7vw, 3.25rem);
  }

  .hero__text .lead {
    font-size: 17px;
  }

  .hero__actions {
    gap: 8px 20px;
  }

  .hero__note {
    font-size: 12px;
    margin-top: 22px;
  }

  .technical-sheet__header {
    font-size: 8px;
  }

  .technical-sheet__drawing {
    padding: 2px;
  }

  .section-heading {
    gap: 32px;
  }

  .section-heading > p {
    font-size: 13px;
  }

  .register,
  .practice,
  .contact {
    padding-block: 80px;
  }

  .stages {
    gap: 24px;
  }

  .stages h3 {
    font-size: 22px;
  }

  .stages p {
    font-size: 15px;
  }

  .contact__in {
    gap: 36px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .contact-details {
    padding: 24px;
  }
}

@media (max-width: 44rem) {
  .slab__in {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 16px;
    padding-block: 18px 0;
  }

  .wordmark__name {
    font-size: 25px;
  }

  .wordmark__sub {
    font-size: 11px;
  }

  .slab__action {
    min-height: 42px;
    padding: 9px 13px;
    gap: 14px;
    font-size: 13px;
  }

  .slab__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--color-rule-2);
  }

  .slab__nav a {
    padding-block: 13px;
    font-size: 13px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .hero__text .eyebrow {
    margin-bottom: 22px;
    font-size: 11px;
  }

  .hero__text h1 {
    margin-bottom: 24px;
    font-size: clamp(2.2rem, 12.6vw, 4.3rem);
  }

  .hero__text .lead {
    max-width: 39ch;
    margin-bottom: 24px;
    font-size: 18px;
  }

  .hero__actions {
    gap: 12px 24px;
  }

  .hero__note {
    margin-top: 24px;
  }

  .technical-sheet {
    width: 100%;
  }

  .technical-sheet__header {
    font-size: 8px;
  }

  .technical-sheet__drawing {
    padding: 10px 4px;
  }

  .technical-sheet__caption {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    font-size: 10px;
  }

  .technical-sheet__caption span:last-child {
    font-size: 9px;
  }

  .hero__bottom {
    margin-top: 22px;
    padding-block: 18px;
    font-size: 9px;
  }

  .hero__bottom a {
    gap: 12px;
  }

  .intro {
    padding-block: 56px;
  }

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

  .intro h2 {
    margin-bottom: 24px;
    font-size: clamp(1.65rem, 5.85vw, 2.25rem);
  }

  .intro__copy {
    font-size: 16px;
    line-height: 1.75;
  }

  .eyebrow {
    font-size: 11px;
  }

  .register,
  .practice,
  .contact {
    padding-block: 60px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: clamp(1.75rem, 6.9vw, 2.25rem);
  }

  .section-heading > p {
    font-size: 15px;
  }

  .section-heading > p br {
    display: none;
  }

  .ledger thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ledger tbody tr {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    border-bottom: 1px solid var(--color-rule-2);
    padding: 22px 16px;
  }

  .ledger tbody th,
  .ledger tbody td {
    border: 0;
    padding: 0;
  }

  .ledger tbody td.num {
    grid-row: 1 / 3;
    padding-top: 4px;
    font-size: 11px;
  }

  .ledger tbody th {
    font-size: 19px;
  }

  .ledger tbody td:last-child {
    grid-column: 2;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.7;
  }

  .register__note {
    display: block;
    line-height: 1.8;
    font-size: 13px;
  }

  .register__note > span {
    margin-right: 4px;
  }

  .stages {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .stages li {
    position: relative;
    padding-top: 22px;
    padding-left: 38px;
  }

  .stages__top {
    margin-bottom: 0;
  }

  .stages__top .num {
    position: absolute;
    left: 0;
    top: 28px;
    font-size: 11px;
  }

  .stages__connector {
    display: none;
  }

  .stages h3 {
    margin-bottom: 10px;
    font-size: 23px;
  }

  .stages p {
    max-width: 48ch;
    font-size: 15px;
  }

  .contact__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .contact h2 {
    font-size: clamp(1.75rem, 7.1vw, 2.5rem);
  }

  .contact__intro {
    font-size: 17px;
  }

  .contact__email {
    gap: 22px;
    margin-block: 26px 18px;
    font-size: clamp(1.25rem, 5.95vw, 1.9rem);
  }

  .contact__hint {
    font-size: 12px;
  }

  .contact__hint br {
    display: none;
  }

  .contact-details {
    margin-top: 0;
    padding: 26px;
  }

  .mast__in {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 24px;
    padding-block: 28px;
  }

  .mast__in > p {
    order: 3;
    width: 100%;
    font-size: 12px;
  }

  .mast__back {
    margin-left: auto;
    font-size: 12px;
  }

  .mast__legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
