/*
Theme Name: Singularity Games Journal
Author: Singularity Games
Description: Singularity Games 공식 개발 일지
Version: 1.7.0
Text Domain: singularity-journal
*/
@font-face {
  font-family: "Singularity Display";
  src: url("/assets/singularity-display.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1c1724;
  --night: #15121f;
  --paper: #faf7ef;
  --muted: #62596a;
  --line: #cfc7b9;
  --yellow: #ffce36;
  --plum: #583977;
  --text: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--text); -webkit-font-smoothing: antialiased }
:lang(ko) { word-break: keep-all; overflow-wrap: break-word }
a { color: inherit; text-underline-offset: .17em }
a:focus-visible, summary:focus-visible { outline: 3px solid #9562ca; outline-offset: 4px }
img { max-width: 100% }
.wrap { width: min(91%, 1340px); margin-inline: auto }
.top, footer { background: var(--night); color: #f7f2e9 }
.bar, footer .wrap, .bar nav, footer nav, .brand, .foot-sign { display: flex; align-items: center }
.bar, footer .wrap { justify-content: space-between; gap: 18px; min-height: 72px }
.brand { gap: 10px; font-weight: 900; line-height: .98; letter-spacing: -.045em; text-decoration: none }
.brand small { display: block; font-size: .67em; letter-spacing: .18em; margin-top: 3px }
.brand-mark { width: 46px; height: 46px }
.bar nav, footer nav { gap: clamp(12px,2.7vw,40px); flex-wrap: wrap }
.bar nav a, footer a { display: inline-flex; min-height: 44px; align-items: center; font-size: .94rem; font-weight: 640; text-decoration: none }
.bar nav a:hover, footer a:hover, .bar nav a[aria-current] { text-decoration: underline }
.bar .language { min-height: 36px; padding: 3px 12px; border: 1px solid #827585; border-radius: 40px }
.skip { position: absolute; left: 1rem; top: -10rem; z-index: 3; padding: 10px; background: white }
.skip:focus { top: 4px }

.story-cover { isolation: isolate; position: relative; overflow: hidden; color: #1c1423; background: var(--yellow) }
.cover-print { position: absolute; inset: 0 0 0 auto; width: 59%; z-index: -1; pointer-events: none; mask-image: linear-gradient(90deg, transparent, black 26%) }
.cover-print img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 82% 52% }
.cover-type { padding-block: clamp(30px,4.8vw,74px) clamp(40px,5.5vw,88px) }
.back { display: inline-flex; align-items: center; gap: .65em; min-height: 38px; font-size: .91rem; font-weight: 730; text-decoration: none }
.back:hover { text-decoration: underline }
.story h1 { position: relative; max-width: min(57%,17em); margin: 14px 0 0; font-size: clamp(2.5rem,4.55vw,4.9rem); font-weight: 850; line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; overflow-wrap: anywhere }
.reader { display: grid; grid-template-columns: minmax(135px, 190px) minmax(0, 740px); gap: clamp(35px,6vw,95px); justify-content: center; align-items: start; padding-block: clamp(44px,6vw,88px) clamp(55px,8vw,120px) }
.credit { display: flex; align-items: center; gap: 10px; border-top: 2px solid var(--ink); padding-top: 14px; font-size: .9rem; line-height: 1.4 }
.credit span, .credit time { display: block }
.credit span { font-weight: 760 }
time { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; letter-spacing: .025em }
.body { min-width: 0; font-size: clamp(1.075rem,1.35vw,1.2rem); line-height: 1.82; overflow-wrap: anywhere }
.body > p, .body > ul, .body > ol, .body > h2, .body > h3 { max-width: 62ch }
.body:lang(ko) > p, .body:lang(ko) > ul, .body:lang(ko) > ol { max-width: 34em }
.body p { margin: 0 0 1.15em }
.body > p:first-child { margin-top: -.2em; font-weight: 550; font-size: 1.16em; line-height: 1.62; letter-spacing: -.024em; text-wrap: pretty }
.body h2, .body h3 { margin: 1.8em 0 .65em; line-height: 1.27; letter-spacing: -.035em; text-wrap: balance }
.body h2 { font-size: clamp(1.55rem,2.55vw,2.4rem); font-weight: 800 }
.body h2::before { display: block; content: ""; width: 30px; height: 4px; margin-bottom: .5em; background: var(--plum); transform: skewX(-22deg) }
.body figure { max-width: 100%; margin: clamp(24px,3vw,42px) 0; }
.body figure img { display: block; width: 100%; height: auto; border: 1px solid #332d36 }
.body img { height: auto }
.body figcaption { font-size: .88rem; line-height: 1.55; color: var(--muted); margin-top: 12px; padding-left: 12px; border-left: 3px solid #b47710 }
.body a { color: #583172; font-weight: 650 }
.body a:hover { text-decoration-thickness: 2px }
.body > p:last-child:has(> a:only-child) { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line) }
.body pre, .body .wp-block-table { overflow-x: auto }
.body iframe { max-width: 100% }
.reader:not(:has(.credit)) .body { grid-column: 1/-1; max-width: 740px; margin-inline: auto }

.mast { position: relative; isolation: isolate; overflow: hidden; background: #261e34; color: #fff5dc; border-bottom: 4px solid var(--yellow) }
.mast .wrap { position: relative; z-index: 1; padding-block: clamp(36px,5vw,76px) }
.mast h1 { max-width: 60%; margin: 0; font-size: clamp(2.6rem,5.5vw,5.4rem); letter-spacing: -.042em; line-height: 1.12 }
.mast .journal-title { font-family: "Singularity Display",var(--text); font-weight: 400; letter-spacing: 0 }
.mast p { max-width: min(45%,29em); margin: 14px 0 0; color: #ded2e4; font-size: 1.06rem }
.press-art { position: absolute; inset: 0 0 0 auto; width: 49%; z-index: -1; mask-image: linear-gradient(90deg, transparent, black 52%) }
.press-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center }
.journal, .entry { max-width: 1110px; margin: auto; padding-block: clamp(33px,5vw,76px) }
.post { color: inherit; display: grid; text-decoration: none; padding-block: 26px; border-top: 1px solid var(--line) }
.post:first-child { padding-top: 0; border-top: none }
.post.with-scene { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(25px,4.5vw,68px); align-items: center }
.post-image { background: var(--night); aspect-ratio: 1.8; overflow: hidden }
.post-image img { width: 100%; height: 100%; object-fit: cover; display: block }
.post h2 { margin: .2em 0; font-size: clamp(1.55rem,3.25vw,3rem); line-height: 1.18; text-wrap: balance; letter-spacing: -.042em }
.post:hover h2 { text-decoration: underline; text-decoration-thickness: 2px }
.post p { color: var(--muted); margin: .8em 0 0; max-width: 52ch }
.pagination .nav-links { display: flex; gap: 1em }
footer .wrap { min-height: 90px; flex-wrap: wrap; padding-block: 16px }
.foot-sign { gap: 10px; font-size: .87rem }
footer a { font-weight: 500 }
@media (max-width: 900px) {
  .reader { grid-template-columns: minmax(0,740px); gap: 24px }
  .credit { border: none; padding: 0 }
  .credit div { display: flex; gap: 12px; align-items: baseline }
  .credit img { width: 29px; height: 29px }
}
@media (max-width: 680px) {
  .wrap { width: 89% }
  .bar { width: calc(100% - 28px); min-height: 61px; gap: 8px }
  .brand { font-size: .79rem; gap: 7px }
  .brand-mark { width: 32px; height: 32px }
  .bar nav { gap: 10px }
  .bar nav a { font-size: .82rem }
  .bar .language { padding: 3px 8px }
  .cover-type { position: relative; padding-block: 15px 33px }
  .cover-print { inset: 0 0 auto auto; width: 48%; height: 82px; mask-image: linear-gradient(0deg,transparent,black 48%),linear-gradient(90deg,transparent,black 32%); mask-composite: intersect }
  .cover-print img { object-position: 71% 57% }
  .story h1 { max-width: 100%; margin-top: 28px; font-size: clamp(2.03rem,7.3vw,2.9rem); line-height: 1.18 }
  .reader { padding-block: 24px 52px; gap: 20px }
  .body { font-size: 1.075rem; line-height: 1.8 }
  .body > p:first-child { font-size: 1.08em }
  .body figure { margin-block: 26px }
  .mast .wrap { padding-block: 31px }
  .mast h1 { max-width: 78% }
  .mast p { max-width: 72%; font-size: .96rem }
  .press-art { width: 44%; opacity: .45 }
  .post.with-scene { grid-template-columns: 1fr; gap: 14px }
  footer .wrap { gap: 3px 16px }
  footer nav { gap: 18px }
}
@media (max-width: 365px) {
  .bar .brand span { display: none }
  .bar nav { gap: 8px }
}
@media print {
  .top, footer, .cover-print, .back { display: none }
  .story-cover, body { background: white; color: black }
  .reader { display: block; padding: 12pt 0 }
  .cover-type { padding: 0 }
  .story h1, .body { max-width: 100% }
  .body figure { break-inside: avoid }
}
