/* Beantown Doodle Co.
   Palette: harbor navy, row-house brick, ballpark green, gaslight gold, harbor fog. */

@font-face {
  font-family: "Besley";
  src: url("../fonts/besley.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --fog: #EEF2F1;
  --paper: #FBFCFB;
  --navy: #12233F;
  --navy-deep: #0B1830;
  --navy-soft: #33435C;
  --brick: #A23A2B;
  --brick-dark: #84291D;
  --green: #1E5A43;
  --green-dark: #143F2F;
  --gold: #E9B44C;
  --gold-dark: #D39A2A;
  --granite: #59636B;
  --rule: #D3DBD9;
  --sky: #D9E3E4;

  --display: "Besley", Georgia, "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='36'%3E%3Cpath d='M0 1h52M0 19h52M1 0v18M27 18v18' stroke='%23fff' stroke-opacity='.15' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fog);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 2px; }
main:focus, .sent:focus { outline: none; }
.top :focus-visible, .hero :focus-visible, .mast :focus-visible, .board :focus-visible,
.local :focus-visible, .cta :focus-visible, .foot :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; font-weight: 700; border-radius: 0 0 4px 4px;
}
.skip:focus { top: 0; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap--narrow { max-width: 48rem; }

/* The narrow, heavy cut of Archivo is the "painted sign" voice. */
.board__title, .board__lamp, .board__table thead th, .board__name, .board__day, .plate,
.card__status, .card__sex, .tag, .mate__line, .ways__k, .stop__no, .places, .foot__h,
.review__by, .seal__text {
  font-family: var(--body);
  font-stretch: 68%;
  text-transform: uppercase;
}

/* ---------- buttons and links ---------- */

.btn {
  display: inline-block;
  padding: .95rem 1.4rem;
  background: var(--brick);
  border: 2px solid var(--brick);
  border-radius: 4px;
  color: #fff;
  font: 700 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn:focus-visible { outline-color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn--ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--gold:focus-visible { outline-color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:focus-visible { outline-color: var(--gold); }
.btn--small { padding: .6rem .95rem; font-size: .9375rem; }

.more { font-weight: 700; text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.more:hover { text-decoration-thickness: 3px; }
.empty a, .q__answer a, .ways a, .ask a, .side a, .contact__apply a, .sent a { text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- announcement + header ---------- */

.announce {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: .5rem 1rem;
  font-size: .9375rem;
  font-weight: 600;
}

.top { background: var(--navy); color: #fff; }
.top__in { display: flex; align-items: center; gap: 1rem; padding-block: .85rem; }

.brand { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__mark {
  flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--fog); box-shadow: 0 0 0 2px var(--gold);
  display: grid; place-items: center; overflow: hidden;
}
.brand__mark .doodle { width: 88%; margin-top: 8%; }
.brand__name { font: 800 1.35rem/1.1 var(--display); letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) {
  padding-block: .45rem; border-bottom: 3px solid transparent;
  color: rgba(255,255,255,.88); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap;
}
.nav a:not(.btn):hover { color: #fff; border-bottom-color: rgba(255,255,255,.45); }
.nav a:not(.btn)[aria-current] { color: #fff; border-bottom-color: var(--gold); }

.menu {
  display: none; align-items: center; gap: .5rem;
  background: none; border: 2px solid rgba(255,255,255,.85); border-radius: 4px; color: #fff;
  padding: .5rem .8rem; font: 700 .9375rem/1 var(--body); cursor: pointer;
}
.menu__bars { width: 1rem; height: .7rem; border-block: 2px solid currentColor; position: relative; }
.menu__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1px; border-top: 2px solid currentColor; }

@media (max-width: 64rem) {
  .top__in { flex-wrap: wrap; }
  .menu { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: .5rem; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 1.0625rem; }
  .nav a:not(.btn)[aria-current] { box-shadow: inset 4px 0 0 var(--gold); padding-left: .9rem; }
  .nav__cta { margin-top: .6rem; text-align: center; }
}
@media (max-width: 30rem) {
  .top__in { gap: .6rem; }
  .brand { gap: .6rem; }
  .brand__mark { width: 2.5rem; height: 2.5rem; }
  .brand__name { font-size: 1rem; }
  .menu { padding: .5rem .65rem; }
}

/* ---------- home page hero: the city at dusk ---------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, #172C4E 58%, #27446F 100%);
  color: #fff;
}
.hero__in {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-top: clamp(2.5rem, 6vw, 4.75rem);
}
.hero__copy { padding-bottom: clamp(8rem, 16.5vw, 14.5rem); }
.hero__title {
  font: 800 clamp(2.25rem, 5.2vw, 4.125rem)/1.04 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__text { margin-top: 1.4rem; max-width: 36rem; font-size: 1.1875rem; line-height: 1.55; color: rgba(255,255,255,.88); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__sky { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; color: var(--navy-deep); line-height: 0; }

/* 180 / 1400 keeps the whole skyline in view on wide screens; narrow screens show the middle. */
.sky { width: 100%; height: clamp(5.75rem, 12.86vw, 15rem); max-width: none; }

/* A Back Bay doorway: brick arch, dark door, granite step. */
.doorway {
  position: relative;
  justify-self: center;
  width: min(100%, 19.5rem);
  aspect-ratio: 4 / 5;
  padding: .9rem .9rem 0;
  border-radius: 9.75rem 9.75rem 0 0;
  background-color: var(--brick);
  background-image: var(--bricks);
  margin-bottom: .9rem;
}
.doorway::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -.9rem; height: .9rem;
  background: #C3CCCE; border-radius: 2px 2px 0 0; box-shadow: inset 0 3px 0 rgba(255,255,255,.55);
}
.doorway__pic { height: 100%; border-radius: 8.85rem 8.85rem 0 0; overflow: hidden; background: var(--navy-deep); }
.doorway__pic.pic--drawn { background: var(--navy-deep); }
.doorway__pic .pic__art { width: 92%; margin-bottom: -2%; }

@media (max-width: 48rem) {
  .hero__in { grid-template-columns: 1fr; gap: 2rem; }
  .hero__copy { padding-bottom: 0; }
  .doorway { width: 10.5rem; padding: .6rem .6rem 0; border-radius: 5.25rem 5.25rem 0 0; justify-self: start; margin-left: 1rem; }
  .doorway__pic { border-radius: 4.65rem 4.65rem 0 0; }
}

/* ---------- banner on the inner pages ---------- */

.mast { background: linear-gradient(180deg, var(--navy) 0%, #1A3157 100%); color: #fff; }
.mast::after { content: ""; display: block; height: 1.125rem; background-color: var(--brick); background-image: var(--bricks); background-size: 26px 18px; }
.mast__in { padding-block: clamp(2.25rem, 5.5vw, 3.75rem) clamp(2.25rem, 5.5vw, 3.5rem); }
.mast__title { font: 800 clamp(2.1rem, 4.8vw, 3.5rem)/1.05 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.mast__intro { margin-top: .9rem; max-width: 40rem; font-size: 1.1875rem; line-height: 1.5; color: rgba(255,255,255,.88); }

/* ---------- photos ---------- */

.pic { position: relative; overflow: hidden; background: var(--sky); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic--drawn { display: grid; place-items: end center; }
.pic__art { display: block; width: 86%; margin-bottom: -3%; }
.pic__art .doodle { width: 100%; height: auto; }

/* ---------- the board ---------- */

.board { padding-top: clamp(2rem, 5vw, 3.5rem); }
.board__frame {
  background-color: var(--green);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 5.5rem);
  border: .5rem solid var(--green-dark);
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.82), 0 18px 30px -22px rgba(18,35,63,.7);
  padding: clamp(1.1rem, 3vw, 1.9rem) clamp(1rem, 3.5vw, 2.25rem);
  color: #fff;
}
.board__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: .9rem; }
.board__title { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; line-height: 1; letter-spacing: .05em; }
.board__lamp { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
.lamp { width: .85rem; height: .85rem; border-radius: 50%; background: #7DEB9B; box-shadow: 0 0 0 3px rgba(0,0,0,.28), 0 0 12px 2px rgba(125,235,155,.75); }
.board__lamp.is-off .lamp { background: #F2664F; box-shadow: 0 0 0 3px rgba(0,0,0,.28), 0 0 12px 2px rgba(242,102,79,.7); }

.board__table { width: 100%; border-collapse: collapse; }
.board__table th, .board__table td { padding: .7rem .35rem; text-align: center; vertical-align: middle; }
.board__table thead th { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.82); padding-block: .4rem; width: 4.5rem; }
.board__table thead th:first-child, .board__table tbody th { text-align: left; padding-left: 0; width: auto; }
.board__table tbody tr { border-top: 2px solid rgba(255,255,255,.26); }
.board__table .board__date { width: 8rem; text-align: right; padding-right: 0; }

.board__name { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; line-height: 1.1; letter-spacing: .04em; }
.board__sub { display: block; margin-top: .2rem; font-size: .9375rem; font-weight: 400; line-height: 1.35; color: rgba(255,255,255,.82); }
.board__sub--date { display: none; }
.board__day { font-size: 1.25rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.board__empty { border-top: 2px solid rgba(255,255,255,.26); padding-top: 1rem; }

.plate {
  display: inline-grid; place-items: center;
  width: 3.1rem; height: 3.4rem;
  background: var(--green-dark);
  border-radius: 3px;
  box-shadow: inset 0 3px 0 rgba(0,0,0,.38), inset 0 -1px 0 rgba(255,255,255,.14);
  font-size: 2.2rem; font-weight: 800; line-height: 1;
  overflow: hidden;
}
.plate--live { color: var(--gold); }
.plate__n { display: block; animation: plate-drop .5s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(var(--i, 0) * 70ms + 250ms); }
@keyframes plate-drop { from { transform: translateY(-130%); } to { transform: none; } }

@media (max-width: 40rem) {
  .board__table .board__date { display: none; }
  .board__sub--date { display: block; }
  .board__table thead th { width: 3rem; letter-spacing: .06em; }
  .board__table th, .board__table td { padding-inline: .2rem; }
  .plate { width: 2.5rem; height: 2.9rem; font-size: 1.8rem; }
}

.tag {
  display: inline-block; padding: .2rem .45rem; border-radius: 2px;
  background: var(--gold); color: var(--navy);
  font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: .08em;
}
.tag--deck { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }

/* ---------- shared section pieces ---------- */

.band { padding-block: clamp(3rem, 7vw, 5.25rem); }
.band--tight { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5.25rem); }
.band--paper { background: var(--paper); border-block: 1px solid var(--rule); }
.band:not(.band--paper) + .band--cta { padding-top: 0; }

.head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.head__words { max-width: 42rem; }
.head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 2rem; }
.h2 { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.h2--small { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 1rem; }
.lede { margin-top: .8rem; font-size: 1.125rem; color: var(--navy-soft); }

/* ---------- puppy cards ---------- */

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.6rem; }
.card {
  display: flex; flex-direction: column;
  background: #fff;
  padding: .6rem .6rem 1.1rem;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(18,35,63,.1), 0 14px 24px -18px rgba(18,35,63,.6);
}
.card__photo { position: relative; }
.card__photo .pic { aspect-ratio: 4 / 5; border-radius: 3px; }
.card__status {
  position: absolute; left: 0; top: .7rem;
  padding: .35rem .7rem .3rem; border-radius: 0 3px 3px 0;
  font-size: .875rem; font-weight: 700; line-height: 1; letter-spacing: .09em;
  background: var(--navy); color: #fff;
}
.is-open .card__status { background: var(--green); }
.is-held .card__status { background: var(--gold); color: var(--navy); }
.is-home .pic img { filter: grayscale(.6); }
.tag--card { position: absolute; right: .5rem; top: .7rem; }

.card__plate { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-top: .6rem; padding: .55rem .8rem .5rem; background: var(--navy); color: #fff; border-radius: 3px; }
.card__name { font: 800 1.4rem/1.1 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.card__sex { font-size: .875rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.card__back { padding: .8rem .35rem 0; font-size: .9375rem; line-height: 1.5; display: grid; gap: .3rem; }
.card__facts { font-weight: 700; font-size: 1rem; }
.card__litter { color: var(--granite); }
.card__price { font-weight: 700; color: var(--brick); }

.empty { background: #fff; border-left: 6px solid var(--brick); padding: 1.4rem 1.6rem; border-radius: 0 6px 6px 0; max-width: 40rem; }
.empty__title { font: 700 1.25rem/1.2 var(--display); margin-bottom: .35rem; }

.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.6rem; }
.filters__set { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters__count { color: var(--granite); font-size: .9375rem; }
.chip { padding: .55rem 1rem; background: transparent; border: 2px solid var(--navy); border-radius: 999px; color: var(--navy); font: 600 .9375rem/1 var(--body); cursor: pointer; }
.chip:hover { background: rgba(18,35,63,.08); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- three across ---------- */

.trio { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 2rem 2.75rem; }
.trio__item { border-top: 4px solid var(--navy); padding-top: 1.1rem; }
.trio__title { font: 700 1.3rem/1.2 var(--display); }
.trio__text { margin-top: .55rem; color: var(--navy-soft); }

/* ---------- hometown band ---------- */

.local { background-color: var(--brick); background-image: var(--bricks); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.local__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.local__text { margin-top: 1rem; font-size: 1.125rem; color: rgba(255,255,255,.92); max-width: 34rem; }
/* White enamel plates, like the old street signs. */
.places { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.places li {
  padding: .5rem .8rem .42rem;
  background: #fff; color: var(--navy);
  border: 2px solid var(--navy); border-radius: 4px; box-shadow: 0 0 0 2px #fff, 0 6px 10px -6px rgba(0,0,0,.55);
  font-size: 1rem; font-weight: 700; line-height: 1; letter-spacing: .09em;
}
@media (max-width: 52rem) {
  .local__in { grid-template-columns: 1fr; }
}

/* ---------- picture beside words ---------- */

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--story { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
.split__pic { aspect-ratio: 4 / 3; border: 6px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(18,35,63,.12), 0 16px 26px -20px rgba(18,35,63,.7); }
.split__seal { width: min(100%, 17rem); justify-self: center; }
.split__seal .seal { width: 100%; height: auto; }
.split__links { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.story__text { margin-top: 1.1rem; font-size: 1.125rem; color: var(--navy-soft); max-width: 40rem; }
.seal__text { font-weight: 800; letter-spacing: .13em; }
@media (max-width: 48rem) {
  .split, .split--story { grid-template-columns: 1fr; }
  .split__seal { width: 12rem; justify-self: start; }
  .split--story .split__seal, .split--story .split__pic { order: -1; }
}

/* ---------- reviews ---------- */

.reviews { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; }
.review { background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--gold); border-radius: 0 0 8px 8px; padding: 1.5rem; }
.review blockquote { font: 500 1.125rem/1.55 var(--display); }
.review blockquote p + p { margin-top: .7rem; }
.review__by { margin-top: 1rem; font-size: .875rem; font-weight: 700; letter-spacing: .1em; color: var(--granite); }

/* ---------- closing call ---------- */

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  background: var(--navy); color: #fff;
  border-top: 6px solid var(--gold); border-radius: 0 0 10px 10px;
  padding: clamp(1.6rem, 4vw, 2.75rem);
}
.cta__words { flex: 1 1 22rem; }
.cta__text { margin-top: .7rem; font-size: 1.125rem; color: rgba(255,255,255,.88); max-width: 36rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- home team ---------- */

.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 2.5rem 3.5rem; }
.mate { display: grid; grid-template-columns: clamp(7rem, 24vw, 11rem) minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.mate__pic { aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--brick); }
.mate__name { font: 800 1.9rem/1.1 var(--display); letter-spacing: -.01em; }
.mate__line { margin-top: .35rem; font-size: .9375rem; font-weight: 700; letter-spacing: .1em; color: var(--brick); }
.mate__about { margin-top: .6rem; font-size: 1.0625rem; color: var(--navy-soft); }

/* ---------- how it works: one line, a stop for each step ---------- */

.line { list-style: none; padding: 0; max-width: 44rem; }
.stop { position: relative; padding: 0 0 2.5rem 3.25rem; }
.stop::before { content: ""; position: absolute; top: 0; bottom: 0; left: .65rem; width: 8px; background: var(--brick); }
.stop__dot { position: absolute; top: 0; left: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff; border: 5px solid var(--navy); }
.stop:last-child { padding-bottom: 0; }
.stop:last-child::before { bottom: auto; height: 1rem; }
.stop:last-child .stop__dot { background: var(--gold); }
.stop__no { font-size: .875rem; font-weight: 700; letter-spacing: .12em; color: var(--brick); line-height: 1.8rem; }
.stop__name { font: 700 1.5rem/1.2 var(--display); }
.stop__text { margin-top: .45rem; color: var(--navy-soft); }

.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem 3rem; }
.ticks li { position: relative; padding-left: 2.1rem; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: .35rem; top: .22rem; width: .55rem; height: 1rem; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(40deg); }

/* ---------- questions ---------- */

.q { border-top: 2px solid var(--navy); }
.q:last-child { border-bottom: 2px solid var(--navy); }
.q__ask { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font: 700 1.2rem/1.3 var(--display); }
.q__ask::-webkit-details-marker { display: none; }
.q__sign { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.q__sign::before, .q__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1.5px; height: 3px; background: var(--brick); transition: transform .2s ease; }
.q__sign::after { transform: rotate(90deg); }
.q[open] .q__sign::after { transform: rotate(0deg); }
.q__answer { padding: 0 2.5rem 1.4rem 0; color: var(--navy-soft); }
.q__answer p + p { margin-top: .8rem; }
.ask { margin-top: 2rem; font-size: 1.125rem; }

/* ---------- forms ---------- */

.form { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2rem); }
.form__key { margin-bottom: 1.4rem; font-size: .9375rem; color: var(--granite); }
.form__req { color: var(--brick); font-weight: 700; }
.form__group { border: 0; padding: 0; margin: 0 0 2.25rem; min-width: 0; }
.form__legend { display: block; width: 100%; padding: 0 0 .5rem; margin-bottom: 1.1rem; border-bottom: 2px solid var(--navy); font: 700 1.3rem/1.2 var(--display); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form__row { grid-column: 1 / -1; display: grid; gap: .35rem; align-content: start; min-width: 0; }
.form__row--half { grid-column: auto; align-content: end; }
.form__set { border: 0; padding: 0; margin: 0; }
.form label, .form__set legend { font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.form__set legend { padding: 0; margin-bottom: .35rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: .72rem .8rem;
  background: #fff; color: var(--navy);
  border: 1.5px solid #8E9AA0; border-radius: 4px;
  font: inherit;
}
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select { height: 3.05rem; }
.form textarea { resize: vertical; min-height: 6.5rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form__picks { display: flex; flex-wrap: wrap; gap: .6rem; }
.form .form__pick { display: inline-flex; align-items: center; gap: .55rem; padding: .62rem 1rem; background: #fff; border: 1.5px solid #8E9AA0; border-radius: 4px; font-weight: 500; font-size: 1rem; cursor: pointer; }
.form__pick input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--navy); }
.form__pick:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.form__agree { margin-bottom: 1.5rem; }
.form .form__agree .form__pick { align-items: flex-start; padding: 0; border: 0; box-shadow: none; font-weight: 600; }
.form__agree .form__pick input { margin-top: .2rem; }
.form__trap { position: absolute; left: -999rem; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.form__grid + .form__send { margin-top: 1.4rem; }
.form__hint { font-size: .875rem; color: var(--granite); }
.form__note { margin-top: 1rem; font-weight: 600; }
.form__note:empty { display: none; }

.sent { background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--green); border-radius: 0 0 8px 8px; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: .8rem; }
.sent__title { font: 800 1.6rem/1.15 var(--display); }
.sent__text { width: 100%; padding: .8rem; border: 1.5px solid #8E9AA0; border-radius: 4px; background: var(--fog); color: var(--navy); font: .9375rem/1.5 var(--body); resize: vertical; }
.sent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.sent__copied { font-weight: 600; color: var(--green); }

.apply { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.side { position: sticky; top: 1.5rem; display: grid; gap: 1rem; }
.side__box { background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--brick); border-radius: 0 8px 8px 0; padding: 1.2rem 1.3rem; }
.side__title { font: 700 1.2rem/1.2 var(--display); margin-bottom: .7rem; }
.side__steps { padding-left: 1.2rem; margin-bottom: .9rem; display: grid; gap: .7rem; }
.side__steps strong { display: block; }
.side__steps span { font-size: .9375rem; color: var(--navy-soft); }

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__apply { margin-top: 1.6rem; }
.ways { list-style: none; padding: 0; margin-top: 1.6rem; }
.ways li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem; padding: .8rem 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.ways li:last-child { border-bottom: 1px solid var(--rule); }
.ways__k { font-size: .875rem; font-weight: 700; letter-spacing: .1em; color: var(--granite); align-self: center; }

@media (max-width: 58rem) {
  .apply, .contact { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 34rem) {
  .form__grid { grid-template-columns: 1fr; }
  .form__row--half { grid-column: 1 / -1; }
  .ways li { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- footer ---------- */

.foot__sky { color: var(--navy); line-height: 0; overflow: hidden; }
.foot__body { background: var(--navy); color: #fff; padding: 2.75rem 0 1.5rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 3rem; }
.foot__brand { display: flex; gap: 1.3rem; align-items: flex-start; }
.foot__seal { flex: none; width: 6.75rem; }
.foot__seal .seal { width: 100%; height: auto; }
.foot__name { font: 800 1.5rem/1.1 var(--display); letter-spacing: -.01em; }
.foot__note { margin-top: .5rem; color: rgba(255,255,255,.8); max-width: 23rem; }
.foot__h { margin-bottom: .8rem; font-size: .875rem; font-weight: 700; letter-spacing: .13em; color: var(--gold); }
.foot__col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.foot__col--links ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.foot__col li { overflow-wrap: anywhere; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.foot__small { margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .875rem; color: rgba(255,255,255,.74); }
@media (max-width: 52rem) {
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .foot__in { grid-template-columns: 1fr; }
  .foot__seal { width: 5.25rem; }
}

/* ---------- the "page not found" page ---------- */

.lost { min-height: 100vh; display: grid; place-content: center; gap: 1.2rem; padding: 2rem clamp(1rem, 4vw, 2rem); max-width: 40rem; margin-inline: auto; }
.lost__line { position: relative; height: 1.375rem; margin-bottom: .6rem; }
.lost__line::before { content: ""; position: absolute; left: 0; top: .5rem; width: 9rem; height: 6px; background: var(--brick); }
.lost__line::after { content: ""; position: absolute; left: 9rem; top: 0; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--gold); border: 4px solid var(--navy); }

/* ---------- motion ---------- */

.is-preview .plate__n { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate__n { animation: none; }
  .q__sign::before, .q__sign::after { transition: none; }
}
