:root {
  --max-width: 900px;
  --ink: #111111;
  --muted: #555555;
  --line: #e4e4e4;
  --thumb-bg: #f2f2f2;
  --accent: #3457d1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand-name {
  font-weight: 600;
  font-size: 16px;
}
.brand-slogan {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.header-cta {
  font-size: 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero {
  padding-top: 56px;
  padding-bottom: 24px;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 12px;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* About */
.about {
  padding: 8px 0 40px;
}
.about p {
  margin: 0 0 16px;
}

/* Sections */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}
.section-intro {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  gap: 10px;
}
.card:hover { border-color: var(--ink); }
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--thumb-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--muted);
}
.card-thumb-img {
  object-fit: cover;
}
.detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}
.card-title {
  font-weight: 600;
  font-size: 16px;
}
.card-text {
  font-size: 14px;
  color: var(--muted);
}

/* Contact */
.contact-cta p { color: var(--muted); }
.contact-links[hidden] { display: none; }
.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.contact-btn {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
}
.contact-btn:hover { background: var(--ink); color: #fff; }

/* Detail page */
.breadcrumb {
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
}
.breadcrumb a:hover { color: var(--ink); }
.detail { padding: 20px 0 60px; }
.detail h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 8px 0 16px;
}
.detail p { margin: 0 0 16px; }
.draft-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
}
.tag-list li {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}
.external-link, .back-link {
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.footer-brand .brand-mark { width: 32px; height: 32px; font-size: 12px; }
.footer-contacts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-contacts a:hover { text-decoration: underline; }
.footer-copy {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .header-cta { display: none; }
  .brand { gap: 12px; }
  .brand-slogan {
    font-size: 12.5px;
    margin-top: 4px;
    line-height: 1.4;
  }
}
