@charset "utf-8";
/* site.css — settlabs.app */

:root {
  --bg: #ffffff;
  --fg: #0f0f0f;
  --fg-sub: #555555;
  --fg-muted: #999999;
  --border: #e5e5e5;
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}
a:hover { text-decoration-color: var(--fg); }

.ext::after { content: " ↗"; font-size: 11px; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-nav .logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--fg);
}
.site-nav .nav-links {
  display: flex;
  gap: 28px;
}
.site-nav .nav-links a {
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color 0.15s;
}
.site-nav .nav-links a:hover { color: var(--fg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 96px 40px 80px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-desc {
  font-size: 15px;
  color: var(--fg-sub);
  line-height: 1.75;
  max-width: 440px;
}

/* ============================================================
   Section label
   ============================================================ */
.section-label {
  padding: 22px 40px;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--fg-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Works list
   ============================================================ */
.work-item {
  display: grid;
  grid-template-columns: 200px 1fr 56px;
  gap: 48px;
  align-items: start;
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  transition: background 0.15s;
}
.work-item:hover { background: #f7f7f7; }

.work-tags {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}
.work-tag {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: .03em;
  line-height: 1.5;
}

.work-body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.work-body p {
  font-size: 13px;
  color: var(--fg-sub);
  line-height: 1.75;
  max-width: 520px;
}

.work-year {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: .04em;
  text-align: right;
  padding-top: 5px;
}

/* ============================================================
   About section
   ============================================================ */
.about-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 52px 40px;
  border-bottom: 1px solid var(--border);
}
.about-section .sec-label {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--fg-muted);
  text-transform: uppercase;
  padding-top: 4px;
}
.about-section p {
  font-size: 14px;
  color: var(--fg-sub);
  line-height: 1.85;
  max-width: 540px;
}

/* ============================================================
   Info bar
   ============================================================ */
.info-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.info-block {
  flex: 1;
  padding: 32px 40px;
  border-right: 1px solid var(--border);
}
.info-block:last-child { border-right: none; }
.info-block dt {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.info-block dd {
  font-size: 13px;
  color: var(--fg-sub);
  line-height: 1.75;
  letter-spacing: 0;
}
.info-block dd a {
  color: var(--fg-sub);
  text-decoration-color: var(--border);
}
.info-block dd a:hover { color: var(--fg); text-decoration-color: var(--fg); }

/* ============================================================
   Page header (doc pages)
   ============================================================ */
.page-header {
  padding: 56px 40px 40px;
  border-bottom: 1px solid var(--border);
}
.page-header .breadcrumb {
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.page-header .breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.page-header .breadcrumb a:hover { color: var(--fg); }
.page-header .breadcrumb span { margin: 0 6px; color: var(--border); }
.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
}

/* ============================================================
   Doc content
   ============================================================ */
.doc {
  padding: 48px 40px;
  max-width: 740px;
}
.doc .updated {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: .04em;
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.005em;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--fg);
}
.doc p {
  font-size: 14px;
  color: var(--fg-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}
.doc ul {
  margin-bottom: 16px;
  padding-left: 0;
}
.doc ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--fg-sub);
  line-height: 1.75;
}
.doc ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--fg-muted);
}
.doc strong { color: var(--fg); font-weight: 600; }
.doc a { color: var(--fg); }

.tag {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 3px 10px;
  margin: 0 4px 4px 0;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--fg-sub);
}

.contact-card {
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin: 20px 0;
}
.contact-card .label {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-card .value { font-size: 15px; color: var(--fg); }
.contact-card .value a { color: var(--fg); text-decoration-color: var(--border); }
.contact-card .value a:hover { text-decoration-color: var(--fg); }

.note {
  border-left: 2px solid var(--border);
  padding: 8px 16px;
  margin: 16px 0;
  color: var(--fg-sub);
  font-size: 13px;
  line-height: 1.75;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer nav a {
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color 0.15s;
}
.site-footer nav a:hover { color: var(--fg); }
.site-footer .copyright {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: .04em;
}

/* ============================================================
   404
   ============================================================ */
.notfound {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}
.notfound .num {
  font-size: clamp(80px, 16vw, 180px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 20px;
}
.notfound p {
  font-size: 15px;
  color: var(--fg-sub);
  margin-bottom: 20px;
}

/* ============================================================
   Email copy notification
   ============================================================ */
.copy-notification {
  position: fixed;
  background: var(--fg);
  color: var(--bg);
  padding: 4px 10px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 9999;
}
.copy-notification.show { opacity: 1; }

/* ============================================================
   Hover stage
   ============================================================ */
.hover-stage {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 300px;
  height: 210px;
  pointer-events: none;
  z-index: 50;
}
.hover-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
}
.hover-stage img.active { opacity: 1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .work-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 24px;
  }
  .work-tags { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; }
  .work-year { text-align: left; }
  .about-section { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .site-nav .nav-links { gap: 20px; }
  .hero { padding: 52px 20px 44px; }
  .section-label { padding: 18px 20px; }
  .work-item { padding: 24px 20px; }
  .about-section { padding: 36px 20px; }
  .info-bar { flex-direction: column; }
  .info-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
  }
  .info-block:last-child { border-bottom: none; }
  .page-header { padding: 36px 20px 28px; }
  .doc { padding: 32px 20px; }
  .site-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  .site-footer nav { gap: 16px; }
  .notfound { padding: 0 20px; }
  .hover-stage { display: none; }
}
