:root {
  --ink: #2b2a26;
  --muted: #6c675b;
  --paper: #fffaf0;
  --yellow: #f6c84c;
  --yellow-soft: #fff0b8;
  --gold: #e4a61d;
  --red: #e86a4e;
  --blue: #2e6677;
  --blue-soft: #d8eff1;
  --line: rgba(43, 42, 38, .14);
  --shadow: 0 22px 55px rgba(78, 55, 20, .12);
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% 5%, rgba(246, 200, 76, .24), transparent 28rem),
    var(--paper);
}

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

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 1.04rem;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 46% 46%;
  background: var(--yellow);
  font-size: .92rem;
  transform: rotate(-8deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.site-nav a:hover, .text-link:hover { color: var(--ink); }

.language-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
}

.language-button:hover { background: var(--yellow-soft); }

.hero, .section {
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: 625px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  align-items: center;
  gap: 52px;
  padding: 48px 0 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 { letter-spacing: -.05em; line-height: 1.14; }

h1 { margin-bottom: 24px; font-size: clamp(2.8rem, 7vw, 5.3rem); }

h2 { margin-bottom: 17px; font-size: clamp(2rem, 4.5vw, 3.55rem); }

h3 { margin-bottom: 9px; font-size: 1.1rem; }

.hero-lede, .section-heading > p, .section-lede {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 47px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-size: .87rem;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover:not(:disabled) { transform: translateY(-2px); }

.button:focus-visible, .language-button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(46, 102, 119, .45);
  outline-offset: 3px;
}

.button:disabled { cursor: not-allowed; opacity: .42; }

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 10px 20px rgba(214, 157, 24, .2);
}

.button-primary:hover:not(:disabled) { background: #f8d46e; }

.button-secondary { background: var(--yellow-soft); color: var(--ink); }

.button-dark { color: #fffaf0; background: var(--ink); }

.button-quiet { color: var(--muted); background: transparent; }

.kin-scene {
  min-height: 455px;
  position: relative;
  display: grid;
  place-items: end center;
  isolation: isolate;
  border-radius: 48% 48% 24px 24px;
  background: linear-gradient(150deg, #fff2bb 0%, #f6c84c 55%, #e9a931 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.kin-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 94%;
  height: 47%;
  bottom: -24%;
  border-radius: 50%;
  background: rgba(255, 250, 240, .58);
}

.sun-disc {
  position: absolute;
  top: 50px;
  right: 49px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 250, 240, .58);
}

.cloud {
  position: absolute;
  height: 14px;
  width: 72px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .5);
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { left: 15px; width: 27px; height: 27px; }
.cloud::after { left: 38px; width: 20px; height: 20px; }
.cloud-one { top: 118px; left: 41px; }
.cloud-two { top: 162px; right: 32px; transform: scale(.7); }

.kin-illustration {
  width: min(83%, 285px);
  position: relative;
  z-index: 2;
  margin-bottom: 27px;
  overflow: visible;
}

.dog-tail, .dog-leg, .dog-paw, .dog-mouth {
  fill: none;
  stroke: #8f4f24;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dog-body, .dog-face, .dog-muzzle { fill: #d98a3d; }
.dog-ear { fill: #9b5429; }
.dog-muzzle { fill: #efba70; }
.dog-eye, .dog-nose { fill: #2b2a26; }
.dog-scarf { fill: #e86a4e; }
.dog-scarf-tail { fill: #d6533c; }

.paw-trail {
  position: absolute;
  left: 19%;
  bottom: 72px;
  display: flex;
  gap: 29px;
  color: rgba(139, 79, 36, .58);
  transform: rotate(-8deg);
}

.paw-trail span:nth-child(2) { transform: translateY(-16px) rotate(18deg); }
.paw-trail span:nth-child(3) { transform: translateY(-3px) rotate(-12deg); }

.kin-name {
  position: absolute;
  right: 29px;
  bottom: 27px;
  color: rgba(43, 42, 38, .72);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.section { padding: 92px 0; }

.concept-section { border-top: 1px solid var(--line); }

.section-heading { max-width: 620px; margin-bottom: 44px; }

.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.info-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .42);
}

.info-card p, .note-card p, .map-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.8;
}

.card-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 13px;
  background: var(--yellow-soft);
  color: var(--gold);
  font-weight: 900;
}

.split-section { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 0; }

.note-card { min-height: 315px; padding: 32px; border-radius: 28px; }
.note-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.yellow-note { background: var(--yellow); }
.blue-note { background: var(--blue-soft); }
.blue-note .eyebrow { color: var(--blue); }

.text-link { display: inline-block; margin-top: 24px; font-size: .88rem; font-weight: 900; }

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

.map-page { padding-bottom: 40px; }

.map-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 50px; }
.map-intro h1 { margin-bottom: 17px; font-size: clamp(2.55rem, 6vw, 4.8rem); }
.map-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.map-stats > div { min-width: 75px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.5); text-align: center; }
.map-stats strong { display: block; font-size: 1.7rem; line-height: 1; }
.map-stats span { color: var(--muted); font-size: .72rem; }

.map-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; padding-top: 0; }
.map-frame { position: relative; min-height: 580px; overflow: hidden; border-radius: 30px; background: #d9e9df; box-shadow: var(--shadow); }
#map { min-height: 580px; width: 100%; }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 10px; }

.map-key { position: absolute; z-index: 500; left: 15px; bottom: 15px; display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,250,240,.93); box-shadow: 0 7px 20px rgba(43,42,38,.12); font-size: .74rem; font-weight: 800; }
.map-key span { display: inline-flex; align-items: center; gap: 6px; }
.key-line { display: inline-block; width: 24px; border-top: 4px solid; }
.key-preview { border-color: var(--gold); }
.key-real { border-color: var(--blue); border-top-style: dashed; }

.walk-panel { align-self: start; padding: 25px; border: 1px solid var(--line); border-radius: 25px; background: rgba(255,255,255,.6); }
.panel-topline { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.panel-topline h2 { margin-bottom: 0; font-size: 1.85rem; }
.status-dot { width: 13px; height: 13px; margin-top: 8px; border-radius: 50%; background: #b9b5aa; box-shadow: 0 0 0 5px rgba(185,181,170,.18); }
.status-dot.is-active { background: var(--red); box-shadow: 0 0 0 5px rgba(232,106,78,.18); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(232,106,78,.03); } }
.walk-status { min-height: 49px; margin: 18px 0; color: var(--muted); font-size: .91rem; line-height: 1.6; }
.walk-actions { display: grid; gap: 9px; }
.walk-actions .button { width: 100%; }
.small-note { margin: 14px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.record-card { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.record-card-heading { display: flex; align-items: center; gap: 9px; font-size: .86rem; }
.record-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: var(--yellow-soft); color: var(--gold); }
.record-content { margin-top: 12px; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.record-summary { display: grid; gap: 5px; color: var(--ink); }
.record-summary strong { font-size: 1.5rem; }
.record-summary span { color: var(--muted); }
.record-history { margin: 13px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }

.map-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 0; }
.map-note { display: grid; grid-template-columns: auto 1fr; gap: 17px; min-height: 195px; padding: 23px; border-radius: 22px; }
.map-note h2 { margin-bottom: 10px; font-size: 1.35rem; }
.map-note-yellow { background: var(--yellow-soft); }
.map-note-blue { background: var(--blue-soft); }
.map-note-red { background: #f9dfd6; }
.note-number { color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: .08em; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 35px; }
  .hero-copy { max-width: 650px; }
  .kin-scene { min-height: 390px; max-width: 560px; width: 100%; margin: 0 auto; }
  .concept-grid, .map-notes { grid-template-columns: 1fr; }
  .map-workspace { grid-template-columns: 1fr; }
  .walk-panel { order: -1; }
  .map-frame, #map { min-height: 470px; }
}

@media (max-width: 560px) {
  .site-header { padding-top: 17px; }
  .site-nav { gap: 10px; }
  .site-nav a { display: none; }
  .hero, .section { width: min(100% - 24px, 1120px); }
  .hero { min-height: auto; padding-bottom: 58px; }
  h1 { font-size: 2.8rem; }
  .kin-scene { min-height: 340px; border-radius: 38% 38% 22px 22px; }
  .sun-disc { top: 33px; right: 28px; transform: scale(.75); }
  .section { padding: 65px 0; }
  .split-section { grid-template-columns: 1fr; }
  .note-card { min-height: 250px; }
  .map-intro { display: block; padding-top: 38px; }
  .map-stats { margin-top: 26px; }
  .map-stats > div { flex: 1; }
  .map-frame, #map { min-height: 420px; }
  .walk-panel { padding: 21px; }
  .site-footer { width: min(100% - 24px, 1120px); display: block; }
  .site-footer span, .site-footer a { display: block; margin-bottom: 8px; }
}

