@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #eef1f3;
  --bg: #ffffff;
  --soft: #fbfcfc;
  --fg: #111315;
  --dim: #6f767c;
  --form-text: #254655;
  --rule: #d7dde1;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

main {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: 28px 28px 34px;
  background: var(--bg);
  border: 1px solid var(--rule);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--fg);
  outline: none;
}

.meta {
  color: var(--dim);
  font-size: 19px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.strip,
footer.meta {
  font-size: 17px;
}

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.strip nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-nav {
  justify-content: flex-start;
}

.secondary-nav {
  justify-content: flex-end;
}

.strip a,
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.strip a {
  color: var(--dim);
  text-decoration-color: var(--rule);
  white-space: nowrap;
}

.icon {
  display: block;
  width: 0.78em;
  height: 0.78em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.brand-icon {
  fill: currentColor;
  stroke: none;
}

.strip a:hover,
.strip a:focus-visible,
.strip a[aria-current="page"] {
  color: var(--fg);
  text-decoration-color: var(--fg);
}

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

h1 {
  margin: 28px 0 0;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: normal;
  text-wrap: balance;
}

.mark {
  padding: 0 0.06em;
  color: var(--bg);
  background: var(--fg);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mark::selection {
  color: var(--fg);
  background: var(--bg);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 12px 0 30px;
}

.lede {
  margin: 0;
  color: var(--dim);
  font-size: clamp(20px, 4vw, 24px);
  line-height: 1.35;
}

.now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.eq i {
  width: 2px;
  height: 100%;
  background: currentColor;
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite alternate;
}

.eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.eq i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.8s; }

@keyframes eq {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .eq i {
    animation: none;
    transform: scaleY(0.6);
  }
}

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

.row {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 20px;
  align-items: baseline;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--rule);
}

.row .meta {
  transition: color 0.12s ease;
}

.row:hover .meta,
.row:focus-within .meta {
  color: var(--fg);
}

.post-link {
  color: inherit;
  text-decoration: none;
}

.post-link:hover,
.post-link:focus-visible {
  outline: none;
}

.post-link .entry {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
}

.post-link:hover .entry,
.post-link:focus-visible .entry {
  text-decoration-color: var(--fg);
}

.num {
  display: inline-block;
  width: 3ch;
  color: var(--fg);
}

.entry {
  font-size: 19px;
  line-height: 1.5;
}

.title {
  margin: 0 0 4px;
  font-weight: 400;
}

.text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0 -16px;
}

.post-page {
  margin-top: 32px;
}

.back-link {
  font-variant-ligatures: none;
}

.post-meta {
  margin: 24px 0 10px;
}

.post-title {
  margin: 0 0 28px;
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 400;
  letter-spacing: -0.035em;
  white-space: normal;
}

.post-body {
  max-width: 62ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.join {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--rule);
}

.join-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.join .send {
  min-height: 46px;
  white-space: nowrap;
}

.join .send:disabled {
  opacity: 0.6;
  cursor: progress;
}

.join .status:empty {
  display: none;
}

@media (max-width: 420px) {
  .join-row {
    grid-template-columns: 1fr;
  }

  .join .send {
    justify-self: start;
  }
}

.contact {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--rule);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 0;
}

.field:focus-within .meta {
  color: var(--fg);
}

input,
textarea,
button {
  font: inherit;
  color: inherit;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  color: var(--form-text);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--fg);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
  opacity: 1;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--fg);
  transition: background-color 9999s ease-in-out 0s;
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.send {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  cursor: pointer;
}

.send:hover,
.send:focus-visible {
  border-color: var(--fg);
  outline: none;
}

.send:disabled {
  opacity: 0.5;
  cursor: progress;
}

.status:empty {
  display: none;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: auto;
  padding-top: 34px;
}

footer a {
  color: inherit;
  text-decoration-color: var(--rule);
}

@media (max-width: 560px) {
  main {
    min-height: 100vh;
    margin: 0;
    padding: 20px 20px 32px;
    border: 0;
  }

  .strip {
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .strip nav {
    flex-wrap: nowrap;
    gap: 14px;
  }

  h1 {
    margin-top: 26px;
    font-size: clamp(40px, 16vw, 58px);
  }

  .sub {
    margin: 10px 0 26px;
  }

  .row {
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
  }

  .row .entry {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .pair {
    grid-template-columns: 1fr;
  }
}
