:root {
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --surface-2: #edf4ef;
  --ink: #1f2a27;
  --muted: #69726f;
  --line: #d9ddd4;
  --accent: #2f6f68;
  --accent-2: #b45835;
  --accent-3: #e0a72f;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 245, 239, 0.94) 36rem),
    var(--bg);
}

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

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

.topbar,
.private-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
}

.nav,
.private-actions,
.button-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.nav a,
.button-link,
.link-row a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 253, 248, 0.75);
  font-size: 0.92rem;
}

.nav a:hover,
.button-link:hover,
.link-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.intro-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 2rem;
  align-items: end;
}

.intro-copy h1,
.detail-copy h1,
.private-header h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro-copy p:not(.eyebrow),
.detail-copy p:not(.eyebrow),
.private-header p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.stat-strip span {
  padding: 1rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.stat-strip span:last-child {
  border-right: 0;
}

.stat-strip strong {
  display: block;
  color: var(--ink);
  font-size: 1.7rem;
}

.project-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
}

.cover-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe7de;
}

.cover-link img,
.detail-cover img,
.private-record-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 1rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-card h2 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.35rem;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: rgba(237, 244, 239, 0.72);
  color: #31433f;
  font-size: 0.78rem;
  white-space: nowrap;
}

.detail-layout,
.content-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  background: #dfe7de;
}

.button-row {
  margin-top: 1.2rem;
}

.content-band h2 {
  margin: 0 0 1rem;
}

.feature-list,
.note-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
  line-height: 1.6;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.private-site {
  background: #f3f4f1;
}

.private-header {
  align-items: flex-end;
  padding-top: 2rem;
}

.private-header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding: 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  gap: 0.8rem;
  background: rgba(243, 244, 241, 0.95);
  backdrop-filter: blur(8px);
}

.toolbar label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.private-list {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
  display: grid;
  gap: 1rem;
}

.private-record {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.private-record[hidden] {
  display: none;
}

.private-record-head {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.private-record-head img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.private-record-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.private-record-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.private-columns,
.private-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.private-foot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.private-record h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.kv {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 0.7rem;
}

.kv span {
  color: var(--muted);
  font-size: 0.78rem;
}

.kv strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
  line-height: 1.45;
}

.check-list li,
.note-list li {
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
}

.check-list strong,
.check-list span {
  display: block;
}

.check-list span,
.check-list p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.check-list p {
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.85);
  padding: 0.1rem 0.28rem;
}

@media (max-width: 920px) {
  .intro-band,
  .detail-layout,
  .toolbar,
  .private-record-head,
  .private-columns,
  .private-foot {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private-record-head img {
    max-width: 26rem;
  }
}

@media (max-width: 620px) {
  .topbar,
  .private-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .intro-band {
    padding-top: 2rem;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-strip span:last-child {
    border-bottom: 0;
  }
}
