:root {
  --forest: #23382D;
  --forest-deep: #173F38;
  --paper: #F8F5EC;
  --card: #FFFFFF;
  --line: #DCD6C6;
  --ink: #23382D;
  --muted: #5E6B62;
  --coral: #E0614F;
  --leaf: #BCD586;
  --petal: #ECA8A0;
  --sun: #FFD683;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "PingFang SC", "Segoe UI", sans-serif;
}
a { color: var(--forest); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hand { font-family: "Gaegu", "Apple SD Gothic Neo", sans-serif; font-weight: 700; }
.serif { font-family: "Gowun Batang", Georgia, "Times New Roman", serif; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 700 24px/1 "Gowun Batang", Georgia, serif; letter-spacing: -0.01em; }
header.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
header.top nav a { text-decoration: none; color: var(--muted); }
.lang { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 14px; color: var(--forest); cursor: pointer; }

.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.hero h1 { font: 700 clamp(40px, 6vw, 64px)/1.12 "Gowun Batang", Georgia, serif; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 16px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn.primary { background: var(--forest); color: var(--paper); }
.btn.ghost { border: 1.5px solid var(--forest); color: var(--forest); }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.stage { position: relative; }
.stage img.shot { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(35, 56, 45, 0.18); }
.bubble { position: absolute; left: -18px; top: -26px; display: flex; align-items: center; gap: 10px; }
.bubble .say { background: var(--card); border: 1px solid var(--line); padding: 8px 14px; border-radius: 16px 16px 16px 4px; font-size: 22px; }

section { padding: 64px 0; }
section h2 { font: 700 clamp(28px, 4vw, 40px)/1.2 "Gowun Batang", Georgia, serif; margin: 0 0 12px; letter-spacing: -0.01em; }
section .sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); font-size: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }

.blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; }
.block { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 14px; font-weight: 700; text-align: center; padding: 8px; }
.block.wide { grid-column: span 2; aspect-ratio: auto; }
.b1 { background: var(--forest); color: var(--paper); }
.b2 { background: #FBE8DA; color: #56383F; }
.b3 { background: #F3F6FF; color: #182D54; }
.b4 { background: #F6EEDC; color: #392C27; }
.b5 { background: #F1E8FC; color: #382447; }
.b6 { background: #E3F5F5; color: #163F4B; }

.pass { background: var(--forest); color: var(--paper); border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.pass h2 { color: var(--paper); }
.pass .sub { color: #C3D6C6; }
.pass ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pass li { background: rgba(248, 245, 236, 0.08); border-radius: 16px; padding: 14px 16px; }
.pass li b { display: block; }
.pass li span { color: #C3D6C6; font-size: 15px; }
.pass .btn.primary { background: var(--paper); color: var(--forest); }
.price { font-size: 15px; color: #C3D6C6; margin-top: 12px; }

.privacy { text-align: center; }
.privacy .sub { margin: 0 auto 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer .right { margin-left: auto; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font: 700 clamp(30px, 5vw, 42px)/1.2 "Gowun Batang", Georgia, serif; margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--card); }
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 15px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.todo { background: #FFF3C4; padding: 0 4px; border-radius: 4px; }

[data-lang="en"] .ko, [data-lang="ko"] .en { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .split, .pass { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .pass { padding: 28px; border-radius: 24px; }
  .bubble { left: 4px; }
  header.top nav a.hide-sm { display: none; }
}

/* Theme gallery: each tile is a different widget layout on its own paper */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; grid-auto-flow: dense; }
.w { margin: 0; }
.w.m { grid-column: span 2; }
.w figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.w figcaption b { color: var(--ink); }
.face { --p: #fff; --i: #222; --a: #E0614F; --s: #888; aspect-ratio: 1; border-radius: 26px; padding: 16px; background: var(--p); color: var(--i);
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; overflow: hidden; box-shadow: 0 10px 28px rgba(35, 56, 45, 0.12); font-size: 13px; line-height: 1.3; }
.w.m .face { aspect-ratio: 2.14; }
.face .cap { color: var(--s); font-size: 12px; }
.face .big { font-size: 22px; line-height: 1; }
.face .ttl { font-size: 15px; }
.face .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.face .fr { width: 40px; height: 40px; color: var(--i); flex: none; }
.face .fr.xl { width: 84px; height: 84px; }
.face .time { font-size: 40px; font-weight: 700; color: var(--a); line-height: 1; }
.face .temp { font-size: 30px; font-weight: 700; color: var(--a); }
.face .dday { font-size: 44px; font-weight: 800; color: var(--a); line-height: 1; letter-spacing: -0.02em; }
.face .hero-fr { display: grid; place-items: center; flex: 1; }
.face .mh { display: flex; align-items: baseline; gap: 6px; }
.face .mh span { color: var(--s); font-size: 12px; }
.face .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 100%; }
.face .cal { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 10px; row-gap: 2px; }
.face .cal b { color: var(--a); font-size: 9px; font-weight: 600; }
.face .cal i { font-style: normal; position: relative; }
.face .cal i.t { font-weight: 800; text-decoration: underline 2px; text-underline-offset: 2px; }
.face .cal i.d::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--a); }
.face .cal.two { font-size: 14px; row-gap: 8px; }
.face .list { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.face .list p { margin: 0; border-left: 3px solid var(--a); padding-left: 8px; display: grid; }
.face .list span { color: var(--s); font-size: 11px; }
.face .ruled p { margin: 0; padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--s) 45%, transparent); font-size: 12px; }
.face .rule { height: 1px; background: color-mix(in srgb, var(--i) 25%, transparent); }
.face .bars { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-items: end; }
.face .bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.face .bars em { width: 100%; border-radius: 6px; background: var(--a); }
.face .bars b { font-size: 10px; color: var(--s); font-weight: 600; }
.face .tt { display: grid; grid-template-columns: 18px repeat(5, 1fr); gap: 6px; height: 100%; }
.face .tt .hrs { display: flex; flex-direction: column; justify-content: space-between; padding-top: 16px; font-size: 9px; color: var(--s); }
.face .tt .col { display: flex; flex-direction: column; gap: 4px; }
.face .tt .col b { font-size: 10px; text-align: center; color: var(--s); }
.face .tt .lane { position: relative; flex: 1; }
.face .tt em { position: absolute; left: 0; right: 0; border-radius: 6px; }
.face .tt em.a { background: #2854A6; } .face .tt em.b { background: #8FB0E8; } .face .tt em.c { background: #C8D6F5; }
.face .slots { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 100%; }
.face .slot { background: rgba(255, 255, 255, 0.6); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.face .slot.big { grid-row: span 2; flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
.face .slot.big .fr { width: 62px; height: 62px; }

.th-ink .face { --p: #141416; --i: #fff; --a: #FF6956; --s: #B0ADB0; }
.th-forest .face { --p: #173F38; --i: #fff; --a: #C4DF96; --s: #C3D6C6; font-family: "Gowun Batang", Georgia, serif;
  box-shadow: inset 0 0 0 6px #173F38, inset 0 0 0 7.5px rgba(196, 223, 150, 0.4), 0 10px 28px rgba(35, 56, 45, 0.12); }
.th-flower .face { --p: #FBE8DA; --i: #56383F; --a: #A54864; --s: #765960; 
  box-shadow: inset 0 0 0 6px #FBE8DA, inset 0 0 0 7.5px rgba(165, 72, 100, 0.35), 0 10px 28px rgba(35, 56, 45, 0.12); }
.th-campus .face { --p: #F3F6FF; --i: #182D54; --a: #2854A6; --s: #4C5D78; font-family: ui-monospace, Menlo, monospace;
  background-image: linear-gradient(rgba(40, 84, 166, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(40, 84, 166, 0.09) 1px, transparent 1px); background-size: 12px 12px; }
.th-press .face { --p: #F6EEDC; --i: #392C27; --a: #894326; --s: #695449; font-family: "Gowun Batang", Georgia, serif;
  background-image: linear-gradient(90deg, transparent 13px, rgba(137, 67, 38, 0.45) 13px, rgba(137, 67, 38, 0.45) 14px, transparent 14px); }
.th-orbit .face { --p: #17182F; --i: #EEEFFD; --a: #B7ADFF; --s: #B9BAD7; font-family: ui-monospace, Menlo, monospace;
  background-image: radial-gradient(rgba(238, 239, 253, 0.25) 1px, transparent 1.2px); background-size: 14px 14px; }
.th-track .face { --p: #222B22; --i: #F3FFE9; --a: #CCF85C; --s: #B7C5AF;
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(204, 248, 92, 0.12) 22px 23px); }
.th-studio .face { --p: #F1E8FC; --i: #382447; --a: #783C97; --s: #694D78;
  background-image: radial-gradient(rgba(120, 60, 151, 0.18) 1px, transparent 1.3px); background-size: 12px 12px; }
.th-coast .face { --p: #E3F5F5; --i: #163F4B; --a: #006A73; --s: #41636D; font-family: "Gowun Batang", Georgia, serif;
  background-image: repeating-linear-gradient(0deg, transparent 0 19px, rgba(0, 106, 115, 0.13) 19px 20px); }
.th-white .face { --p: #FFFFFF; --i: #191919; --a: #353535; --s: #626262; box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(35, 56, 45, 0.08); }
.th-clear .face { --p: #0A0A0A; --i: #FFFFFF; --a: #FFDE56; --s: #E2E2E2; }
.th-clear .fr { color: #FFDE56; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.th-flower .face .temp, .th-studio .face .temp, .th-studio .face .big, .th-studio .face .slot b { font-family: "Gaegu", sans-serif; font-size: 34px; }
.th-studio .face .slot b { font-size: 22px; }
.th-ink .face .cal { font-size: 12px; row-gap: 4px; }
.th-ink .face .cal b { font-size: 10px; }
.th-ink .face .list { gap: 12px; font-size: 14px; }

/* Hero: one large monthly widget, weather friend on top */
.lg { margin: 0 auto; max-width: 440px; border-radius: 34px; background: #fff; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(35, 56, 45, 0.18); }
.lg .sky { position: relative; flex: none; min-height: 196px; display: flex; align-items: center; gap: 14px; padding: 18px 24px; overflow: hidden;
  transition: background 0.9s ease; background: linear-gradient(160deg, #FFF1C9, #FFE2A6); }
.lg[data-wx="cloud"] .sky { background: linear-gradient(160deg, #EEF0EC, #D9DFD8); }
.lg[data-wx="rain"] .sky { background: linear-gradient(160deg, #DCE6EE, #B8C9D6); }
.lg[data-wx="snow"] .sky { background: linear-gradient(160deg, #F3F6FA, #DDE6F0); }
.lg .fx, .lg .fx span { position: absolute; inset: 0; pointer-events: none; }
.lg .fx span { opacity: 0; transition: opacity 0.8s ease; }
.lg .fx .ray { inset: auto; left: 18px; top: 50%; width: 170px; height: 170px; margin-top: -85px;
  background: repeating-conic-gradient(rgba(255, 196, 77, 0.38) 0 9deg, transparent 9deg 24deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: spin 18s linear infinite; }
.lg .fx .cl { inset: auto; height: 34px; border-radius: 34px; background: #fff; box-shadow: 22px -14px 0 4px #fff, 48px 0 0 0 #fff; }
.lg .fx .c1 { width: 70px; top: 22px; left: 68%; animation: drift 9s ease-in-out infinite alternate; }
.lg .fx .c2 { width: 52px; top: 70%; left: 8%; transform: scale(0.75); animation: drift 12s ease-in-out infinite alternate-reverse; }
.lg[data-wx="rain"] .cl, .lg[data-wx="snow"] .cl { background: #C9D3DC; box-shadow: 22px -14px 0 4px #C9D3DC, 48px 0 0 0 #C9D3DC; }
.lg .drops { background-image: linear-gradient(transparent 0 70%, rgba(66, 110, 150, 0.55) 70% 100%); background-size: 22px 26px;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 22px); mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 22px);
  transform: skewX(-12deg); animation: fall 0.55s linear infinite; }
.lg .flakes { background-image: radial-gradient(#fff 2.4px, transparent 3px), radial-gradient(#fff 1.6px, transparent 2.2px);
  background-size: 34px 34px, 22px 22px; background-position: 0 0, 11px 7px; animation: snow 4s linear infinite; }
.lg[data-wx="sun"] .ray, .lg[data-wx="cloud"] .cl, .lg[data-wx="rain"] .cl, .lg[data-wx="snow"] .cl,
.lg[data-wx="rain"] .drops, .lg[data-wx="snow"] .flakes { opacity: 1; }
.lg[data-wx="rain"] .c2, .lg[data-wx="snow"] .c2 { opacity: 0; }
.lg .buddy { position: relative; flex: none; width: 128px; height: 128px; z-index: 1; animation: bob 1.6s ease-in-out infinite; }
.lg .buddy .fr { width: 128px; height: 128px; display: block; filter: drop-shadow(0 6px 8px rgba(35, 56, 45, 0.15)); }
.lg .umb { position: absolute; left: 6px; top: -26px; width: 116px; height: 70px; opacity: 0; transform: translateY(-12px) rotate(-6deg); transition: 0.5s ease; }
.lg[data-wx="rain"] .umb { opacity: 1; transform: none; }
.lg .scarf { position: absolute; left: 38px; top: 96px; width: 54px; height: 13px; border-radius: 8px; background: repeating-linear-gradient(90deg, #E0614F 0 8px, #fff 8px 12px); opacity: 0; transition: 0.5s; }
.lg[data-wx="snow"] .scarf { opacity: 1; }
.lg[data-wx="rain"] .buddy { animation: sway 1.2s ease-in-out infinite; }
.lg[data-wx="snow"] .buddy { animation: shiver 0.35s ease-in-out infinite; }
.lg[data-wx="cloud"] .buddy { animation-duration: 2.6s; }
.lg .wx { position: relative; z-index: 1; display: grid; gap: 2px; min-width: 0; }
.lg .deg { font: 700 52px/1 "Gowun Batang", Georgia, serif; color: var(--forest); letter-spacing: -0.02em; }
.lg .cond { font-size: 14px; color: var(--muted); font-weight: 600; }
.lg .say { margin-top: 8px; justify-self: start; background: #fff; border-radius: 14px 14px 14px 4px; padding: 5px 12px; font-size: 21px; color: var(--forest);
  box-shadow: 0 4px 12px rgba(35, 56, 45, 0.1); white-space: nowrap; }
.lg .month { flex: 1; padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.lg .mh { display: flex; align-items: baseline; gap: 8px; }
.lg .mh b { font: 700 24px/1 "Gowun Batang", Georgia, serif; }
.lg .mh > span { color: var(--muted); font-size: 14px; }
.lg .grid7 { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: 5px; font-size: 15px; }
.lg .grid7 b { font-size: 12px; color: var(--muted); font-weight: 600; }
.lg .grid7 .sun { color: var(--coral); }
.lg .grid7 i { font-style: normal; position: relative; line-height: 26px; }
.lg .grid7 i.t { color: #fff; font-weight: 700; }
.lg .grid7 i.t::before { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--forest); z-index: -1; }
.lg .grid7 i.d::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral); }
.lg .grid7 i { z-index: 0; }
.lg .ev { margin-top: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lg .ev p { margin: 0; background: var(--paper); border-radius: 12px; padding: 7px 10px; display: grid; font-size: 13px; line-height: 1.3; border-left: 3px solid var(--forest); }
.lg .ev b { font-size: 12px; color: var(--muted); }
.lg .ev p.dd { border-left-color: var(--coral); }
.lg .ev p.dd b { color: var(--coral); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { translate: 28px 0; } }
@keyframes fall { to { background-position: 0 26px; } }
@keyframes snow { to { background-position: 10px 34px, 0 29px; } }
@keyframes bob { 50% { transform: translateY(-7px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes shiver { 0%, 100% { transform: translateX(-1.5px); } 50% { transform: translateX(1.5px); } }
@media (prefers-reduced-motion: reduce) { .lg *, .lg .buddy { animation: none !important; } }
@media (max-width: 520px) {
  .lg { border-radius: 28px; }
  .lg .sky { padding: 34px 16px 18px; gap: 8px; min-height: 0; }
  .lg .fx .c1 { left: 60%; top: 40px; }
  .lg .buddy, .lg .buddy .fr { width: 96px; height: 96px; }
  .lg .umb { width: 88px; height: 54px; left: 4px; top: -20px; }
  .lg .scarf { left: 28px; top: 72px; width: 40px; }
  .lg .deg { font-size: 40px; }
  .lg .say { font-size: 18px; }
  .lg .month { padding: 14px 16px 16px; }
  .lg .ev { grid-template-columns: 1fr; }
}
