:root {
  --paper: #f3f0e7;
  --ink: #1c1915;
  --muted: #4f4a42;
  --line: #d5cec0;
  --copper: #9c4520;
  --field: rgba(255, 252, 246, 0.7);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:hover {
  color: var(--copper);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 2;
}

.skip:focus {
  top: 1rem;
}

.frame {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

h1,
p,
li {
  overflow-wrap: break-word;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: 1.25rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
}

.eyebrow {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.eyebrow {
  margin: 2.5rem 0 0.8rem;
  font-size: 0.75rem;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.15rem, 9vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.lede {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.work {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.work li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.work h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.work h3::before {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--copper);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.work li:nth-child(1) h3::before {
  content: "01";
}

.work li:nth-child(2) h3::before {
  content: "02";
}

.work li:nth-child(3) h3::before {
  content: "03";
}

.work p {
  margin: 0.15rem 0 0;
  max-width: 38rem;
}

#kontakt {
  margin-top: 4rem;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

form {
  position: relative;
  display: grid;
  gap: 0.35rem;
  max-width: 36rem;
  margin-top: 1.5rem;
}

label {
  margin-top: 0.85rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--field);
  color: inherit;
  font: inherit;
  padding: 0.65rem 0.2rem;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

button {
  justify-self: start;
  margin-top: 1.2rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  padding: 0.7rem 1.3rem;
  cursor: pointer;
}

button:hover {
  background: var(--copper);
}

button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

#status {
  min-height: 1.5rem;
  margin: 0.4rem 0 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.result {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 15vh auto;
}

@media (max-width: 700px) {
  .frame {
    width: min(100% - 2rem, 920px);
  }

  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 0.9rem;
  }

  .lede {
    font-size: 1.15rem;
  }

  .work li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  footer {
    flex-direction: column;
  }
}
