:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.swiza-preview {
  --preview-red: #e30613;
  --preview-ink: #171717;
  --preview-paper: #ffffff;
  --preview-warm: #f4f1ea;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  color: var(--preview-ink);
  background: var(--preview-paper);
  letter-spacing: 0;
}

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

.swiza-preview a {
  color: inherit;
}

.preview-status {
  min-height: 36px;
  padding: 7px max(24px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  background: var(--preview-red);
  font-size: 13px;
  font-weight: 800;
}

.preview-header {
  min-height: 104px;
  padding: 18px max(24px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #c9c9c9;
  background: #ffffff;
}

.preview-brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.preview-brand strong {
  font-size: 38px;
  line-height: 0.95;
  font-weight: 950;
}

.preview-brand > span {
  color: #525252;
  font-size: 14px;
  font-weight: 700;
}

.preview-accented-a {
  display: inline-block;
  position: relative;
  color: inherit;
  font: inherit;
}

.preview-accent-mark {
  position: absolute;
  top: -0.18em;
  left: 58%;
  color: var(--preview-red);
  font-size: 0.34em;
  font-weight: 950;
  line-height: 1;
  transform: translateX(-50%) rotate(-4deg);
}

.swiza-preview .preview-header-link,
.swiza-preview .preview-primary {
  min-height: 48px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--preview-ink);
  border-radius: 4px;
  color: #ffffff;
  background: var(--preview-red);
  box-shadow: 4px 4px 0 var(--preview-ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.swiza-preview .preview-header-link:hover,
.swiza-preview .preview-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--preview-ink);
}

.swiza-preview .preview-header-link:focus-visible,
.swiza-preview .preview-primary:focus-visible,
.swiza-preview .preview-brand:focus-visible {
  outline: 3px solid var(--preview-ink);
  outline-offset: 4px;
}

.preview-main {
  width: 100%;
  min-width: 0;
}

.preview-hero {
  width: min(100%, 1440px);
  min-height: min(670px, calc(100svh - 210px));
  margin: 0 auto;
  padding: clamp(58px, 8vh, 104px) clamp(430px, 34vw, 560px) 72px 72px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-left: 7px solid var(--preview-red);
  background: #ffffff;
}

.preview-copy {
  width: min(100%, 680px);
  position: relative;
  z-index: 2;
}

.preview-eyebrow {
  margin: 0 0 16px;
  color: var(--preview-red);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-copy h1 {
  margin: 0;
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 950;
  line-height: 0.9;
}

.preview-offer {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.08;
}

.preview-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #4d4d4d;
  font-size: 19px;
  line-height: 1.55;
}

.preview-horizon {
  max-width: 620px;
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--preview-red);
  color: #4d4d4d;
  font-size: 15px;
  line-height: 1.48;
}

.preview-horizon strong {
  color: var(--preview-ink);
}

.preview-actions {
  max-width: 620px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.preview-actions p {
  max-width: 280px;
  margin: 0;
  color: #5b5b5b;
  font-size: 13px;
  line-height: 1.45;
}

.preview-cow {
  width: min(44vw, 600px);
  height: 100%;
  margin: 0;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #dcecf2 url("./assets/swiza-v2/swiza-meadow-hero-v1.webp") center center / cover no-repeat;
  box-shadow: inset 4px 0 0 rgba(23, 23, 23, 0.08);
}

.preview-cow img {
  width: auto;
  height: 92%;
  max-width: 94%;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: normal;
  transform-origin: center bottom;
  animation: swiza-greeting 3.8s ease-in-out infinite;
}

@keyframes swiza-greeting {
  0%,
  100% {
    transform: rotate(-0.35deg) translateY(0);
  }

  50% {
    transform: rotate(0.35deg) translateY(-4px);
  }
}

.preview-footer {
  padding: 26px max(24px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  border-top: 6px solid var(--preview-red);
  background: var(--preview-warm);
}

.preview-footer div {
  display: grid;
  gap: 4px;
}

.preview-footer strong {
  font-size: 26px;
}

.preview-footer span {
  font-size: 16px;
}

.preview-footer small {
  max-width: 430px;
  color: #606060;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

@media (max-width: 900px) {
  .preview-hero {
    min-height: 650px;
    padding: 54px 374px 54px 42px;
  }

  .preview-cow {
    width: 340px;
  }

  .preview-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .preview-status {
    min-height: 32px;
    padding: 6px 16px;
    font-size: 11px;
  }

  .preview-header {
    min-height: 78px;
    padding: 11px 16px;
    gap: 12px;
  }

  .preview-brand strong {
    font-size: 29px;
  }

  .preview-brand > span {
    max-width: 175px;
    font-size: 11px;
    line-height: 1.2;
  }

  .preview-header-link {
    min-height: 40px;
    max-width: 122px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .preview-hero {
    min-height: 620px;
    padding: 32px 18px 185px 27px;
    align-items: flex-start;
    border-left-width: 5px;
  }

  .preview-eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .preview-copy h1 {
    font-size: 53px;
  }

  .preview-offer {
    max-width: 340px;
    margin-top: 16px;
    font-size: 25px;
    line-height: 1.05;
  }

  .preview-lead {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.4;
  }

  .preview-horizon {
    margin-top: 14px;
    padding-left: 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  .preview-actions {
    margin-top: 18px;
    gap: 11px;
  }

  .preview-primary {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .preview-actions p {
    max-width: 185px;
    font-size: 11px;
    line-height: 1.35;
  }

  .preview-cow {
    width: 100%;
    height: 176px;
    top: auto;
    right: 0;
    bottom: 0;
    justify-content: flex-end;
    padding-right: 12px;
    background-position: center 58%;
    box-shadow: inset 0 4px 0 rgba(23, 23, 23, 0.06);
  }

  .preview-cow img {
    width: auto;
    height: 170px;
  }

  .preview-footer {
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .preview-footer strong {
    font-size: 23px;
  }

  .preview-footer span {
    font-size: 14px;
  }

  .preview-footer small {
    max-width: 330px;
    text-align: left;
  }
}

@media (min-width: 481px) and (max-width: 760px) {
  .preview-brand strong {
    font-size: 34px;
  }

  .preview-brand > span {
    max-width: none;
    font-size: 12px;
  }

  .preview-hero {
    min-height: 680px;
    padding: 38px 36px 226px 40px;
  }

  .preview-copy h1 {
    font-size: 68px;
  }

  .preview-offer {
    font-size: 30px;
  }

  .preview-lead {
    font-size: 16px;
  }

  .preview-cow {
    height: 210px;
    padding-right: 40px;
  }

  .preview-cow img {
    height: 205px;
  }
}

@media (max-width: 360px) {
  .preview-status {
    min-height: 32px;
    gap: 12px;
    font-size: 10px;
  }

  .preview-header {
    min-height: 70px;
    padding: 7px 16px;
  }

  .preview-brand > span {
    max-width: 145px;
    font-size: 10px;
  }

  .preview-header-link {
    max-width: 112px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .preview-hero {
    min-height: 585px;
    padding-top: 28px;
    padding-bottom: 139px;
  }

  .preview-cow {
    height: 130px;
    padding-right: 10px;
  }

  .preview-cow img {
    height: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-cow img {
    animation: none;
  }
}
