/* ==========================================================================
   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;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --text-muted: #86868b;
    --border: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.28);
    --card-bg: rgba(255, 255, 255, 0.04);
    --accent: #2997ff;
  }
}

* {
  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);
}

/* 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;
  }
  
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
