* {
  box-sizing: border-box;
}
:root {
  --ink: #202e28;
  --green: #163e35;
  --paper: #f8f6f0;
  --rule: #d9d7ca;
  --muted: #626a60;
  --serif: Georgia, 'Noto Serif KR', Batang, '바탕', serif;
  color: var(--ink);
  background: var(--paper);
  font:
    15px/1.6 'Malgun Gothic',
    'Apple SD Gothic Neo',
    system-ui,
    sans-serif;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  line-height: 1.22;
  letter-spacing: -0.055em;
  word-break: keep-all;
}
h1 {
  font-size: clamp(38px, 4vw, 58px);
}
h2 {
  font-size: 32px;
}
h3 {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.045em;
}
button,
a,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b48339;
  outline-offset: 3px;
}
button {
  border: 0;
}
small {
  font-size: 12px;
}
header {
  border-bottom: 1px solid var(--rule);
}
.bar,
main,
footer {
  width: min(1264px, calc(100% - 9vw));
  margin: auto;
}
.bar {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand strong {
  font: 700 31px/1 var(--serif);
  letter-spacing: -3px;
}
.brand span,
footer span {
  color: #60675a;
  font:
    10px Georgia,
    serif;
  letter-spacing: 0.16em;
  margin-left: 2px;
}
.bar nav {
  display: flex;
  gap: 30px;
  align-self: stretch;
  margin-left: auto;
}
.bar nav a {
  display: grid;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: #687066;
  border-bottom: 2px solid transparent;
  padding: 0 2px;
}
.bar nav a[aria-current] {
  border-color: var(--green);
  color: var(--green);
}
.balance {
  border: 1px solid #b8bdad;
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}
main {
  padding: 32px 0 60px;
  min-height: 76vh;
}
footer {
  padding: 18px 0 28px;
  border-top: 1px solid var(--rule);
  font: 700 20px var(--serif);
  color: #536259;
}
footer span {
  margin-left: 8px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  color: #f7efdb;
  background: #153935;
  min-height: 294px;
  display: flex;
  align-items: center;
}
.hero canvas,
.cover canvas,
.miniArt canvas,
.dailyArt canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #12342fb5, transparent 65%);
}
.heroCopy {
  position: relative;
  z-index: 1;
  padding: 38px 5.4%;
}
.heroDate {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.07em;
  color: #e2d5b6;
}
.heroDate i {
  display: inline-block;
  width: 21px;
  height: 1px;
  background: #dbc899;
}
.hero h1 {
  font-size: clamp(37px, 4.2vw, 66px);
  margin: 17px 0 9px;
  font-weight: 500;
}
.heroCopy p {
  font-family: var(--serif);
  font-size: 20px;
  color: #dddac7;
}
.gold,
.primary,
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 43px;
  padding: 10px 19px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 7px;
}
.gold {
  background: #ecd6a5;
  color: #293d31;
  margin-top: 23px;
}
.gold b {
  font: 20px/1 Georgia;
}
.moonLabel {
  position: absolute;
  bottom: 18px;
  right: 25px;
  font:
    11px/1.4 'Malgun Gothic',
    sans-serif;
  color: #e3d6b7;
  z-index: 1;
}
.shelf {
  margin-top: 38px;
}
.kicker,
.cover small,
.panel > small,
.statcard > small {
  font:
    600 10px/1.4 Georgia,
    serif;
  letter-spacing: 0.19em;
  color: #726749;
}
.kicker {
  margin-bottom: 8px;
}
.shelfhead,
.stathead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shelf h2 {
  font-size: 35px;
}
.shelf sup {
  font: italic 16px Georgia;
  color: #7c806e;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 4px;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  background: #fcfbf7;
  border-radius: 25px;
}
.search span {
  font-size: 23px;
  line-height: 1;
}
.search input {
  border: 0;
  background: none;
  max-width: 135px;
  min-width: 0;
  padding: 3px;
  color: var(--ink);
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 2px 8px;
  margin: 14px 0 11px;
}
.tabs button {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 20px;
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 15px;
}
.tabs button[aria-pressed='true'] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.book,
.panel,
.statcard,
.entry,
.record,
.empty {
  background: #fffefa;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.book {
  padding: 0;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.book:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px #223b3012;
}
.cover {
  position: relative;
  width: 100%;
  height: clamp(105px, 10.1vw, 145px);
}
.cover small {
  position: absolute;
  left: 14px;
  bottom: 9px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #f6e6c4;
  text-shadow: 0 1px 3px #000;
}
.booktext {
  padding: 14px 17px 18px;
  position: relative;
  flex: 1;
}
.booktext small,
.record small,
.entry small,
.muted,
.sub,
.hint,
.wallet small,
.privacy {
  color: var(--muted);
}
.booktext small {
  font-size: 11px;
}
.booktext h3 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
  margin: 3px 19px 6px 0;
}
.booktext p {
  font-size: 13px;
  line-height: 1.55;
  color: #5c645a;
  word-break: keep-all;
}
.go {
  position: absolute;
  right: 16px;
  top: 14px;
  color: #7c8774;
  font-size: 17px;
}
.primary {
  background: var(--green);
  color: #fff;
}
.outline {
  background: transparent;
  border: 1px solid #aab1a3;
}
.sub {
  margin: 10px 0 25px;
}
.plans,
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel,
.statcard,
.entry,
.empty,
.record {
  padding: 24px;
}
.panel h2 {
  margin: 8px 0 16px;
}
.panel .primary {
  margin-top: 8px;
}
.featured {
  background: #eaf0e6;
  border-color: #a4b6a0;
}
.price {
  display: block;
  margin: 22px 0 10px;
  font: 700 33px var(--serif);
}
.price small {
  font: 14px sans-serif;
}
.wallet,
.privacy,
.sectionTitle {
  margin-top: 24px;
}
.notice,
.quote {
  background: #eceadd;
  border-left: 3px solid #a48a50;
  padding: 14px 17px;
  margin: 19px 0;
}
.notice strong {
  margin-right: 10px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 35px;
}
.empty p {
  margin: 9px 0 18px;
}
.record {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  width: 100%;
  margin-bottom: 10px;
}
.record b {
  margin-left: auto;
}
.recordicon {
  font-size: 27px;
  color: #917840;
}
.entry {
  margin: 10px 0;
}
.entry strong,
.entry small {
  display: block;
}
.entry p {
  white-space: pre-wrap;
}
.textbtn {
  background: none;
  text-decoration: underline;
  font-size: 12px;
  color: #626a60;
  padding: 4px;
}
.field {
  font-size: 13px;
  font-weight: 600;
  display: grid;
  gap: 6px;
  margin: 14px 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #bbc1b6;
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 44px;
  background: #fff;
  color: var(--ink);
}
textarea {
  min-height: 80px !important;
  resize: vertical;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 15px 0;
}
legend {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 7px;
}
.ratings {
  display: flex;
  gap: 4px;
}
.ratings label {
  position: relative;
  flex: 1;
  cursor: pointer;
}
.ratings input {
  position: absolute;
  opacity: 0;
}
.ratings span {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 5px;
  text-align: center;
  padding: 9px 0;
  font-size: 12px;
}
.ratings input:checked + span {
  background: #d8e6d6;
  border-color: #6b876d;
}
.ratings input:focus-visible + span {
  outline: 2px solid #b48339;
}
.stathead h3 {
  font: 700 23px var(--serif);
}
.mini {
  margin: 0;
  padding: 0;
}
.mini button {
  padding: 3px 9px;
}
.metrics {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 20px 0;
}
.metrics strong {
  display: block;
  font: 30px Georgia;
}
.metrics strong small {
  margin-left: 3px;
  font: 11px sans-serif;
}
.chart {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 90px;
  background: repeating-linear-gradient(to top, #e4e6dd 0 1px, transparent 1px 20%);
}
.chart div {
  flex: 1;
  height: var(--v);
  background: #608672;
  border-radius: 3px 3px 0 0;
}
.axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #616c5e;
}
.hint {
  font-size: 12px;
  margin: 12px 0;
}
.statcard h4 {
  margin-bottom: 8px;
}
dialog {
  width: min(500px, calc(100% - 24px));
  max-height: 89dvh;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #10251fd1;
}
#dialogBody {
  position: relative;
  padding: 30px;
}
#dialogBody h2 {
  padding-right: 21px;
  margin: 8px 0 13px;
  font-size: 30px;
}
#dialogBody p {
  margin: 10px 0;
}
#dialogBody .primary {
  margin-top: 8px;
}
.close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 25px;
  background: none;
  min-width: 38px;
  min-height: 38px;
}
.miniArt,
.dailyArt {
  position: relative;
  height: 110px;
  border-radius: 7px;
  overflow: hidden;
  margin: 16px 0;
}
.dailyArt {
  height: 155px;
}
.facts {
  margin: 20px 0;
}
.facts > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding: 9px 0;
}
.facts dt {
  color: #65705f;
}
.facts dd {
  margin: 0;
  font-weight: 600;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 10px;
  color: #42604c;
  background: #e5ebdf;
}
summary {
  cursor: pointer;
  font-size: 14px;
}
.quote {
  font-family: var(--serif);
  font-size: 18px;
}
#toast {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1c382f;
  color: white;
  border-radius: 8px;
  padding: 10px 15px;
  z-index: 5;
  max-width: 90vw;
}
#toast.on {
  display: block;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }
  .bar {
    gap: 20px;
  }
  .bar nav {
    gap: 18px;
  }
  .hero {
    min-height: 255px;
  }
  .heroCopy {
    padding: 30px 5%;
  }
  .cover {
    height: 118px;
  }
}
@media (max-width: 650px) {
  .bar,
  main,
  footer {
    width: calc(100% - 28px);
  }
  .bar {
    flex-wrap: wrap;
    gap: 0;
    min-height: 0;
    padding-top: 12px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand strong {
    font-size: 26px;
  }
  .brand span {
    font-size: 8px;
  }
  .balance {
    margin-left: auto;
  }
  .bar nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 5px;
    margin-top: 8px;
  }
  .bar nav a {
    padding: 9px 6px;
    font-size: 13px;
  }
  main {
    padding-top: 18px;
  }
  .hero {
    min-height: 219px;
  }
  .heroCopy {
    padding: 22px 19px;
  }
  .heroCopy h1 {
    font-size: clamp(29px, 7.5vw, 41px);
  }
  .heroCopy p {
    font-size: 16px;
  }
  .heroDate {
    font-size: 10px;
  }
  .gold {
    margin-top: 18px;
    min-height: 39px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .moonLabel {
    font-size: 9px;
    bottom: 9px;
    right: 14px;
  }
  .hero:after {
    background: linear-gradient(90deg, #12342fcf, transparent 78%);
  }
  .shelf {
    margin-top: 25px;
  }
  .shelf h2 {
    font-size: 26px;
  }
  .kicker {
    font-size: 9px;
  }
  .search {
    padding: 4px 8px;
  }
  .search input {
    width: 74px;
  }
  .tabs {
    gap: 4px;
  }
  .tabs button {
    padding: 6px 10px;
    font-size: 12px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cover {
    height: 100px;
  }
  .cover small {
    font-size: 8px;
    left: 8px;
  }
  .booktext {
    padding: 11px 10px 14px;
  }
  .booktext h3 {
    font-size: 19px;
  }
  .booktext p {
    font-size: 12px;
  }
  .go {
    right: 9px;
    top: 10px;
  }
  .columns,
  .plans {
    grid-template-columns: 1fr;
  }
  .panel,
  .statcard {
    padding: 17px;
  }
  #dialogBody {
    padding: 23px 18px;
  }
  .facts > div {
    grid-template-columns: 85px 1fr;
  }
  .empty {
    padding: 24px 12px;
  }
}
.sample {
  margin: 14px 0 20px;
  border: 1px solid #c9cfbf;
  border-radius: 9px;
  background: #f3f4ea;
}
.sample > summary {
  padding: 10px 14px;
  color: var(--green);
  font-weight: 700;
}
.sample-content {
  padding: 0 14px 12px;
}
.sample-input {
  font-size: 12px;
  color: var(--muted);
}
.pillars {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin: 20px 0 8px;
  color: var(--green);
}
.pillars caption,
.element-chart figcaption {
  font-size: 13px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.pillars th,
.pillars td {
  border: 1px solid #cbd1c0;
  padding: 6px 2px;
}
.pillars th {
  background: #e8eddf;
  font-size: 12px;
}
.pillars td {
  font: 600 24px var(--serif);
  background: #fffdf5;
}
.element-chart {
  margin: 16px 0;
}
.element-chart > div {
  display: grid;
  grid-template-columns: 20px 1fr 30px;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}
.meter {
  height: 7px;
  background: #e2e4d9;
  border-radius: 8px;
  overflow: hidden;
}
.meter i {
  height: 100%;
  display: block;
}
.element-0 {
  background: #66855c;
}
.element-1 {
  background: #ad6451;
}
.element-2 {
  background: #ac8942;
}
.element-3 {
  background: #85847d;
}
.element-4 {
  background: #52778b;
}
.tarot-spread {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}
.tarot-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  padding: 10px 4px;
  color: #f5e4bd;
  background: #51334b;
  border: 3px double #c2ad83;
  border-radius: 6px;
  text-align: center;
}
.tarot-face.face-1 {
  background: #304951;
}
.tarot-face.face-2 {
  background: #57503d;
}
.tarot-face span {
  font: 28px Georgia;
}
.tarot-face strong {
  font: 600 16px var(--serif);
  overflow-wrap: anywhere;
}
.tarot-face small {
  font-size: 11px;
}
.tarot-spread li p {
  font-size: 12px;
  line-height: 1.5;
}
.hex-pair,
.sleep-groups {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hex-pair {
  justify-content: center;
  margin: 20px 0;
}
.hex-pair figure {
  margin: 0;
  text-align: center;
}
.hex-pair figcaption {
  font-size: 12px;
}
.hex-glyph {
  display: grid;
  gap: 4px;
  padding: 9px;
}
.hex-line {
  width: 64px;
  height: 5px;
  display: flex;
  justify-content: space-between;
}
.hex-line i {
  height: 100%;
  width: 43%;
  background: var(--green);
}
.hex-line.solid i {
  width: 50%;
}
.hex-line.changes i {
  background: #a56d31;
}
.sleep-compare {
  border-top: 1px solid var(--rule);
  margin-top: 15px;
}
.sleep-compare label {
  font-size: 13px;
}
.sleep-compare select {
  margin-left: 4px;
  padding: 5px 8px;
  color: var(--ink);
  background: #fffdf6;
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.sleep-groups {
  margin-top: 10px;
}
.sleep-groups > div {
  flex: 1;
  background: #edf1e7;
  border-radius: 6px;
  padding: 9px;
}
.sleep-groups strong {
  display: block;
  font-size: 17px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
