/* vachsark.com: one page, pastel, black type. */

:root {
  color-scheme: light;
  --paper: #faf7f2;
  --ink: #0b0b0c;
  --ink-2: #3d3d42;
  --line: rgba(11, 11, 12, 0.12);

  --peach: #ffe2d1;
  --mint: #d6f2e1;
  --lavender: #e5e0fa;
  --butter: #fff1bf;
  --sky: #d9ecfa;
  --rose: #fbdfe9;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* The old site's thin accent line, now in pastels. */
.ribbon {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--peach),
    var(--butter),
    var(--mint),
    var(--sky),
    var(--lavender),
    var(--rose)
  );
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.name {
  font-family: var(--serif);
  font-size: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.top nav {
  display: flex;
  gap: 20px;
}

.top nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}

.top nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Type */
.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1;
  max-width: 14ch;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
}

h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin-bottom: 32px;
  text-wrap: balance;
}

h3 {
  font-size: 30px;
  line-height: 1.1;
  margin: 18px 0 10px;
}

/* Hero */
.hero {
  padding-top: 56px;
  padding-bottom: 72px;
}

.lede {
  margin: 28px 0 0;
  max-width: 40em;
  font-size: 19px;
  color: var(--ink-2);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 0.15s ease;
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

/* Sections */
.section {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
}

/* Work cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  border-radius: 22px;
  padding: 26px;
  border: 1px solid var(--line);
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

.card .result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tag,
.status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status {
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}

.peach { background: var(--peach); }
.mint { background: var(--mint); }
.lavender { background: var(--lavender); }
.butter { background: var(--butter); }
.sky { background: var(--sky); }
.rose { background: var(--rose); }

/* Smaller projects */
.also {
  margin-top: 48px;
}

.also ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px 28px;
}

.also li a,
.also li strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.also li a {
  text-underline-offset: 4px;
}

.also li span {
  color: var(--ink-2);
  font-size: 15px;
}

/* House rules */
.rules {
  counter-reset: rule;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46em;
}

.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
}

.rules li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  padding-top: 5px;
  color: var(--ink-2);
}

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--lavender), var(--peach) 55%, var(--butter));
  border-radius: 28px;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
}

.contact h2 {
  margin-bottom: 16px;
  max-width: 18ch;
}

.contact > p:not(.kicker) {
  margin: 0 0 28px;
  max-width: 36em;
  color: var(--ink-2);
}

.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
}

.links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--ink-2);
}

/* Not found page */
.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .top nav {
    gap: 14px;
  }
  .top nav a[href="#how"] {
    display: none;
  }
  .hero {
    padding-top: 32px;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .rules li {
    grid-template-columns: 40px 1fr;
    font-size: 17px;
  }
}
