:root {
  --bg: #f5f5f2;
  --panel: #ffffff;
  --panel-alt: #f0f0ee;
  --ink: #1d1d1d;
  --muted: #6b6b6b;
  --line: #d9d8d3;
  --brand: #2d6fb5;
  --brand-strong: #204d7b;
  --accent: #ef6f00;
  --shadow: rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container,
.container-fluid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 900px;
}

#header {
  position: relative;
}

.banner {
  min-height: 250px;
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 1px 1px #000000;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
}

#logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#logo img.img-circle {
  width: 18vmin;
  height: 18vmin;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.2);
}

#logo .title {
  display: block;
  font-family: "Alice", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  letter-spacing: 0.02em;
  color: yellow;
}

#logo .tagline {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: cyan;
  font-weight: bold;
}

#logo .tagline a {
  color: cyan;
  font-weight: bold;
}

.navbar-default {
  background: black;
  border: none;
  border-bottom: 1px solid #333333;
  box-shadow: none;
  min-height: 48px;
  font-weight: normal;
  text-transform: uppercase;
}

.navbar-default .container-fluid {
  width: min(1120px, calc(100% - 2rem));
}

.navbar-nav {
  float: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin: 0;
  list-style: none;
  padding-left: 0;
}

.navbar-nav > li {
  float: none;
  display: inline-block;
}

.navbar-nav > li > a {
  display: inline-block;
  padding: 20px 30px;
  color: yellow;
  text-transform: uppercase;
  font-weight: normal;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.navbar-nav > li.active > a:hover,
.navbar-nav > li.active > a:focus {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.navbar-toggle,
.navbar-collapse,
.navbar-header,
.navbar-default .navbar-collapse {
  display: none !important;
}

@media (max-width: 1024px) {
  .navbar-nav > li > a {
    padding: 10px;
  }
}

.page-shell {
  padding: 2.5rem 0 4rem;
}

.hero {
  padding: 0 0 2rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
}

.section-block {
  margin-top: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.recentworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.recentwork-item .thumbnail {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px var(--shadow);
  color: var(--ink);
}

.recentwork-item .thumbnail:hover {
  text-decoration: none;
}

.img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 28, 0.4);
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.recentwork-item .thumbnail:hover .cover {
  opacity: 1;
}

.more {
  font-weight: 700;
}

.title {
  display: block;
  padding: 0.9rem 1rem 1.1rem;
  font-weight: 700;
}

.recent-posts-list {
  display: grid;
  gap: 0.9rem;
}

.recent-post-item {
  padding: 0.25rem 0;
}

.recent-post-item a {
  font-weight: 700;
}

.recent-post-item span {
  color: var(--muted);
}

.recent-post-item blockquote {
  margin: 0.45rem 0 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 24px var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 1.2rem 1.2rem 1.4rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.project-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.category-page h1,
.project-page h1 {
  margin-bottom: 0.4rem;
}

.category-list {
  display: grid;
  gap: 2rem;
  max-width: 920px;
}

.category-entry {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.category-entry:last-child {
  border-bottom: none;
}

.category-entry h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.entry-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-body {
  color: var(--ink);
}

.entry-body p {
  margin: 0 0 1rem;
}

.entry-body img {
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0;
  border-radius: 6px;
}

.entry-body a {
  color: var(--brand-strong);
}

.meta {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

#footer {
  margin-top: 2rem;
  background: #232323;
  padding: 30px 0 0 0;
  font-size: 12px;
  color: #999;
}

#footer a {
  color: #ccc;
}

#footer a:hover {
  color: #fff;
}

#footer h3.widget-title {
  font-size: 15px;
  text-transform: uppercase;
  color: #ccc;
  margin: 0 0 20px;
}

#footer .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.widget {
  padding: 0 15px;
  margin-bottom: 1.5rem;
}

.widget-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.widget-body {
  color: var(--muted);
}

.follow-me-icons {
  display: flex;
  gap: 0.75rem;
  font-size: 30px;
}

.follow-me-icons i {
  padding: 15px 0;
  margin: 0 10px 0 0;
}

.follow-me-icons a {
  color: #ccc;
}

.follow-me-icons a:hover {
  color: #fff;
}

#underfooter {
  background: #191919;
  padding: 15px 0;
  color: #777;
  font-size: 12px;
}

#underfooter a {
  color: #aaa;
}

#underfooter a:hover {
  color: #fff;
}

#underfooter .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.text-right {
  text-align: right;
}

@media (max-width: 767px) {
  .navbar-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
  }

  .navbar-nav > li {
    display: inline-block;
  }

  .navbar-nav > li > a {
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.3;
  }

  .navbar-default .container-fluid {
    width: 100%;
  }

  .text-right {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .banner {
    min-height: 220px;
  }

  .section-header,
  .footer-inner,
  .banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
