:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --paper-deep: #f3f0eb;
  --ink: #151515;
  --muted: #5f5a53;
  --gold: #b69050;
  --gold-soft: #d7bd8d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 48% 12%, rgba(255, 255, 255, .92), transparent 42%),
    linear-gradient(145deg, var(--paper-deep), #fbfaf8 48%, var(--paper));
  font-family: Avenir, Montserrat, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border: 1px solid var(--gold);
  background: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

main {
  min-height: calc(100svh - 76px);
}

.desktop-hold {
  display: flex;
  min-height: calc(100svh - 76px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reference-frame {
  position: relative;
  width: min(100vw, calc((100svh - 76px) * 1.5));
  max-width: 1536px;
  aspect-ratio: 3 / 2;
}

.reference-frame > picture,
.reference-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-reader-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.art-link {
  position: absolute;
  z-index: 2;
  top: 79.3%;
  height: 6.5%;
  border-radius: 4px;
}

.art-link--phone {
  left: 25.7%;
  width: 15.3%;
}

.art-link--email {
  left: 42.5%;
  width: 24.4%;
}

.art-link:hover {
  background: rgba(182, 144, 80, .08);
}

.art-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  background: rgba(255, 255, 255, .65);
}

.mobile-hold {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 10px max(20px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid rgba(182, 144, 80, .34);
  background: rgba(248, 247, 244, .96);
}

.ts-footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6a6256;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ts-footer-credit__text {
  margin: 0;
}

.ts-footer-credit__text a {
  text-decoration-color: rgba(182, 144, 80, .7);
  text-underline-offset: 3px;
}

.ts-footer-credit__mark {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}

.ts-footer-credit__mark img {
  display: block;
  width: 50px;
  height: 50px;
}

@media (max-width: 760px) and (orientation: portrait) {
  main {
    min-height: auto;
  }

  .desktop-hold {
    display: none;
  }

  .mobile-hold {
    position: relative;
    display: flex;
    min-height: calc(100svh - 90px);
    align-items: center;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: max(28px, env(safe-area-inset-top)) 22px 34px;
    text-align: center;
  }

  .mobile-mark {
    position: absolute;
    top: -30px;
    left: -82px;
    width: 260px;
    height: 215px;
    background: url("/assets/autopreserve-mark-180.png") center / contain no-repeat;
    opacity: .035;
    transform: rotate(-2deg);
  }

  .mobile-brand-picture {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 355px);
    margin: 0 auto clamp(16px, 3.2vh, 28px);
  }

  .mobile-brand {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-rule {
    display: flex;
    width: min(74vw, 280px);
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(16px, 3vh, 26px);
  }

  .mobile-rule::before,
  .mobile-rule::after {
    width: 50%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--gold));
  }

  .mobile-rule::after {
    background: linear-gradient(90deg, var(--gold), transparent);
  }

  .mobile-rule span {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    background: var(--gold);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }

  .mobile-rule--short {
    width: 84px;
    margin-top: clamp(17px, 3vh, 26px);
    margin-bottom: clamp(17px, 3vh, 26px);
  }

  .mobile-hold h1 {
    margin: 0;
    font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
    font-size: clamp(44px, 14vw, 66px);
    font-weight: 400;
    letter-spacing: .12em;
    line-height: .98;
    text-transform: uppercase;
    text-wrap: balance;
  }

  .mobile-intro {
    max-width: 340px;
    margin: clamp(20px, 3.8vh, 32px) auto 0;
    color: #34312d;
    font-size: clamp(14px, 3.8vw, 17px);
    line-height: 1.65;
    letter-spacing: .035em;
  }

  .mobile-contact {
    display: grid;
    width: min(100%, 350px);
    gap: 10px;
  }

  .mobile-contact a {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    min-height: 48px;
    padding: 10px 16px 10px 12px;
    border: 1px solid rgba(182, 144, 80, .58);
    text-align: left;
    text-decoration: none;
    letter-spacing: .04em;
  }

  .mobile-contact a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }

  .contact-label {
    color: #857151;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  .mobile-legal {
    max-width: 340px;
    margin: clamp(20px, 3.8vh, 30px) auto 0;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .17em;
    line-height: 1.6;
    text-transform: uppercase;
  }

  .site-footer {
    min-height: 90px;
    padding-top: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .ts-footer-credit {
    gap: 10px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

@media (max-width: 380px) and (max-height: 760px) and (orientation: portrait) {
  .mobile-hold {
    justify-content: flex-start;
    padding-top: 18px;
  }

  .mobile-brand-picture {
    width: 290px;
    margin-bottom: 10px;
  }

  .mobile-rule {
    margin-bottom: 13px;
  }

  .mobile-hold h1 {
    font-size: 42px;
  }

  .mobile-intro {
    margin-top: 14px;
    font-size: 13px;
  }

  .mobile-rule--short {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .mobile-contact a {
    min-height: 44px;
    font-size: 13px;
  }

  .mobile-legal {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
