/* Aridis. Structure after farbambau.com: header bar, large quote, project blocks, quiet footer.
   Courier New throughout; colours from the portfolio (forest green, off-white, beige, rust). */
:root {
  --pad: clamp(1.25rem, 6.5vw, 5rem);
  --max: 80rem;
  --edge: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

main.content {
  max-width: none;
  padding: 0 var(--edge) 6rem;
}

main.content > article {
  margin: 0;
}

.waas-broken {
  display: none;
}

/* Header: full-width bar, content aligned to the same edges as the page */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: none;
  justify-content: space-between;
  padding: 1.25rem var(--edge);
  background: var(--color-bg);
}

.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav ul {
  gap: 2rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-name:hover {
  color: var(--color-accent);
}

/* Footer: sand background, four short columns in petrol green; the first line is strongest, each following line lighter */
.site-footer {
  max-width: none;
  padding: 3.5rem var(--edge) 3rem;
  background: var(--color-beige);
  color: var(--color-green);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
}

.foot-col {
  max-width: 14rem;
}

.foot-col:last-child {
  max-width: 19rem;
}

.foot-col p {
  margin: 0;
  line-height: 1.55;
}

.foot-col p:nth-child(1) {
  opacity: 1;
}

.foot-col p:nth-child(2) {
  opacity: 0.78;
}

.foot-col p:nth-child(3) {
  opacity: 0.62;
}

.foot-col p:nth-child(n + 4) {
  opacity: 0.5;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.site-footer > .foot-small {
  margin: 3rem 0 0;
  font-size: 0.875rem;
  opacity: 0.62;
  text-align: left;
}

/* Quote (start page) */
.quote {
  margin: clamp(5rem, 16vh, 11rem) 0 clamp(5rem, 14vh, 9rem);
}

.quote blockquote {
  max-width: 52rem;
  margin: 0;
}

.quote blockquote p {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.quote-author {
  margin: 0;
}

.label {
  margin: 0 0 3rem;
}

/* Project blocks (start page). Images in one row share a height: each grows in proportion to its aspect ratio. */
.proj {
  margin-bottom: clamp(5rem, 12vw, 9rem);
}

.proj-images {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
  color: inherit;
}

.proj-images img {
  display: block;
  flex: 1 1 0%;
  min-width: 0;
  height: auto;
}

.proj-caption {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 4vw;
  margin-top: 1.25rem;
}

.proj-title {
  font-size: 1.125rem;
  text-decoration: none;
}

.proj-meta p {
  margin: 0;
  color: var(--color-muted);
}

.proj-meta p:empty {
  display: none;
}

/* Project list */
.page-title {
  margin: clamp(3rem, 8vh, 5rem) 0 3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(3rem, 6vw, 5rem) 4vw;
}

.card {
  display: block;
  text-decoration: none;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 1rem;
}

.card-title {
  display: block;
  font-size: 1.125rem;
}

.card-meta {
  display: block;
  color: var(--color-muted);
}

/* Project page */
.ptitle {
  margin: clamp(3rem, 8vh, 5rem) 0 0.25rem;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
}

.pmeta {
  margin: 0 0 2rem;
}

.pinfo {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.pinfo p {
  margin: 0;
}

.ptext {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}

.ptopic {
  max-width: 42rem;
  margin: clamp(4rem, 9vw, 7rem) 0 1.25rem;
}

.fig {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.fig img {
  display: block;
  width: 100%;
  height: auto;
}

.fig figcaption {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.fig figcaption:empty {
  display: none;
}

/* Gallery: figures in one row share a height (flex-grow = aspect ratio) */
.gallery {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
}

.gallery .fig {
  flex: 1 1 0%;
  min-width: 0;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.proj-images img[data-r="562"],
.gallery .fig[data-r="562"] {
  flex-grow: 0.562;
}

.proj-images img[data-r="658"],
.gallery .fig[data-r="658"] {
  flex-grow: 0.658;
}

.proj-images img[data-r="660"],
.gallery .fig[data-r="660"] {
  flex-grow: 0.66;
}

.proj-images img[data-r="666"],
.gallery .fig[data-r="666"] {
  flex-grow: 0.666;
}

.proj-images img[data-r="667"],
.gallery .fig[data-r="667"] {
  flex-grow: 0.667;
}

.proj-images img[data-r="744"],
.gallery .fig[data-r="744"] {
  flex-grow: 0.744;
}

.proj-images img[data-r="750"],
.gallery .fig[data-r="750"] {
  flex-grow: 0.75;
}

.proj-images img[data-r="1085"],
.gallery .fig[data-r="1085"] {
  flex-grow: 1.085;
}

.proj-images img[data-r="1320"],
.gallery .fig[data-r="1320"] {
  flex-grow: 1.32;
}

.proj-images img[data-r="1321"],
.gallery .fig[data-r="1321"] {
  flex-grow: 1.321;
}

.proj-images img[data-r="1333"],
.gallery .fig[data-r="1333"] {
  flex-grow: 1.333;
}

.proj-images img[data-r="1334"],
.gallery .fig[data-r="1334"] {
  flex-grow: 1.334;
}

.proj-images img[data-r="1348"],
.gallery .fig[data-r="1348"] {
  flex-grow: 1.348;
}

.proj-images img[data-r="1431"],
.gallery .fig[data-r="1431"] {
  flex-grow: 1.431;
}

.proj-images img[data-r="1496"],
.gallery .fig[data-r="1496"] {
  flex-grow: 1.496;
}

.proj-images img[data-r="1499"],
.gallery .fig[data-r="1499"] {
  flex-grow: 1.499;
}

.proj-images img[data-r="1500"],
.gallery .fig[data-r="1500"] {
  flex-grow: 1.5;
}

.proj-images img[data-r="1581"],
.gallery .fig[data-r="1581"] {
  flex-grow: 1.581;
}

.proj-images img[data-r="1714"],
.gallery .fig[data-r="1714"] {
  flex-grow: 1.714;
}

.proj-images img[data-r="1778"],
.gallery .fig[data-r="1778"] {
  flex-grow: 1.778;
}

.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-rule);
}

.prevnext a {
  display: block;
  text-decoration: none;
}

.prevnext a span {
  display: block;
  color: var(--color-muted);
}

.prevnext a strong {
  font-size: 1.125rem;
  font-weight: 400;
}

.prevnext .next {
  text-align: right;
}

/* Informationen */
.info-head {
  max-width: 46rem;
  margin: clamp(3rem, 8vh, 5rem) 0 3rem;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

.split[data-reverse="true"] > :first-child {
  order: 2;
}

.text {
  max-width: 36rem;
}

.text > :last-child {
  margin-bottom: 0;
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 11rem 1fr;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.step:first-of-type {
  border-top: 1px solid var(--color-rule);
}

.step-no {
  color: var(--color-accent);
}

.step h3 {
  font-size: 1.125rem;
}

.step p {
  margin: 0;
  color: var(--color-muted);
}

.steps {
  max-width: 56rem;
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

@media (max-width: 64rem) {
  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .site-name {
    font-size: 1.375rem;
  }

  .site-header nav ul {
    gap: 1rem;
  }

  .proj-caption,
  .cards,
  .split,
  .prevnext {
    grid-template-columns: 1fr;
  }

  .proj-images,
  .gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .proj-images img,
  .gallery .fig {
    flex: none;
  }

  .split[data-reverse="true"] > :first-child {
    order: 0;
  }

  .step {
    grid-template-columns: 2rem 1fr;
  }

  .step p {
    grid-column: 2;
  }

  .prevnext .next {
    text-align: left;
  }

  .proj-caption {
    gap: 0.5rem;
  }
}
