/* ===== Variables ===== */
:root {
  --content-width: 480px;
  --black: #000000;
  --white: #FFFFFF;
  --grey: rgba(26, 26, 46, 0.5);
  --grey-separator: rgba(26, 26, 46, 0.35);
}

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

* {
  font-family: 'IBM Plex Mono', monospace;
}

body {
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  background-color: var(--white);
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0;
}

/* ===== Layout ===== */
.content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (max-width: 768px) {
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===== Back button ===== */
.btn-back {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
}

.btn-back:hover {
  opacity: 0.6;
}

/* ===== Explore button ===== */
.btn-explore {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--black);
  border-radius: 0;
  padding: 8px 20px;
  letter-spacing: 1px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 1px 1px 0px 0px var(--black);
  line-height: 1.5;
}

.btn-explore:hover {
  opacity: 0.6;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  background-color: var(--white);
}

.footer-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--grey);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.5;
  text-align: center;
}

/* ===== Index page ===== */
.hero-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.hero-tagline {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.projects-heading-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  border-bottom: 2px solid var(--black);
}

.projects-heading {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  flex: 1;
  margin: 0;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  width: 100%;
}

.project-name {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

/* ===== Project pages ===== */
.page-nav {
  display: flex;
  align-items: center;
  padding: 16px 0;
  width: 100%;
}

.page-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  border-bottom: 2px solid var(--black);
}

.page-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  flex: 1;
  margin: 0;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  width: 100%;
}

.meta-line {
  font-size: 16px;
  line-height: 1.5;
}

.meta-label {
  font-weight: 500;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  width: 100%;
}

.text-block-heading {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.text-block-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  width: 100%;
}

.text-block-body p + p {
  margin-top: 1.5em;
}

/* ===== Image sections ===== */
.image-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.image-block-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

/* 2-column grid — Ventura */
.img-row-2 {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.img-row-2 .img-col {
  width: calc((100% - 16px) / 2);
  flex-shrink: 0;
}

/* Phone-width grid — ErnteRoute (3-col base width) */
.phone-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.phone-col {
  width: calc((100% - 32px) / 3);
  flex-shrink: 0;
}

/* Stacked phone column — ErnteRoute */
.phone-col-stack {
  width: calc((100% - 32px) / 3);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Bordered image — all project page images */
img.img-bordered {
  border: 1px solid var(--black);
  display: block;
  width: 100%;
  height: auto;
}
