@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #101418;
  --paper: #f4f1ea;
  --accent: #7d9bd6;
  --muted: #5f6b76;
  --rule: #d9d3c7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 520px;
  margin: 0 auto;
}

/* header */
.top {
  position: relative;
  background: var(--ink);
  padding: 40px 24px 36px;
}

/* on wide screens the ink band runs full width, the content stays in the column */
@media (min-width: 641px) {
  .top {
    padding: 56px 24px 48px;
  }
  .top::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--ink);
    z-index: -1;
  }
}

.mark {
  width: 34px;
  height: 34px;
  display: block;
}

h1 {
  margin: 26px 0 0;
  font-size: 40px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.lede {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(244, 241, 234, 0.76);
}

.meta {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(244, 241, 234, 0.52);
}

/* body */
main {
  padding: 32px 24px 0;
}

.label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.arrow {
  font-size: 18px;
  line-height: 1;
}

/* specimen */
.specimen {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 20px 22px 22px;
}

@media (min-width: 641px) {
  .specimen::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--ink);
    z-index: -1;
  }
}

.spec-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
}

.spec-mark {
  width: 17px;
  height: 17px;
  display: block;
  flex: none;
}

.spec-no {
  margin-left: auto;
  color: rgba(244, 241, 234, 0.35);
}

.spec-name {
  margin: 22px 0 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.055em;
}

.spec-line {
  margin: 9px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.5);
}

.spec-alphabet {
  margin: 22px 0 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  color: rgba(244, 241, 234, 0.9);
}

.spec-a {
  color: var(--accent);
}

.spec-weights {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 241, 234, 0.18);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.w500 {
  font-weight: 500;
  color: rgba(244, 241, 234, 0.62);
}

.w600 {
  font-weight: 600;
}

.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.sw {
  display: block;
  height: 30px;
  margin-bottom: 8px;
}

.sw-ink {
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.24);
}

.sw-paper {
  background: var(--paper);
}

.sw-accent {
  background: var(--accent);
}

.sw-rule {
  background: var(--rule);
}

.sw-n {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.72);
}

.sw-x {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.38);
}

/* services */
.services {
  margin-top: 34px;
}

.services .label {
  margin-bottom: 10px;
}

.svc {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.svc li:last-child .srow {
  border-bottom: none;
}

.srow {
  display: block;
  padding: 15px 0 16px;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}

.sline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.svc-k {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.svc-d {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* contact */
.contact {
  margin-top: 34px;
  border-top: 1px solid var(--rule);
}

.crow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  font-size: 17px;
}

.crow .cv {
  margin-left: auto;
  margin-right: 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* states */
.srow:hover .svc-k,
.crow:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

footer {
  padding: 22px 24px 46px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}
