/* Shared contact and footer rhythm across every page. */
.header-contact .header-contact-title {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.header-contact .header-contact-title:hover { color: #bf5b29; }
.header-contact .header-contact-title:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }

.site-footer {
  margin-top: clamp(30px, 4vw, 64px);
  padding: 0 0 28px;
  background: linear-gradient(120deg, #fffdf8 0%, #f8f1e6 70%, #f5ead9 100%);
  border-top-color: rgba(0, 84, 97, .07);
}
.site-footer .footer-contact,
body[data-page="kissel"] .site-footer .footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(30px, 5vw, 110px);
  padding-block: clamp(40px, 4.5vw, 70px);
  border-bottom: 1px solid rgba(0, 84, 97, .12);
}
.site-footer .footer-contact-copy { max-width: 760px; }
.site-footer .footer-contact h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.15rem, 3.5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.site-footer .footer-contact p:not(.eyebrow) {
  max-width: 45ch;
  margin: 17px 0 0;
  color: #49676a;
  font-size: clamp(1rem, 1.35vw, 1.23rem);
  line-height: 1.42;
}
.site-footer .footer-contact .button {
  min-width: 240px;
  justify-content: center;
  white-space: nowrap;
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(190px, 255px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 88px);
  padding-block: 28px 18px;
}
.site-footer .footer-brand { width: min(100%, 255px); height: 78px; }
.site-footer .footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  align-items: center;
  width: 100%;
  margin: 0;
  font-size: clamp(.95rem, 1.15vw, 1.1rem);
  line-height: 1.2;
}
.site-footer .footer-nav a { width: fit-content; padding-block: 6px; }
.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 5px 24px;
  margin-top: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(0, 84, 97, .12);
  font-size: .87rem;
  line-height: 1.35;
}
.site-footer .footer-bottom > p:first-of-type { grid-column: 1; grid-row: 1; margin: 0; }
.site-footer .footer-legal { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 9px 22px; }
.site-footer .footer-bottom > p:nth-of-type(2) { grid-column: 1; grid-row: 3; margin: 4px 0 0; }
.site-footer .footer-developer { grid-column: 2; grid-row: 1 / 4; justify-self: end; gap: 4px; }
.site-footer .footer-developer img { width: 50px; height: 50px; }
.site-footer .footer-developer figcaption { font-size: 9px; }

/* One composed invitation, shared by every section. */
.site-footer {
  background: linear-gradient(155deg, #fffdf8 0%, #f8f1e6 100%);
  border-top: 0;
}
body[data-page="about"] .site-footer { margin-top: clamp(52px, 6vw, 88px); }
.story .story-card,
.story .story-card-ideas { border-right: 0; border-bottom: 0; }
.site-footer .footer-contact,
body[data-page="kissel"] .site-footer .footer-contact {
  position: relative;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: clamp(20px, 3vw, 42px);
  margin-top: clamp(18px, 2.4vw, 32px);
  padding: clamp(20px, 2vw, 30px) clamp(26px, 3vw, 46px);
  overflow: hidden;
  border: 0;
  border-radius: clamp(28px, 3vw, 48px);
  background: radial-gradient(ellipse 72% 118% at 82% 48%, rgba(246, 190, 123, .24) 0%, rgba(246, 190, 123, .06) 70%, transparent 100%), linear-gradient(135deg, #fffdf8 0%, #f6ecdd 100%);
  box-shadow: 0 17px 38px rgba(64, 68, 52, .11), 0 4px 11px rgba(64, 68, 52, .05), inset 0 1px rgba(255,255,255,.88);
}
.site-footer .footer-contact-copy { max-width: 760px; }
.site-footer .footer-contact h2 {
  max-width: none;
  font-size: clamp(2.05rem, 2.8vw, 3.15rem);
  line-height: 1.08;
}
.site-footer .footer-contact p:not(.eyebrow) { max-width: 64ch; margin-top: 10px; }
.site-footer .footer-contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  align-self: center;
  padding-left: 0;
  border-left: 0;
}
.site-footer .footer-contact-action span {
  color: #49676a;
  font-size: clamp(.92rem, 1.05vw, 1.05rem);
  font-weight: 600;
  line-height: 1.35;
}
.site-footer .footer-contact-action .button { min-width: 0; }
.site-footer .footer-main { padding-top: clamp(28px, 3vw, 46px); }
.site-footer .footer-bottom { border-top: 0; }

#contact-dialog {
  width: min(610px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 43, 47, .28);
}
#contact-dialog::backdrop { background: rgba(5, 45, 49, .48); backdrop-filter: blur(5px); }
#contact-dialog .contact-dialog-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(0, 84, 97, .10);
  border-radius: 30px;
  background: linear-gradient(150deg, #fffdf8, #f7f1e7);
  box-shadow: none;
}
#contact-dialog .contact-dialog-heading,
#contact-dialog .wide { grid-column: 1 / -1; }
#contact-dialog .contact-dialog-heading { max-width: 50ch; margin-bottom: 0; }
#contact-dialog .contact-dialog-heading h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.04; }
#contact-dialog .contact-dialog-heading p { margin: 8px 0 0; color: #49676a; font-size: .98rem; line-height: 1.4; font-weight: 400; }
#contact-dialog .dialog-close {
  display: grid;
  place-items: center;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 84, 97, .2);
  background: #fffdf8;
  color: #005461;
}
#contact-dialog .dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#contact-dialog .dialog-close:hover { background: #eaf0e9; }
#contact-dialog .dialog-close:focus-visible { outline: 3px solid #005461; outline-offset: 2px; }
#contact-dialog .inquiry-topics { min-width: 0; margin: 0; padding: 0; border: 0; }
#contact-dialog .inquiry-topics legend { margin-bottom: 8px; padding: 0; color: #005461; font-size: .91rem; font-weight: 700; }
#contact-dialog .inquiry-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
#contact-dialog .inquiry-choice { display: inline-block; position: relative; font-size: .88rem; }
#contact-dialog .inquiry-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#contact-dialog .inquiry-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(0, 84, 97, .16);
  border-radius: 14px;
  background: rgba(255, 253, 248, .62);
  color: #005461;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
#contact-dialog .inquiry-choice input:checked + span { background: #005461; border-color: #005461; color: #fffdf8; }
#contact-dialog .inquiry-choice input:focus-visible + span { outline: 3px solid #bf5b29; outline-offset: 2px; }
#contact-dialog .contact-dialog-form > label:not(.inquiry-choice) { display: grid; gap: 7px; min-width: 0; color: #005461; font-size: .91rem; font-weight: 700; }
#contact-dialog label small { display: inline; color: #688080; font-size: .79rem; font-weight: 400; }
#contact-dialog input:not([type="radio"]),
#contact-dialog textarea {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 84, 97, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: #005461;
  font: inherit;
  font-weight: 400;
}
#contact-dialog textarea { min-height: 82px; resize: vertical; }
#contact-dialog input:focus-visible,
#contact-dialog textarea:focus-visible { outline: 3px solid rgba(0, 84, 97, .15); border-color: #005461; }
#contact-dialog .inquiry-submit { grid-column: 1 / -1; justify-self: start; margin-top: 2px; }
#contact-dialog .form-status { margin: 0; color: #688080; font-size: .82rem; font-weight: 400; }

@media (max-width: 820px) {
  .site-footer .footer-contact,
  body[data-page="kissel"] .site-footer .footer-contact { grid-template-columns: 1fr; gap: 16px; }
  .site-footer .footer-contact .button { justify-self: start; }
  .site-footer .footer-contact-action { padding: 4px 0 0; border-top: 0; border-left: 0; }
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 10px; }
  .site-footer .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-footer { padding-bottom: 32px; }
  .site-footer .footer-contact,
  body[data-page="kissel"] .site-footer .footer-contact { padding-block: 35px; gap: 22px; }
  .site-footer .footer-contact,
  body[data-page="kissel"] .site-footer .footer-contact { padding: 24px 20px; }
  .site-footer .footer-contact-action { gap: 10px; padding-top: 4px; }
  .site-footer .footer-contact h2 { max-width: none; font-size: clamp(1.85rem, 7.5vw, 2.5rem); }
  .site-footer .footer-contact p:not(.eyebrow) { margin-top: 9px; font-size: .98rem; }
  .site-footer .footer-contact .button { min-width: 0; width: auto; }
  .site-footer .footer-main { padding-block: 23px 14px; }
  .site-footer .footer-brand { width: 190px; height: 63px; }
  .site-footer .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; font-size: .94rem; }
  .site-footer .footer-bottom { grid-template-columns: minmax(0,1fr) 60px; gap: 8px 12px; font-size: .76rem; }
  .site-footer .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer .footer-developer { grid-row: 2 / 4; }
  .site-footer .footer-developer img { width: 45px; height: 45px; }
  #contact-dialog .contact-dialog-form { grid-template-columns: 1fr; gap: 10px; padding: 24px 20px; }
  #contact-dialog .contact-dialog-heading,
  #contact-dialog .wide,
  #contact-dialog .inquiry-submit { grid-column: 1; }
  #contact-dialog .contact-dialog-heading h2 { padding-right: 25px; }
  #contact-dialog .contact-dialog-heading p { font-size: .94rem; }
  #contact-dialog .inquiry-submit { width: 100%; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  #contact-dialog .inquiry-choice span { transition: none; }
}

/* The lower footer stays compact; the contact invitation above it is separate. */
.site-footer { padding-bottom: 16px; }
body[data-page] .site-footer .footer-bottom {
  grid-template-columns: minmax(0, 1fr) 66px;
  align-items: center;
  gap: 5px clamp(12px, 2vw, 26px);
  margin-top: 0;
  padding-block: 64px 0;
  font-size: .8rem;
}
.site-footer .footer-bottom .footer-brand {
  grid-column: 1;
  grid-row: 1;
  width: 132px;
  height: 44px;
  margin-inline-start: -15px;
}
.site-footer .footer-brand img { object-position: left center; }
.site-footer .footer-bottom > p:first-of-type { grid-column: 1; grid-row: 2; }
.site-footer .footer-legal { grid-column: 1; grid-row: 3; gap: 5px 18px; }
.site-footer .footer-developer { grid-column: 2; grid-row: 2 / 4; align-self: end; }

@media (min-width: 601px) {
  .site-footer {
    --footer-content-inset: var(--hero-copy-left, clamp(26px, 3vw, 46px));
    margin-top: 32px;
  }
  .site-footer .footer-contact,
  body[data-page="kissel"] .site-footer .footer-contact {
    margin-top: 12px;
    padding-block: 17px;
    padding-inline-start: var(--footer-content-inset);
  }
  .site-footer .footer-bottom .footer-brand {
    width: 162px;
    height: 54px;
    /* The artwork starts 18px inside the logo at this size. */
    margin-inline-start: -18px;
  }
  body[data-page] .site-footer .footer-bottom {
    padding-inline: var(--footer-content-inset) max(12px, calc(var(--footer-content-inset) - 18px));
  }
}
@media (min-width: 901px) {
  body[data-page] .site-footer .footer-bottom {
    grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
    align-items: last baseline;
    column-gap: clamp(10px, 1.4vw, 20px);
  }
  .site-footer .footer-bottom .footer-brand {
    /* Align the lower line of the artwork, accounting for the transparent edge. */
    transform: translateY(9px);
  }
  .site-footer .footer-bottom > p:first-of-type { grid-column: 2; grid-row: 1; }
  .site-footer .footer-legal {
    grid-column: 3;
    grid-row: 1;
    align-items: baseline;
    margin-inline-end: clamp(16px, 1.7vw, 24px);
  }
  .site-footer .footer-bottom .footer-developer {
    grid-column: 4;
    grid-row: 1;
    align-self: last baseline;
    flex-direction: column;
  }
  .site-footer .footer-bottom .footer-developer img { width: 42px; height: 42px; }
}
@media (max-width: 600px) {
  .site-footer .footer-contact,
  body[data-page="kissel"] .site-footer .footer-contact { gap: 12px; padding: 16px 20px; }
  .site-footer .footer-contact-action { padding-top: 0; }
  body[data-page] .site-footer .footer-bottom { font-size: .72rem; }
  .site-footer .footer-legal { flex-direction: column; align-items: flex-start; }
  .site-footer .footer-developer { margin-block-end: 3px; }
}

.cookie-note-details {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ab5221;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-dialog.legal-dialog { width: min(700px, calc(100% - 28px)); }
.legal-dialog-card {
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 28px);
  padding: clamp(22px, 5vw, 36px);
  overflow: hidden;
}
.legal-dialog-card h2 {
  margin: 0;
  padding-inline-end: 32px;
  font-size: clamp(1.4rem, 4vw, 2.15rem);
}
.legal-dialog-copy {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  line-height: 1.55;
}
.legal-dialog-copy p { margin: 0 0 12px; }
.legal-dialog-copy p:last-child { margin-bottom: 0; }
.legal-dialog-copy a { color: var(--teal); text-underline-offset: 3px; }
#privacy-dialog .legal-dialog-card {
  height: min(900px, calc(100dvh - 28px));
  grid-template-rows: auto minmax(0, 1fr);
}
.privacy-policy-pages img {
  display: block;
  width: 100%;
  height: auto;
  margin-block-end: 12px;
}
