:root {
  color-scheme: light;
  --ivory: #f4f0e8;
  --ink: #252420;
  --tobacco: #8a715c;
  --olive: #a4a49a;
  --placeholder: #5f5d58;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--ivory);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem calc(3rem + 7vh);
  background: var(--ivory);
  color: var(--ink);
}

main {
  width: min(28rem, 100%);
  text-align: center;
}

.mark {
  display: block;
  width: 5rem;
  height: auto;
  margin: 0 auto;
}

h1 {
  margin: 1.7rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 10vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  white-space: nowrap;
}

.tagline {
  margin: 0.85rem 0 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
}

.rule {
  width: 2.75rem;
  height: 1px;
  margin: 1.4rem auto 0;
  background: var(--olive);
}

.email-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

.email-line[hidden] {
  display: none;
}

input {
  width: 13.5rem;
  max-width: calc(100% - 5.75rem);
  min-width: 0;
  margin: 0;
  padding: 0.65rem 0.1rem 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--olive);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  appearance: none;
}

input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--ivory) inset;
  caret-color: var(--ink);
}

button {
  margin: 0;
  padding: 0.7rem 0.2rem 0.55rem;
  border: 0;
  background: none;
  color: var(--tobacco);
  font: 500 1rem/1 var(--sans);
  white-space: nowrap;
  min-height: 44px;
  cursor: pointer;
}

button:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.message {
  margin: 1.85rem auto 0;
  max-width: 22rem;
  min-height: 1.5em;
  font: 400 1rem/1.5 var(--sans);
  color: var(--ink);
}

.message:empty {
  display: none;
}

.contact {
  margin: 1.65rem 0 0;
  font: 400 0.8125rem/1.4 var(--sans);
}

.contact a {
  display: inline-block;
  padding: 0.55rem 0.35rem;
  color: var(--ink);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.contact a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--ink);
  color: var(--ivory);
}
