/* ===========================
   phillipweinstock.dev
   1999 but cleaner
   =========================== */

:root {
  --bg:     #fdfdfd;
  --fg:     #1a1a1a;
  --dim:    #777;
  --accent: #0055ff;
  --border: #ccc;
  --mono:   "Courier New", Courier, monospace;
}

/* --- reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* --- nav --- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.nav-home {
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--fg);
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* --- blinking cursor --- */
.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- typography --- */
h1, h2, h3 {
  font-weight: normal;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
h3 { font-size: 1rem; color: var(--dim); }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

a:visited {
  color: #7733aa;
}

a:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.25rem;
}

/* --- code --- */
code {
  font-family: var(--mono);
  background: #f0f0f0;
  padding: 0.1em 0.3em;
  font-size: 0.95rem;
}

pre {
  background: #f0f0f0;
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  line-height: 1.4;
}

pre code {
  background: none;
  padding: 0;
}

/* --- demo cards --- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.demo-card {
  border: 1px solid var(--border);
  padding: 1rem;
}

.demo-card h3 {
  margin-top: 0;
  color: var(--fg);
}

.demo-card p {
  color: var(--dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.demo-card a {
  font-size: 0.85rem;
}

/* --- iframe demos --- */
.demo-frame {
  border: 1px solid var(--border);
  width: 100%;
  height: 300px;
  background: #fff;
  margin: 1rem 0;
}

/* --- hr --- */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* --- footer --- */
footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--dim);
}

/* --- status line (retro touch) --- */
.status-line {
  font-size: 0.75rem;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* --- reading list --- */
.book-list {
  margin: 1rem 0;
}

.book {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.book-title {
  font-weight: bold;
}

.book-author {
  color: var(--dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.progress-bar {
  background: #f0f0f0;
  border: 1px solid var(--border);
  height: 12px;
  width: 100%;
  margin-bottom: 0.25rem;
}

.progress-fill {
  background: var(--accent);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--dim);
}

/* --- case studies --- */
.case-study {
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
}

.case-study h3 {
  margin-top: 0;
  color: var(--fg);
}

.case-study p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- testimonials --- */
.testimonial-list {
  margin: 1rem 0;
}

.testimonial {
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
}

.testimonial blockquote {
  margin: 0 0 0.75rem 0;
  padding: 0;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
}

.testimonial-attribution {
  text-align: right;
}

.testimonial-name {
  font-weight: bold;
  font-size: 0.9rem;
}

.testimonial-role {
  display: block;
  font-size: 0.8rem;
  color: var(--dim);
}

/* --- responsive --- */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 1rem;
  }
}
