:root {
  --orange: #f36f21;
  --yellow: #f6c445;
  --ink: #262a2e;
  --muted: #6e747b;
  --line: #d7dce0;
  --paper: #ffffff;
  --teal: #1f756f;
  --steel: #4f5d68;
  --shadow: 0 18px 45px rgba(29, 36, 43, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(215, 220, 224, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mini img {
  display: block;
  width: auto;
  max-width: min(230px, 50vw);
  max-height: 44px;
  object-fit: contain;
}

.brand-mini b {
  color: var(--steel);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px 18px;
  text-align: center;
}

.logo-line {
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: clamp(180px, 24vw, 320px);
}

.weiler-logo {
  display: grid;
  place-items: center;
  width: min(1080px, 92vw);
  min-height: clamp(170px, 22vw, 300px);
  padding: 18px 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--orange);
  background: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.1;
}

a.weiler-logo {
  color: var(--orange);
}

.weiler-logo img {
  width: min(1080px, 92vw);
  max-height: clamp(170px, 22vw, 300px);
  object-fit: contain;
}

.weiler-logo.has-custom-logo {
  border-color: transparent;
  padding: 0;
}

.intro,
.text-band p,
.section-heading p {
  max-width: 720px;
  margin: 18px auto 0;
  color: #2d3236;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

.link-stage {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(280px, 580px);
  gap: 40px;
  align-items: stretch;
  max-width: 1120px;
  margin: 34px auto 0;
  padding: 0 28px;
  scroll-margin-top: 92px;
}

.feature-tile,
.side-tile,
.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 39, 47, 0.06);
}

.feature-tile {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 390px;
}

.tile-image,
.side-image,
.post-image {
  min-height: 150px;
  background-color: #eef1f3;
  background-position: center;
  background-size: cover;
}

.post-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.post-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(22, 27, 32, 0.72), rgba(22, 27, 32, 0.06) 62%);
}

.post-image span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}

.feature-tile .tile-image {
  min-height: 255px;
}

.tile-main {
  background-image: linear-gradient(135deg, rgba(243, 111, 33, 0.88), rgba(38, 48, 57, 0.78));
}

.tile-teal {
  background-image: linear-gradient(135deg, rgba(31, 117, 111, 0.82), rgba(79, 93, 104, 0.72));
}

.tile-yellow {
  background-image: linear-gradient(135deg, rgba(246, 196, 69, 0.86), rgba(243, 111, 33, 0.64));
}

.tile-steel,
.tile-blog {
  background-image: linear-gradient(135deg, rgba(79, 93, 104, 0.88), rgba(31, 117, 111, 0.7));
}

.tile-copy {
  display: grid;
  gap: 8px;
  padding: 26px;
  text-align: center;
}

.tile-kicker {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.tile-copy strong {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 500;
}

.side-tiles {
  display: grid;
  gap: 28px;
}

.side-tile {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 112px;
  align-items: center;
}

.side-tile.has-tile-image {
  grid-template-columns: 1fr;
  min-height: 158px;
}

.side-tile.has-tile-image .side-image {
  min-height: 158px;
}

.side-tile strong {
  padding: 18px 24px;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.15;
}

.text-band {
  padding: 58px 28px 0;
  text-align: center;
}

.between-blog-image {
  display: grid;
  place-items: center;
  max-width: 1120px;
  margin: 46px auto 0;
  padding: 0 28px;
}

.between-blog-image img {
  display: block;
  width: min(860px, 100%);
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
}

.blog {
  max-width: 1120px;
  margin: 72px auto 96px;
  padding: 0 28px;
  scroll-margin-top: 92px;
}

.section-heading {
  text-align: center;
}

.section-heading h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
}

.section-heading p {
  margin-top: 28px;
  font-size: clamp(18px, 2vw, 24px);
}

.blog-slider {
  position: relative;
  margin-top: 36px;
  padding: 0 54px;
}

.blog-track {
  display: grid;
  grid-auto-columns: minmax(320px, 34%);
  grid-auto-flow: column;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.post-card {
  display: grid;
  grid-template-rows: auto;
  scroll-snap-align: start;
}

.post-link {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 39, 47, 0.11);
}

.slider-button {
  position: absolute;
  top: 43%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(31, 39, 47, 0.12);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
}

.slider-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

.post-body {
  padding: 20px;
}

.post-body time {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.post-body h2 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

.post-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.read-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 800;
}

.article-page {
  background: #fff;
}

.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 28px 86px;
}

.back-link {
  color: var(--orange);
  font-weight: 800;
}

.article-hero {
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 26px 0 30px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.article-wrap time {
  color: var(--teal);
  font-weight: 800;
}

.article-wrap h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.article-copy {
  color: #30363b;
  font-size: 20px;
  line-height: 1.65;
}

.article-copy h1,
.article-copy h2 {
  margin: 34px 0 14px;
  color: var(--ink);
  line-height: 1.2;
}

.article-copy h1 {
  font-size: 34px;
}

.article-copy h2 {
  font-size: 28px;
}

.article-copy p {
  margin: 0 0 20px;
  white-space: pre-line;
}

.article-copy ul {
  margin: 0 0 22px;
  padding-left: 25px;
}

.article-copy li {
  margin: 8px 0;
}

.article-copy a {
  color: var(--orange);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-copy .text-orange {
  color: var(--orange);
}

.article-copy .text-teal {
  color: var(--teal);
}

.article-copy .text-steel {
  color: var(--steel);
}

.article-copy .text-yellow {
  color: #b88708;
}

.article-copy .text-size-small {
  font-size: 0.86em;
}

.article-copy .text-size-normal {
  font-size: 1em;
}

.article-copy .text-size-large {
  font-size: 1.35em;
}

.article-copy .text-size-xlarge {
  font-size: 2.35em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 34px 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.site-footer button:hover {
  color: var(--orange);
}

.modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.legal-modal[hidden] {
  display: none;
}

.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 27, 32, 0.55);
}

.legal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
  outline: none;
}

.legal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.legal-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.legal-dialog h2 {
  margin: 0 48px 18px 0;
  font-size: 30px;
  line-height: 1.2;
}

.legal-copy {
  color: #30363b;
  font-size: 17px;
  line-height: 1.6;
}

.legal-copy p {
  margin: 0 0 16px;
  white-space: pre-line;
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 18px;
  }

  .link-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .side-tile {
    grid-template-columns: 120px 1fr;
  }

  .side-image {
    min-height: 128px;
  }

  .blog-slider {
    padding: 0 46px;
  }

  .blog-track {
    grid-auto-columns: minmax(280px, 82vw);
  }

  .post-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 520px) {
  nav {
    display: none;
  }

  .brand-mini {
    font-size: 17px;
  }

  .feature-tile {
    min-height: 320px;
  }

  .feature-tile .tile-image {
    min-height: 190px;
  }

  .logo-line {
    min-height: 240px;
  }

  .weiler-logo {
    width: 92vw;
    min-height: 220px;
  }

  .weiler-logo img {
    max-height: 260px;
  }

  .blog-slider {
    padding: 0;
  }

  .slider-button {
    display: none;
  }

  .blog-track {
    grid-auto-columns: minmax(270px, 86vw);
  }

  .side-tile {
    grid-template-columns: 1fr;
  }

  .side-tile strong {
    padding: 18px;
  }
}
