/* Brand values from webjungle.ch: style.css, home-redesign.css and navigation.css. */
:root {
  color-scheme: light;
  --background: #fff;
  --text: #171d1e;
  --muted: #555d5e;
  --rule: #d9dddd;
  --sage: #d7e8ca;
  --header: #151e19;
  --gutter: clamp(24px, 4.5vw, 72px);
  --content-width: 1440px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--background); }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid #56825e; outline-offset: 5px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1560px, calc(100% - 48px));
  min-height: 76px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border: 1px solid #303a32;
  border-radius: 100px;
  background: var(--header);
  color: #f5f7f2;
  box-shadow: 0 8px 30px #14241b14;
}

.site-header a:focus-visible { outline-color: #d9edc7; }
.wordmark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.wordmark img { display: block; width: auto; height: 42px; }
.brand-name { display: block; font-size: 1.375rem; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.brand-context { display: block; margin-top: 5px; color: #d9edc7; font-size: .75rem; line-height: 1; }

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 100px;
  background: #26312a;
  color: #edf2e9;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.header-link:hover { background: #d9edc7; color: var(--header); }

.header-link svg,
.project-link svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

main,
.footer-inner {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
main { padding-block: clamp(64px, 7.5vw, 112px); }
.intro { margin-bottom: clamp(40px, 5vw, 72px); }

h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(2.25rem, 4.7vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.09;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.intro p {
  max-width: 54ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.project { display: flex; flex-direction: column; min-width: 0; }
.project > .project-link { align-self: flex-start; margin-top: auto; }
.project-media {
  display: block;
  flex-shrink: 0;
  aspect-ratio: 1.5;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--sage);
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .75, .25, 1);
}
.project:first-child .project-media img { object-position: center 53%; }
.project:last-child .project-media img { object-position: center 45%; }
.project-media:hover img { transform: scale(1.025); }

.project h2 {
  margin: 24px 0 20px;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--text);
  border-radius: 100px;
  background: var(--text);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.project-link:hover { background: #294e3d; border-color: #294e3d; }

.site-footer { background: var(--header); color: #d9edc7; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 32px;
  font-size: .875rem;
}
.footer-inner > :first-child { color: #fff; font-weight: 500; }
.missing-page main { align-self: center; }
.missing-page h1 { max-width: 18ch; }
.missing-page .intro { margin-bottom: 36px; }

@media (max-width: 900px) {
  .projects { grid-template-columns: 1fr; gap: 48px; }
  .project-media { aspect-ratio: 1.66; }
}
@media (max-width: 600px) {
  .site-header { width: calc(100% - 32px); min-height: 68px; margin-top: 12px; padding: 10px 14px; gap: 10px; }
  .wordmark img { height: 38px; }
  .brand-name { font-size: 1.25rem; }
  .header-link { padding: 10px 12px; font-size: .875rem; gap: 6px; }
  .header-link svg { width: 16px; height: 16px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .project-media:hover img { transform: none; }
}
