/* TM CMS template */
/* Template layer — every style for the starter site lives here. */

:root {
  --tm-bg: #0f172a;
  --tm-surface: #1e293b;
  --tm-border: #334155;
  --tm-text: #e2e8f0;
  --tm-muted: #94a3b8;
  --tm-accent: #2dd4bf;
  --tm-accent-deep: #14b8a6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--tm-bg);
  color: var(--tm-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tm-accent); }

.tm-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 30rem at 50% -10rem, rgba(45, 212, 191, 0.10), transparent 70%),
    var(--tm-bg);
}

/* --- shared chrome --- */

.tm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--tm-border);
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
}

.tm-logo { font-weight: 600; letter-spacing: -0.01em; }
.tm-logo span { color: var(--tm-accent); }

.tm-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--tm-accent);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.30);
}

.tm-main {
  flex: 1;
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.tm-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--tm-border);
  color: var(--tm-muted);
  font-size: 0.875rem;
}

/* --- home page content --- */

.tm-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tm-accent);
}

.tm-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tm-hero h1 span {
  background: linear-gradient(90deg, var(--tm-accent), var(--tm-accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-lead { color: var(--tm-muted); max-width: 44rem; font-size: 1.05rem; }

.tm-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.tm-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--tm-border);
  background: rgba(30, 41, 59, 0.45);
}

.tm-card h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.tm-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  color: var(--tm-accent);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.30);
}

.tm-card p { margin: 0; color: var(--tm-muted); font-size: 0.925rem; }

code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  font-size: 0.85em;
  color: var(--tm-accent);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.22);
}

.tm-shortcodes, .tm-next { margin-top: 2.5rem; }
.tm-shortcodes h2, .tm-next h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.tm-shortcodes > p, .tm-next > p { color: var(--tm-muted); }

.tm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.tm-table th, .tm-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--tm-border);
}

.tm-table th { color: var(--tm-muted); font-weight: 500; }
.tm-table td { color: var(--tm-text); }

.tm-next ul { color: var(--tm-muted); padding-left: 1.1rem; }
.tm-next li { margin-bottom: 0.35rem; }
.tm-next strong { color: var(--tm-text); }

.tm-note { font-size: 0.85rem; color: var(--tm-muted); opacity: 0.85; }

@media (max-width: 640px) {
  .tm-table { display: block; overflow-x: auto; }
}

/* --- footer component --- */

.tm-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 62rem;
  margin: 0 auto;
}

.tm-footer-note { color: var(--tm-muted); opacity: 0.75; }