/* Sweet Home 101 - shared design tokens
   Use with any SH101 section widget. */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400;1,8..60,500;1,8..60,600&display=swap');

:root {
  --sh101-navy: #1E427B;
  --sh101-navy-deep: #16335F;
  --sh101-navy-muted: #3D6B9B;
  --sh101-sky: #A9D6E7;
  --sh101-sky-soft: #EAF4F8;
  --sh101-paper: #F6FBFD;
  --sh101-gold: #F8DE9C;
  --sh101-gold-ink: #72570B;
  --sh101-white: #FFFFFF;
  --sh101-line: rgba(30, 66, 123, 0.18);
  --sh101-line-solid: #C9DEE9;
  --sh101-line-strong: #AFCBE0;
  --sh101-white-line: rgba(255, 255, 255, 0.28);
  --sh101-shadow: 0 1.25rem 3rem rgba(22, 51, 95, 0.16);
  --sh101-radius: 0.375rem;
  --sh101-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --sh101-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sh101-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --sh101-space-xs: 0.5rem;
  --sh101-space-sm: 0.75rem;
  --sh101-space-md: 1rem;
  --sh101-space-lg: 1.5rem;
  --sh101-space-xl: 2rem;
  --sh101-space-2xl: 3rem;
  --sh101-space-3xl: clamp(3rem, 7vw, 6rem);
  --sh101-space-4xl: clamp(4rem, 8vw, 8rem);

  --sh101-text-xs: 0.75rem;
  --sh101-text-sm: 0.875rem;
  --sh101-text-base: 1rem;
  --sh101-text-lg: 1.125rem;
  --sh101-text-xl: 1.25rem;

  --sh101-max-width: 86rem;
}

.sh101-section {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--sh101-navy);
  font-family: var(--sh101-sans);
  isolation: isolate;
}

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

.sh101-section :where(h1, h2, h3, h4, p, figure, blockquote, ul, ol) {
  margin: 0;
}

.sh101-section :where(ul, ol) {
  list-style: none;
  padding: 0;
}

.sh101-section :where(a) {
  color: inherit;
}

.sh101-section :where(a, button):focus-visible {
  outline: 0.1875rem solid var(--sh101-navy-deep);
  outline-offset: 0.25rem;
}

.sh101-section :where(button) {
  font: inherit;
}

.sh101-section__container {
  margin-inline: auto;
  width: min(calc(100% - 3rem), var(--sh101-max-width));
}

.sh101-section__display {
  font-family: var(--sh101-serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sh101-section__display--italic {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sh101-section__eyebrow {
  color: var(--sh101-navy-muted);
  display: block;
  font-size: var(--sh101-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: var(--sh101-space-md);
  text-transform: uppercase;
}

.sh101-section__icon {
  fill: none;
  flex: 0 0 auto;
  height: 1.125rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 1.125rem;
}

.sh101-section__sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 0.0625rem;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 0.0625rem;
}

.sh101-section__button {
  align-items: center;
  border: 0.0625rem solid transparent;
  border-radius: var(--sh101-radius);
  display: inline-flex;
  font-size: var(--sh101-text-sm);
  font-weight: 700;
  gap: var(--sh101-space-sm);
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.125rem;
  text-decoration: none;
  transition:
    background-color 160ms var(--sh101-ease),
    border-color 160ms var(--sh101-ease),
    color 160ms var(--sh101-ease),
    transform 120ms var(--sh101-ease);
}

.sh101-section__button:active {
  transform: scale(0.97);
}

.sh101-section__button--navy {
  background: var(--sh101-navy);
  color: var(--sh101-white);
}

.sh101-section__button--navy:hover {
  background: var(--sh101-navy-deep);
}

.sh101-section__button--light {
  border-color: var(--sh101-line);
  color: var(--sh101-navy-deep);
}

.sh101-section__button--light:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--sh101-navy);
}

.sh101-section__link {
  align-items: center;
  display: inline-flex;
  font-size: var(--sh101-text-sm);
  font-weight: 700;
  gap: var(--sh101-space-sm);
  min-height: 2.75rem;
  text-decoration: none;
}

.sh101-section__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--sh101-navy);
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.25rem;
}

.sh101-section__media-caption {
  background: var(--sh101-navy);
  color: var(--sh101-white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .sh101-section__container {
    width: min(calc(100% - 2rem), var(--sh101-max-width));
  }
}

@media (max-width: 359px) {
  .sh101-section__container {
    width: min(calc(100% - 1.5rem), var(--sh101-max-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh101-section *,
  .sh101-section *::before,
  .sh101-section *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
