:root {
  --ink: #17202a;
  --ink-deep: #0f161d;
  --ink-soft: #34414d;

  --paper: #f7f2ea;
  --paper-light: #fffdf9;

  --wine: #8c1d40;
  --wine-dark: #65142e;

  --gold: #c4a15a;
  --muted: #6f7378;
  --white: #ffffff;

  --radius-small: 10px;
  --page-width: 1180px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;

  background: var(--paper);
  color: var(--ink);

  font-family:
    "DM Sans",
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

blockquote {
  margin: 0;
}

.page-width {
  width: min(
    calc(100% - 40px),
    var(--page-width)
  );

  margin-inline: auto;
}

/* Accessibility */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;

  padding: 10px 16px;

  transform: translateY(-160%);

  border-radius: var(--radius-small);

  background: var(--white);
  color: var(--ink);

  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Top notice bar */

.notice-bar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.76);
}

.notice-bar__inner {
  min-height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;

  text-align: center;
  text-transform: uppercase;
}

.notice-bar__inner span[aria-hidden="true"] {
  color: var(--gold);
  font-size: 0.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  border-bottom: 1px solid rgba(23, 32, 42, 0.08);

  background: rgba(247, 242, 234, 0.94);

  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 78px;

  display: flex;
  align-items: center;

  gap: 34px;
}

.brand,
.footer-brand {
  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-weight: 700;
  letter-spacing: -0.025em;

  text-decoration: none;
}

.brand {
  color: var(--ink-deep);

  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1;
}

.main-nav {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 27px;
}

.main-nav a {
  position: relative;

  color: var(--ink-soft);

  font-size: 0.85rem;
  font-weight: 600;

  text-decoration: none;
}

.main-nav a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;

  height: 2px;

  transform: scaleX(0);
  transform-origin: right;

  background: var(--wine);

  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-button {
  min-height: 42px;
  padding: 10px 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: var(--wine);
  color: var(--white);

  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;

  text-decoration: none;
  text-transform: uppercase;

  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.header-button:hover {
  transform: translateY(-2px);
  background: var(--wine-dark);
}

/* Contact content */

.story {
  min-height: calc(100vh - 164px);

  padding-block: clamp(85px, 11vw, 145px);

  background: var(--paper-light);
}

.story__grid {
  display: grid;

  grid-template-columns:
    minmax(300px, 0.84fr)
    minmax(0, 1.16fr);

  gap: clamp(50px, 8vw, 115px);
}

.section-number,
.eyebrow {
  margin: 0;

  color: var(--wine);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;

  text-transform: uppercase;
}

.story h1 {
  margin: 15px 0 0;

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;

  text-wrap: balance;
}

.story__large {
  margin: 0 0 36px;

  color: var(--ink-soft);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.25;
}

.story__columns {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 34px;

  color: var(--muted);
}

.story__columns p {
  margin: 0;
}

.contact-form-card {
  margin-top: 42px;
  padding: 26px 28px;

  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);

  background: rgba(247, 242, 234, 0.48);
}

.contact-form-card > .eyebrow {
  margin-bottom: 21px;
}

.contact-form {
  position: relative;

  display: grid;
  gap: 21px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  min-width: 0;

  display: grid;
  gap: 7px;
}

.contact-field label {
  color: var(--ink-soft);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;

  border: 1px solid rgba(23, 32, 42, 0.2);
  border-radius: var(--radius-small);

  background: var(--white);
  color: var(--ink);

  font: inherit;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-field input,
.contact-field select {
  min-height: 49px;
  padding: 10px 13px;
}

.contact-field textarea {
  min-height: 180px;
  padding: 12px 13px;

  line-height: 1.55;
  resize: vertical;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 0;

  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(140, 29, 64, 0.13);
}

.contact-form__privacy {
  margin: -4px 0 0;

  color: var(--muted);
  font-size: 0.74rem;
}

.contact-submit {
  justify-self: start;

  border: 0;
  cursor: pointer;
}

.form-message {
  margin: 0 0 21px;
  padding: 13px 15px;

  border-radius: var(--radius-small);

  font-size: 0.86rem;
}

.form-message p,
.form-message ul {
  margin: 0;
}

.form-message ul {
  padding-left: 20px;
}

.form-message--success {
  border: 1px solid rgba(32, 128, 92, 0.36);

  background: rgba(32, 128, 92, 0.1);
  color: #176645;
}

.form-message--error {
  border: 1px solid rgba(140, 29, 64, 0.3);

  background: rgba(140, 29, 64, 0.08);
  color: var(--wine-dark);
}

.contact-trap {
  position: absolute !important;
  left: -10000px !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
}

.contact-notes {
  margin-top: 32px;
  padding-left: 21px;

  border-left: 3px solid rgba(196, 161, 90, 0.72);

  color: var(--muted);
}

.contact-notes p {
  margin: 0;
}

.contact-notes p + p {
  margin-top: 14px;
}

.contact-notes .contact-notes__personal {
  color: var(--ink-soft);
  font-weight: 600;
}

.hero__actions {
  margin-top: 34px;

  display: flex;
  flex-wrap: wrap;

  gap: 14px;
}

.button {
  min-height: 51px;
  padding: 13px 23px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid transparent;
  border-radius: 999px;

  background: var(--wine);
  color: var(--white);

  box-shadow: 0 14px 34px rgba(140, 29, 64, 0.24);

  font-size: 0.77rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;

  text-decoration: none;
  text-transform: uppercase;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--wine-dark);

  box-shadow: 0 18px 42px rgba(140, 29, 64, 0.32);
}

/* Footer */

.site-footer {
  padding-block: 50px;

  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.56);
}

.site-footer__grid {
  display: grid;

  grid-template-columns: 1fr auto;

  align-items: end;

  gap: 44px;
}

.footer-brand {
  color: var(--white);
  font-size: 2rem;
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 0.76rem;
}

.copyright {
  text-align: right;
}

/* Keyboard focus */

.brand:focus-visible,
.main-nav a:focus-visible,
.header-button:focus-visible,
.button:focus-visible,
.footer-brand:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Laptops and tablets */

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .header-button {
    margin-left: auto;
  }
}

/* Small tablets */

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

  .notice-bar__inner {
    min-height: 33px;

    gap: 7px;

    font-size: 0.6rem;
    letter-spacing: 0.07em;
  }

  .notice-bar__inner span:nth-child(3),
  .notice-bar__inner span:nth-child(4) {
    display: none;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand {
    font-size: 2rem;
  }

  .header-button {
    min-height: 39px;
    padding: 8px 13px;

    font-size: 0.65rem;
  }

  .story__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .story__columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;

    align-items: start;

    gap: 26px;
  }

  .copyright {
    text-align: left;
  }
}

/* Phones */

@media (max-width: 500px) {
  .page-width {
    width: min(
      calc(100% - 24px),
      var(--page-width)
    );
  }

  .notice-bar__inner span:nth-child(2),
  .notice-bar__inner span:nth-child(5) {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .contact-form-card {
    padding-inline: 16px;
  }

  .contact-submit {
    width: 100%;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}