/* DCCE responsive adjustments. Desktop design remains defined in styles.css. */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 220px 1fr;
  }

  .inner {
    padding: 48px 20px 36px;
  }

  .logo {
    width: 132px;
    height: 132px;
  }

  .duffield {
    font-size: 1.95rem;
  }

  .center {
    font-size: 1.3rem;
  }

  .divider {
    width: 150px;
  }

  nav {
    margin-top: 42px;
  }

  h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  p {
    right: 6%;
    font-size: 1.05rem;
  }
}

@media (max-width: 700px) {
  .layout {
    display: block;
  }

  .sidebar {
    min-height: auto;
  }

  .inner {
    padding: 24px 20px 22px;
  }

  .logo {
    width: 92px;
    height: 92px;
    margin-bottom: 14px;
  }

  .lockup {
    line-height: .86;
  }

  .the {
    margin-bottom: 8px;
  }

  .duffield {
    font-size: 1.65rem;
  }

  .center {
    margin-top: 9px;
    font-size: 1.1rem;
  }

  .divider {
    width: 145px;
    margin: 15px auto 11px;
  }

  .tag {
    max-width: none;
    font-size: .58rem;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 22px;
  }

  nav a {
    font-size: .68rem;
  }

  nav .active::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: -5px;
    width: auto;
  }

  .hero {
    min-height: 72vh;
  }

  h1 {
    top: 9%;
    left: 7%;
    right: 7%;
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }

  p {
    left: 7%;
    right: 7%;
    bottom: 8%;
    font-size: 1rem;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .inner {
    padding: 14px 12px 12px;
  }

  .logo {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
  }

  .the {
    margin-bottom: 6px;
    font-size: .62rem;
  }

  .duffield {
    font-size: 1.38rem;
  }

  .center {
    margin-top: 7px;
    font-size: .92rem;
  }

  .divider {
    width: 128px;
    margin: 10px auto 8px;
  }

  .tag {
    font-size: .5rem;
    line-height: 1.35;
  }

  nav {
    gap: 8px 13px;
    margin-top: 13px;
  }

  nav a {
    font-size: .6rem;
  }

  .hero {
    min-height: calc(100svh - 233px);
  }

  h1 {
    top: 7%;
    left: 7%;
    right: 7%;
    font-size: clamp(2.05rem, 10.25vw, 2.65rem);
    line-height: .94;
  }

  p {
    left: 7%;
    right: 7%;
    bottom: 6%;
    font-size: .84rem;
    line-height: 1.35;
  }
}

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