/* Sabre Consulting: taupe summit over a calm white page. */

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/spectral-latin-300.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/spectral-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/karla-latin-var.woff2") format("woff2");
}

:root {
  --taupe: #7e735f;
  --on-taupe: #ffffff;
  --on-taupe-soft: #f4f1ea;
  --paper: #ffffff;
  --ink: #2f2a22;
  --muted: #5b5448;
  --link: #5e5546;
  --rule: #ddd8ce;
  --panel: #efece6;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 6vw, 5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* --taupe stays as is: it has to match the logo's own background. */
    --paper: #1b1916;
    --ink: #ece8e1;
    --muted: #b3ab9d;
    --link: #d4c9b4;
    --rule: #3a352d;
    --panel: #26231f;

    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Hero: the taupe summit */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--taupe);
  color: var(--on-taupe);
}

.hero a {
  color: var(--on-taupe);
}

.top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1875rem;
  text-decoration: none;
}

.brand img {
  width: 4.625rem;
  height: auto;
  display: block;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.top nav a {
  text-decoration: none;
}

.top nav a:hover {
  text-decoration: underline;
}

.top nav a[aria-current="page"] {
  color: var(--on-taupe-soft);
  opacity: 0.75;
  pointer-events: none;
}

.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  padding-block: clamp(3rem, 10vw, 7rem) clamp(4rem, 12vw, 8rem);
}

.hero h1 {
  margin: 0;
  max-width: 11em;
  font: 300 clamp(2.75rem, 7vw, 4.75rem) / 1.02 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 32em;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.55;
  color: var(--on-taupe-soft);
}

.hero .cta {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background: var(--on-taupe);
  color: #2f2a22;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}

.hero .cta:hover {
  background: var(--on-taupe-soft);
}

.hero::after {
  content: "";
  position: absolute;
  right: -3%;
  bottom: -1px;
  width: min(60rem, 92%);
  aspect-ratio: 605 / 197;
  background: url("/img/logo-mark.svg") no-repeat right bottom / contain;
  opacity: 0.16;
  pointer-events: none;
}

/* Sections */

main > section:not(.hero) {
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

main > #contact {
  padding-top: 0;
}

h2 {
  margin: 0 0 1.5rem;
  font: 400 clamp(1.875rem, 3.5vw, 2.5rem) / 1.1 var(--serif);
}

@media (min-width: 60rem) {
  .split {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 3rem;
  }
}

.services {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.services > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .services > div {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
}

.services dt {
  font-weight: 600;
  font-size: 1.1875rem;
}

.services dd {
  margin: 0;
  color: var(--muted);
}

/* Contact */

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--panel);
}

.contact-panel h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

.email {
  font-size: clamp(1.25rem, 3vw, 1.375rem);
  overflow-wrap: anywhere;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Footer */

footer {
  padding-block: 0 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 0.3rem;
}

/* 404 */

.notfound .hero-body {
  padding-block: clamp(4rem, 14vw, 9rem);
}
