/* The Cloud Site — thecloudsite.net */
/* Original: PHP blog, tech/photography/panoramas, German */
/* Layout: 1050px, teal accent, single-column blog */

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.75;
  color: #333333;
  background: #f0f2f4;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #3c7890; text-decoration: none; transition: color 0.2s; }
a:hover { color: #2a5666; }

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.tc-header {
  background: linear-gradient(135deg, #2a5666, #3c7890);
  padding: 0;
}
.tc-header-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tc-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-logo-text {
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.tc-logo-text .tc-sub {
  display: block;
  font-size: 0.45em;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.tc-hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.7);
  font-size: 1em;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 3px;
}
.tc-hamburger:hover { border-color: #fff; color: #fff; }

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.tc-nav {
  background: #fff;
  border-bottom: 1px solid #dce1e6;
}
.tc-nav-list {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  list-style: none;
}
.tc-nav-list a {
  display: block;
  color: #666;
  padding: 10px 15px;
  font-size: 0.83em;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.tc-nav-list a:hover,
.tc-nav-list a.active {
  color: #3c7890;
  background: rgba(60,120,144,0.06);
}

/* ═══════════════════════════════════════
   MAIN
   ═══════════════════════════════════════ */
.tc-wrap {
  max-width: 1050px;
  margin: 0 auto;
  padding: 26px 20px;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.tc-hero {
  position: relative;
  margin-bottom: 24px;
  border-radius: 5px;
  overflow: hidden;
}
.tc-hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.tc-hero-text,
.tc-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(42,86,102,0.85));
  padding: 28px 22px 18px;
}
.tc-hero-text h1,
.tc-hero-overlay h1 {
  font-size: 1.65em;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 5px;
}
.tc-hero-text p,
.tc-hero-overlay p {
  font-size: 0.86em;
  color: rgba(255,255,255,0.65);
  max-width: 430px;
}

/* MAIN & SECTION */
.tc-main {
  max-width: 1050px;
  margin: 0 auto;
  padding: 26px 20px;
}
.tc-section { margin-bottom: 20px; }

/* CARD GRID (homepage) */
.tc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.tc-card {
  background: #fff;
  border: 1px solid #dce1e6;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tc-card:hover {
  border-color: #6cad9e;
  box-shadow: 0 2px 8px rgba(60,120,144,0.1);
}
.tc-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.tc-card-body {
  padding: 12px;
}
.tc-card-body h3 {
  font-size: 0.9em;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.tc-card-body h3 a { color: #333; }
.tc-card-body h3 a:hover { color: #3c7890; }
.tc-card-body p {
  font-size: 0.78em;
  color: #888;
  line-height: 1.5;
}
.tc-card-date {
  display: block;
  font-size: 0.72em;
  color: #aab;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════
   SECTION
   ═══════════════════════════════════════ */
.tc-section-title {
  font-size: 1.12em;
  font-weight: 700;
  color: #2a5666;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #6cad9e;
}

/* ═══════════════════════════════════════
   POST LISTING
   ═══════════════════════════════════════ */
.tc-listing { margin: 16px 0; }
.tc-post {
  background: #fff;
  border: 1px solid #dce1e6;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  transition: border-color 0.2s;
}
.tc-post:hover { border-color: #6cad9e; }
.tc-post-thumb {
  width: 140px;
  min-width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 3px;
}
.tc-post-text h3 {
  font-size: 0.93em;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.tc-post-text h3 a { color: #333; }
.tc-post-text h3 a:hover { color: #3c7890; }
.tc-post-text p {
  font-size: 0.79em;
  color: #888;
  line-height: 1.5;
}
.tc-post-date {
  font-size: 0.7em;
  color: #aab;
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════ */
.tc-article {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}
.tc-article-header { margin-bottom: 18px; }
.tc-trail {
  font-size: 0.76em;
  color: #aab;
  margin-bottom: 10px;
}
.tc-trail a { color: #3c7890; }
.tc-article-header h1 {
  font-size: 1.55em;
  font-weight: 700;
  color: #2a5666;
  line-height: 1.25;
  margin-bottom: 8px;
}
.tc-meta {
  font-size: 0.78em;
  color: #aab;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce1e6;
  margin-bottom: 16px;
}
.tc-cover {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 18px;
  border: 1px solid #dce1e6;
}
.tc-inset {
  float: right;
  margin: 0 0 12px 16px;
  max-width: 250px;
  border-radius: 3px;
  border: 1px solid #dce1e6;
}

/* ═══════════════════════════════════════
   PROSE
   ═══════════════════════════════════════ */
.tc-prose {
  font-size: 1em;
  line-height: 1.85;
  color: #444;
}
.tc-prose h2 {
  color: #3c7890;
  font-size: 1.2em;
  font-weight: 700;
  margin: 24px 0 10px;
}
.tc-prose h3 {
  color: #333;
  font-size: 1em;
  font-weight: 700;
  margin: 16px 0 6px;
}
.tc-prose p { margin-bottom: 12px; }
.tc-prose ul, .tc-prose ol { margin: 6px 0 14px 22px; }
.tc-prose li { margin-bottom: 4px; }
.tc-prose strong { color: #333; }
.tc-prose blockquote {
  border-left: 3px solid #6cad9e;
  margin: 14px 0;
  padding: 10px 16px;
  background: #f0f8f5;
  color: #555;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}
.tc-prose a { text-decoration: underline; text-underline-offset: 2px; }
.tc-prose a:hover { color: #2a5666; }
.tc-prose code {
  background: #e8ecf0;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}
.tc-prose pre {
  background: #1e2a30;
  color: #d4dfe4;
  padding: 14px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 0.85em;
  line-height: 1.5;
}
.tc-prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ═══════════════════════════════════════
   TABLES
   ═══════════════════════════════════════ */
.tc-prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 0.88em;
}
.tc-prose th, .tc-prose td {
  padding: 8px 10px;
  border: 1px solid #dce1e6;
  text-align: left;
}
.tc-prose th { background: #2a5666; color: #fff; font-weight: 600; }
.tc-prose tr:nth-child(even) { background: #f0f8f5; }
.tc-prose tr:hover { background: #e4f0ed; }

/* ═══════════════════════════════════════
   RELATED
   ═══════════════════════════════════════ */
.tc-related {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #dce1e6;
}
.tc-related h2 {
  font-size: 1em;
  color: #2a5666;
  margin-bottom: 12px;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.tc-footer {
  background: #2a5666;
  padding: 22px 20px;
  margin-top: 30px;
}
.tc-footer-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.tc-footer-brand {
  flex: 2;
  min-width: 180px;
}
.tc-footer-brand p {
  color: rgba(255,255,255,0.3);
  font-size: 0.78em;
  margin-top: 6px;
  line-height: 1.5;
}
.tc-footer-col {
  flex: 1;
  min-width: 120px;
}
.tc-footer-col h4 {
  color: #6cad9e;
  font-size: 0.76em;
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tc-footer-col ul { list-style: none; }
.tc-footer-col li { margin-bottom: 4px; }
.tc-footer-col a { color: rgba(255,255,255,0.3); font-size: 0.78em; }
.tc-footer-col a:hover { color: #6cad9e; }
.tc-footer-copy {
  max-width: 1050px;
  margin: 10px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.72em;
  color: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════
   INFO PAGES
   ═══════════════════════════════════════ */
.tc-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 20px;
}
.tc-page h1 {
  font-size: 1.5em;
  font-weight: 700;
  color: #2a5666;
  margin-bottom: 14px;
}
.tc-page h2 {
  color: #3c7890;
  font-size: 1.05em;
  margin: 18px 0 8px;
  font-weight: 700;
}
.tc-page p { margin-bottom: 10px; color: #555; }
.tc-page ul { margin: 5px 0 12px 18px; color: #555; }
.tc-page li { margin-bottom: 3px; }

/* ═══════════════════════════════════════
   RESPONSIVE — 770px
   ═══════════════════════════════════════ */
@media (max-width: 770px) {
  .tc-hamburger { display: block; }
  .tc-nav-list { display: none; flex-direction: column; padding: 0; }
  .tc-nav-list.open { display: flex; }
  .tc-nav-list a { padding: 10px 20px; border-bottom: 1px solid #eee; }
  .tc-hero-img { height: 220px; }
  .tc-hero-text h1, .tc-hero-overlay h1 { font-size: 1.3em; }
  .tc-grid { grid-template-columns: 1fr; }
  .tc-post { flex-direction: column; }
  .tc-post-thumb { width: 100%; min-width: auto; height: 150px; }
  .tc-article-header h1 { font-size: 1.3em; }
  .tc-footer-inner { flex-direction: column; }
  .tc-inset { float: none; max-width: 100%; margin: 0 0 12px 0; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 480px
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .tc-hero-text h1, .tc-hero-overlay h1 { font-size: 1.1em; }
  .tc-hero-img { height: 170px; }
  .tc-logo-text { font-size: 1.05em; }
  .tc-logo-text .tc-sub { display: none; }
  .tc-article-header h1 { font-size: 1.15em; }
}
