:root {
  --ink: #1f2b22;
  --ink-soft: #55604f;
  --paper: #fff8e8;
  --paper-deep: #f2e4c3;
  --accent: #ffc23d;
  --sky: #5ac8ff;
  --line: 2.5px solid var(--ink);
  --lift: 0 4px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e9f6f6 linear-gradient(180deg, #29c4d6 0, #8fdbe4 620px, #e9f6f6 1400px) no-repeat;
  overscroll-behavior: none;
}

body {
  margin: 0;
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--ink);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 28px;
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--lift);
  background: var(--accent);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 8px 0 40px;
  font-size: 14px;
  font-weight: 500;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 56px 0 40px;
  text-align: center;
}

.logo {
  margin: 0;
  width: min(340px, 72vw);
  line-height: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #4cc46a;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--lift);
  background: #9cc7e4;
  line-height: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.main-shot {
  max-width: 920px;
  margin: 0 auto;
}

section {
  padding: 56px 0 0;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--lift);
  background: var(--paper);
}

.card .shot {
  border: 0;
  border-bottom: var(--line);
  border-radius: 0;
  box-shadow: none;
}

.card-body {
  padding: 16px 18px 20px;
}

h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.places {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.places li {
  padding: 8px 16px;
  border: var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-weight: 600;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 64px 0 28px;
  padding: 36px 20px;
  border: var(--line);
  border-radius: 22px;
  box-shadow: var(--lift);
  background: var(--paper-deep);
  text-align: center;
}

.closing h2 {
  margin: 0;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 36px 0 28px;
    gap: 18px;
  }

  .hero .button,
  .closing .button {
    width: 100%;
    min-width: 0;
  }

  .actions {
    width: 100%;
  }

  section {
    padding-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.home {
  display: block;
  width: 132px;
  line-height: 0;
}

.home img {
  display: block;
  width: 100%;
  height: auto;
}

.top .button {
  min-width: 0;
  padding: 10px 20px;
  font-size: 17px;
}

.document {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 28px clamp(18px, 4vw, 44px) 36px;
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--lift);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

.document h1 {
  margin: 0 0 4px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
}

.updated {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.document h2 {
  margin: 26px 0 8px;
  font-size: 20px;
  text-align: left;
}

.document p,
.document li {
  margin: 0 0 8px;
}

.document ul {
  margin: 0 0 8px;
  padding-left: 22px;
}

.document a {
  font-weight: 600;
}

.others {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px solid var(--paper-deep);
}

.others a {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  text-decoration: none;
}

.dock {
  display: none;
}

@media (max-width: 760px) {
  .features {
    display: flex;
    gap: 14px;
    margin: 0 -16px;
    padding: 2px 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .features::-webkit-scrollbar {
    display: none;
  }

  .features .card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .card-body {
    padding: 14px 16px 18px;
  }

  h3 {
    font-size: 20px;
  }

  .card p {
    font-size: 15px;
  }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: block;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform 0.2s ease-out;
    pointer-events: none;
  }

  .dock.shown {
    transform: none;
    pointer-events: auto;
  }

  .dock .button {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    font-size: 19px;
  }

  .footer {
    gap: 0 4px;
    padding-bottom: 28px;
  }

  .footer a {
    padding: 12px 10px;
  }

  .places li {
    padding: 7px 13px;
    font-size: 15px;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .dock {
    transition: none;
  }
}
