/* fjordarchitects.com: the old theme's look (968 px page, grey ground, 11 px Arial, three tiles a row), written new.
   Below 980 px the page follows the screen: the old theme had a fixed width only. */

* { margin: 0; padding: 0; box-sizing: content-box; }
[hidden] { display: none !important; }
body { background-color: #edeeee; font-size: 11px; font-family: arial, georgia, verdana, sans-serif; color: #000; }
a { color: #525252; text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: none; }
h1, h2, h3, p { margin: 10px 0; }
h3 { font-size: 11px; color: #525252; }

.fa-page { width: 968px; background-color: #fff; margin: 0 auto; }

.fa-menu { width: 938px; padding: 20px 15px; border-bottom: 1px solid #eee; }
.fa-menu ul { list-style-type: none; display: flex; align-items: flex-start; height: 0; }
/* the old theme floated the 120 px logo: the menu line runs under the words at 41 px, the logo hangs over it and
   the band below closes 20 px under the logo (41 + 20 + 79 + 20 = 160 px), as on the old page */
.fa-menu li { margin: 0 10px; font-size: 11px; }
.fa-brand { margin: 0; font-size: 11px; }
.fa-logo { display: block; }
.fa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fa-band { width: 953px; height: 79px; padding: 20px 0 20px 15px; border-bottom: 1px solid #eee; }

/* the old page's gaps under the band, measured on it: the tiles 30 px, a project's title 38 px */
.fa-grid { padding-top: 30px; }
.fa-row { display: flex; padding-left: 61px; }
.fa-tile { width: 250px; margin-right: 50px; color: #afafaf; }
.fa-tile:last-child { margin-right: 0; }
.fa-tile-pic { display: block; width: 240px; height: 250px; }
.fa-tile-pic img { display: block; width: 240px; height: 250px; transition: opacity 0.3s; }
.fa-tile-pic:hover img, .fa-tile-pic:focus-visible img { opacity: 0.5; }
.fa-divider { width: 100%; height: 2px; border-bottom: 1px solid #eee; margin: 30px 0; }

/* a project page as the old one: pictures of one paragraph stacked with no gap, an empty paragraph as the old
   spacer, a caption 10 px under its picture, two empty lines before the footer */
.fa-single { padding: 27px 0 24px 29px; width: 920px; }
.fa-single h1 { font-size: 13px; }
.fa-pics img, .fa-cap img { display: block; width: 800px; max-width: 100%; height: auto; }
.fa-cap { width: 810px; max-width: 100%; }
.fa-cap figcaption { margin: 10px 0; }
.fa-quote { text-align: center; }
.fa-map { display: block; width: 600px; height: 450px; max-width: 100%; border: 0; }
/* the contact form as the old one: the browser's own fields, a label line over each, the answer in a framed line
   under the button (blue, green when sent, amber when a field is wrong, red when sending failed) */
.fa-form input[type="text"], .fa-form input[type="email"], .fa-form textarea { max-width: 100%; }
/* the old textarea's line had no space under it, and the old button's line held a hidden 24 px spinner */
.fa-form textarea { vertical-align: bottom; }
.fa-send::after { content: ""; display: inline-block; width: 24px; height: 24px; margin: 0 24px; }
.fa-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fa-response { margin: 2em 0.5em 1em; padding: 0.2em 1em; border: 2px solid #00a0d2; }
.fa-response:empty { display: none; }
.fa-sent { border-color: #46b450; }
.fa-invalid { border-color: #ffb900; }
.fa-failed { border-color: #dc3232; }

.fa-foot { width: 958px; padding: 5px; text-align: center; border-top: 1px solid #eee; margin-top: 5px; color: #afafaf; }

@media (max-width: 980px) {
  .fa-page, .fa-menu, .fa-band, .fa-single, .fa-foot { width: auto; }
  .fa-menu ul { height: auto; }
  .fa-band { display: none; }
  .fa-map { height: auto; aspect-ratio: 4 / 3; }
  .fa-row { flex-wrap: wrap; justify-content: center; padding: 0 15px; gap: 0 30px; }
  .fa-tile, .fa-tile:last-child { margin: 0 0 10px; }
  .fa-divider { display: none; }
  .fa-grid { padding: 20px 0; }
  .fa-single { padding: 10px 15px 24px; }
}
