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

:root {
  --bg: #f4f2ee;  /* Anthropic artifact tan background */
  --surface: #ffffff;
  --border: #e5e3df;
  --text: #2c2c2c;
  --text-dim: #6b6b6b;
  --accent: #d97757;  /* Claude orange accent */
  --danger: #ff0040;
  --warning: #ffaa00;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Roboto Mono', 'Segoe UI', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main guides page */
.guides-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.guides-header {
  text-align: center;
  margin-bottom: 80px;
}

.guides-header h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.accent {
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.tagline {
  color: var(--text-dim);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Guides grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.guide-card[data-available="true"]:hover::before {
  transform: translateX(0);
}

.guide-card[data-available="true"]:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guide-card[data-available="false"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.guide-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  filter: grayscale(20%);
}

.guide-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.guide-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.2s;
}

.guide-link:hover {
  gap: 12px;
}

.coming-soon {
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Footer */
.guides-footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.guides-footer p {
  color: var(--text-dim);
  font-size: 12px;
}

.guides-footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.guides-footer a:hover {
  color: var(--accent);
}

/* Guide detail page */
.guide-detail {
  max-width: 100%;
  margin: 0;
  padding: 20px 0 0 0;
}

.back-nav {
  margin-bottom: 20px;
  padding: 0 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.back-link:hover {
  color: var(--accent);
  gap: 12px;
}

.guide-detail-header {
  margin-bottom: 20px;
  padding: 0 20px;
}

.guide-detail-header h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.guide-meta {
  display: flex;
  gap: 20px;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Artifact embed */
.artifact-container {
  margin-bottom: 40px;
}

.artifact-embed {
  width: 100vw;
  height: calc(100vh - 100px);
  min-height: 600px;
  background: transparent;
  border: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.artifact-notice {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--border);
  padding: 40px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.artifact-notice::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.03;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.artifact-notice h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  position: relative;
}

.artifact-notice p {
  color: var(--text-dim);
  margin-bottom: 24px;
  position: relative;
  font-size: 14px;
}

.artifact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.artifact-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.artifact-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
}

.artifact-preview h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.artifact-preview ul {
  list-style: none;
}

.artifact-preview li {
  padding: 8px 0;
  color: var(--text-dim);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.artifact-preview li:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }
  
  .guides-header h1 {
    font-size: 2.5rem;
  }
}