:root {
  color-scheme: light;
  --oxblood: #682e3b;
  --paper: #f5f3ee;
  --ink: #39312f;
  --rule: #b3a49d;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--oxblood);
  color: var(--paper);
}

a {
  color: var(--oxblood);
  text-underline-offset: 0.2em;
}

p,
h1 {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  border-top: 6px solid var(--oxblood);
}

.page-main,
.footer-content {
  width: calc(100% - 4rem);
  max-width: 68rem;
  margin-inline: auto;
}

.page-main {
  flex: 1;
  min-width: 0;
  padding-block: 2.5rem 3rem;
}

.identity-panel {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.identity {
  width: min(100%, 32rem);
  height: auto;
  aspect-ratio: 890 / 280;
  object-fit: contain;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem;
  padding-top: 2rem;
}

h1 {
  color: var(--oxblood);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
}

.contact-introduction p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.form-instruction {
  font-size: 0.75rem;
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.8125rem;
  line-height: 1.5;
}

input,
textarea,
button {
  border-radius: 0;
  font: inherit;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #95827a;
  padding: 0.75rem;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

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

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
.form-error:focus {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

button {
  min-height: 2.875rem;
  border: 1px solid var(--oxblood);
  padding: 0.75rem 1.5rem;
  background: var(--oxblood);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #4d222c;
}

button:disabled {
  cursor: wait;
}

.form-error,
.form-status {
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-error {
  color: var(--oxblood);
  border-left: 2px solid currentColor;
  padding-left: 0.75rem;
}

.form-status:empty {
  display: none;
}

.contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.page-footer {
  background: var(--oxblood);
  color: #fff;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.page-footer p {
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.brand-mark {
  width: 4rem;
  flex: 0 0 auto;
  /* Reverse only the ink; the approved geometry and cut-outs are unchanged. */
  filter: brightness(0) invert(1);
}

.receipt {
  padding-block: 2rem;
}

.receipt p {
  margin-top: 1rem;
  line-height: 1.6;
}

@media (max-width: 44rem) {
  .page-main,
  .footer-content {
    width: calc(100% - 3rem);
  }

  .page-main {
    padding-block: 1.75rem 2rem;
  }

  .identity-panel {
    padding-bottom: 1.5rem;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding-top: 1.5rem;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 1.5rem;
  }

  .form-actions button {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .identity,
  .brand-mark {
    background: #fff;
    forced-color-adjust: none;
  }

  .brand-mark {
    filter: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page-shell {
    display: block;
    min-height: 0;
  }

  .page-main {
    width: 100%;
    padding: 0;
  }

  .page-footer,
  .form-actions {
    display: none;
  }
}
