* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf9f4;
  color: #101d30;
  font:
    17px/1.48 -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
}
header,
main,
footer {
  max-width: 1024px;
  margin: auto;
  padding: 0 22px;
}
header {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #cbd4db;
}
header b {
  font-size: 21px;
}
button,
summary,
a {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
header details {
  position: relative;
}
header summary {
  padding: 12px;
  list-style: none;
}
nav {
  position: absolute;
  right: 0;
  background: white;
  padding: 16px;
  z-index: 3;
}
nav a {
  display: block;
  padding: 9px;
}
h1 {
  font-size: clamp(48px, 11vw, 76px);
  letter-spacing: -0.06em;
  line-height: 1.04;
  margin: 10px 0 15px;
}
h1 span {
  color: #1454ae;
}
.intro {
  font-size: 20px;
  line-height: 1.38;
  max-width: 480px;
  margin: 0 0 18px;
}
.btn {
  border: 0;
  background: #114fa4;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 13px 18px;
}
section {
  padding: 30px 0 12px;
}
h2 {
  font-size: 32px;
  letter-spacing: -0.045em;
  margin: 4px 0 16px;
  line-height: 1.12;
}
summary::-webkit-details-marker {
  display: none;
}
.n {
  font: 13px monospace;
  color: #275689;
}
footer {
  padding: 32px 22px;
  margin-top: 24px;
  background: #15283e;
  color: white;
}
dialog {
  max-width: 340px;
  border: 1px solid #aebfcc;
  border-radius: 12px;
  padding: 22px;
}
dialog button {
  min-height: 44px;
}

a {
  color: #1454ae;
}
.detail img {
  max-width: 100%;
  height: auto;
}
.detail {
  padding-block: 40px;
}
.detail h1 {
  font-size: clamp(36px, 6vw, 60px);
}
.project-link {
  display: inline-block;
  padding: 14px 0;
}
footer {
  max-width: none;
}
footer > div {
  max-width: 980px;
  margin: auto;
}
@media (min-width: 850px) {
  header,
  main {
    max-width: 1180px;
  }
}

.rk.rk-about-nav {
  container-type: inline-size;
  max-width: 1280px;
  margin: auto;
  background: #faf8ef;
  color: #0c1621;
  font-family: Arial, Helvetica, sans-serif;
}
.rk .rk-nav {
  height: 5.6cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5cqw 0 4.5cqw;
}
.rk-nav a {
  color: inherit;
  text-decoration: none;
}
.rk-nav .brand {
  display: block;
  width: clamp(100px, 12cqw, 150px);
  aspect-ratio: 686/169;
  background: url("../images/wordmark.jpg") left center/contain no-repeat;
  font-size: 0;
}
.rk-nav .links {
  display: flex;
  gap: 3.6cqw;
}
.rk-nav .links a,
.rk-nav .navchat {
  font-size: 1.34cqw;
  font-weight: 600;
}
.rk .rk-nav .links a:not([aria-current]) {
  border-bottom: 0;
}
.rk .rk-nav .links a[aria-current] {
  border-bottom: 2px solid #104ea0;
}
.rk-nav .navchat {
  background: #084ca7;
  color: white;
  border-radius: 0.6cqw;
  padding: 0.95cqw 2.2cqw;
}
.rk-nav .mobmenu {
  display: none;
}
@media (max-width: 760px) {
  .rk .rk-nav {
    height: 60px;
    padding: 0 20px;
  }
  .rk .rk-nav .links,
  .rk .rk-nav .navchat {
    display: none;
  }
  .rk-nav .mobmenu {
    display: block;
    position: relative;
    z-index: 5;
  }
  .rk-nav summary {
    padding: 10px;
  }
  .rk-nav .mobmenu[open] {
    align-self: flex-start;
    background: #faf8ef;
  }
  .rk-nav .mobmenu a {
    display: block;
    padding: 8px 16px;
  }
  .rk-nav .mobmenu a[aria-current] {
    text-decoration: underline;
  }
}

body.post-type-archive-ray_project {
  background: #faf8ef;
  color: #112334;
}
main.rk-gallery {
  max-width: 1280px;
  margin: auto;
  padding: clamp(40px, 5vw, 75px) clamp(22px, 4.5vw, 64px) 80px;
}
.rk-gallery small {
  color: #1552a1;
  font: 700 12px/1.4 monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.rk-gallery h1 {
  font-size: clamp(52px, 6vw, 80px);
  margin: 18px 0;
}
.rk-gallery > p {
  font-size: 20px;
}
.gallery-tools,
.gallery-tools form,
.gallery-tags,
.gallery-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-tools {
  gap: 20px;
  margin: 36px 0 24px;
}
.gallery-tools input,
.gallery-tools button {
  border: 1px solid #bfc9cc;
  border-radius: 5px;
  padding: 9px 12px;
  background: transparent;
  font: inherit;
}
.gallery-tags a {
  padding: 6px 13px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 15px;
}
.gallery-tags [aria-current] {
  background: #124fa2;
  color: white;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-card {
  padding: 18px;
  border: 1px solid #c7cfcf;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: #1552a1;
}
.gallery-art {
  height: 145px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.gallery-art img {
  max-width: 100%;
  height: 100%;
  max-height: 145px;
  object-fit: contain;
}
.gallery-art span {
  font-size: 60px;
  color: #1552a1;
}
.gallery-card h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 6px 0;
}
.gallery-card div > span {
  color: #1552a1;
}
.gallery-pages {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 16px;
    align-items: center;
  }
  .gallery-art {
    height: 98px;
    margin: 0;
  }
  .gallery-art img {
    max-height: 98px;
  }
  .gallery-tags a {
    padding: 5px 8px;
  }
  .gallery-tools form {
    flex-wrap: nowrap;
    width: 100%;
  }
  .gallery-tools input[type="search"] {
    min-width: 0;
    flex: 1;
  }
}

.rk .client-notes {
  margin: 0 4.5% 32px;
  padding: clamp(16px, 1.5cqw, 20px) 0 clamp(24px, 4vw, 56px);
}
.rk .client-notes small {
  color: #1454a5;
}
.rk .client-notes h2 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 4vw, 54px);
}
.client-notes > p {
  color: #495969;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 24px;
}
.quote-grid figure {
  margin: 0;
  padding: 0 20px;
  border-left: 2px solid #1552a1;
}
.quote-grid blockquote {
  margin: 0;
  font:
    20px/1.5 Georgia,
    serif;
}
.quote-grid figcaption {
  margin-top: 14px;
  color: #355374;
}
.rk .footer-wordmark {
  display: inline-flex;
  background: #faf8ef;
  padding: 5px 8px;
  border-radius: 4px;
}
.rk .footer-wordmark img {
  display: block;
  width: clamp(100px, 12cqw, 150px);
  height: auto;
}

/* Homepage contact footer */
#contact.base {
  min-height: 0;
  padding-block: clamp(32px, 4vw, 58px);
  align-items: start;
}
#contact .footer-wordmark {
  background: transparent;
  padding: 0;
  mix-blend-mode: screen;
}
#contact .footer-wordmark img {
  width: 136px;
  filter: grayscale(1) invert(1) contrast(1.3);
}
#contact.base h3 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.14;
}
#contact.base p {
  font-size: 16px;
  line-height: 1.5;
  color: #d3deea;
  margin: 10px 0;
  max-width: 40ch;
}
#contact .footnav {
  gap: 6px 18px;
  margin-top: 22px;
}
#contact .footnav a {
  font-size: 14px;
  padding: 3px 0;
}
#contact .blue {
  margin-top: 8px;
  font-size: 16px;
  padding: 11px 22px;
  border-radius: 8px;
}
@media (min-width: 761px) {
  body:has(#ray-conversation) #contact.base {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 80px);
  }
}
@media (max-width: 760px) {
  #contact.base > div {
    margin: 0;
  }
  #contact.base > div + div {
    margin-top: 28px;
  }
}
