/* ==========================================================================
   Tetragon Publishing - Complete Stylesheet
   Rebuilt from scratch with modern CSS. Replaces app.css + apostrophe.css.
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  color-scheme: light only;
  --color-red: #A01714;
  --color-dark: #302224;
  --color-gray: #A19D96;
  --color-olive: #60632E;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-heading: 'Lato', 'Futura', Arial, sans-serif;
  --max-width: 940px;
  --gutter: 20px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; } /* 1rem = 10px */
body, h1, h2, h3, h4, h5, h6, p, blockquote, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; }

/* --- Selection --- */
::selection { background: #fceaea; }

/* --- Base Typography --- */
body {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-dark);
  background: url('../img/body-bg.png') center center repeat;
  -webkit-font-smoothing: auto;
}
p {
  font-size: 20px;
  line-height: 1.5;
  text-indent: 1.5em;
  margin: 0;
}
p:first-child { text-indent: 0; }
.bodytext p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.bodytext p:last-child { margin-bottom: 1em; }
a { color: var(--color-dark); }
a:hover { color: var(--color-gray); }
p a, p a:visited { color: var(--color-olive); }
p a:hover { color: #891411; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: normal; line-height: 1.25; }
h1 {
  color: var(--color-red);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-weight: normal;
  font-size: 46px;
  margin-bottom: 12px;
}
h1 a {
  color: var(--color-red);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-weight: normal;
}
h2 { font-size: 35px; margin-bottom: 9px; }
h3 { font-size: 28px; margin-bottom: 9px; }
h4 { font-size: 21px; margin-bottom: 3px; }
h5 { font-size: 18px; font-weight: normal; }
h6 { font-size: 15px; font-weight: normal; }
em, i { font-style: italic; }
strong, b { font-weight: bold; }
small { font-size: 60%; }

/* --- Utility Classes --- */
.hide { display: none; }
.small-caps {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
}
.ital { font-style: italic; }
p.new-section {
  margin-top: 29px;
  padding-top: 29px;
  border-top: 2px dotted var(--color-gray);
  text-indent: 0;
}

/* --- Drop Caps --- */
span.dropcap {
  float: left;
  color: var(--color-red);
  font-size: 116px;
  line-height: 0.65;
  margin-top: 5px;
  margin-right: 2px;
  overflow: visible;
}

/* --- Article End Block --- */
span.article-end {
  white-space: nowrap;
  padding-right: 0.5em;
}
span.article-end-block {
  display: inline-block;
  text-indent: 0;
  background: var(--color-red);
  width: 0.4em;
  height: 0.4em;
  margin-left: 5px;
}

/* --- Bullet Lists --- */
ul.bullet { margin: 20px 0; }
ul.bullet li {
  font-size: 20px;
  line-height: 1.5;
  background: url('../img/bullet.png') no-repeat 0 10px;
  margin-left: 65px;
  padding-left: 22px;
  text-indent: 0;
}
ul + p { text-indent: 0; }

/* --- Columnar (CSS Columns) --- */
div.columnar {
  column-count: 2;
  column-gap: 60px;
  column-rule: 2px dotted #b9b6b1;
  margin-bottom: 40px;
}
div.column-span-all {
  column-span: all;
  margin: 25px 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

/* Sticky footer with flexbox */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
.wrapper {
  flex: 1 0 auto;
  border-top: 5px solid var(--color-red);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Page Layouts (CSS Grid) --- */

/* Contact page: form + map side by side */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

/* Clients page: nav | content | dots */
div.clients {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  gap: 20px;
}

/* Blog: main content + sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 30px;
}

/* Services: text + optional aside within each dropdown */
.services-list .dropdown {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}
.service-text { flex: 1; }
.service-aside { flex: 0 0 240px; }

/* Block grid (services thumbnail grid) */
.block-grid { display: block; overflow: hidden; }
.block-grid > li { display: block; float: left; }
.block-grid.two-up { margin-left: -4%; }
.block-grid.two-up > li { margin-left: 4%; width: 46%; }

/* Footer section centering — layout rules in Footer section below */

/* ==========================================================================
   Header & Logo
   ========================================================================== */
header {
  height: 125px;
  position: relative;
}
header::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: rgba(255, 255, 255, 0.45);
}
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 5px;
  background: var(--color-dark);
}
header a {
  display: block;
  width: 105px;
  height: 105px;
  margin: 0 auto;
  position: relative;
  top: 8px;
  z-index: 1;
  background: url('../img/logo-full.png') no-repeat center center;
  background-size: contain;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav#main-nav {
  height: 72px;
  line-height: 72px;
  text-align: justify;
  border-bottom: 2px dotted var(--color-dark);
}
nav#main-nav span {
  width: 100%;
  display: inline-block;
}
nav#main-nav a {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: normal;
  font-style: normal;
  text-transform: uppercase;
  display: inline-block;
  color: var(--color-dark);
}
nav#main-nav a.services { margin-left: 4px; }
nav#main-nav a.sel { color: var(--color-red); cursor: default; }
nav#main-nav a.sel:hover { cursor: default; color: var(--color-red); }
nav#main-nav a:visited { text-decoration: none; }
nav#main-nav a:focus { text-decoration: none; outline: none; }
nav#main-nav a:hover { text-decoration: none; }
nav#main-nav::after { content: ''; display: inline-block; width: 100%; }
nav#main-nav a::first-letter { color: var(--color-red); }

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  color: var(--color-dark);
  font-size: 20px;
  padding: 2px 8px;
  border: 1.5px solid var(--color-dark);
  float: right;
  margin-top: 20px;
  line-height: 1;
}

/* ==========================================================================
   hgroup
   ========================================================================== */
hgroup {
  border-bottom: 2px dotted var(--color-dark);
  padding-bottom: 10px;
  margin-bottom: 25px;
}
hgroup h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.6em;
  margin-top: 14px;
  margin-bottom: 0;
}
hgroup h2 {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-olive);
  font-style: italic;
  padding-left: 76px;
  font-weight: normal;
  margin-top: 5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  flex-shrink: 0;
  background-color: var(--color-dark);
  border-top: 4px solid var(--color-red);
  width: 100%;
  padding: 0 0 14px;
}
footer section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
footer h6 {
  font-size: 28px;
  border-left: 16px solid var(--color-red);
  margin-left: calc(var(--gutter) * -1);
  padding: 14px 0 6px 14px;
  color: var(--color-gray);
  text-transform: lowercase;
  margin-top: 0;
  margin-bottom: 0;
}
footer p.address {
  font-variant: small-caps;
  letter-spacing: 0.18em;
  padding-left: 30px;
  font-size: 16px;
  margin: 0;
  color: var(--color-gray);
  text-transform: lowercase;
  text-indent: 0;
  white-space: nowrap;
}

/* ==========================================================================
   About Page (index.html)
   ========================================================================== */
article.about .intro p {
  font-size: 24px;
  height: 357px;
}
article.about .intro p span.dropcap {
  float: left;
  color: var(--color-red);
  font-size: 134px;
  line-height: 0.71;
  margin-top: 5px;
  margin-right: 7px;
  margin-left: -14px;
}
article.about .intro p::first-line {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  font-weight: bold;
}
article.about .slideshow-home {
  width: 500px;
  aspect-ratio: 500 / 332;
  float: right;
  margin: 0 0 25px 26px;
  position: relative;
  overflow: hidden;
}
#home-slides {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}
#home-slides img {
  width: 25%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Slideshow navigation arrows */
.slide-prev, .slide-next {
  position: absolute;
  top: 40%;
  width: 60px;
  height: 20%;
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  z-index: 2;
}
.slide-prev { left: 0; }
.slide-next { right: 0; }
.slide-prev:hover, .slide-next:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Services Page
   ========================================================================== */
.services-list {
  padding-top: 20px;
  margin-bottom: 50px;
}
.services-list h2 {
  text-align: center;
  font-size: 32px;
  line-height: 50px;
  color: var(--color-olive);
  font-weight: normal;
}
.services-list .start-ebook-slides {
  color: var(--color-dark);
  cursor: pointer;
  float: right;
}
.services-list .dropdown .service-text,
.services-list .dropdown .service-aside { margin-top: 0; }
.services-list .block-grid.two-up { margin-left: 0; }
.services-list .block-grid.two-up li {
  width: 100px;
  height: 100px;
  margin-left: 20px;
  float: left;
}
.services-list .pic-grid {
  width: 240px;
  float: right;
  margin-right: -4px;
}
.services-list .pic-grid li {
  cursor: pointer;
  opacity: 0.6;
}
.services-list .pic-grid li img {
  width: 100px;
  height: 100px;
  display: block;
}
.services-list figure.square-banner {
  float: right;
  width: 300px;
  margin-left: 30px;
}
.services-list figure.square-banner img {
  opacity: 0.7;
  border: 1px solid var(--color-gray);
}
.services-list figure.square-banner figcaption {
  float: right;
  font-style: italic;
  font-size: 0.85em;
  line-height: 20px;
  height: 20px;
  color: var(--color-red);
  border-right: 20px solid var(--color-red);
  padding-right: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.services-list figure.left-banner img { float: left; }
.services-list figure.left-banner figcaption {
  float: left;
  font-style: italic;
  font-size: 0.85em;
  line-height: 25px;
  color: var(--color-red);
  border-right: 20px solid var(--color-red);
  padding-right: 20px;
  margin-top: 30px;
}
.services-list figure.hosting-banner img {
  float: right;
  opacity: 0.7;
}
.services-list figure.hosting-banner figcaption {
  float: right;
  font-style: italic;
  font-size: 0.85em;
  line-height: 20px;
  height: 20px;
  color: var(--color-red);
  border-right: 20px solid var(--color-red);
  padding-right: 20px;
  margin-top: 20px;
}

/* ==========================================================================
   Modal Slider (services page galleries)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  overflow: visible;
  background: url('../img/body-light-bg.png') repeat;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  padding: 30px 40px 34px;
}
.modal-close {
  font-size: 22px;
  line-height: 0.5;
  position: absolute;
  top: 8px;
  right: 11px;
  color: #aaa;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2;
}
.modal-slider {
  overflow: hidden;
  overflow-y: auto;
  max-height: calc(90vh - 64px);
  position: relative;
}
.modal-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.modal-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.modal-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.modal-slide figcaption {
  text-align: center;
  padding: 7px 0;
  background: rgba(0, 0, 0, 0.05);
}
.modal-slide figcaption p {
  font-style: italic;
  text-indent: 0;
  font-size: 0.85em;
  color: var(--color-gray);
}
.modal-slide figcaption p a { color: var(--color-red); border-bottom: 0; }
.modal-slide figcaption .caption-title {
  text-transform: lowercase;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-style: normal;
  font-size: 1.3em;
  padding-bottom: 0.25em;
  line-height: 0.8;
  font-family: var(--font-heading);
}
/* Nav arrows — overlaid on image area only, same style as home page */
.modal-prev, .modal-next {
  position: absolute;
  top: 35%;
  height: 20%;
  width: 60px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  z-index: 2;
}
.modal-prev { left: -30px; }
.modal-next { right: -30px; }
.modal-prev:hover, .modal-next:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   Clients Page
   ========================================================================== */
div.clients { margin-bottom: 30px; }
div.clients .clients-list {
  border: 0;
  background: none;
  border-right: 2px dotted var(--color-dark);
  padding: 0;
  padding-right: 25px;
}
div.clients .clients-list li {
  font-size: 20px;
  border: 0;
  padding: 5px 0;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  background: none;
  text-align: right;
  color: var(--color-gray);
  line-height: 1.05;
}
div.clients .clients-list li.sel { color: var(--color-red); }
div.clients section { clear: both; }
div.clients section .client-logo {
  width: 156px;
  height: 156px;
  float: right;
  margin-left: 25px;
  margin-bottom: 10px;
  border: 1px solid var(--color-gray);
  padding: 2px;
}
div.clients section .client-logo img {
  width: 140px;
  height: 140px;
  display: block;
  margin: 8px;
  opacity: 0.9;
}
div.clients section .client-text { overflow: hidden; }
div.clients section figure {
  width: 100%;
}
div.clients section figure img {
  width: 100%;
  border: 1px solid var(--color-gray);
  background: white;
}
div.clients section figure figcaption {
  font-family: var(--font-heading);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8em;
  margin-top: 0.4em;
}
div.clients section figure figcaption span.red-bullet {
  margin-right: 0.2em;
  line-height: 17px;
  display: block;
  float: left;
  color: var(--color-red);
  overflow: hidden;
  font-size: 1.6em;
  height: 30px;
}
div.clients section figure figcaption a {
  font-size: small;
  float: right;
  min-height: 30px;
}
div.clients section figure figcaption a:hover { color: var(--color-red); }

/* Client navigation dots (pure CSS, replacing sprite) */
div.clients ul.client-nav { margin-left: 0; padding: 0; }
div.clients ul.client-nav li {
  width: 22px;
  height: 22px;
  margin-bottom: 5px;
  cursor: pointer;
  border-radius: 50%;
  border: 1.5px solid var(--color-dark);
  background: transparent;
  position: relative;
}
div.clients ul.client-nav li:hover {
  background: rgba(255, 151, 124, 0.3);
}
/* Selected state - the JS swaps class names like nav-page-1 <-> nav-page-1_sel */
div.clients ul.client-nav li[class$="_sel"] {
  background: rgb(255, 151, 124);
}
/* Number labels for dots - use data-page attribute */
div.clients ul.client-nav li::after {
  content: attr(data-page);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: bold;
  font-variant: small-caps;
  color: var(--color-dark);
  line-height: 1;
}
div.clients ul.client-nav li:hover::after { color: var(--color-red); }
div.clients ul.client-nav li[class$="_sel"]::after { color: var(--color-dark); }

/* ==========================================================================
   Contact Page
   ========================================================================== */
article.contact div.phone {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  margin-bottom: 25px;
  text-align: right;
}
article.contact div.phone span.red {
  color: var(--color-red);
  font-size: 20px;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
}
article.contact div.phone a { letter-spacing: 0; color: var(--color-dark); }
article.contact #map_canvas {
  width: 100%;
  height: 367px;
  margin-bottom: 30px;
  opacity: 0.7;
}
article.contact form.nice {
  float: left;
  text-align: right;
  margin-top: -12px;
  width: 360px;
}
article.contact form.nice label {
  float: left;
  clear: left;
  width: 100px;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-size: 20px;
  background: none;
  text-align: right;
  color: var(--color-red);
  line-height: 42px;
  margin: 0;
  margin-top: 12px;
}
article.contact form.nice label span.req {
  float: right;
  margin-right: -280px;
  margin-top: 9px;
}
article.contact form.nice input,
article.contact form.nice textarea {
  float: left;
  width: 220px;
  line-height: 30px;
  height: 30px;
  margin-left: 30px;
  margin-top: 18px;
  font-size: 20px;
  padding-left: 5px;
  font-family: var(--font-heading);
  border: solid 1px #bbb;
  border-radius: 2px;
  background: #fff;
  outline: none;
}
article.contact form.nice input:focus,
article.contact form.nice textarea:focus { background-color: #f9f9f9; }
article.contact form.nice textarea { height: 90px; }
article.contact form.nice input[type=submit] {
  cursor: pointer;
  height: 52px;
  width: 52px;
  background: url('../img/submit-button.png');
  border: 0;
  float: right;
  clear: both;
  margin-bottom: 25px;
  text-indent: -9999px;
}
article.contact #contact_loader {
  width: 40px;
  height: 40px;
  background: url('../img/loading.gif') 0 0 no-repeat;
  float: right;
  margin-top: 20px;
  display: none;
}
#contact_res { font-size: 18px; margin-top: 20px; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-layout h1.blog-item-title a,
.blog-layout h2.blog-item-title a {
  color: var(--color-red);
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant: small-caps;
  line-height: 1.4em;
  margin-top: 10px;
  font-weight: normal;
}
.blog-layout h1.blog-item-title a:hover,
.blog-layout h2.blog-item-title a:hover {
  color: #891411;
  text-decoration: none;
}
.blog-layout article.blog h2.blog-item-title a { font-size: 20px; }
.blog-layout p.blog-item-meta {
  color: var(--color-olive);
  font-size: 16px;
  line-height: 24px;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  margin-top: -5px;
  overflow: hidden;
}
.blog-layout p.blog-item-meta span {
  font-style: normal;
  float: left;
  margin-right: 12px;
}
.blog-layout p.blog-item-meta span:not(:last-child)::after {
  content: '\00b7';
  margin-left: 6px;
}
.blog-layout .blog-item-content,
.blog-layout .excerpt-extras {
  font-size: 2rem;
  line-height: 1.5;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.blog-layout .blog-item-content ul { margin: 20px 0; }
.blog-layout .blog-item-content ul li {
  background: url('../img/bullet.png') no-repeat 0 10px;
  margin-left: 65px;
  padding-left: 22px;
  text-indent: 0;
}
.blog-layout .blog-item-content figure {
  margin: 25px 0;
}
.blog-layout .blog-item-content figure img {
  width: 100%;
}
.blog-layout .blog-item-content figure figcaption {
  color: #959089;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  text-indent: 0;
}
.blog-layout .blog-item-content code {
  font-size: 0.8em;
}
.blog-layout .aut {
  text-align: right;
  color: var(--color-red);
  text-indent: 0;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-weight: bolder;
}
.blog-layout div.blog-item-tags {
  text-align: left;
  margin-top: 25px;
}
.blog-layout div.blog-item-tags a {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
}
.blog-layout div.blog-item-tags a:hover {
  text-decoration: none;
  color: #180303;
}
.blog-layout div.blog-read-more a {
  float: right;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--color-red);
  text-transform: lowercase;
  font-variant: small-caps;
  background: url('../img/bullet.png') 0 11px no-repeat;
  padding-left: 20px;
}
.blog-layout div.blog-read-more a:hover {
  text-decoration: none;
  color: #891411;
}
.blog-layout .excerpt {
  padding-bottom: 25px;
  margin-bottom: 10px;
}
.blog-layout .excerpt:not(:last-child) {
  border-bottom: 2px dotted var(--color-gray);
}
.blog-layout .blog-item-tags-label {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-dark);
  margin-right: 4px;
}
.blog-layout .blog-item-tags.tags {
  font-family: var(--font-heading);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

/* Blog sidebar */
.blog-sidebar {
  margin: 0 0 20px 0;
  width: auto;
  overflow: visible;
}
.blog-sidebar h4.sidebar-title {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  text-transform: lowercase;
  font-variant: small-caps;
  line-height: 18px;
  margin-top: 18px;
  margin-bottom: 4px;
}
.blog-sidebar .tag-list a {
  color: var(--color-red);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-size: 16px;
}
.blog-sidebar .tag-list .tag-count {
  font-size: 14px;
  color: var(--color-gray);
  margin-right: 4px;
}
/* Sidebar tag list */
.blog-sidebar .tag-list { margin-left: 1em; }
.blog-sidebar .tag-list li { margin-bottom: 4px; }

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  * { background: transparent !important; color: #141414 !important; }
  nav#main-nav, footer { display: none; }
}

/* ==========================================================================
   RESPONSIVE - Tablet (768px - 939px)
   ========================================================================== */
@media only screen and (max-width: 939px) {
  /* Header & logo: scale down 25% */
  header { height: 110px; }
  header a { width: 90px; height: 90px; top: 8px; }

  /* Nav: keep within main text bounds */
  nav#main-nav a { font-size: 22px; }

  /* hgroup: dotted line above and below the title block, remove nav bottom border */
  nav#main-nav { border-bottom: none; }
  hgroup { border-top: 2px dotted var(--color-dark); padding-top: 10px; }

  /* About: reorder so slideshow appears after intro paragraph */
  article.about .bodytext {
    display: flex;
    flex-direction: column;
  }
  article.about .intro { order: 1; }
  article.about .slideshow-home {
    order: 2;
    float: none;
    width: 100%;
    max-width: 500px;
    margin: 25px auto 0;
  }
  article.about .columnar { order: 3; }
  article.about .intro p { height: auto; }

  /* Services: stack aside below text at tablet */
  .services-list .dropdown { flex-direction: column; }
  .service-aside { flex: none; }
  .services-list figure.square-banner {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 20px 0;
  }
  .services-list figure.left-banner img,
  .services-list figure.hosting-banner img {
    float: none;
    max-width: 100%;
  }
  .services-list .pic-grid {
    width: 100%;
    max-width: 240px;
    float: none;
    margin: 20px 0;
  }

  /* Contact: fluid form */
  article.contact form.nice { width: 100%; max-width: 360px; }

  /* Footer */
  footer p.address { padding-left: 30px; }

  /* Clients: narrow columns, unfloat logo at tablet */
  div.clients {
    grid-template-columns: 160px 1fr 50px;
  }
  div.clients .clients-list {
    padding-right: 15px;
  }
  div.clients section .client-logo {
    float: none;
    margin: 0 auto 15px auto;
  }
  div.clients ul.client-nav {
    margin-left: -10px;
  }
}

/* ==========================================================================
   RESPONSIVE - Phone (0 - 767px)
   ========================================================================== */
@media only screen and (max-width: 767px) {
  /* --- Typography --- */
  p { font-size: 18px; }
  .bodytext p { text-align: left; hyphens: none; -webkit-hyphens: none; }
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  span.dropcap { font-size: 80px; }
  ul.bullet li { margin-left: 20px; font-size: 18px; }

  /* Single column text */
  div.columnar {
    column-count: 1;
    column-gap: 0;
    column-rule: none;
  }

  /* --- Header --- */
  header { height: auto; padding: 20px 0; }
  header a { top: 0; width: 80px; height: 73px; }

  /* --- Navigation: horizontal inline with bullet separators --- */
  .nav-toggle { display: none; }
  nav#main-nav {
    height: auto;
    line-height: 1.6;
    text-align: center;
    border-bottom: none;
    padding: 8px 0;
  }
  nav#main-nav a {
    font-size: 21px;
    display: inline;
    padding: 0;
  }
  nav#main-nav a + a::before {
    content: '\b7';
    margin: 0 6px;
    color: var(--color-gray);
  }
  nav#main-nav a.services { margin-left: 0; }
  nav#main-nav a.blog::before {
    content: '\A';
    white-space: pre;
    margin: 0;
  }
  nav#main-nav span { display: none; }
  nav#main-nav::after { display: none; }

  /* --- hgroup --- */
  hgroup { margin-bottom: 10px; }
  hgroup h1 { font-size: 18px; }
  hgroup h2 { padding-left: 0; font-size: 18px; }

  /* --- About Page --- */
  article.about .slideshow-home {
    width: 100%;
    max-width: 100%;
    margin: 15px 0 25px 0;
  }
  article.about .intro p {
    font-size: 20px;
    height: auto;
  }
  article.about .intro p span.dropcap {
    font-size: 96px;
    margin-left: 0;
  }

  /* --- Services Page: phone-specific overrides (stacking inherited from tablet) --- */
  .services-list { margin-bottom: 30px; }
  .services-list h2 { font-size: 26px; line-height: 40px; }
  .services-list figure.square-banner { max-width: 100%; }
  .services-list .pic-grid { max-width: 100%; }

  /* --- Clients Page: stack to single column --- */
  div.clients {
    grid-template-columns: 1fr;
  }
  div.clients .clients-list {
    border-right: none;
    border-bottom: 2px dotted var(--color-dark);
    padding-right: 0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
  }
  div.clients .clients-list li {
    display: inline;
    font-size: 18px;
    color: var(--color-dark);
    cursor: pointer;
  }
  div.clients .clients-list li + li::before {
    content: '\b7';
    margin: 0 6px;
    color: var(--color-gray);
  }
  div.clients section { margin-left: 0; }
  div.clients section .client-logo {
    float: none;
    margin: 0 auto 15px auto;
  }
  div.clients ul.client-nav {
    margin-left: 0;
    text-align: center;
  }
  div.clients ul.client-nav li {
    display: inline-block;
    float: none;
  }

  /* --- Contact Page: stack to single column --- */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  article.contact form.nice {
    width: 100%;
    max-width: 100%;
    float: none;
    margin-top: 0;
  }
  article.contact form.nice label {
    float: none;
    width: auto;
    text-align: left;
    line-height: 1.4;
    margin-top: 12px;
    display: block;
  }
  article.contact form.nice label span.req {
    float: none;
    margin-right: 0;
    display: inline;
  }
  article.contact form.nice input,
  article.contact form.nice textarea {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
  article.contact form.nice textarea { height: 120px; }
  article.contact form.nice input[type=submit] { float: right; clear: both; }
  article.contact #map_canvas { height: 250px; }
  article.contact div.phone { text-align: left; }

  /* --- Blog: stack to single column --- */
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-layout .blog-item-content ul li {
    margin-left: 15px;
    font-size: 18px;
  }

  /* --- Footer --- */
  footer h6 {
    font-size: 22px;
    border-left-width: 12px;
    padding: 10px 0 8px 10px;
  }
  footer p.address {
    padding-left: 22px;
    font-size: 13px;
    letter-spacing: 0.1em;
    white-space: normal;
  }

  /* --- Modals: reduced padding on phone --- */
  .modal-content { padding: 15px; }
}

/* ==========================================================================
   Blog Comments (static, imported from Disqus)
   ========================================================================== */
.blog-comments {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dotted var(--color-gray);
}
.blog-comments h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  margin-bottom: 20px;
}
.blog-comment {
  margin-bottom: 20px;
}
.blog-comment:not(.reply) {
  background: url('../img/bullet.png') no-repeat 0 10px;
  padding-left: 22px;
}
.blog-comment.reply {
  margin-left: 30px;
  padding-left: 16px;
  border-left: 3px solid var(--color-gray);
}
.blog-comment-meta {
  font-family: var(--font-body);
  font-size: 16px;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--color-gray);
  margin-bottom: 4px;
}
.blog-comment-meta .comment-author {
  color: var(--color-dark);
}
.blog-comment-meta .comment-author.is-op {
  color: var(--color-red);
}
.blog-comment-meta .comment-author.is-op::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('/apple-touch-icon.png') no-repeat center;
  background-size: contain;
  vertical-align: -2px;
  margin-right: 4px;
}
.blog-comment-meta a {
  color: var(--color-gray);
}
.blog-comment-meta a:hover {
  color: var(--color-dark);
}
.blog-comment p {
  font-size: 18px;
  text-indent: 0;
  margin-bottom: 0;
}

/* Native form validation highlight */
article.contact form.nice input:invalid,
article.contact form.nice textarea:invalid {
  border-color: var(--color-red);
}
