/* simrod.com — professional personal site */
:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-subtle: #8a8a8a;
  --border: #e8e8e8;
  --border-strong: #d0d0d0;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --success-border: #a7f3d0;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --error-border: #fecaca;
  --radius: 10px;
  --radius-sm: 6px;
  --max: 42rem;
  --max-wide: 56rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}

.site-logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.site-nav a.nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.site-nav a.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

.site-main {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - 12rem);
}

.site-main--narrow {
  width: min(100% - 2rem, var(--max));
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--text-muted);
  margin-right: 1rem;
}

.site-footer a:hover {
  color: var(--text);
}

/* Typography & content */
.page-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 0.75rem;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

.page-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.hero {
  padding: 1rem 0 0.5rem;
}

.hero__name {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero__tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--text-subtle);
  color: var(--text);
}

.section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.content-area {
  color: var(--text);
}

.content-area > *:first-child {
  margin-top: 0;
}

.content-area h1,
.content-area h2,
.content-area h3 {
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.content-area h1 {
  font-size: 1.75rem;
  margin: 2rem 0 0.75rem;
}

.content-area h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.65rem;
}

.content-area h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.content-area p,
.content-area ul,
.content-area ol {
  margin: 0 0 1.1rem;
}

.content-area ul,
.content-area ol {
  padding-left: 1.35rem;
}

.content-area li {
  margin-bottom: 0.35rem;
}

.content-area a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-area code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f0f0f0;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.content-area pre {
  background: #111;
  color: #f5f5f5;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.content-area pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.content-area blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--border-strong);
  color: var(--text-muted);
}

/* Cards & lists */
.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

a.card:hover {
  border-color: var(--border-strong);
  text-decoration: none;
  color: inherit;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

a.card:hover .card__title {
  color: var(--accent);
}

.card__summary {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.work-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.work-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.work-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.work-card .tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.post-meta {
  color: var(--text-subtle);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.post-meta time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Forms (contact + worker fragments) */
.form-stack {
  display: grid;
  gap: 1.15rem;
  max-width: 32rem;
}

.form-row-2 {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-status--ok {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

.form-status--err {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: var(--error-border);
}

.form-success-panel {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.form-success-panel p {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found__code {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text-subtle);
}

.not-found p {
  color: var(--text-muted);
}

/* Utilities */
.muted {
  color: var(--text-muted);
}

.note {
  font-size: 0.9rem;
  color: var(--text-subtle);
  border-left: 3px solid var(--border-strong);
  padding-left: 0.85rem;
  margin: 1.5rem 0;
}
