:root {
  --ink: #13302F;
  --cream: #F7F4EE;
  --surface: #FFFFFF;
  --accent: #2F7D72;
  --accent-strong: #276A60;
  --accent-tint: #E4EFEC;
  --clay: #C8693F;
  --muted: #5B6B69;
  --border: #E3DED4;
  --error: #B3261E;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 24px;
  --radius-input: 12px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul,
dl,
dd,
blockquote {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* Page layout ------------------------------------------------------------ */

.page {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 100vh;
  padding: 24px 24px 32px;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Header ----------------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
}

/* Copy column ------------------------------------------------------------ */

.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.services {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.services li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.services li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: calc(0.65em - 3px);
  border-radius: 50%;
  background: var(--accent);
}

.quote {
  display: flex;
  gap: 16px;
  width: 100%;
}

.quote::before {
  content: "";
  flex: none;
  width: 3px;
  border-radius: 2px;
  background: var(--clay);
}

.quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details dd {
  font-weight: 500;
  line-height: 1.5;
}

.email-link {
  color: var(--accent-strong);
  font-size: 18px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.email-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact card ----------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}

.card-subtitle {
  color: var(--muted);
  line-height: 1.55;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease;
}

.field input {
  height: 48px;
}

.field textarea {
  height: 120px;
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error,
.form-status {
  color: var(--error);
  font-size: 14px;
  line-height: 1.4;
}

.form-status a {
  color: inherit;
}

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

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--surface);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-strong);
}

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

.privacy-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-success {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
}

.form-success:focus {
  outline: none;
}

/* Footer ----------------------------------------------------------------- */

.footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Desktop ---------------------------------------------------------------- */

@media (min-width: 960px) {
  .page {
    gap: 88px;
    /* 160px side padding at 1440, content capped at 1120px and centered. */
    padding: 40px max(40px, calc((100% - 1120px) / 2));
  }

  .main {
    flex-direction: row;
    align-items: center;
    gap: clamp(48px, 5.56vw, 80px);
  }

  .copy {
    flex: 1 1 0;
    gap: 28px;
  }

  .wordmark {
    font-size: 22px;
  }

  h1 {
    font-size: clamp(44px, 4.17vw, 60px);
  }

  .intro {
    font-size: 19px;
  }

  .quote p {
    font-size: 22px;
  }

  .card {
    flex: none;
    width: 480px;
    padding: 40px;
  }

  .card h2 {
    font-size: 30px;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
