/* circa 2001, hand-written */
body {
  margin: 0;
  padding: 16px 8px;
  background: #d4d0c8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='%23c8c4bc'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23c8c4bc'/%3E%3C/svg%3E");
  font: 12px/1.5 Verdana, Tahoma, Geneva, sans-serif;
  color: #000;
}
a { color: #0000cc; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; background: #ffffcc; }

#frame {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: 1px 1px 0 #000;
}

#head {
  background: linear-gradient(to right, #0a246a, #a6caf0);
  padding: 14px 14px 10px;
  color: #fff;
}
#logo {
  font: bold 26px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 4px;
  color: #fff;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}
#logo:hover { background: none; color: #ffff99; }
#tag { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 1px; }

#strip {
  background: #ece9d8;
  border-bottom: 1px solid #808080;
  padding: 3px 14px;
  font-size: 11px;
}

#cols { display: flex; }
#side {
  width: 150px;
  flex: none;
  padding: 10px;
  background: #f0f0f0;
  border-right: 1px dashed #a0a0a0;
}
#main { flex: 1; padding: 10px 18px 18px; min-width: 0; }

.box { border: 1px solid #808080; background: #fff; margin-bottom: 10px; }
.boxhead {
  background: #0a246a;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 2px 6px;
}
.box p { margin: 6px; }

#nav { list-style: none; margin: 0; padding: 4px; }
#nav li { margin: 3px 0; }
#nav a {
  display: block;
  padding: 3px 8px;
  background: #d4d0c8;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 11px;
}
#nav a:hover { background: #e8e4dc; }
#nav a.on, #nav a:active {
  border-color: #404040 #fff #fff #404040;
  background: #c0bcb4;
}

h1 {
  font: bold 20px Georgia, "Times New Roman", serif;
  color: #0a246a;
  border-bottom: 3px double #0a246a;
  padding-bottom: 2px;
  margin: 6px 0 10px;
}
h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #ece9d8;
  border-left: 6px solid #0a246a;
  padding: 2px 6px;
  margin: 18px 0 8px;
}
p { margin: 0 0 10px; }
.small { font-size: 10px; color: #555; }
.meta { font-size: 11px; color: #555; }
hr { border: 0; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }

.hero {
  display: block;
  max-width: 100%;
  max-height: 420px;
  height: auto;
  border: 1px solid #000;
  padding: 3px;
  background: #fff;
  margin-bottom: 10px;
}

.grid { display: flex; flex-wrap: wrap; gap: 10px; }
.th {
  width: 166px;
  text-align: center;
  font-size: 11px;
  text-decoration: none;
}
.th img {
  display: block;
  width: 160px;
  height: 120px;
  object-fit: cover;
  border: 3px solid #fff;
  outline: 1px solid #808080;
  margin-bottom: 3px;
}
.th:hover img { outline: 2px solid #cc0000; }
.th:hover { background: none; }
.th span { text-decoration: underline; }

table { border-collapse: collapse; }
.intro { text-align: center; margin: 0 0 14px; }
.intro img {
  max-width: 100%;
  height: auto;
  background: #000;
  border: 2px solid;
  border-color: #404040 #fff #fff #404040;
}
.welcome td { vertical-align: top; padding: 0 12px 0 0; }
.welcome img { border: 1px solid #000; padding: 2px; height: 160px; object-fit: cover; }
.news td, .cv td { padding: 3px 8px; border-bottom: 1px dotted #a0a0a0; vertical-align: top; }
td.d { white-space: nowrap; font-weight: bold; color: #0a246a; }

.portrait { float: right; border: 1px solid #000; padding: 3px; margin: 0 0 10px 12px; }
.mail { font-size: 14px; background: #ffffcc; border: 1px solid #e0d080; padding: 6px; }
.pn { display: flex; justify-content: space-between; font-weight: bold; }

#foot {
  border-top: 1px solid #808080;
  background: #ece9d8;
  text-align: center;
  padding: 8px;
  font-size: 11px;
}
.counter {
  display: inline-block;
  margin-left: 8px;
  padding: 0 4px;
  background: #000;
  color: #3f3;
  font: bold 12px "Courier New", monospace;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  #cols { flex-direction: column; }
  #side { width: auto; border-right: 0; border-bottom: 1px dashed #a0a0a0; }
  #nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .th, .th img { width: 140px; }
}
