@import url("./styles-cool.css");
@import url("./styles-retro.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  line-height: 1.68;
  color: var(--text);
  background: var(--background);
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem;
}

.site-header.wrap {
  margin-top: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.site-header-top {
  display: grid;
  gap: 0.55rem;
}

.site-header-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-logo-wrap {
  margin: 0;
}

.site-logo {
  display: inline-block;
  line-height: 1.15;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--heading);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--link-hover);
}

.lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header-title-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

.site-nav {
  margin-top: 1rem;
}

.site-nav a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.theme-affordance {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.45rem;
}

.theme-trigger {
  font: inherit;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  background: var(--button-bg);
  color: var(--text);
  cursor: pointer;
}

.theme-options {
  margin: 0;
  border: 0;
  padding: 0;
}

.theme-options legend {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.theme-options label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
}

main.wrap {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

h1,
h2 {
  line-height: 1.2;
  color: var(--heading);
}

h2 {
  margin-top: 1.8rem;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
.theme-trigger:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.project-list {
  margin: 0.2rem 0 0;
  padding-left: 1.3rem;
}

.index-quote {
  margin: 0.8rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--panel-border);
  color: var(--muted);
}

.index-quote p {
  margin: 0;
}

.index-quote cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
}

.project-list li {
  margin: 0.65rem 0;
}

article {
  border-top: 1px solid var(--panel-border);
  margin-top: 0.8rem;
  padding-top: 1rem;
}

.project-gallery {
  display: grid;
  gap: 0.8rem;
  margin: 0.8rem 0 1.2rem;
}

.project-gallery figure {
  margin: 0;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.project-gallery figcaption {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}
