* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 0rem 1rem;
  --max-width: 60rem;
  --rounded: 4px;
  --color-black: #000;
  --color-white: #f8f8f8;
  --color-grey: #777;
  --color-link: #0000ff;
  --color-light: #efefef;
  --color-theme: #64724d;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey: #cacbd1;
  --font-family-sans: "Nunito Sans", sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  --font-family-decorative: "Beth Ellen", serif;
  font-weight: 400;
  font-style: normal;
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0 auto;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--padding);
}

li { list-style: none; }

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

button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}

strong, b { font-weight: 600; }
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light { background-color: var(--color-light); }
.color-grey { color: var(--color-text-grey); }

header {
  background-color: var(--color-theme);
  position: relative;
  display: flex;
  padding: var(--padding);
  margin-bottom: 6rem;
}

.header-content {
  margin: 0 auto;
  width: 100%;
  height: 100px;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; }

.title, .subtitle {
  font-family: var(--font-family-decorative);
  color: var(--color-white);
  text-align: center;
}
.title { font-size: x-large; }

.menu {
  color: var(--color-white);
  display: flex;
  align-items: center;
  font-weight: normal;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid img { width: 100%; }
.grid > .column {
  margin-bottom: var(--gutter);
  display: flex;
  align-items: flex-end;
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1 { padding-bottom: 1.5rem; }
h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.text {
  line-height: 1.5em;
}
.text a { text-decoration: underline; }
.text :first-child { margin-top: 0; }
.text :last-child { margin-bottom: 0; }
.text p, .text ul, .text ol { margin-bottom: 1.5rem; }
.text ul, .text ol { margin-left: 1rem; }
.text ul p, .text ol p { margin-bottom: 0; }
.text ul > li { list-style: disc; }
.text ol > li { list-style: decimal; }
.text ul ol, .text ul ul, .text ol ul, .text ol ol { margin-bottom: 0; }
.text h1, .h1, .intro {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2, .h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3, .h3 { font-weight: 600; }
.text .codeblock { display: grid; }
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr { margin: 6rem 0; }
.text dt { font-weight: 600; }
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure { margin: 3rem 0; }
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li { list-style: none; }

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center { text-align: center; }
.intro { max-width: 40rem; }
.intro *:not(:last-child) { margin-bottom: 1em; }

.cta {
  font: inherit;
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 0;
  border-radius: var(--rounded);
}
.cta:hover { cursor: pointer; }

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video, .img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img, .video iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img { object-fit: contain; }
.img-caption, .video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  margin-top: 6rem;
  width: 100%;
  background-color: var(--color-light);
  padding: 6rem 0 4rem;
  line-height: 1.5em;
}
.footer-content {
  font-size: small;
  color: var(--color-grey);
  max-width: var(--max-width);
  padding: var(--padding);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.footer-content-left { width: fit-content; }
.footer-content-right { text-align: end; }
.footer-content-left img { height: 144px; width: 144px; }
.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul, .footer p { color: var(--color-text-grey); }
.footer p { max-width: 15rem; }
.footer a:hover { color: var(--color-text); }

.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.margin-s { margin-bottom: .75rem; }
.margin-m { margin-bottom: 1.5rem; }
.margin-l { margin-bottom: 3rem; }
.margin-xl { margin-bottom: 4.5rem; }
.margin-xxl { margin-bottom: 6rem; }

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span { color: var(--color-text-grey); }
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt { line-height: 1.5em; }
.note-excerpt header { margin-bottom: 1.5rem; }
.note-excerpt figure { margin-bottom: .5rem; }
.note-excerpt-title { font-weight: 600; }
.note-excerpt-date { color: var(--color-text-grey); }

.swiper {
  height: calc(100vh - 100px - 12rem);
  max-width: var(--max-width);
  margin: 0 auto 6rem;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.swiper-slide a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-pagination { margin-top: 1rem; }

.honeypot {
  position: absolute;
  left: -9999px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.fields .field[data-width="1/1"] { grid-column: span 12; }
.fields .field[data-width="1/2"] { grid-column: span 6; }
.fields .field[data-width="1/3"] { grid-column: span 4; }
.fields .field[data-width="1/4"] { grid-column: span 3; }
.fields .field[data-width="2/3"] { grid-column: span 8; }

.field label {
  display: block;
  margin-bottom: 1rem;
}
.field input, .field textarea {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  background-color: var(--color-light);
  border: 0;
  padding: 0.5rem;
  border-radius: var(--rounded);
}
.field textarea { height: 10rem; }


/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .grid { display: block; }
  .fields {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .fields .field { grid-column: span 1 !important; }
  .field label { margin-bottom: 0.5rem; }
  .field input, .field textarea {
    font-size: 1rem;
    padding: 0.75rem;
  }
  .field textarea { height: 8rem; }
  .project-item { flex-direction: column; }
  .project-info { flex-direction: row; }
  .project-images {
    height: 180px;
    flex: 1;
    display: flex;
    gap: 10px;
    justify-content: start;
    overflow: hidden;
  }
}

/* Large Screens (≥ 62rem) */
@media screen and (min-width: 62rem) {
  body { --padding: 0rem; }
  .grid { grid-template-columns: repeat(12, 1fr); }
  .grid > .column { grid-column: span var(--columns); }
}