:root {
  color: #171717;
  background: #fbfbfa;
  font-family: "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fbfbfa;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #fbfbfa;
  color: #171717;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
}

.quiet-card {
  width: min(100%, 420px);
  min-height: min(78vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.brand {
  margin: 0 0 68px;
  color: #111;
  font-size: 0.78rem;
  line-height: 1.8;
  letter-spacing: 0.16em;
}

.label {
  margin: 0 0 32px;
  color: #8b8b86;
  font-size: 0.86rem;
  line-height: 1.9;
}

.skill-text {
  min-height: 9.5em;
  margin: 0;
  color: #171717;
  font-size: 1.42rem;
  line-height: 2.05;
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.entry {
  margin-top: 60px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #deded9;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  line-height: 1.7;
}

input::placeholder {
  color: #b1b1ac;
}

input:focus {
  border-bottom-color: #aaa9a3;
}

input[readonly] {
  color: #171717;
  cursor: default;
}

input:disabled {
  color: #8b8b86;
  opacity: 1;
}

.ack {
  min-height: 2em;
  margin: 56px 0 0;
  color: #555550;
  font-size: 1rem;
  line-height: 2;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.ack.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin: 72px 0 0;
}

.beside {
  margin: 0;
  color: #b1b1ac;
  font-size: 0.86rem;
  line-height: 1.8;
}

.peakheadz-link {
  display: inline-block;
  margin-top: 12px;
  color: #bdbdb8;
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0.72;
}

.peakheadz-link:hover,
.peakheadz-link:focus-visible {
  color: #777772;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
}

.peakheadz-link:focus-visible {
  outline: 1px solid #deded9;
  outline-offset: 4px;
}

.drift-message {
  margin: 30px 0 0;
  color: #aaa9a3;
  font-size: 0.68rem;
  line-height: 1.9;
  text-align: center;
  opacity: 0;
  transition: opacity 520ms ease;
}

.drift-message.is-visible {
  opacity: 0.62;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 360px) {
  .page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    margin-bottom: 56px;
  }

  .skill-text {
    font-size: 1.28rem;
    line-height: 2;
  }

  .entry {
    margin-top: 48px;
  }
}

@media (min-width: 720px) {
  .quiet-card {
    min-height: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ack,
  .drift-message {
    transform: none;
    transition: none;
  }
}
