:root {
  --wine: #551308;
  --wine-dark: #3d0d05;
  --accent: #c8001e;
  --accent-hover: #ff0000;
  --ink: #171717;
  --muted: #666666;
  --line: #d7d7d7;
  --paper: #ffffff;
  --card: #f0f0f0;
  --shadow: rgba(0, 0, 0, 0.24);
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
  background: #e8e9ea url("../img/page-bg.jpg") repeat;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.48;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #f29425;
  outline-offset: 2px;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  transform: translateY(-150%);
  border-radius: 4px;
  color: #ffffff;
  background: #000000;
  font-weight: 700;
}

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

.site-shell {
  width: min(960px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--wine);
  box-shadow: 0 0 26px var(--shadow);
}

.brand {
  display: block;
  overflow: hidden;
  line-height: 0;
  background: var(--wine);
}

.brand img {
  display: block;
  width: 100%;
}

.nav-shell {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 43px;
  margin: 8px 6px 10px;
  padding: 3px 7px;
  align-items: center;
  border: 1px solid #171717;
  border-radius: 7px;
  background: linear-gradient(#414141 0%, #222222 49%, #090909 52%, #1b1b1b 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 2px 5px rgba(0, 0, 0, 0.55);
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  min-height: 35px;
  padding: 0 25px;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  font-size: 12px;
  text-shadow: 0 1px 1px #000000;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(#555555, #222222);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 1px 5px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.site-search {
  position: relative;
  width: 145px;
  margin-left: auto;
}

.site-search::before {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid #777777;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-search::after {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 17px;
  width: 6px;
  height: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
  content: "";
  background: #777777;
  pointer-events: none;
}

.site-search input {
  width: 100%;
  height: 25px;
  padding: 3px 10px 3px 27px;
  border: 1px solid #b8b8b8;
  border-radius: 14px;
  color: #333333;
  background: #ffffff;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.38) inset;
}

.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 34px));
  overflow: hidden;
  border: 1px solid #bbbbbb;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.search-results[hidden] {
  display: none;
}

.search-results a,
.search-results__empty {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid #eeeeee;
}

.search-results a:last-child {
  border-bottom: 0;
}

.search-results a:hover {
  background: #f3f3f3;
  text-decoration: none;
}

.hero {
  overflow: hidden;
  border-top: 1px solid #6c2418;
  border-bottom: 1px solid #260803;
  background: #1d130e;
  line-height: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.content-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 15px;
  min-height: 555px;
  margin: 10px 6px 22px;
  padding: 15px 14px 28px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.main-content {
  min-width: 0;
  padding-right: 18px;
  border-right: 1px dotted #bdbdbd;
}

.article-head {
  display: flex;
  gap: 16px;
  margin: 0 0 20px;
  align-items: flex-start;
  justify-content: space-between;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  color: #111111;
  font-size: clamp(29px, 4vw, 35px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h2 {
  margin: 18px 0 8px;
  color: #656565;
  font-size: 23px;
  line-height: 1.2;
}

p {
  margin: 0 0 13px;
}

.article-tools {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding-top: 4px;
}

.article-tools a,
.article-tools button {
  display: grid;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.article-tools img {
  display: block;
  width: 16px;
  height: 16px;
}

.business-list {
  margin: 4px 0 0;
  padding-left: 30px;
}

.business-list li {
  margin: 1px 0;
  padding-left: 1px;
}

.sidebar {
  min-width: 0;
}

.document-card {
  width: 100%;
  margin: 0 0 15px;
  padding: 9px 14px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: linear-gradient(to bottom, #ffffff 0%, #f7f7f7 38%, #efefef 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.document-card:last-child {
  margin-bottom: 0;
}

.document-card h2 {
  margin: 0 0 4px;
  color: #111111;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.document-card h2 span {
  color: #666666;
}

.document-card p {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.45;
}

.document-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.48;
}

.document-list li {
  position: relative;
  padding-left: 9px;
}

.document-list li::before {
  position: absolute;
  left: 0;
  color: #000000;
  content: "•";
}

.copyright-list {
  margin: 0;
  padding-left: 23px;
  font-size: 12px;
}

.contact-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 9px 20px;
  max-width: 520px;
  margin: 7px 0 0;
}

.contact-list dt {
  color: #555555;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
}

.document-image {
  display: block;
  width: min(100%, 780px);
  margin: 0 auto;
  border: 1px solid #dddddd;
  background: #ffffff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.13);
}

.not-found {
  max-width: 650px;
}

.top-link {
  display: block;
  width: max-content;
  margin: -11px 13px 11px auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  text-transform: uppercase;
}

.top-link:hover {
  color: #ffffff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 760px) {
  .site-shell {
    width: 100%;
    box-shadow: none;
  }

  .brand {
    height: 86px;
  }

  .brand img {
    width: auto;
    max-width: none;
    height: 86px;
  }

  .nav-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 7px 6px 9px;
    padding: 4px;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    justify-content: center;
    padding: 0 11px;
    font-size: 13px;
  }

  .site-search {
    width: 100%;
    margin: 0;
  }

  .site-search input {
    height: 32px;
  }

  .site-search::before {
    top: 13px;
  }

  .site-search::after {
    top: 21px;
  }

  .hero img {
    height: 118px;
  }

  .content-frame {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 8px;
    padding: 19px 16px 22px;
  }

  .main-content {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px dotted #bdbdbd;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .document-card {
    margin: 0;
  }

  .document-card p,
  .document-list,
  .copyright-list {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .hero img {
    height: 104px;
  }

  .content-frame {
    margin-right: 5px;
    margin-left: 5px;
  }

  .article-head {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 24px;
  }

  .business-list {
    padding-left: 23px;
  }

  .business-list li {
    margin-bottom: 5px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .document-card {
    padding: 13px 15px 16px;
  }

  .document-card h2 {
    font-size: 20px;
  }

  .document-card p,
  .document-list,
  .copyright-list {
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .contact-list dd {
    margin: 0 0 12px;
  }
}

@media print {
  html,
  body {
    background: #ffffff !important;
  }

  .site-shell {
    width: 100%;
    min-height: auto;
    background: #ffffff;
    box-shadow: none;
  }

  .site-header,
  .sidebar,
  .article-tools,
  .top-link,
  .skip-link {
    display: none !important;
  }

  .content-frame {
    display: block;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .main-content {
    padding: 0;
    border: 0;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .document-image {
    width: 100%;
    border: 0;
    box-shadow: none;
  }
}
