:root {
  color-scheme: light;
  --silver-light: #f5f6f8;
  --silver: #dfe2e6;
  --silver-dark: #c3c8ce;
  --steel: #8d939a;
  --ink: #1f2226;
  --muted: #555b62;
  --red: #c8102e;
  --field: #fbfbfc;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.22) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, var(--silver-light) 0%, var(--silver) 45%, var(--silver-dark) 100%);
  background-attachment: fixed;
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

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

h1,
.wordmark {
  font-family: "Oswald", Impact, "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

/* Home */

.home {
  text-align: center;
}

.placard {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}

.home h1 {
  margin: 0;
}

.tagline {
  margin: 28px auto 32px;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(17px, 2.6vw, 20px);
  font-style: italic;
}

/* Metal button */

.button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--steel);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #e4e7ea 55%, #c9cdd2 100%);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgb(31 34 38 / 0.18);
  color: var(--ink);
  font-family: "Oswald", Impact, "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--ink);
  background: linear-gradient(180deg, #f4f5f7 0%, #d6dade 55%, #bcc1c7 100%);
}

.button:active {
  box-shadow: inset 0 2px 4px rgb(31 34 38 / 0.25);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

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

/* Contact */

.site-header {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

.wordmark {
  font-size: 20px;
  text-decoration: none;
}

.contact h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 7vw, 44px);
}

.contact .lede {
  margin: 0 0 28px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--steel);
  border-radius: 12px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.35));
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 18px rgb(31 34 38 / 0.12);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 15px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--steel);
  border-radius: 6px;
  background: var(--field);
  box-shadow: inset 0 1px 3px rgb(31 34 38 / 0.12);
  color: var(--ink);
  font: inherit;
}

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

.form .button {
  justify-self: start;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  display: none;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--steel);
  border-left: 4px solid var(--ink);
  border-radius: 6px;
  background: var(--field);
}

.notice:target,
.notice.is-visible {
  display: block;
}

.notice-error {
  border-left-color: var(--red);
}

footer {
  padding: 24px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
