/* Kate & Marek — production styles */

:root {
  --navy: #16273D;
  --navy-dark: #0F1D2E;
  --teal: #1C5B60;
  --teal-light: #268D93;
  --paper: #F4F6F7;
  --white: #FFFFFF;
  --border: #DFE5E8;
  --ink: #2C3338;
  --muted: #6C7680;
  --body-secondary: #424A50;
  --footer-muted: #8598AC;
  --footer-text: #C6D2DE;
  --owner-tint: #EAF0F0;
  --email-bg: #F8FAFA;
  --hero-fallback: #EEF1F3;

  --display: "Newsreader", Georgia, serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --max-width: 1120px;
  --section-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 112px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

a {
  color: var(--teal);
}

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .nav__toggle-bar {
    transition: none;
  }
}

.page {
  background: var(--paper);
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  text-align: left;
}

.container--narrow {
  max-width: 680px;
}

.prose {
  max-width: 680px;
}

.prose--owner {
  max-width: 760px;
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-101%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--section-x);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  font-family: var(--display);
  font-size: 18px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav__link {
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav__link--cta {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  margin: 0 -12px 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--body);
}

.nav__toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.nav__toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 22px;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.is-open .nav__toggle-icon .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__toggle-icon .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle-icon .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  display: none;
}

@media (max-width: 759px) {
  .nav,
  .nav.is-visible {
    position: sticky;
    top: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero__mobile {
    padding-top: 0;
  }

  .hero__mobile-img {
    object-position: 72% 42%;
    max-height: 520px;
  }

  .nav__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    justify-content: flex-end;
  }

  .nav__brand {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    margin: 0;
  }

  .nav__menu {
    display: none;
    width: 100%;
    order: 3;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  .nav.is-open .nav__menu {
    display: block;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }

  .nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0;
    font-size: 16px;
    white-space: normal;
    border-bottom: 1px solid var(--border);
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .nav__link--cta {
    border-bottom: none;
    padding-bottom: 12px;
    font-weight: 600;
  }

  .email-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ghost {
    margin-left: 0;
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (min-width: 760px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: block;
    width: auto;
    order: unset;
    padding: 0;
    border-top: none;
    margin-top: 0;
  }
}

/* Hero */

.hero__mobile {
  display: block;
}

.hero__desktop {
  display: none;
  position: relative;
  width: 100%;
  min-height: clamp(440px, 33vw, 600px);
  align-items: center;
  background-image: url("images/banner-hero-2.jpg");
  background-size: cover;
  background-position: 70% 20%;
  background-color: var(--hero-fallback);
  padding-inline: var(--section-x);
}

.hero__mobile-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 460px;
  object-fit: cover;
  object-position: 68% 15%;
}

.hero__mobile-content {
  padding: 36px var(--section-x) 44px;
  background: var(--white);
}

.hero__desktop-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 64px 0;
}

.hero__text-block {
  max-width: min(48%, 520px);
  position: relative;
}

.hero__scrim {
  position: absolute;
  inset: -28px -40px;
  background: rgba(255, 255, 255, 0.42);
  filter: blur(18px);
  border-radius: 24px;
}

.hero__text {
  position: relative;
}

@media (min-width: 760px) {
  .hero__mobile {
    display: none;
  }

  .hero__desktop {
    display: flex;
  }
}

/* Typography */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.display-h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 8.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.hero__desktop .display-h1 {
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.display-h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 28px;
  text-wrap: pretty;
}

.display-h2--owner {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 32px;
}

.display-h2--owner-second {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 20px;
}

.display-h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.25;
  color: var(--navy);
  margin: clamp(48px, 6vw, 72px) 0 24px;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: #43505C;
  margin: 0 0 26px;
  max-width: 520px;
  text-wrap: pretty;
}

.hero__desktop .lead {
  font-size: 18px;
  color: #3A4753;
  margin: 0 0 30px;
  max-width: 440px;
}

.body-text {
  font-size: clamp(17px, 1.2vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}

.body-text + .body-text {
  margin-top: 24px;
}

.body-text--large {
  font-size: clamp(18px, 1.3vw, 19px);
  margin: 0 0 36px;
  max-width: 620px;
}

.quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.5;
  color: #4A555F;
  margin: 28px 0 0;
  max-width: 600px;
  text-wrap: pretty;
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--body);
}

.btn-primary:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-ghost {
  margin-left: auto;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

/* Sections */

.section {
  padding: var(--section-y) var(--section-x);
  scroll-margin-top: 72px;
}

header#top {
  scroll-margin-top: 0;
}

.section--white {
  background: var(--white);
}

.section--paper {
  background: var(--paper);
}

.section--owner {
  background: var(--owner-tint);
}

.section__intro {
  margin: 0 0 48px;
  max-width: 680px;
}

.section__heading {
  margin: 0 0 12px;
  max-width: 680px;
}

.section__sub {
  margin: 0 0 40px;
  max-width: 680px;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card-grid--why {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.card__title {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(19px, 1.4vw, 20px);
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.card__title--compact {
  margin: 0 0 12px;
}

.card__text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--body-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* Lists */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list--card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list--profile {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  max-width: 900px;
}

.list--owner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 40px;
}

.list__item {
  display: flex;
  gap: 12px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--body-secondary);
}

.list__item--profile {
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: clamp(17px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink);
}

.list__item--owner {
  gap: 16px;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink);
}

.list__dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 10px;
}

.list__dot--md {
  width: 6px;
  height: 6px;
  margin-top: 11px;
}

.list__dot--lg {
  width: 7px;
  height: 7px;
  margin-top: 12px;
}

/* Profiles */

.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 5vw, 64px);
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}

.portrait {
  display: block;
  width: clamp(200px, 26vw, 260px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 999px;
  background: var(--hero-fallback);
}

.profile__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 4px;
}

.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--teal);
  text-decoration: none;
  margin: 2px 0 14px;
}

.linkedin:hover {
  color: var(--navy);
}

.linkedin__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

/* Contact */

.email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--email-bg);
}

.email-box--white {
  background: var(--white);
}

.email-link {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--navy);
  text-decoration: none;
  word-break: break-word;
}

.email-link:hover {
  color: var(--teal);
}

/* Footer */

.footer {
  background: var(--navy);
  color: var(--footer-text);
  padding: clamp(48px, 6vw, 72px) var(--section-x);
}

.footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__people {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
}

.footer__person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}

.footer__link {
  color: var(--white);
  text-decoration: none;
}

.footer__link:hover {
  color: #9FD3D6;
}

.footer__link--muted {
  color: var(--footer-text);
}

.footer__link--muted:hover {
  color: var(--white);
}

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 11px;
  margin: -11px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.footer__icon:hover {
  background: var(--teal-light);
  color: var(--white);
}

.footer__legal {
  font-size: 14px;
  color: var(--footer-muted);
  margin: 0;
  max-width: 280px;
  line-height: 1.6;
}
