@font-face {
  font-family: "FuturaLatin";
  src: local("Futura"), local("Century Gothic"), local("Avenir Next");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F;
}

@font-face {
  font-family: "CheonRiMaWeb";
  src: url("fonts/cheonrima-web-light.woff2?v=20261021-8") format("woff2"),
       url("fonts/cheonrima-web-light.ttf?v=20261021-8") format("truetype");
  font-style: normal;
  font-weight: 100 500;
  font-display: block;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
  font-family: "ChosunilboMyungjoWeb";
  src: url("fonts/chosunilbo-myungjo.woff?v=20261021-1") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NanumGothicWeb";
  src: url("fonts/nanum-gothic.woff2?v=20261021-1") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "CheonRiMaWeb";
  src: url("fonts/cheonrima-web-normal.woff2?v=20261021-8") format("woff2"),
       url("fonts/cheonrima-web-normal.ttf?v=20261021-8") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: block;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF, U+A960-A97F, U+D7B0-D7FF;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6d6d68;
  --line: #deded8;
  --paper: #f7f7f3;
  --white: #fff;
  --accent: #176b5b;
  --danger: #9a3434;
  --font-primary: "CheonRiMaWeb", Helvetica, Arial, sans-serif;
  font-family: var(--font-primary);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
html:lang(ko), html:lang(ko) body, html:lang(ko) button, html:lang(ko) input,
html:lang(ko) textarea, html:lang(ko) select, html:lang(ko) [contenteditable="true"] {
  font-family: "CheonRiMaWeb", "FuturaLatin", sans-serif;
  font-synthesis: none;
}
body { line-height: 1.7; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
.site-header, .page-shell, footer { width: min(100% - 40px, 1120px); margin-inline: auto; }
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-size: 12px; font-weight: 400; letter-spacing: .18em; text-decoration: none; }
nav { display: flex; gap: 20px; white-space: nowrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
.page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; align-items: start; }
main { min-width: 0; min-height: calc(100vh - 170px); }
.intro { padding: 84px 0 68px; }
.eyebrow, .meta { color: var(--muted); font-size: .82rem; margin: 0 0 8px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-family: var(--font-primary); font-size: clamp(2rem, 8vw, 3.6rem); font-weight: 400; line-height: 1.13; margin: 0 0 18px; letter-spacing: 0; }
h2 { font-size: 1.15rem; font-weight: 400; margin: 0; }
h3 { font-family: var(--font-primary); font-size: 1.6rem; font-weight: 400; line-height: 1.3; margin: 5px 0 8px; }
.lede { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.posts-section, .panel { padding: 34px 0 72px; border-top: 1px solid var(--ink); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.search input { width: 180px; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 7px 2px; }
.post-list article { padding: 27px 0; border-bottom: 1px solid var(--line); }
.post-list p { color: var(--muted); margin: 0; }
.empty { color: var(--muted); padding: 54px 0; border-bottom: 1px solid var(--line); }
.post { padding: 68px 0 90px; }
.post header { padding: 38px 0; border-bottom: 1px solid var(--line); }
.post-body { padding-top: 40px; font-family: var(--font-primary); font-size: 1.08rem; }
.back { color: var(--muted); }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: .85rem; }
.related-posts { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.related-posts ul { list-style: none; margin: 18px 0 0; padding: 0; }
.related-posts li { border-bottom: 1px solid var(--line); }
.related-posts a { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; text-decoration: none; }
.related-posts small { flex: 0 0 auto; color: var(--muted); }
.sidebar { position: sticky; top: 28px; padding: 84px 0 72px; }
.widget { padding: 22px 0; border-top: 1px solid var(--line); }
.widget:first-child { border-top-color: var(--ink); }
.widget h2 { margin-bottom: 14px; font-size: .9rem; font-weight: 400; text-transform: uppercase; }
.widget p { margin: 0; color: var(--muted); font-size: .88rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; color: var(--muted); font-size: .84rem; text-decoration: none; }
.widget li a:hover { color: var(--ink); }
.widget li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget li small { flex: 0 0 auto; color: var(--muted); }
.profile-widget h2 { margin: 0 0 8px; font-family: var(--font-primary); font-size: 1.15rem; text-transform: none; }
.widget-empty { padding: 7px 0; }
.panel { margin-top: 64px; }
.narrow { max-width: 480px; }
.form-stack { display: grid; gap: 18px; margin-top: 30px; }
.form-stack label { display: grid; gap: 7px; font-size: .9rem; font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 11px 12px; border-radius: 3px; }
textarea { resize: vertical; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.danger { color: var(--danger); }
.actions { display: flex; align-items: center; gap: 8px; }
.admin-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.admin-list h2 { margin: 4px 0; }
.status { font-size: .75rem; color: var(--muted); }
.status.published { color: var(--accent); }
.status.scheduled { color: #875e0c; }
.notice { padding: 10px 12px; border-left: 3px solid var(--danger); background: var(--white); }
footer { min-height: 86px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .85rem; }
footer form { margin: 0; }
.text-button { border: 0; padding: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.editor-mode { margin: 0; padding: 0; border: 0; }
.editor-mode legend, .field-label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 400; }
.segmented { display: inline-grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.segmented label { display: block; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 8px 14px; background: var(--white); color: var(--muted); text-align: center; cursor: pointer; }
.segmented label + label span { border-left: 1px solid var(--line); }
.segmented input:checked + span { background: var(--ink); color: var(--white); }
.editor-surface[hidden], .preview-panel[hidden] { display: none; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-bottom: 0; background: #efefe9; }
.toolbar-group { display: flex; align-items: center; min-height: 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editor-toolbar button { min-width: 40px; height: 40px; padding: 0 9px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; white-space: nowrap; }
.editor-toolbar button:hover { background: var(--white); }
.toolbar-select select { width: auto; min-width: 118px; height: 40px; padding: 4px 26px 4px 9px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background-color: transparent; }
.color-tools label { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 8px; font-size: .78rem; }
.color-tools input { width: 28px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.editor-status { min-height: 24px; padding: 3px 10px; border-inline: 1px solid var(--line); color: var(--muted); font-size: .78rem; background: var(--white); }
.editor-status.error { color: var(--danger); }
.rich-editor { min-height: 360px; padding: 18px; border: 1px solid var(--line); background: var(--white); outline: none; }
.rich-editor:focus { border-color: var(--accent); }
.rich-editor img { max-width: 100%; height: auto; cursor: pointer; }
.rich-editor img.is-selected { outline: 3px solid var(--accent); outline-offset: 3px; }
.rich-editor table, .post-body table { width: 100%; border-collapse: collapse; }
.rich-editor td, .rich-editor th, .post-body td, .post-body th { min-width: 50px; padding: 8px; border: 1px solid var(--line); vertical-align: top; }
.media-tray { display: flex; gap: 8px; min-height: 74px; padding: 10px; overflow-x: auto; border: 1px solid var(--line); border-top: 0; background: #efefe9; }
.media-tray[hidden] { display: none; }
.media-item { position: relative; flex: 0 0 72px; width: 72px; height: 54px; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item span { position: absolute; right: 2px; bottom: 2px; padding: 1px 4px; background: rgba(0,0,0,.75); color: #fff; font-size: .68rem; }
.media-item.featured { border: 2px solid var(--accent); }
.featured-summary { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); background: var(--white); }
.featured-summary[hidden] { display: none; }
.featured-summary img { width: 72px; height: 48px; object-fit: cover; }
.editor-dialog { width: min(92vw, 460px); padding: 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.editor-dialog::backdrop { background: rgba(0,0,0,.42); }
.editor-dialog form { display: grid; gap: 14px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.dialog-heading button { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }
.character-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.character-grid button { aspect-ratio: 1; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.post-thumb { display: block; width: 140px; aspect-ratio: 16 / 10; object-fit: cover; margin: 12px 0 0; }
.post-body font[face="Batang"] { font-family: Batang, "바탕", serif !important; }
.post-body font[face="ChosunilboMyungjoWeb"] { font-family: "ChosunilboMyungjoWeb", Batang, serif !important; }
.post-body font[face="NanumGothicWeb"] { font-family: "NanumGothicWeb", "나눔고딕", sans-serif !important; }
.post-body font[face="Times New Roman"] { font-family: "Times New Roman", serif !important; }
.post-body font[face="Helvetica"] { font-family: Helvetica, Arial, sans-serif !important; }
.post-body font[face="Courier New"] { font-family: "Courier New", monospace !important; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 1fr) minmax(140px, .65fr); gap: 14px; align-items: start; }
.field-help { font-size: .78rem; font-weight: 400; color: var(--muted); }
.preview-panel { padding: 22px; border: 1px solid var(--line); background: var(--white); }
.preview-heading { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.preview-panel .post-body { padding-top: 20px; }
.menu-form { display: grid; grid-template-columns: minmax(180px, 1fr) 120px auto; gap: 12px; align-items: end; padding: 22px 0 32px; border-bottom: 1px solid var(--line); }
.menu-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 400; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.post-body img { max-width: 100%; height: auto; }
.post-body pre { max-width: 100%; overflow-x: auto; padding: 14px; background: #ecece7; }
.post-body blockquote { margin-inline: 0; padding-left: 18px; border-left: 3px solid var(--line); color: var(--muted); }
@media (max-width: 600px) {
  .site-header, .page-shell, footer { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 68px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding: 12px 0; }
  nav { width: 100%; gap: 16px; overflow-x: auto; font-size: .84rem; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .page-shell { display: block; }
  .intro { padding: 58px 0 48px; }
  .section-heading, .admin-list article { align-items: flex-start; flex-direction: column; }
  .search, .search input { width: 100%; }
  .panel { margin-top: 38px; }
  .sidebar { position: static; padding: 0 0 58px; }
  .related-posts a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .editor-grid, .menu-form { grid-template-columns: 1fr; }
  .rich-editor { min-height: 280px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .page-shell { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
}


/* 2026-10-22 compact blog layout */
.header-identity { display: flex; align-items: baseline; gap: 16px; }
.brand { font-size: 18px; }
.header-about { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.intro h1 { font-size: clamp(1.4rem, 5.6vw, 2.52rem); font-weight: 700; }
.search { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.search input { width: 180px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 7px 2px; }
.search input[hidden] { display: none; }
.search-toggle { width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; }
.search-toggle:hover, .search-toggle:focus-visible { border-color: var(--ink); background: var(--white); }
.search-toggle svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.clock-widget { display: grid; gap: 10px; }
.flip-clock { display: grid; grid-template-columns: 42px 8px 42px 8px 42px; align-items: center; width: max-content; font-family: "Courier New", monospace; font-variant-numeric: tabular-nums; }
.flip-card { position: relative; display: grid; place-items: center; width: 42px; height: 48px; overflow: hidden; border: 1px solid #202020; border-radius: 3px; background: #2a2a2a; color: #fff; font-size: 1.35rem; line-height: 1; box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); }
.flip-card::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid rgba(0,0,0,.8); }
.flip-card.is-flipping { animation: flip-tick .28s ease-out; }
.clock-separator { color: var(--muted); text-align: center; font: 700 1rem/1 "Courier New", monospace; }
.clock-zone { color: var(--muted); font: .68rem/1 "Courier New", monospace; letter-spacing: .12em; }
@keyframes flip-tick { 0% { transform: rotateX(-35deg); opacity: .55; } 100% { transform: rotateX(0); opacity: 1; } }
@media (max-width: 600px) {
  .header-identity { width: 100%; justify-content: space-between; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; }
}

/* Compact administrator login */
.login-panel { max-width: 620px; }
.login-panel h1 { font-size: clamp(1rem, 3vw, 1.8rem); font-weight: 600; margin-bottom: 0; }
.login-form { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) auto; align-items: end; gap: 10px; margin-top: 22px; }
.login-form label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: .78rem; }
.login-form input { min-width: 0; height: 34px; padding: 6px 9px; font-size: .9rem; }
.login-submit { min-width: 72px; min-height: 34px; padding: 5px 12px; }
@media (max-width: 420px) {
  .login-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
  .login-submit { min-width: 58px; padding-inline: 8px; }
}

/* Compact post management heading */
.admin-panel .section-heading h1 { font-size: clamp(1rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 0; }
.admin-heading-actions { gap: 6px; }
.admin-heading-actions .button { min-height: 27px; padding: 4px 9px; font-size: .7rem; }

/* Header spacing and wood clock panel */
.brand { letter-spacing: .04em; }
.clock-widget {
  padding: 16px;
  border: 1px solid #5d4129;
  border-radius: 2px;
  background-color: #7b5635;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 22px, rgba(47,28,15,.22) 23px, rgba(47,28,15,.22) 24px),
    repeating-linear-gradient(93deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 7px, rgba(34,20,10,.035) 8px, rgba(34,20,10,.035) 14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(42,24,12,.25);
}
.clock-widget h2 { color: #fff8ec; margin-bottom: 2px; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.clock-date { color: #f5eadb; font: .88rem/1.2 "Courier New", monospace; letter-spacing: .04em; text-shadow: 0 1px 0 rgba(0,0,0,.4); }

/* Mechanical flip clock with supplied oak background */
.clock-widget {
  gap: 12px;
  padding: 16px;
  border: 1px solid #9b774d;
  background: rgba(245,229,192,.2) url("clock-wood.png") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(87,55,27,.18), 0 1px 2px rgba(35,25,15,.12);
}
.clock-widget h2 { color: #2c241c; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.flip-clock { display: grid; grid-template-columns: repeat(3, 62px); gap: 8px; width: max-content; perspective: 700px; }
.clock-separator { display: none; }
.flip-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 72px;
  overflow: visible;
  border: 1px solid #222;
  border-radius: 7px;
  background: linear-gradient(#4b4b4b 0 49.5%, #3c3c3c 50.5% 100%);
  color: #f5f5f5;
  font: 700 3.15rem/.95 Arial, Helvetica, sans-serif;
  letter-spacing: -.06em;
  text-indent: -.06em;
  box-shadow: 0 3px 0 #272727, 0 6px 0 #202020, 0 8px 7px rgba(0,0,0,.3), inset 0 1px 6px rgba(255,255,255,.08);
  transform-style: preserve-3d;
}
.flip-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(0,0,0,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.flip-leaf {
  position: absolute;
  z-index: 3;
  inset: 0 0 50%;
  height: 50%;
  transform-origin: bottom;
  transform-style: preserve-3d;
  animation: mechanical-flip .58s cubic-bezier(.32,.05,.22,1);
}
.flip-leaf-front, .flip-leaf-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  height: 200%;
  overflow: hidden;
  border-radius: 6px;
  backface-visibility: hidden;
  background: linear-gradient(#4d4d4d 0 49.5%, #3c3c3c 50.5% 100%);
  color: #f5f5f5;
  font: 700 3.15rem/.95 Arial, Helvetica, sans-serif;
  letter-spacing: -.06em;
  text-indent: -.06em;
  padding-top: 12px;
}
.flip-leaf-back {
  transform: rotateX(180deg);
  background: linear-gradient(#3a3a3a 0 49.5%, #454545 50.5% 100%);
}
.clock-date-row { display: flex; align-items: center; gap: 8px; color: #302519; font-family: "Courier New", monospace; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.clock-weekday, .clock-date { font-size: .88rem; line-height: 1.2; letter-spacing: .02em; }
.clock-weekday.is-weekend { color: #1759b6; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
@keyframes mechanical-flip {
  0% { transform: rotateX(0deg); filter: brightness(1); }
  45% { transform: rotateX(-90deg); filter: brightness(.72); }
  55% { transform: rotateX(-92deg); filter: brightness(.66); }
  100% { transform: rotateX(-180deg); filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-leaf { animation-duration: 1ms; }
}

/* Stable flip motion and mahogany clock finish */
.clock-widget {
  border-color: #4f2425;
  background-color: #642d32;
  background-image: linear-gradient(rgba(83,27,32,.62), rgba(61,19,24,.68)), url("clock-wood.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(35,8,12,.38), 0 1px 3px rgba(35,12,14,.2);
}
.clock-widget h2 { color: #fff7f3; font-weight: 700; text-shadow: 0 1px 1px rgba(30,5,8,.65); }
.flip-card.is-flipping { animation: flip-tick .28s ease-out; }
.clock-date-row { color: #fff7f3; font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-shadow: 0 1px 1px rgba(30,5,8,.65); }
.clock-weekday, .clock-date { font-family: Arial, Helvetica, sans-serif; font-size: .88rem; font-weight: 700; }
.clock-weekday.is-weekend { color: #72a9ff; text-shadow: 0 1px 1px rgba(16,27,54,.8); }

/* Preserve the oak grain with a restrained reddish-brown stain */
.clock-widget {
  border-color: #704633;
  background-color: #8b5b43;
  background-image: linear-gradient(rgba(105,54,37,.28), rgba(88,40,30,.36)), url("clock-wood.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply, normal;
}
