:root {
  --bg: #f7f3ec;
  --bg-header: #e9e2d6;
  --bg-contact: #eee7dc;
  --surface: #faf7f1;
  --surface-field: #f6f2eb;
  --text: #1d1a17;
  --muted: #766d62;
  --border: #d7cec1;
  --accent: #242321;
  --max-width: 1120px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.02);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(233, 226, 214, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(215, 206, 193, 0.95);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 96px 0 104px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  align-items: center;
  gap: 76px;
}

.hero-image-wrap {
  justify-self: start;
}

.hero-image {
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 460px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.85rem, 5.5vw, 3.95rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 200;
}

.contact {
  padding: 86px 0 88px;
  border-top: 1px solid var(--border);
  background: var(--bg-contact);
  scroll-margin-top: 88px;
}

.contact-shell {
  max-width: 840px;
}

.section-heading {
  text-align: center;
}

#contact-heading {
  scroll-margin-top: 88px;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 300;
}

.form-status {
  display: none;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-color: #cfc5b8;
}

.form-status.is-error {
  border-color: #bdaea0;
}

.contact-form {
  margin-top: 18px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
}

.contact-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form > * + * {
  margin-top: 18px;
}

.form-row,
.two-up {
  display: grid;
  gap: 18px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--surface-field);
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #9a9184;
  background: #fbf9f5;
}

textarea {
  min-height: 220px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 400;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #171614;
  border-color: #171614;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  font-weight: 400;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(0, 0, 0, 0.03);
}

.contact-meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    justify-self: stretch;
  }

  .hero-copy {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .two-up {
    display: block;
  }

  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    margin-top: 0;
    text-align: right;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-image {
    width: min(100%, 320px);
  }

  .contact {
    padding: 64px 0 72px;
    scroll-margin-top: 72px;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px 18px;
  }

  .contact-meta span:last-child {
    text-align: right;
  }

  .form-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .form-actions .button {
    flex: 0 0 auto;
  }

  .form-actions .button + .button {
    margin-top: 0;
  }
}


.signature {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 28px;
  display: block;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.credit {
  font-size: 0.9rem;
  color: var(--text);
}

.credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.credit a:hover,
.credit a:focus-visible {
  border-bottom-color: currentColor;
}

.signature-chess {
  margin-top: 18px;
  gap: 8px;
}

.credit-chess {
  font-size: 0.82rem;
  color: var(--muted);
}
