:root {
  --bg: #F8F7F4;
  --text: #1E1E1E;
  --text-muted: #757575;
  --accent: #D4AF37;
  --border: #D2D2D2;
  --surface: #FFFFFF;
  --success: #2E7D32;
  --error: #A64B4B;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.15rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  padding: 1rem 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.section {
  padding: 2rem 0;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2,
h3 {
  line-height: 1.3;
  margin-top: 1.5rem;
}

.subtitle {
  color: var(--text-muted);
}

.content-page {
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 0;
  padding: 0.6rem 0.7rem;
}

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

button {
  min-height: 44px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  padding: 0.6rem 1rem;
  width: 100%;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#formMessage {
  margin-top: 0.25rem;
}

.alert {
  padding: 0.7rem 0.8rem;
  border: 1px solid transparent;
  background: var(--surface);
}

.alert-success {
  color: var(--success);
  border-color: var(--success);
}

.alert-error {
  color: var(--error);
  border-color: var(--error);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-heading {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

@media (min-width: 48rem) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav-list {
    margin-top: 0;
  }

  button {
    width: auto;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}
