* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--page-bg, #f9f4f4);
  color: var(--text-color, #6b4e4e);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 56px 28px 28px;
}

header {
  text-align: left;
  margin-bottom: 36px;
}

.title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 0;
  color: var(--heading-color, #6b4e4e);
  text-transform: lowercase;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--subtitle-color, #8b6b6b);
  margin-bottom: 0;
  font-weight: 500;
  text-align: right;
  text-transform: lowercase;
  font-variant-caps: small-caps;
  letter-spacing: 0.15em;
}

.home-link {
  color: inherit;
  text-decoration: none;
}

.home-link:hover {
  text-decoration: none;
}

footer {
  padding: 18px 0 60px;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  font-size: 0.9rem;
  color: var(--footer-color, #8b6b6b);
}

.footer-inner {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 28px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
}

.footer-copy {
  text-align: left;
  flex: 1;
  text-transform: lowercase;
}

.footer-email {
  text-align: center;
  flex: 1;
}

.footer-email a {
  color: inherit;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  color: var(--icon-color, #6b4e4e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.7;
}

.social-links svg {
  width: 22px;
  height: 22px;
  display: block;
}

@media (max-width: 900px) {
  footer {
    padding-bottom: 16px;
  }

  .container {
    padding: 44px 18px 22px;
  }

  .footer-inner {
    padding: 0 18px;
  }

  header {
    margin-bottom: 28px;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .subtitle {
    text-align: left;
    font-size: 0.95rem;
  }

  .footer-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "email email"
      "copy social";
    align-items: end;
    gap: 10px;
  }

  .footer-copy,
  .footer-email,
  .footer-social {
    width: auto;
    text-align: left;
  }

  .footer-email {
    grid-area: email;
    justify-self: start;
  }

  .footer-copy {
    grid-area: copy;
    justify-self: start;
  }

  .footer-social {
    grid-area: social;
    justify-self: end;
    justify-content: flex-end;
  }
}
