* {
  box-sizing: border-box;
}

html {
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.08) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 25%, transparent 25%) 0 6px / 12px 12px,
    #0d5a66;
}

body {
  margin: 0;
  color: #101010;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

a {
  color: #001f8a;
  font-weight: bold;
}

a:visited {
  color: #5d0067;
}

.browser-bar {
  width: min(980px, calc(100% - 20px));
  margin: 12px auto 0;
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #111;
  background: #c8c8c8;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  overflow: hidden;
}

.browser-bar span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-buttons {
  flex: 0 0 auto;
}

.site-frame {
  width: min(980px, calc(100% - 20px));
  margin: 0 auto 28px;
  background: #d4d0c8;
  border: 3px solid;
  border-color: #ffffff #303030 #303030 #ffffff;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.45);
}

.layout-table,
.masthead-table,
.service-table {
  width: 100%;
  border-collapse: collapse;
}

.masthead {
  padding: 14px;
  color: #fff7d1;
  background: #14206b;
  border-bottom: 4px double #f0d45a;
}

.masthead-table td {
  vertical-align: middle;
}

.eyebrow {
  margin: 0 0 4px;
  color: #f0d45a;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(44px, 9vw, 82px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 3px 3px 0 #000;
}

.tagline {
  max-width: 680px;
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: bold;
}

.stamp-cell {
  width: 116px;
  text-align: right;
}

.stamp {
  display: inline-block;
  width: 86px;
  min-height: 86px;
  padding: 14px 6px;
  color: #700000;
  background: #f0d45a;
  border: 3px dashed #700000;
  border-radius: 50%;
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  transform: rotate(6deg);
}

.nav-bar {
  padding: 0;
  background: #b8b8b8;
  border-top: 1px solid #ffffff;
  border-bottom: 2px solid #404040;
  text-align: center;
}

.nav-bar a {
  display: inline-block;
  margin: 0;
  padding: 9px 13px;
  color: #000;
  border-right: 1px solid #777;
  font-size: 14px;
  text-decoration: none;
}

.nav-bar a:first-child {
  border-left: 1px solid #777;
}

.nav-bar a:hover,
.button-link:hover {
  background: #fff6a6;
}

.ticker {
  padding: 5px 8px;
  color: #ffffff;
  background: #6d0012;
  border-bottom: 3px solid #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}

.sidebar,
.content {
  vertical-align: top;
}

.sidebar {
  width: 265px;
  padding: 12px;
  background: #ece9d8;
  border-right: 3px ridge #777;
}

.content {
  padding: 12px;
  background: #fffdf0;
}

.portrait-box,
.memo-box,
.counter-box,
.panel,
.hero-panel,
.notice-box {
  margin-bottom: 12px;
  border: 2px solid;
  border-color: #ffffff #777777 #777777 #ffffff;
  background: #d4d0c8;
}

.portrait-box h2,
.memo-box h2,
.panel h2 {
  margin: 0;
  padding: 6px 8px;
  color: #ffffff;
  background: #14206b;
  border-bottom: 2px solid #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  line-height: 1;
}

.portrait-frame {
  margin: 10px auto 8px;
  width: 210px;
  max-width: 100%;
  padding: 5px;
  background: #000;
  border: 3px solid;
  border-color: #7f7f7f #ffffff #ffffff #7f7f7f;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #333;
}

.caption {
  margin: 0;
  padding: 0 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.memo-box {
  padding-bottom: 10px;
}

.memo-box p,
.counter-box p {
  margin: 8px 10px 0;
  font-size: 14px;
  line-height: 1.35;
}

.meter {
  height: 18px;
  margin: 12px 10px 0;
  padding: 2px;
  background: #ffffff;
  border: 2px inset #777;
}

.meter span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #0a7d2f 0,
    #0a7d2f 9px,
    #f0d45a 9px,
    #f0d45a 12px
  );
}

.counter-box {
  padding: 10px;
  text-align: center;
}

.visitor-count {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 7px;
  color: #00ff66;
  background: #000;
  border: 2px inset #777;
  font-family: "Courier New", Courier, monospace;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-panel {
  padding: 18px;
  background: #fffbe4;
  border-color: #ffffff #8a8a8a #8a8a8a #ffffff;
}

.small-label {
  margin: 0 0 8px;
  color: #6d0012;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0 0 12px;
  color: #14206b;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.hero-panel p,
.panel p,
.notice-box {
  font-size: 17px;
  line-height: 1.45;
}

.hero-panel p {
  max-width: 670px;
  margin: 0 0 10px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.button-link {
  display: inline-block;
  min-width: 142px;
  padding: 8px 12px;
  color: #000;
  background: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  text-align: center;
  text-decoration: none;
}

.button-link.secondary {
  background: #c7d7ff;
}

.notice-box {
  padding: 10px 12px;
  color: #111;
  background: #f0d45a;
}

.panel {
  padding-bottom: 12px;
  background: #eeeadd;
}

.service-table {
  margin: 10px;
  width: calc(100% - 20px);
  background: #ffffff;
  border: 2px inset #999;
}

.service-table th,
.service-table td {
  padding: 8px;
  border: 1px solid #777;
  text-align: left;
  vertical-align: top;
}

.service-table th {
  color: #ffffff;
  background: #6d0012;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
}

.service-table td:first-child {
  width: 34%;
  color: #14206b;
  font-weight: bold;
}

.two-column-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  padding: 0 10px 12px;
}

.two-column-panel h2 {
  grid-column: 1 / -1;
  margin: 0 -10px 0;
}

.client-list {
  margin: 12px 0 0 20px;
  padding: 0;
  line-height: 1.5;
}

.quote-box {
  margin-top: 12px;
  padding: 10px;
  background: #ffffff;
  border: 2px inset #999;
  font-family: "Times New Roman", Times, serif;
}

.quote-box p {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.quote-box span {
  font-size: 14px;
}

.dispatch {
  padding: 0 12px 12px;
}

.dispatch h2 {
  margin: 0 -12px 0;
}

.dispatch p {
  margin: 10px 0 0;
}

.dateline {
  color: #6d0012;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-row span {
  display: inline-block;
  min-height: 31px;
  padding: 6px 8px;
  color: #ffffff;
  background: #14206b;
  border: 2px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
}

.footer {
  padding: 9px 12px;
  color: #ffffff;
  background: #303030;
  border-top: 3px solid #000;
  font-size: 13px;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-frame,
  .browser-bar {
    width: calc(100% - 12px);
  }

  .layout-table,
  .layout-table tbody,
  .layout-table tr,
  .layout-table td {
    display: block;
    width: 100%;
  }

  .masthead-table,
  .masthead-table tbody,
  .masthead-table tr,
  .masthead-table td {
    display: block;
    width: 100%;
  }

  .stamp-cell {
    margin-top: 12px;
    text-align: left;
  }

  .stamp {
    width: 74px;
    min-height: 74px;
    padding-top: 12px;
    font-size: 19px;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 3px ridge #777;
  }

  .portrait-frame {
    width: min(230px, 88vw);
  }

  .hero-panel {
    padding: 14px;
  }

  .nav-bar a {
    width: 50%;
    border-bottom: 1px solid #777;
  }

  .service-table,
  .service-table tbody,
  .service-table tr,
  .service-table th,
  .service-table td {
    display: block;
    width: auto;
  }

  .service-table tr {
    border-bottom: 2px solid #777;
  }

  .service-table tr:last-child {
    border-bottom: 0;
  }

  .service-table td:first-child {
    width: auto;
    background: #edf1ff;
  }

  .two-column-panel {
    grid-template-columns: 1fr;
  }
}

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

  .browser-buttons {
    display: none;
  }

  .nav-bar a {
    width: 100%;
  }

  .cta-row {
    display: block;
  }

  .button-link {
    width: 100%;
    margin-bottom: 8px;
  }

  .visitor-count {
    font-size: 21px;
  }
}
