:root {
  --paper: #ffffff;       /* page background */
  --paper-2: #e3d8f9;     /* slightly darker panel background */
  --ink: #000000;         /* main text color, warm near-black */
  --ink-soft: #424242;    /* soft text */
  --ink-secondary: #501f67;
  --ink-hover: #963ebf;
  --rule: #7f34a3;        /* hairline rules / borders */

  --blue: #2b5f75;        /* primary accent — links, headings */
  --blue-dim: #4a7c8c;    /* hover state for blue */
  --secondary: #723290;        /* secondary accent — tags, stamps, dates */

  --font-display: /*"Spectral", */Arial, serif;
  --font-body: /*"Inter",*/system-ui, sans-serif;
  --font-mono: /*"IBM Plex Mono",*/ Arial, monospace;

  --space-1: 0.5rem;
  --space-txt-bottom: 1rem;
  --space-txt-top: 1rem;
  --space-txt-between: 2rem;
  --space-3: 1rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --border-line-width: 2px;

  --content-width: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height:100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: var(--space-txt-bottom);
  text-decoration: none;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; 
  
}

p {
  margin: 0 0 var(--space-txt-bottom) 0;
  text-align: justify;
}

p a {
  color: var(--secondary);
}

p img {
  width: 600px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.large-img {
  width: var(--content-width);
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

iframe {
  width: 600px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
  aspect-ratio: 16 / 9;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration: none;
}

a:hover {
  color: var(--ink-hover);
  border-color: var(--ink-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-3);
}

.site-header {
  border-bottom: var(--border-line-width) solid var(--rule);
  background-color: var(--paper-2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-txt-bottom);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  line-height: 0;
}

.site-nav {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
}

.site-nav a {
  color: var(--ink-secondary);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--ink-secondary);
}

main {
  padding: var(--space-5) 0;
  flex: 1 0 auto;
}

.site-footer {
  background-color: var(--paper-2);
  border-top: var(--border-line-width) solid var(--rule);
  padding: 0 0 var(--space-5) 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.site-footer .box  {
  background-color: var(--secondary);
  height: 50px;
  width: 50px;
}

.site-footer .box:hover  {
  background-color: var(--ink-hover);
}

.site-footer svg {
  fill: var(--paper-2);
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px 5px 5px 5px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-txt-bottom);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  line-height: 0;
}

.site-footer ul {
  display: flex;
  gap: 0.5rem;
  margin-top: 0;
  margin-bottom: 0;
  list-style-type: none;
}

.hero {
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.spec-card {
  position: relative;
  border: var(--border-line-width) solid var(--rule);
  background-color: var(--paper-2);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.spec-card h3 a {
  color: var(--ink-secondary);
}

.spec-card h3 a:hover {
  color: var(--ink-hover);
}

.spec-card a p {
  color: var(--ink);
  margin-bottom: 0;
}

.spec-card a:hover p {
  color: var(--ink-hover);
}

.spec-card img {
  width: 500px;
  line-height: 0;
  border: var(--border-line-width) solid var(--rule);
  max-width: 100%;
  height: auto;
}

.spec-card a:hover img{
  border: var(--border-line-width) solid var(--ink-hover);
}

.spec-card .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 1rem;
  padding: 0;
}

.spec-card .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.spec-card .date {
  margin: var(--space-txt-bottom) 0 0 0;
}


.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: 0;
  margin: var(--space-txt-bottom) 0 0 0;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: var(--border-line-width) solid var(--rule);
  padding: 2px 8px;
  color: var(--ink-soft);
}

.tags li:hover {
  border: var(--border-line-width) solid var(--ink-hover);
}

.tags li a {
  color: inherit;
  text-decoration: none;
}

.tags li a:hover {
  color: var(--ink-hover);
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-txt-bottom) 0;
  border-bottom: var(--border-line-width) solid var(--rule);
  align-items: baseline;
}

.post-list time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--secondary);
  white-space: nowrap;
}

.post-list a {
  text-decoration: none;
  color: var(--ink);
}

.post-list a:hover {
  color: var(--ink-hover);
}

.post-body h2 {
  margin-top: var(--space-4);
}

.post-body pre {
  background: var(--paper-2);
  border: var(--border-line-width) solid var(--rule);
  padding: var(--space-txt-bottom);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.post-body code {
  font-family: var(--font-mono);
  background: var(--paper-2);
  padding: 0 4px;
}

.copy-email {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: block;
  height: inherit;
  width: inherit;
}

.copy-feedback {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.copy-email.copied .copy-feedback {
  opacity: 1;
}

@media (max-width: 650px) {
  h1 { font-size: 2rem; }

  .site-header .wrap {
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: var(--space-2);
  }

  .site-nav.open {
    display: flex;
    align-items: flex-end;
  }

  .site-nav a {
    padding: 1.5rem;
    padding-right: 0.5rem;
  }

  .post-list li {
    flex-direction: column;
    gap: var(--space-1);
  }

}

@media (max-width: 800px) {
  .spec-card .wrap {
    flex-direction: column;
    align-items: center;
  }
}
/* ---- Search & clickable tags ---- */
.search-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: 1rem;
  border: var(--border-line-width) solid var(--rule);
  background-color: var(--paper);
  color: var(--ink);
}


