/* Shared JIIN visual language. Session and form behavior live in their existing modules. */
:root {
  --paper: #fff;
  --ink: #242323;
  --muted: #68615e;
  --line: #dcd5d1;
  --akebono: #9d6b60;
  --dark: #f2ece9;
  --bad: #a54141;
  --ok: #48715a;
  --pink: #ead2c9;
  --blue: #e2ebef;
}
body {
  font-family: Arial, "PingFang TC", "Noto Sans TC", sans-serif;
  background: #fff;
}
.site-header {
  background: #fff;
  border: 0;
}
.brand {
  gap: 14px;
}
.brand .jiin-wordmark {
  font:
    800 38px/0.9 Arial,
    sans-serif;
  letter-spacing: -3px;
}
.jiin-wordmark span {
  color: #ad7a6a;
}
.brand .jiin-brand-name {
  font: 600 13px/1.4 sans-serif;
  letter-spacing: 0.12em;
}
.header-note i {
  background: #ad7a6a;
}
.hero {
  background: none;
  padding-top: 88px;
  padding-bottom: 100px;
}
.hero h1,
.flow-intro h2,
.journey-note h2 {
  font-family: Arial, "PingFang TC", sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.3;
}
.hero h1 {
  font-size: clamp(48px, 5.6vw, 82px);
}
.hero em,
.journey-note em {
  color: var(--ink);
}
.hero-art {
  width: min(34vw, 420px);
}
.orbit {
  background: var(--pink);
  border: 0;
  transform: rotate(-7deg);
  border-radius: 48% 52% 49% 51% / 53% 46% 54% 47%;
}
.orbit:before,
.orbit:after,
.orbit-axis {
  display: none;
}
.orbit-word {
  font:
    800 clamp(80px, 10vw, 136px)/1 Arial,
    sans-serif;
  letter-spacing: -0.09em;
  background: none;
  transform: rotate(7deg);
}
.orbit-word span {
  color: #fff;
}
.orbit-dot {
  width: 24%;
  height: 24%;
  background: var(--blue);
  top: -6%;
  right: 0;
  box-shadow: none;
  z-index: -1;
}
.orbit-caption {
  background: none;
  transform: rotate(7deg);
}
.art-note {
  font-size: 19px;
  margin-top: 40px;
}
.text-link {
  gap: 12px;
  border: 0;
  font-size: 14px;
}
.text-link .icon-arrow {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 7px;
  transition: transform 0.4s;
}
.text-link:hover .icon-arrow {
  transform: rotate(45deg);
}
.jiin-roll,
.text-link .jiin-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-size: inherit;
  line-height: 1.5;
  vertical-align: middle;
}
.jiin-roll > span {
  display: block;
  font-size: inherit;
  line-height: inherit;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.jiin-roll > span:last-child {
  position: absolute;
  top: 100%;
  left: 0;
  white-space: nowrap;
}
a:is(:hover, :focus-visible, :active) .jiin-roll > span {
  transform: translateY(-100%);
}
.stay-photos {
  background: #fff;
  padding-top: 45px;
  padding-bottom: 70px;
}
.photo-stage {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.photo-track {
  display: flex;
  gap: 24px;
  width: 100%;
  animation: none;
  padding: 8px 0 20px;
}
.stay-photo {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 48px) / 3);
  width: auto;
  height: auto;
  aspect-ratio: 1.28;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--blue);
  cursor: pointer;
  overflow: hidden;
  border-radius: 18% 16% 18% 15% / 14% 18% 16% 18%;
  scroll-snap-align: start;
  isolation: isolate;
}
.stay-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.stay-photo:is(:hover, :focus-visible) img {
  transform: scale(1.06);
}
.stay-photo:after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #0009);
  pointer-events: none;
}
.photo-caption {
  position: absolute;
  bottom: 24px;
  left: 26px;
  z-index: 1;
  color: white;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gallery-controls button,
.photo-dialog header button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  min-width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--ink);
  cursor: pointer;
}
.gallery-controls svg {
  width: 22px;
  height: 22px;
}
.gallery-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}
.gallery-controls button:not(:disabled):hover {
  background: var(--pink);
}
.waitlist-section {
  color: var(--ink);
  border-radius: 70px 70px 0 0;
  gap: clamp(24px, 5vw, 80px);
  scroll-margin-top: 24px;
}
.flow-intro h2 span {
  color: var(--ink);
}
.flow-intro > .eyebrow,
.flow-intro > p:not(.eyebrow),
.flow-note {
  color: var(--muted);
}
.small-mark {
  border-color: var(--line);
}
.form-panel {
  background: #fff;
  border-radius: 34px;
  padding: clamp(22px, 3vw, 42px);
}
.who-line {
  border-color: var(--line);
  margin-bottom: 20px;
}
.who-text,
.hint,
.field label small,
#statusBoxList {
  color: var(--muted);
  line-height: 1.9;
}
.field label {
  color: var(--ink);
}
.field input:not([type="hidden"]),
.capsule {
  color: var(--ink);
  border-color: var(--line);
}
.field input::placeholder {
  color: #77716e;
}
.field .date-input {
  font:
    20px/1.4 Arial,
    sans-serif;
  color-scheme: light;
}
.capsule .val {
  font:
    20px/1.4 Arial,
    sans-serif;
}
.capsule.expanded,
.wheel {
  background: #f4efec;
  color: var(--ink);
  border-color: var(--line);
}
.wheel-item {
  color: #68615e;
}
.wheel-item.active {
  color: var(--ink);
}
.capsule .single:after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-right: 6px;
  color: var(--ink);
}
.status {
  border-radius: 16px;
  border-color: var(--line);
  background: #f7f3f1;
}
.status.err,
#phoneErr,
#emailErr {
  color: var(--bad) !important;
}
.status.ok {
  color: var(--ok);
}
#operationNotice {
  color: var(--ink);
  border-color: #c8aca1;
}
.btn-round {
  color: var(--ink);
  border-color: var(--line);
}
.btn-round.primary {
  background: var(--pink);
  color: var(--ink);
  position: relative;
}
.btn-round.primary:after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #24232377;
  border-left-color: transparent;
  border-radius: 50%;
  transition: transform 0.8s;
}
.btn-round.primary:hover:not(:disabled) {
  background: var(--pink);
  transform: none;
}
.btn-round.primary:is(:hover, :focus-visible):after {
  transform: rotate(360deg);
}
.status-item,
.status-item:last-child {
  border-color: var(--line);
}
.status-main strong {
  font:
    600 20px/1.5 Arial,
    sans-serif;
}
.status-main > div:not(:first-child),
.status-label-text {
  color: var(--muted);
}
.cancel-pill {
  color: var(--ink);
  border-color: var(--line);
}
.cancel-pill.danger {
  color: var(--bad);
  border-color: #ba8880;
}
.cancel-pill:hover:not(:disabled) {
  background: var(--pink);
}
.journey-note {
  background: var(--blue);
  border-radius: 0 0 70px 70px;
  padding-bottom: 48px;
}
.journey-note h2 {
  font-size: clamp(34px, 4vw, 52px);
}
.journey-steps h3 {
  font:
    600 18px/1.5 Arial,
    sans-serif;
}
.journey-steps p,
.journey-disclaimer,
.journey-steps article > span {
  color: var(--muted);
}
footer {
  background: #fff;
  color: var(--ink);
  flex-wrap: wrap;
}
footer > p,
footer > span {
  color: var(--muted);
}
.legal-links {
  display: flex;
  gap: 18px;
  font-size: 11px;
}
.modal-card {
  border: 0;
  border-radius: 36px;
}
.modal-title {
  font:
    700 28px/1.5 Arial,
    sans-serif;
}
.modal-overlay {
  background: #24232377;
}
.photo-dialog {
  width: min(1100px, 94vw);
  max-height: 94dvh;
  padding: 22px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
}
.photo-dialog::backdrop {
  background: #242323bb;
  backdrop-filter: blur(8px);
}
.photo-dialog[open] {
  display: grid;
  gap: 16px;
}
.photo-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.photo-dialog h2 {
  font-size: 18px;
  margin: 0;
}
.photo-dialog header button {
  font-size: 24px;
  padding: 0;
}
.photo-dialog > img {
  display: block;
  width: 100%;
  height: min(66dvh, 680px);
  object-fit: contain;
  background: #f5f2f0;
  border-radius: 14px;
}
.photo-dialog .gallery-controls button {
  border-radius: 24px;
  padding: 10px 18px;
}
.legal-page {
  max-width: 880px;
  margin: 70px auto;
  padding: 0 24px 80px;
  line-height: 1.9;
}
.legal-page h1 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.04em;
}
.legal-page h2 {
  font-size: 22px;
  margin-top: 36px;
}
.legal-page a {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid #966759;
  outline-offset: 4px;
}
.field input:focus-visible {
  border-color: var(--ink);
}
@media (max-width: 800px) {
  .hero {
    padding-top: 50px;
    padding-bottom: 70px;
  }
  .hero-art {
    width: min(60vw, 320px);
  }
  .orbit-word {
    font-size: 100px;
  }
  .stay-photo {
    flex-basis: 75%;
  }
  .waitlist-section {
    border-radius: 40px 40px 0 0;
  }
  .journey-note {
    border-radius: 0 0 40px 40px;
  }
  .form-panel {
    padding: 24px;
  }
  .photo-dialog {
    padding: 16px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .art-note {
    font-size: 17px;
  }
}
@media (max-width: 480px) {
  .brand .jiin-wordmark {
    font-size: 32px;
  }
  .brand .jiin-brand-name {
    font-size: 11px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .form-panel {
    padding: 22px 18px;
  }
  .row-2 {
    gap: 16px;
  }
  .field .date-input {
    font-size: 16px;
  }
  .stay-photo {
    flex-basis: 86%;
  }
  .photo-caption {
    bottom: 20px;
    left: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-art {
    transform: none;
  }
}
.stay-photos,
.section-meta > span,
.photo-note {
  color: var(--muted);
}
.photo-stage {
  transform: none;
}
.form-panel > .stay-context {
  border-color: var(--line);
}

/* 較長的品牌字樣在圓形主視覺中維持完整可讀。 */
.orbit-word { font-size: clamp(42px, 5.8vw, 76px); white-space: nowrap; }
.brand .jiin-wordmark { white-space: nowrap; }
@media (max-width: 600px) { .brand { gap: 10px; } .brand .jiin-wordmark { font-size: 28px; letter-spacing: -1.5px; } .brand .jiin-brand-name { font-size: 11px; } }
