  :root{
    --ink:#181818;
    --paper:#faf9f6;
    --paper-2:#f0efe9;
    --scandal:#d6265c;
    --gray:#7a7772;
    --line:#e2e0d8;
    --edit:#2e7dd6;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{
    font-family:'Noto Sans KR', sans-serif;
    background:var(--paper);
    color:var(--ink);
    line-height:1.6;
    padding-bottom:70px;
  }
  .site{max-width:1240px; margin:0 auto; padding:0 32px;}

  @media (min-width:1000px){
    .grid{grid-template-columns:repeat(3, 1fr);}
    .hero-headline{font-size:40px;}
    .hero-thumb{height:440px;}
    .card-thumb{height:230px;}
    .article-headline{font-size:34px;}
    .article-thumb{height:520px;}
  }

  .edit-toggle{
    position:fixed;
    bottom:20px;
    right:20px;
    z-index:100;
    width:50px;
    height:50px;
    padding:0;
    background:rgba(24,24,24,0.55);
    color:#fff;
    border:none;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,0.2);
  }
  .edit-toggle svg{ width:20px; height:20px; }
  body.editing .edit-toggle{ background:var(--edit); }
  .edit-actions{
    position:fixed;
    bottom:20px;
    right:82px;
    z-index:100;
    display:none;
    gap:8px;
  }
  body.editing .edit-actions{ display:flex; }
  .edit-actions button{
    background:#fff;
    color:var(--ink);
    border:1px solid var(--line);
    padding:13px 16px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,0.15);
    font-family:inherit;
    white-space:nowrap;
  }
  .edit-actions button:hover{ background:var(--paper-2); }
  .edit-actions #save-btn{
    background:var(--edit);
    border-color:var(--edit);
    color:#fff;
    padding:13px 26px;
  }
  .edit-actions #save-btn:hover{ background:#2568b3; }
  .save-indicator{
    position:fixed;
    bottom:20px;
    left:20px;
    z-index:100;
    background:#fff;
    border:1px solid var(--line);
    color:var(--gray);
    font-size:12px;
    padding:8px 14px;
    border-radius:20px;
    display:none;
    box-shadow:0 4px 14px rgba(0,0,0,0.1);
  }
  .save-indicator.show{ display:block; }
  .edit-banner{
    display:none;
    background:var(--edit);
    color:#fff;
    text-align:center;
    font-size:12px;
    padding:8px;
    font-weight:500;
  }
  body.editing .edit-banner{ display:block; }

  body.editing [data-field]{
    outline:1px dashed var(--edit);
    outline-offset:2px;
    border-radius:2px;
    cursor:text;
  }
  body.editing [data-field]:focus{
    outline:2px solid var(--edit);
    background:rgba(46,125,214,0.06);
  }
  body.editing .thumb{ cursor:pointer; position:relative; }
  body.editing .thumb::after{
    content:'사진 · 영역 편집';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:700;
    opacity:0;
    transition:opacity .15s ease;
  }
  body.editing .thumb:hover::after{ opacity:1; }
  body.editing .card, body.editing .hero{ cursor:default; }

  .ticker-wrap{
    display:flex;
    align-items:stretch;
    background:var(--ink);
    color:var(--paper);
    overflow:hidden;
    font-size:13px;
    letter-spacing:0.02em;
  }
  .ticker-wrap .label{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    background:var(--scandal);
    color:#fff;
    font-weight:700;
    padding:6px 14px;
  }
  .ticker-viewport{
    flex:1;
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    padding:6px 0 6px 14px;
  }
  .ticker-inner{
    display:inline-block;
    animation:scroll-left 28s linear infinite;
  }
  .ticker-inner span{margin-right:48px;}
  @keyframes scroll-left{
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
  }

  .masthead{
    padding:28px 20px 18px;
    border-bottom:4px solid var(--ink);
    text-align:center;
  }
  .masthead .logo{
    font-family:'Black Han Sans', sans-serif;
    font-size:52px;
    letter-spacing:0.02em;
    color:var(--ink);
    line-height:1;
  }
  .masthead .logo span{color:var(--scandal);}
  .masthead .tagline{
    font-size:12px;
    color:var(--gray);
    letter-spacing:0.15em;
    margin-top:6px;
    font-weight:500;
  }
  .masthead .dateline{
    font-size:12px;
    color:var(--gray);
    margin-top:10px;
    border-top:1px solid var(--line);
    padding-top:10px;
  }

  .hero{
    display:grid;
    grid-template-columns:1fr;
    margin:24px 0 28px;
    cursor:pointer;
    border-bottom:1px solid var(--line);
    padding-bottom:24px;
  }
  .hero-thumb{
    height:340px;
    border-radius:2px;
    display:flex;
    align-items:flex-end;
    padding:16px;
    position:relative;
    overflow:hidden;
    background-size:cover;
    background-position:center;
  }
  .stamp{
    position:absolute;
    top:8px;
    right:-18px;
    background:var(--scandal);
    color:#fff;
    font-weight:900;
    font-size:18px;
    padding:5px 65px;
    transform:rotate(28deg);
    letter-spacing:0.1em;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
    white-space:nowrap;
  }
  .card .stamp{
    top:8px;
    right:-14px;
    font-size:14px;
    padding:3px 40px;
  }
  .cat{
    color:#fff;
    font-size:12px;
    font-weight:700;
    background:rgba(0,0,0,0.35);
    padding:4px 10px;
    border-radius:3px;
    letter-spacing:0.05em;
    display:inline-block;
  }
  .card .cat{ font-size:10px; padding:3px 8px; }
  .hero-headline{
    font-family:'Black Han Sans', sans-serif;
    font-size:34px;
    line-height:1.25;
    margin:14px 0 8px;
  }
  .hero-sub{
    color:var(--gray);
    font-size:15px;
  }
  .hero-meta{
    font-size:12px;
    color:var(--gray);
    margin-top:10px;
  }

  .section-label{
    font-size:13px;
    font-weight:700;
    letter-spacing:0.1em;
    color:var(--scandal);
    margin-bottom:14px;
    border-left:4px solid var(--scandal);
    padding-left:8px;
  }
  .grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
    margin-bottom:36px;
  }
  .card{
    cursor:pointer;
    border:1px solid var(--line);
    background:#fff;
    border-radius:4px;
    overflow:hidden;
    transition:box-shadow .15s ease, transform .15s ease;
  }
  .card:hover{
    box-shadow:0 6px 16px rgba(0,0,0,0.08);
    transform:translateY(-2px);
  }
  .card-thumb{
    height:190px;
    position:relative;
    display:flex;
    align-items:flex-end;
    padding:10px;
    background-size:cover;
    background-position:center;
  }
  .card-body{padding:14px;}
  .card-headline{
    font-size:16px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:8px;
  }
  .card-meta{
    font-size:11px;
    color:var(--gray);
  }

  .page-view{display:none;}
  .page-view.active{display:block;}

  /* 검색 화면 */
  .search-top{
    display:flex;
    align-items:center;
    gap:14px;
    padding:24px 0 18px;
    border-bottom:1px solid var(--line);
    margin-bottom:24px;
  }
  .search-logo{
    font-family:'Black Han Sans', sans-serif;
    font-size:22px;
    color:var(--ink);
    white-space:nowrap;
  }
  .search-box{
    flex:1;
    display:flex;
    align-items:center;
    background:var(--paper-2);
    border-radius:24px;
    padding:11px 18px;
    gap:8px;
  }
  .search-box input{
    flex:1;
    border:none;
    background:transparent;
    outline:none;
    font-size:15px;
    font-family:inherit;
    color:var(--ink);
  }
  .search-box .search-icon{ font-size:15px; color:var(--gray); }

  .search-empty{
    text-align:center;
    color:var(--gray);
    font-size:14px;
    padding:70px 20px;
    line-height:1.9;
  }
  .search-hint{ font-size:12px; color:#a8a49c; }

  .profile-card{
    display:flex;
    gap:20px;
    padding:8px 0 24px;
    border-bottom:1px solid var(--line);
    margin-bottom:24px;
  }
  .profile-photo{
    width:96px;
    height:96px;
    border-radius:50%;
    flex-shrink:0;
    background-size:cover;
    background-position:center;
    cursor:pointer;
  }
  .profile-info{ flex:1; padding-top:2px; }
  .profile-name{ font-size:21px; font-weight:700; margin-bottom:4px; }
  .profile-role{ font-size:13px; color:var(--gray); margin-bottom:12px; }
  .profile-meta{ font-size:13px; border-collapse:collapse; }
  .profile-meta td{ padding:3px 0; color:#3a3a3a; vertical-align:top; }
  .profile-meta td:first-child{ color:var(--gray); width:56px; padding-right:12px; white-space:nowrap; }

  .search-result-row{
    display:flex;
    gap:14px;
    padding:18px 0;
    border-bottom:1px solid var(--line);
    cursor:pointer;
  }
  .search-result-thumb{
    width:110px;
    height:82px;
    border-radius:4px;
    flex-shrink:0;
    background-size:cover;
    background-position:center;
  }
  .search-result-body{ flex:1; min-width:0; }
  .search-result-source{
    font-size:11px;
    color:var(--scandal);
    font-weight:700;
    margin-bottom:5px;
  }
  .search-result-headline{
    font-size:16px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:5px;
  }
  .search-result-sub{
    font-size:13px;
    color:#5a5750;
    margin-bottom:6px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .search-result-meta{ font-size:11px; color:var(--gray); }

  .search-footer-link{
    text-align:center;
    padding:28px 0 12px;
    font-size:13px;
  }
  .search-footer-link a, .back-to-search a{
    color:var(--gray);
    text-decoration:none;
  }
  .search-footer-link a:hover, .back-to-search a:hover{ text-decoration:underline; }
  .back-to-search{ padding:18px 0 0; font-size:13px; }

  .back-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:none;
    border:1px solid var(--line);
    color:var(--ink);
    font-size:13px;
    padding:8px 14px;
    border-radius:4px;
    cursor:pointer;
    margin:20px 0;
    font-family:inherit;
  }
  .back-btn:hover{background:var(--paper-2);}

  .article-cat{
    display:inline-block;
    color:#fff;
    background:var(--scandal);
    font-size:12px;
    font-weight:700;
    padding:4px 10px;
    border-radius:3px;
    margin-bottom:14px;
  }
  .article-headline{
    font-family:'Black Han Sans', sans-serif;
    font-size:30px;
    line-height:1.3;
    margin-bottom:10px;
  }
  .article-sub{
    font-size:16px;
    color:var(--gray);
    margin-bottom:16px;
  }
  .article-meta{
    font-size:12px;
    color:var(--gray);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    padding:10px 0;
    margin-bottom:24px;
    display:flex;
    justify-content:space-between;
  }
  .article-thumb{
    height:300px;
    border-radius:4px;
    margin-bottom:24px;
    background-size:cover;
    background-position:center;
  }
  .article-body p{
    font-size:16px;
    margin-bottom:18px;
    color:#2a2a2a;
  }
  .photo-credit{
    margin-top:-14px;
    margin-bottom:24px;
    padding:12px 16px;
    background:var(--paper-2);
    border-radius:4px;
  }
  .photo-credit .credit-line{
    font-size:12px;
    color:var(--gray);
    font-weight:500;
  }
  .photo-credit .credit-notice{
    font-size:11px;
    color:var(--gray);
    margin-top:4px;
  }
  .disclaimer{
    margin-top:36px;
    padding:14px 16px;
    background:var(--paper-2);
    border-radius:4px;
    font-size:12px;
    color:var(--gray);
  }
  footer{
    margin-top:40px;
    padding:24px 0 40px;
    border-top:1px solid var(--line);
    text-align:center;
    font-size:11px;
    color:var(--gray);
  }

  /* 이미지 영역(초점) 편집 모달 */
  .img-editor{
    position:fixed;
    inset:0;
    z-index:200;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.6);
    padding:20px;
  }
  .img-editor.open{ display:flex; }
  .img-editor-panel{
    background:#fff;
    border-radius:8px;
    padding:20px;
    max-width:640px;
    width:100%;
    max-height:92vh;
    overflow-y:auto;
    box-shadow:0 10px 40px rgba(0,0,0,0.3);
  }
  .img-editor-title{
    font-weight:700;
    font-size:15px;
    margin-bottom:12px;
  }
  .img-editor-stage{
    position:relative;
    display:block;
    width:100%;
    background:var(--paper-2);
    border:1px solid var(--line);
    border-radius:4px;
    overflow:hidden;
    touch-action:none;
    user-select:none;
    min-height:120px;
  }
  .img-editor-stage img{
    display:block;
    width:100%;
    max-height:52vh;
    object-fit:contain;
    pointer-events:none;
    -webkit-user-drag:none;
  }
  .img-editor-region{
    position:absolute;
    box-sizing:border-box;
    border:2px dashed #fff;
    box-shadow:0 0 0 9999px rgba(0,0,0,0.45);
    pointer-events:none;
  }
  .img-editor-region.round{ border-radius:50%; }
  .img-editor-region .h{
    position:absolute;
    width:12px;
    height:12px;
    background:#fff;
    border:2px solid var(--edit);
    border-radius:50%;
    box-shadow:0 1px 4px rgba(0,0,0,0.4);
  }
  .img-editor-region .h.tl{ left:-7px; top:-7px; }
  .img-editor-region .h.tr{ right:-7px; top:-7px; }
  .img-editor-region .h.bl{ left:-7px; bottom:-7px; }
  .img-editor-region .h.br{ right:-7px; bottom:-7px; }
  .img-editor-empty{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:13px;
    color:var(--gray);
    line-height:1.8;
  }
  .img-editor-hint{
    font-size:12px;
    color:var(--gray);
    margin:10px 0 14px;
  }
  .img-editor-preview-row{
    display:flex;
    gap:14px;
    align-items:center;
    margin-bottom:16px;
  }
  .img-editor-preview{
    flex:1;
    height:90px;
    cursor:grab;
    touch-action:none;
    user-select:none;
    border-radius:4px;
    border:1px solid var(--line);
    background-size:cover;
    background-repeat:no-repeat;
    background-color:var(--paper-2);
  }
  .img-editor-preview.round{
    flex:0 0 90px;
    width:90px;
    border-radius:50%;
  }
  .img-editor-actions{
    display:flex;
    gap:8px;
    align-items:center;
  }
  .img-editor-actions .spacer{ flex:1; }
  .img-editor-actions button{
    font-family:inherit;
    font-size:13px;
    font-weight:700;
    padding:10px 16px;
    border-radius:4px;
    border:1px solid var(--line);
    background:#fff;
    color:var(--ink);
    cursor:pointer;
  }
  .img-editor-actions button:hover{ background:var(--paper-2); }
  .img-editor-actions button.primary{
    background:var(--edit);
    border-color:var(--edit);
    color:#fff;
  }
  .img-editor-actions button.primary:hover{ background:#2568b3; }

  @media (max-width:600px){
    .grid{grid-template-columns:1fr;}
    .masthead .logo{font-size:38px;}
    .hero-headline{font-size:26px;}
    .article-headline{font-size:24px;}
    .edit-actions{ right:20px; bottom:82px; flex-direction:column; align-items:flex-end; }
  }
