/* ANTIPRODUKT — antiprodukt.ch */

html, body { margin: 0; padding: 0; background: #ffffff; }
* { box-sizing: border-box; }

a { color: #000000; text-decoration: none; }
a:hover { color: #000000; }

img { max-width: 100%; }

.page {
  min-height: 100vh;
  background: #ffffff;
  color: #000000;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-weight: 400;
  padding: 40px 32px 0;
  display: flex;
  flex-direction: column;
}

/* Header */

.header {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid #000000;
}

.logo {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  mix-blend-mode: multiply;
}

.intro {
  margin: 0;
  max-width: 40ch;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

/* Cards */

.grid {
  display: grid;
  /* minmax(0, …) keeps the intrinsic width of the card images from
     forcing the columns — and the page — wider than the viewport. */
  grid-template-columns: minmax(0, 1fr);
  margin-top: -1px;              /* collapse first row into the header rule */
  border-bottom: 1px solid #000000;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 32px 56px;
  border-top: 1px solid #000000;
}

.card:hover,
.card:focus-visible {
  background: #000000;
  color: #ffffff;
  outline: none;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.card-title {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card-index {
  font-size: 11px;
  letter-spacing: 0.16em;
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid currentColor;
}

.card-link {
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 2px;
}

/* Two columns — only the left-hand card of a full row carries a divider. */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(1) { border-right: 1px solid #000000; }
}

/* Three columns — dividers after the first two cards. */
@media (min-width: 860px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card:nth-child(2) { border-right: 1px solid #000000; }
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.mail { border-bottom: 1px solid #000000; }

.wordmark { opacity: 0.5; }
