/* Shared styles for index.html and shop.html.
   One-ink look: everything printed in the Nero di Seppia blue on white,
   like the screen-printed shirts. */

:root {
  --paper: #ffffff;
  --ink: #346CD3;
  --ink-deep: #1F4FA8;
  --ink-soft: rgba(52, 108, 211, 0.55);
  --ink-wash: rgba(52, 108, 211, 0.08);
  --rule: rgba(52, 108, 211, 0.3);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--paper);
  color: var(--ink-deep);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  padding: 2rem 1rem;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* --- TYPOGRAPHY --- */
h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

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

.container {
  max-width: 760px;
  margin: 0 auto;
}

.section-spacer {
  margin-bottom: 5rem;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--ink-soft);
}

/* --- HEADER --- */
header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
}

.nav-social {
  font-size: 0.75rem;
}

.nav-social + .nav-links {
  margin-top: 0.75rem;
}

.nav-social a {
  color: var(--ink-soft);
}

.nav-links a {
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

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

/* --- DUOTONE MEDIA ---
   Grayscale media + a blue layer in "screen" mode: black becomes ink, white stays paper.
   Hover reveals the original colours. */
.duotone {
  position: relative;
  border: 1.5px solid var(--ink);
  overflow: hidden;
}

.duotone>iframe,
.duotone>img {
  display: block;
  width: 100%;
  border: none;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.4s ease;
}

.duotone>img {
  height: auto;
}

.duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.duotone:hover::after {
  opacity: 0;
}

.duotone:hover>iframe,
.duotone:hover>img {
  filter: none;
}

.duotone iframe {
  height: 300px;
}

/* --- LISTS (events, patches, tools) --- */
.item-list {
  list-style: none;
  border-top: 1.5px solid var(--ink);
}

.item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 600px) {
  .item {
    grid-template-columns: 140px 1fr auto;
    align-items: baseline;
    gap: 1rem;
  }
}

.item-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
}

.item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.item-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.item-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  justify-self: start;
}

/* --- BUTTONS --- */
button,
.button {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

button:hover,
.button:hover {
  background: var(--ink-wash);
}

button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.85rem;
}

.primary:hover:not(:disabled) {
  background: var(--ink-deep);
  color: var(--paper);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  margin-top: 6rem;
}

footer img {
  width: 96px;
  height: auto;
  margin-bottom: 0.75rem;
}

footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
