/* anderworx.com — static duplicate. Tokens lifted from the live WordPress theme. */
:root {
  --ink: #272c30;
  --muted: #999;
  --accent: #f7941d;
  --bg: #fff;
  --bg-alt: #f4f4f4;
  --rule: #e6e6e6;
  --nav-bg: #fff;
  --nav-fg: #272c30;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --display: "Tiempos Headline", var(--serif);
  --sans: "DM Sans", Inter, -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  --wrap: 700px;
}
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --ink: #e8e6e3; --muted: #8b8b8b; --bg: #16181a; --bg-alt: #1e2124;
    --rule: #2c3034; --nav-bg: #16181a; --nav-fg: #e8e6e3;
  }
}
:root[data-theme="dark"] {
  --ink: #e8e6e3; --muted: #8b8b8b; --bg: #16181a; --bg-alt: #1e2124;
  --rule: #2c3034; --nav-bg: #16181a; --nav-fg: #e8e6e3;
}

/* the live site's heading face, served from the same files as anderworx.com */
@font-face {
  font-family: "Tiempos Headline";
  src: url("fonts/TiemposHeadline-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tiempos Headline";
  src: url("fonts/TiemposHeadline-Bold.otf") format("opentype");
  font-weight: 600 700; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 20px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-head {
  background: var(--nav-bg); position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--rule);
}
.site-head .bar {
  max-width: 1100px; margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 26px; width: auto; display: block; }
.site-head nav { display: flex; gap: 26px; }
.site-head nav a { color: var(--nav-fg); font-size: 16px; font-weight: 500; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--accent); text-decoration: none; }

/* layout */
main { max-width: var(--wrap); margin: 0 auto; padding: 64px 16px 80px; }
main.wide { max-width: 980px; }
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 38px; }
h2 { font-size: 30px; }
h3 { font-size: 25px; }
h4 { font-size: 21px; }
p { margin: 0 0 1.4em; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
  font-family: var(--display); font-size: 22px;
}
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; }
figure { margin: 32px 0; }
figcaption { font-size: 15px; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-meta { color: var(--muted); font-size: 16px; margin: -.4em 0 2em; }

/* gutenberg blocks we actually use */
.wp-block-columns { display: flex; gap: 32px; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 240px; min-width: 0; }
.wp-block-spacer { height: 20px; }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.alignright { text-align: right; }
.wp-block-image img { border-radius: 4px; }
.wp-block-button__link, .btn {
  display: inline-block; padding: 12px 28px; border: 1px solid var(--accent);
  border-radius: 999px; color: var(--accent); font-size: 17px;
}
.wp-block-button__link:hover, .btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.has-text-align-center { text-align: center; }
.has-medium-font-size { font-size: 17px; }
.has-small-font-size { font-size: 15px; }
.wp-block-embed, .wp-block-embed__wrapper { margin: 32px 0; }
.wp-block-embed iframe { max-width: 100%; aspect-ratio: 16/9; height: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 17px; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--rule); padding: 8px 12px; }

/* post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--rule); padding: 22px 0; margin: 0; }
.post-list h3 { margin: 0 0 6px; font-size: 21px; }
.post-list h3 a { color: var(--ink); }
.post-list h3 a:hover { color: var(--accent); text-decoration: none; }
.post-list time { color: var(--muted); font-size: 14px; }
.post-list p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* footer */
.site-foot { background: var(--bg-alt); margin-top: 80px; padding: 56px 16px 32px; font-size: 17px; }
.site-foot .cols {
  max-width: 1100px; margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap;
}
.site-foot .cols > div { flex: 1 1 200px; }
.site-foot h5 { font-size: 19px; margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot .legal {
  max-width: 1100px; margin: 40px auto 0; color: var(--muted); font-size: 15px;
}
.toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: none; border: 0; color: inherit; font: inherit; padding: 0;
}
.toggle .track {
  width: 44px; height: 24px; border-radius: 999px; background: #c9c9c9;
  position: relative; transition: background .2s;
}
.toggle .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
[data-theme="dark"] .toggle .track { background: var(--accent); }
[data-theme="dark"] .toggle .track::after { transform: translateX(20px); }

@media (max-width: 640px) {
  body { font-size: 18px; }
  h1 { font-size: 30px; } h2 { font-size: 25px; }
  main { padding-top: 40px; }
  .site-head .bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-head nav { gap: 18px; flex-wrap: wrap; }
}

/* inline Font Awesome SVGs arrive from WP without width/height */
.svg-inline--fa { height: 1em; width: auto; display: inline-block; vertical-align: -.125em; }

/* gallery block — masonry columns. Flex rows sized to the tallest image in each
   row, which left big gaps under the short ones; these shots are a mix of
   portrait and landscape. ponytail: CSS multi-column, no JS masonry library.
   "3 160px" also drops to 2 then 1 column on narrow screens, so no media query. */
.wp-block-gallery { columns: 3 160px; column-gap: 8px; margin: 32px 0; }
.wp-block-gallery .wp-block-image {
  margin: 0 0 8px; display: block;
  break-inside: avoid; -webkit-column-break-inside: avoid;
}
.wp-block-gallery .wp-block-image img {
  width: 100%; height: auto; display: block; border-radius: 4px;
}

/* WP buttons carry an inline color:#f7941d, which would otherwise survive the hover fill */
.wp-block-button__link:hover, .wp-block-button__link:focus-visible,
.btn:hover, .btn:focus-visible {
  background: var(--accent); color: #fff !important; border-color: var(--accent);
}

/* blog posts read long — a notch smaller than the 20px the pages use */
main.post { font-size: 17px; line-height: 1.75; }
main.post h1 { font-size: 34px; }
main.post blockquote { font-size: 19px; }
