/* Elworth Consulting — site styles (dark palette carried over from the WordPress theme) */

:root {
  --bg: #1a1a1a;
  --surface: #242424;
  --border: #3a3a3a;
  --text: #f4f4f2;
  --muted: #b5b5b0;
  --accent: #ff7179;
  --accent-ink: #1a1a1a;
  --max: 1200px;
  --measure: 46rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; padding-block: 3rem 5rem; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; margin: 2.2em 0 .6em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: .5rem;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: .5rem; }

/* Header / footer */
.site-header { padding-block: 1.25rem; border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
}
.site-title { font-weight: 600; color: var(--text); text-decoration: none; }
.site-header .site-title { font-size: 1.15rem; }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 1rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }

.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; font-size: .95rem; color: var(--muted); }
.site-footer p { margin: 0; }

/* Page structure */
.page-title { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 1.5rem; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 .5rem; color: var(--muted); font-size: .95rem; }
.content { max-width: var(--measure); overflow-wrap: break-word; }
.content a { overflow-wrap: anywhere; }
.content > :first-child { margin-top: 0; }
.lead { font-size: 1.3rem; }
.meta { color: var(--muted); font-size: .95rem; margin: 0; }
.post-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.post-header .page-title { margin-bottom: .75rem; }

.hero { margin: 0 0 3rem; }
.hero img { display: block; width: 100%; aspect-ratio: 2560 / 1208; object-fit: cover; }

/* Home */
.callout {
  background: var(--surface); border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
}
.callout p { margin: 0 0 1rem; }
.callout p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.button {
  display: inline-block; padding: .55rem 1.1rem; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }

.services { display: grid; gap: 1.25rem; margin-block: 1.5rem 2rem; }
.services section { background: var(--surface); padding: 1.25rem 1.5rem; border-radius: 6px; }
.services h3 { margin: 0 0 .5rem; color: var(--accent); }
.services p { margin: 0; }

/* About */
.contact-card { font-style: normal; background: var(--surface); padding: 1.5rem; border-radius: 6px; }
.contact-card p { margin: 0; }
.contact-name { font-size: 1.3rem; font-weight: 600; }
.contact-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 1.25rem 0 0; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.post-list li { padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.post-list li:first-child { padding-top: 0; }
.post-list h2 { margin: 0 0 .35rem; font-size: 1.4rem; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list p:last-child { margin: .6rem 0 0; }

/* Post body */
.content img { display: block; margin: 1.5rem 0; border-radius: 3px; }
.content img.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.content img.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.content::after { content: ""; display: table; clear: both; }
.content li { margin-bottom: .4rem; }
.center { text-align: center; }
.indent { margin-left: 2rem; }

blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--accent); color: var(--muted); }

code, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--surface); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
pre {
  background: #111; border: 1px solid var(--border); border-radius: 6px;
  padding: 1rem 1.25rem; overflow-x: auto; line-height: 1.5; tab-size: 4;
}

/* Comments */
.comments-section { max-width: var(--measure); margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.comments-section h2 { margin-top: 0; }
.comments { list-style: none; padding: 0; margin: 0; }
.comments .comments { margin-left: 1.5rem; padding-left: 1.25rem; border-left: 2px solid var(--border); }
.comment { padding-block: 1rem; }
.comment p:last-child { margin-bottom: 0; }

/* Prev / next */
.post-nav {
  max-width: var(--measure); margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.post-nav a { text-decoration: none; color: var(--text); }
.post-nav a:hover { color: var(--accent); }
.post-nav span { display: block; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.post-nav .next { text-align: right; }

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  main { padding-block: 2rem 3.5rem; }
  .content img.alignleft, .content img.alignright { float: none; margin: 1.5rem 0; }
  .contact-card dl { grid-template-columns: 1fr; gap: 0; }
  .contact-card dd { margin-bottom: .6rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}

@media print {
  :root { --bg: #fff; --surface: #f4f4f4; --text: #111; --muted: #555; --border: #ccc; --accent: #a3122a; }
  .site-header nav, .skip-link, .post-nav { display: none; }
}
