:root {
  color-scheme: dark;
  --cocoa: #140c08;
  --gold: #e6c48a;
  --gold-soft: rgba(230, 196, 138, 0.54);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--gold);
  background: var(--cocoa);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

button,
input,
textarea { font: inherit; }

.page {
  width: min(100%, 72rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 9vw, 7rem);
  text-align: center;
}

h1 {
  margin: 0;
  padding: 0 1.25rem clamp(2rem, 5vw, 3.8rem);
  color: var(--gold);
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
}

.puma {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.line {
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem 0;
  color: var(--gold);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.offer {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  padding: clamp(5rem, 12vw, 9rem) 1.25rem 0;
}

.offer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.button {
  min-height: 3.15rem;
  padding: 0.72rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  color: var(--cocoa);
  background: var(--gold);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.button:hover {
  color: var(--gold);
  background: transparent;
}

.button:focus-visible,
.close:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.offer-dialog {
  width: min(calc(100% - 2rem), 32rem);
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  background: var(--cocoa);
}

.offer-dialog::backdrop {
  background: rgba(5, 2, 1, 0.82);
  backdrop-filter: blur(4px);
}

.offer-dialog form {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.dialog-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.dialog-top h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

label {
  margin-top: 0.45rem;
  font-size: 1rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--gold-soft);
  border-radius: 0;
  color: var(--gold);
  background: rgba(230, 196, 138, 0.04);
  font-size: 1.05rem;
}

input {
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
}

textarea {
  min-height: 7.5rem;
  padding: 0.7rem;
  resize: vertical;
}

.submit {
  margin-top: 1rem;
  justify-self: start;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

.form-status {
  min-height: 1.4em;
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

@media (max-width: 38rem) {
  h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
