/* Dr. Dan DeBlasio — minimal stylesheet
   Replaces the WordPress theme CSS. No framework, no reset bloat. */

:root {
  --ink:    #1c1c1c;
  --muted:  #5f5f5f;
  --link:   #1c4b73;
  --accent: #8a1b1b;
  --rule:   #dcdcdc;
  --bg:     #ffffff;
  --panel:  #f6f5f2;
  --wrap:   1080px;
  --gap:    2.5rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--link); }
a:hover, a:focus { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* --- Skip link ------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Masthead + primary menu ----------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.site-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: .01em;
}
.site-title a {
  color: var(--ink);
  text-decoration: none;
}
.site-title a:hover { color: var(--accent); }

.primary-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: .92rem;
}
.primary-menu a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.primary-menu a:hover { border-bottom-color: var(--accent); }
.primary-menu a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* --- Two column layout ------------------------------------------------ */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: var(--gap);
  align-items: start;
  padding-top: 2.25rem;
  padding-bottom: 3rem;
}

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

/* --- Typography ------------------------------------------------------- */

.page-title {
  margin: 0 0 1.25rem;
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 400;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .5rem;
}

.content h2 {
  margin: 2.25rem 0 .6rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.content p { margin: 0 0 1.1rem; }

.content ul { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.content li { margin-bottom: .4rem; }

.portrait {
  float: left;
  width: 170px;
  margin: 0 1.5rem 1rem 0;
}

.software-list { list-style: none; padding-left: 0; }
.software-list > li {
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
}
.software-name { margin-bottom: .4rem !important; }

.embed iframe {
  width: 100%;
  border: 1px solid var(--rule);
}

/* --- Sidebar ---------------------------------------------------------- */

.sidebar {
  font-size: .95rem;
  color: var(--muted);
}

.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }

.widget h2 {
  margin: 0 0 .5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}

.widget p { margin: 0 0 .7rem; }
.widget p:last-child { margin-bottom: 0; }

/* --- Footer ----------------------------------------------------------- */

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

/* --- Small screens ---------------------------------------------------- */

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sidebar {
    border-top: 1px solid var(--rule);
    padding-top: 1.5rem;
  }
  .portrait {
    float: none;
    display: block;
    margin: 0 0 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
