/* Case Cat Consulting - site styles
   Rebuilt from the Squarespace site. Palette and type scale match the original:
   blue sections #8eb6dc, heading blue #1470af, light section #eaeaee. */

:root {
  --blue: #8eb6dc;
  --blue-deep: #1470af;
  --grey: #eaeaee;
  --white: #ffffff;
  --black: #000000;
  --serif: "Cormorant Garamond", "Orpheus Pro", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 4vw;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(17px, 1.5vw, 26px);
  line-height: 1.6;
  color: var(--black);
  background: var(--blue);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main > .section:last-child {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  padding: 8px 12px;
}

.skip-link:focus {
  left: 8px;
  z-index: 100;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 56px;
}

.site-header .logo img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 1.5em;
  font-size: clamp(15px, 1.05vw, 18px);
}

.site-nav a {
  text-decoration: none;
  color: var(--black);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--black);
}

/* Sections -------------------------------------------------------------- */

.section {
  position: relative;
  padding: 0 var(--gutter);
}

.section-inner {
  margin: 0 auto;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

h1.serif {
  font-size: clamp(56px, 7.6vw, 132px);
}

h2.serif {
  font-size: clamp(44px, 4.8vw, 84px);
}

h3.serif {
  font-size: clamp(32px, 3.1vw, 54px);
}

/* Home: hero */

.hero {
  background: var(--blue);
  padding-top: 110px;
  padding-bottom: calc(8vw + 50px);
  text-align: center;
}

.hero h1 {
  color: var(--blue-deep);
}

.hero .tagline {
  margin: 0.15em auto 0;
  max-width: 15.5em;
  font-size: clamp(28px, 4.3vw, 76px);
  line-height: 1.1;
  color: var(--black);
}

/* Curved divider at the bottom of the hero. The path reproduces the
   Squarespace "curve" divider: flat on the left, rising toward the right. */
.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 8vw;
}

/* Home: intro (photo + copy) */

.intro {
  background: var(--grey);
  padding-top: 60px;
  padding-bottom: 60px;
}

.intro .section-inner {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
  justify-content: center;
  max-width: 1000px;
}

.intro .photo {
  flex: 0 0 auto;
  width: clamp(220px, 23vw, 400px);
}

.intro .copy {
  flex: 1 1 0;
  max-width: 520px;
  margin: 0;
  line-height: 1.5;
}

.highlight {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

/* Home: about */

.about {
  background: var(--blue);
  padding-top: 140px;
  padding-bottom: 80px;
}

.about .section-inner {
  max-width: 780px;
}

.about h2 {
  color: var(--blue-deep);
  text-align: center;
  margin-bottom: 0.5em;
}

.about p {
  color: var(--white);
  margin: 0 0 0.75em;
  line-height: 1.5;
}

.about .lede {
  text-align: center;
}

/* Contact page */

.contact {
  background: var(--white);
  padding-top: 110px;
  padding-bottom: calc(6vw + 60px);
  text-align: center;
}

.contact h1 {
  color: var(--black);
}

.contact .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em 9vw;
  margin: 2.5em 0 0;
  padding: 0;
  list-style: none;
}

.contact .links a {
  text-decoration: none;
}

.contact .links a:hover {
  text-decoration: underline;
}

/* Wavy divider with a dashed blue stroke, as on the original contact page. */
.contact-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 6vw;
  min-height: 40px;
  overflow: hidden;
}

.contact-divider .stroke {
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 6px;
  stroke-dasharray: 15px, 21px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

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

.site-footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 100px var(--gutter) 80px;
}

.site-footer h3 {
  color: var(--white);
}

.site-footer p {
  margin: 1.2em 0 0;
  font-size: clamp(14px, 1.05vw, 18px);
}

.site-footer a {
  text-decoration: none;
}

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

/* Responsive ------------------------------------------------------------ */

@media (max-width: 768px) {
  :root {
    --gutter: 6vw;
  }

  .site-header {
    height: 64px;
  }

  .site-header .logo img {
    height: 36px;
  }

  .site-nav {
    gap: 1em;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: calc(8vw + 50px);
  }

  .hero .tagline {
    max-width: none;
  }

  .intro .section-inner {
    flex-direction: column;
    align-items: center;
  }

  .intro .photo {
    width: min(70vw, 320px);
  }

  .intro .copy {
    max-width: none;
  }

  .about {
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .contact .links {
    flex-direction: column;
    gap: 0.75em;
  }

  .site-footer {
    padding-top: 70px;
    padding-bottom: 60px;
  }
}
