:root {
  --bg: #f4f8fc;
  --ink: #0e2b45;
  --ink-soft: #4b6478;
  --line: #cedae6;
  --brand: #0f4c82;
  --accent: #f28c00;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 10% -10%, #dcefff 0%, transparent 70%),
    radial-gradient(1000px 600px at 90% -20%, #ffe9cf 0%, transparent 70%),
    var(--bg);
  min-height: 100vh;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.25;
  z-index: 0;
}

.bg-shape-a {
  width: 340px;
  height: 340px;
  background: #88bfff;
  top: 12vh;
  left: -80px;
}

.bg-shape-b {
  width: 300px;
  height: 300px;
  background: #ffbd6b;
  bottom: 10vh;
  right: -60px;
}

.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1100px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(238, 247, 255, 0.93));
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(13, 58, 98, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 10px;
  z-index: 20;
}

.brand-wrap {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-header a {
  text-decoration: none !important;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(245, 149, 24, 1) 0%, rgba(242, 140, 0, 1) 70%),
    linear-gradient(145deg, #fff, #fff);
  box-shadow: 0 6px 16px rgba(242, 140, 0, 0.28);
  transform: rotate(-8deg);
  flex: 0 0 auto;
}

.brand-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--brand);
  text-decoration: none;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: 0.2px;
  display: block;
}

.brand-wrap:link,
.brand-wrap:visited,
.brand-wrap:hover,
.brand-wrap:active {
  color: var(--brand);
  text-decoration: none;
}

.brand-sub {
  font-size: 12px;
  color: #4f6d83;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid #d5e2ee;
  background: rgba(255, 255, 255, 0.75);
  transition: all 0.16s ease;
}

.main-nav a:hover {
  background: #f0f7ff;
  border-color: #b9d4ec;
}

.main-nav a:visited {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #f59f27, #f28c00);
  box-shadow: 0 8px 18px rgba(242, 140, 0, 0.26);
  white-space: nowrap;
}

.header-cta:hover {
  filter: brightness(1.03);
}

.header-cta:visited {
  color: #fff;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 16px auto 30px;
  display: grid;
  gap: 16px;
}

.hero,
.section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.hero {
  padding: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
}

h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  margin: 0;
}

.lead {
  margin: 16px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #1d6aaa);
}

.btn-ghost {
  color: var(--brand);
  background: #eef6ff;
  border-color: #c5dbef;
}

.section {
  padding: 20px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  font-family: "DM Serif Display", Georgia, serif;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: #1e8d45;
}

.tag-soft {
  background: #8fa0af;
}

.card-link {
  width: fit-content;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.card-link.muted {
  color: #6a8194;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

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

.photo figcaption {
  padding: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hint {
  margin: 12px 0 0;
  color: #637e92;
  font-size: 13px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.about-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.about-grid h3 {
  margin: 0 0 8px;
}

.about-grid p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.idea-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.idea-list li {
  color: var(--ink-soft);
  line-height: 1.5;
}

.comment-board {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 14px;
}

.comment-board h3 {
  margin: 0;
  font-size: 22px;
  color: var(--brand);
  font-family: "DM Serif Display", Georgia, serif;
}

.comment-intro {
  margin: 8px 0 12px;
  color: var(--ink-soft);
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form label {
  display: grid;
  gap: 6px;
  color: #284255;
  font-size: 14px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #cddbe8;
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  color: inherit;
  background: #fff;
}

.comment-form textarea {
  resize: vertical;
  min-height: 100px;
}

.comment-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.comment-status {
  font-size: 13px;
  color: #4a6478;
}

.comments-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  min-height: 24px;
}

.comment-item {
  border: 1px solid #d6e2ed;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.comment-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.comment-name {
  font-weight: 700;
  color: #1f4f7e;
}

.comment-date {
  font-size: 12px;
  color: #6a8194;
}

.comment-text {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
  white-space: pre-wrap;
}

.site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: #537086;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.06s;
}

.delay-2 {
  transition-delay: 0.12s;
}

.delay-3 {
  transition-delay: 0.18s;
}

@media (max-width: 850px) {
  .cards,
  .gallery,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    flex: 1 1 auto;
    text-align: center;
  }
}
