/* ==========================================================================
   Eathract (eathract.com) — Ultra-Minimal Apple-Style Design
   ========================================================================== */

:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.2);
  --card-bg: rgba(0, 0, 0, 0.02);
  --accent: #0071e3;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 80px 24px 60px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

/* Header */
header {
  margin-bottom: 56px;
}

.brand {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.tagline {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

/* Sections */
section {
  margin-bottom: 52px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

/* Works List */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-card {
  padding: 20px;
  border-radius: 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.work-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.work-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 980px;
  background: var(--border);
  color: var(--text-muted);
}

.work-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About / Statement */
.about-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.about-text + .about-text {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Links */
.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
}

.links-grid a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.links-grid a:hover {
  color: var(--accent);
}

.arrow {
  font-size: 11px;
  color: var(--text-muted);
}

/* Powered By */
.powered-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 980px;
  letter-spacing: -0.01em;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.powered-badge:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.powered-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #007aff;
  flex-shrink: 0;
}

/* Subpage Navigation */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.back-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text);
}

/* Workflow Section */
.workflow-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-card {
  padding: 18px 20px;
  border-radius: 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.workflow-card:hover {
  border-color: var(--border-hover);
}

.workflow-step {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.workflow-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.workflow-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* App Catalog Cards */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-item-card {
  padding: 24px;
  border-radius: 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.app-item-card:hover {
  border-color: var(--border-hover);
}

.app-item-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.app-squircle-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.app-squircle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-squircle-icon.pipeline {
  background: transparent;
  border: 1px dashed var(--border-hover);
  color: var(--text-muted);
}

.app-header-meta {
  flex-grow: 1;
}

.app-item-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.app-item-category {
  font-size: 12px;
  color: var(--text-muted);
}

.status-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 980px;
  background: var(--border);
  color: var(--text);
  margin-left: auto;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34c759;
}

.status-dot-gray {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.app-item-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.app-process-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}


.tech-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 980px;
  background: var(--border);
  color: var(--text-muted);
}

/* Footer */
footer {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  body {
    padding: 50px 20px 40px;
  }
  
  .brand {
    font-size: 28px;
  }

  .app-item-header {
    flex-wrap: wrap;
  }

  .status-badge-inline {
    margin-left: 0;
    margin-top: 4px;
  }
  
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
