:root {
  color-scheme: light;
  --ink: #152e29;
  --muted: #465c54;
  --line: #ced7ce;
  --paper: #fafbf7;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box }
body, h1, h2, h3, p, figure { margin: 0 }
html { scroll-padding-block-start: 1rem }
body { font-size: 1rem; line-height: 1.62; -webkit-font-smoothing: antialiased }
h1,h2,h3 { line-height: 1.16; letter-spacing: -.045em; text-wrap: balance }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere }
a { color: inherit; text-underline-offset: .22em }
a:focus-visible { outline: 3px solid #236e60; outline-offset: 4px }
img { display: block }
.wrap { width: min(75rem, calc(100% - clamp(2.5rem, 9vw, 9rem))); margin-inline: auto }
.skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-150%); z-index: 2; padding: .55rem 1rem; background: white }
.skip:focus { transform: none }
.mast, footer, .navigation, .languages, .brand, .cardmeta, .identity, .section-heading { display: flex; align-items: center }
.mast, footer { justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); min-height: 5.2rem }
.brand { gap: .55rem; text-decoration: none; font-size: 1.16rem; font-weight: 750; letter-spacing: -.055em }
.brand i { display: inline-block; width: .82rem; height: .82rem; background: #487853; border-radius: 50% 50% 14% 50% }
.navigation { gap: clamp(.75rem,3vw,2.5rem) }
.support-link, .languages a, footer a { text-decoration: none }
.support-link:hover, footer a:hover, .back:hover, .policy-link:hover { text-decoration: underline }
.support-link { font-size: .89rem }
.languages { gap: .12rem; border: 1px solid var(--line); padding: .19rem; border-radius: 2rem; width: max-content; background: #f4f6ef }
.languages a { font-size: .78rem; font-weight: 550; line-height: 1.15; padding: .53rem .72rem; border-radius: 2rem }
.languages a[aria-current] { background: #244d40; color: #fff }
.languages a:not([aria-current]):hover { background: #e3eadf }
.intro { padding: clamp(3.4rem, 8vw, 7rem) 0 clamp(2.6rem, 5.2vw, 5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 5%; align-items: end }
.intro h1 { font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, "AppleMyungjo", "Yu Mincho", serif; font-weight: 500; max-width: 13ch; font-size: clamp(3.8rem,6.5vw,6.6rem); letter-spacing: -.063em; line-height: .99 }
html:not([lang=en]) .intro h1 { max-width: 13em; line-height: 1.18; font-size: clamp(2.8rem,5.3vw,5rem); letter-spacing: -.06em }
.intro p, .detailintro p { font-size: clamp(1rem, 1.5vw, 1.21rem); color: var(--muted); max-width: 37ch; line-height: 1.55 }
.cards, .features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.5vw,2.1rem) }
.tuckbolt { --surface:#dae9e4; --surface2:#b5d0c9 }
.growthjournal { --surface:#f7e4ce; --surface2:#ead3b7 }
.sunday-school { --surface:#e1e3f0; --surface2:#c6cbdf }
.product { min-width: 0; padding-bottom: .25rem }
.cardlink { display: block; text-decoration: none; border-radius: 1rem }
.cover, .frame { position: relative; overflow: hidden; background: linear-gradient(145deg,var(--surface),var(--surface2)); border-radius: 1.2rem }
.cover { aspect-ratio: 1.42; isolation: isolate }
.cover img { position:absolute; top: 16%; left: 16%; width: 68%; height: auto; border-radius: .82rem; box-shadow: 0 .75rem 2rem #24392b27; transform: rotate(-5deg); transition: transform .3s ease }
.growthjournal .cover img { transform: rotate(4deg) }
.sunday-school .cover img { width: 107%; left: 10%; top: 18%; transform: rotate(-4deg) }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .cardlink:hover .cover img { transform: translateY(-.28rem) rotate(0deg) } }
.motion-toggle, .motion-label { display: none }
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .catalog { display: grid; grid-template-columns: 1fr auto; column-gap: .45rem; align-items: center }
  .motion-toggle { display: block; justify-self: end; margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--ink) }
  .motion-label { display: flex; align-items: center; min-height: 44px; font-size: .875rem; color: var(--muted) }
  .catalog .cards { grid-column: 1 / -1; width: 100% }
  .cardlink .cover img { animation: preview-drift 6s ease-in-out infinite }
  .growthjournal .cover img { animation-delay: -2s }
  .sunday-school .cover img { animation-delay: -4s }
  .motion-toggle:not(:checked) ~ .cards .cover img { animation-play-state: paused }
}
@keyframes preview-drift {
  50% { transform: translateY(-.55rem) rotate(0deg) }
}
.cardmeta { gap: .65rem; margin: 1.25rem 0 .6rem }
.icon { object-fit: contain; border-radius: 23%; height: auto; box-shadow: 0 1px 4px #25362d15 }
.cardmeta .icon { width: 2.7rem }
small { display:block; font-size: .78rem; font-weight: 540; line-height: 1.5; color: var(--muted) }
.cardmeta h3 { font-size: clamp(1.25rem,2vw,1.7rem) }
.cardlink:hover h3 { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .13em }
.arrow { margin-left: auto; font-size: 1.5rem; line-height: 1 }
.product p { color: var(--muted); font-size: .99rem; line-height: 1.5; max-width: 38ch }
.policy-link { display: inline-block; font-size: .82rem; margin-top: .75rem; color: var(--muted) }
.support { margin: clamp(3rem,7vw,6rem) 0 2rem; padding: clamp(1.6rem,3vw,2.6rem); border-radius: 1.2rem; background: #eaf0e5; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem }
.support h2 { font-size: 1.4rem; margin-bottom: .3rem }
.support p { color: var(--muted); font-size: .94rem }
.support>a { white-space: nowrap; font-weight: 600; font-size: .97rem }
footer { min-height: 5rem; border: 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted) }
footer .brand { font-size: .95rem }
.back { display: inline-block; font-size: .86rem; text-decoration: none; margin: 1.65rem 0; color: var(--muted) }
.detail-head { border-radius: 1.25rem; padding: clamp(1.6rem,4.3vw,3.8rem); background: linear-gradient(112deg,var(--surface),var(--surface2)) }
.identity { gap: .9rem; margin-bottom: clamp(1.5rem,4vw,3rem) }
.identity .icon { width: 3.7rem }
.identity h1 { font-size: clamp(1.65rem,3vw,2.75rem) }
.detailintro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 7%; align-items:start }
.detailintro h2 { font-family:"Iowan Old Style","Baskerville",Georgia,"AppleMyungjo","Yu Mincho",serif; font-size:clamp(2.4rem,5vw,4.6rem); line-height:1.03; font-weight:500; max-width:16ch }
html:not([lang=en]) .detailintro h2 { line-height:1.24; max-width:15em }
.detailintro .original { font-size: .8rem; margin-top: .7rem }
.section-heading { justify-content: space-between; gap: 1rem; margin: clamp(2.5rem,5vw,4rem) 0 1.45rem }
.section-heading h2 { font-size: clamp(1.5rem,2.65vw,2.2rem) }
.features { gap: clamp(1rem,2.3vw,2rem) }
.sunday-school .features { grid-template-columns: repeat(2,minmax(0,1fr)) }
.frame { display: grid; place-items: center; aspect-ratio: .86; padding: 1.1rem; text-decoration: none }
.frame img { max-width: 100%; width: auto; height: 100%; min-height:0; object-fit: contain; border-radius: .7rem; box-shadow: 0 .25rem .9rem #24392b26 }
.sunday-school .frame { aspect-ratio:1.42; padding: 1rem }
.sunday-school .frame img { width: 100%; height:auto; max-height:100%; box-shadow:none }
.zoom { position:absolute; right:.55rem; bottom:.55rem; display:grid; place-items:center; background:#ffffffed; border-radius:50%; width:1.8rem;height:1.8rem;font-size:1.2rem }
figcaption { padding:1rem .12rem 0 }
figcaption h3 { font-size:clamp(1.12rem,1.7vw,1.4rem) }
figcaption p { color:var(--muted); font-size:.96rem; margin-top:.5rem }
.document { max-width: 47rem; margin: 1rem auto clamp(3rem,7vw,6rem) }
.document h1 { font-size: clamp(2rem,4vw,3.3rem); margin: 1.5rem 0 .9rem }
.document h2 { font-size:1.42rem; margin:2.3rem 0 .6rem }
.document p { color:var(--muted); margin: .7rem 0; line-height:1.78 }
.document p a { overflow-wrap:anywhere }
#tuckbolt-guides { margin-top: 3rem }
@media (max-width: 760px) {
  .intro, .detailintro { grid-template-columns:1fr; gap:1rem }
  .intro p,.detailintro p { max-width: 50ch }
  .cards,.features,.sunday-school .features { grid-template-columns:1fr }
  .product+.product { margin-top:1.5rem }
  .cardmeta .icon { width:3rem }
  .cover { aspect-ratio:1.85 }
  .cards { margin-inline:auto }
  .frame { aspect-ratio:1.05 }
  .features { gap:2.2rem }
  .section-heading { align-items:start; flex-direction:column; gap:.3rem }
  .support { align-items:start; flex-direction:column }
}
@media (max-width: 470px) {
  .wrap { width:calc(100% - 2.2rem) }
  .mast { min-height:4.3rem; gap:.45rem }
  .mast .brand { font-size:1.05rem; gap:.32rem }
  .support-link { display:none }
  .languages { gap:0; padding:.15rem }
  .languages a { font-size:.74rem; padding:.52rem .43rem }
  .intro { padding:2.65rem 0 1.8rem }
  .intro h1 { font-size:3.4rem }
  html:not([lang=en]) .intro h1 { font-size:2.7rem }
  .detail-head { padding:1.3rem }
  .detailintro h2 { font-size:2.25rem }
  .back { margin:1.2rem 0 }
}
.brand { white-space: nowrap; flex-shrink: 0 }
@media (max-width: 360px) {
  .mast { gap: .3rem }
  .mast .brand { font-size: .98rem }
  .mast .brand i { width: .65rem; height: .65rem }
  .languages a { font-size: .71rem; padding-inline: .35rem }
  .sunday-school .identity h1 { font-size: 1.3rem }
}

.tutorial video{display:block;width:min(100%,24rem);height:auto;aspect-ratio:588 / 1280;max-height:74vh;background:#101214;border-radius:.8rem;margin:1.2rem auto}
.tutorial details{border-bottom:1px solid #acb1ad;padding:1rem 0}
.tutorial summary{font-size:1.05rem;font-weight:650;line-height:1.5;cursor:pointer}
.tutorial details p{line-height:1.7;margin:.65rem 0}

/* The studio signature follows the four lines in the founder's sketch. */
.intro { align-items: center }
.intro p { margin-top: 1.1rem }
.intro .studio-signature { width: clamp(12rem, 21vw, 16.5rem); margin-inline: auto 12% }
.studio-signature { display: block; max-width: 100%; height: auto }
.studio-footer { padding-block: 1.4rem }
.studio-footer .studio-signature { width: 10.5rem }
@media (max-width: 760px) {
  .intro { grid-template-columns: minmax(0,1fr) auto; gap: 1.25rem }
  .intro .studio-signature { width: 9.5rem; margin: 0 }
}
@media (max-width: 530px) {
  .intro { grid-template-columns: 1fr }
  .intro .studio-signature { width: 10.5rem }
}

.product-links { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; margin-top:.85rem }
.product-links .policy-link { margin:0 }
.store-link { display:inline-flex; align-items:center; min-height:44px; padding:.5rem 1rem; border-radius:.65rem; background:var(--ink); color:white; font-weight:650; font-size:.92rem; text-decoration:none }
.store-link:hover { text-decoration:underline }
.screenshot-viewer { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; border:0; padding:max(1.25rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) max(1.25rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left)); background:transparent; overflow:hidden; cursor:zoom-out }
.screenshot-viewer[open] { display:grid; place-items:center }
.screenshot-viewer::backdrop { background:rgba(9,19,17,.92) }
.screenshot-viewer img { width:100%; height:100%; min-height:0; object-fit:contain }
.screenshot-viewer button { position:absolute; top:max(.7rem,env(safe-area-inset-top)); right:max(.7rem,env(safe-area-inset-right)); width:44px; height:44px; padding:0; border:1px solid #77827d; border-radius:50%; background:#18221f; color:white; font-size:1.65rem; line-height:1; cursor:pointer }
html:has(.screenshot-viewer[open]) { overflow:hidden }
