:root{
  --bg: #f4f2f0;
  --paper: #fbfaf9;
  --line: #e7e2dd;
  --text: #2b2b2b;
  --muted: #6f6a65;

  --frame-max: 1100px;
  --padX: clamp(18px, 4vw, 56px);
  --padY: clamp(18px, 4vw, 44px);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

a{ color: inherit; text-decoration: none; }

.page{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(18px, 4vw, 48px);
}

.frame{
  width: 100%;
  max-width: var(--frame-max);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
.note-frame{
  padding-left: 5%;
  padding-right: 5%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.frame-inner{
  width: 100%;
  padding: var(--padY) var(--padX);
}

.top{
  text-align:center;
  padding-top: 6px;
  padding-bottom: 18px;
}

.top-brand{
  font-size: 40px;
  color: var(--muted);
}

.rule{
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.hero{
  text-align:center;
  padding: clamp(22px, 3vw, 40px) 0 clamp(22px, 3vw, 40px);
}

.hero-title{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 500;
  letter-spacing: -0.3px;
  color: #4a4642;
}

.thumbs{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 230px));
  gap: clamp(12px, 2vw, 18px);
  padding: 10px 0 clamp(26px, 3vw, 40px);
  align-items:center;
  justify-content: center;
}

.thumb{
  display:block;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  padding: 0%;
  line-height: 0;
}

.thumb img{
  width: 100%;
  height: auto;
  object-fit: cover;
  display:block;
}

.thumb.wide{
  grid-column: span 2;
}

.bottom-rule{
  margin-top: 18px;
}

.bottom{
  text-align:center;
  padding: 22px 0 8px;
}

.bottom-copy{
  font-size: 14px;
  color: var(--muted);
}
.top-links{
  margin-top: 10px;
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
.top-links a{ color: var(--muted); }
.top-links a:hover{ text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 720px){

  .thumbs{ grid-template-columns: 1fr; justify-content: center;}
  .thumb img{ height: auto; width: auto; max-width: 100%; display: block;}
  .thumb.wide{grid-column: auto;}
  .top-links{ gap: 14px; flex-wrap: wrap; }
}
.page-selected-card .selected{
  display: grid;
  grid-template-columns: 0.5fr 1fr; 
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(18px, 3vw, 26px) 0;
  align-items: start;
}

.page-selected-card .selected-media{
  border: 1px solid var(--line);
  background: #fff;
}
.page-selected-card .selected-media img{
  width: 100%;
  height: auto;
  display: block;
}
.page-selected-card .zoom{
  display: block;
}

.page-selected-card .selected-meta{
  padding-top: 4px;
  text-align: left;
}
.page-selected-card .work-title{
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #4a4642;
}
.page-selected-card .work-note{
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 46ch;
}

.page-selected-card .work-spec{
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.page-selected-card .work-spec > div{
  display: grid;

  gap: 12px;
}
.page-selected-card dt{
  font-size: 13px;
  color: var(--muted);
}
.page-selected-card dd{
  margin: 0;
  font-size: 13px;
  color: #4a4642;
}

.page-selected-card .hint{
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.page-selected-card .pager{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  color: var(--muted);
}
.page-selected-card .pager-link{
  font-size: 14px;
  color: var(--muted);
}
.page-selected-card .pager-link:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px){
  .page-selected-card .selected{
    grid-template-columns: 1fr;
  }
  .page-selected-card .selected-meta{
    text-align: left;
  }
}
.page-title{
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #4a4642;
}

.page-tools-card .tools-hero{
  text-align: center;
  padding: clamp(26px, 4vw, 44px) 0 10px;
}
.page-tools-card .page-note{
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 55ch;
}

.page-tools-card .tools-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  padding: 18px 0 clamp(22px, 4vw, 44px);
}

.page-tools-card .tool{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}

.page-tools-card .tool-media{
  border: 1px solid var(--line);
  background: #fff;
}
.page-tools-card .tool-media img{
  width: 100%;
  height: auto;
  display: block;
}

.page-tools-card .tool-title{
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #4a4642;
}
.page-tools-card .tool-sub{
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 45ch;
}

@media (max-width: 720px){
  .page-tools-card .tools-grid{ grid-template-columns: 1fr; }
  .page-tools-card .tool{ grid-template-columns: 120px 1fr; }
}

.page-about-card .about-hero{
  text-align: center;
  padding: clamp(26px, 4vw, 44px) 0 8px;
}

.page-about-card .avatar{
  width: 120px;
  height: 120px;
  margin: 18px auto 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.page-about-card .avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.page-about-card .about-lede{
  margin: 18px auto 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 60ch;
}

.page-about-card .about-body{
  padding: 10px 0 clamp(22px, 4vw, 44px);
  max-width: 65ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  text-align: left;
}
.page-about-card .about-body p{
  margin: 0 0 14px;
}
.page-about-card .about-body p:last-child{
  margin-bottom: 0;
}
.page-about-card strong{
  color: #4a4642;
  font-weight: 600;
}

@media (max-width: 720px){
  .page-about-card .about-body{ text-align: left; }
}
.page-notes-card .notes-hero{
  text-align: center;
  padding: clamp(26px, 4vw, 44px) 0 6px;
}

.page-notes-card .notes-lede{
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 60ch;
}

.page-notes-card .notes-list{
  padding: 18px 0 clamp(22px, 4vw, 44px);
  max-width: 70ch;
  margin: 0 auto;
}

.page-notes-card .note{
  padding: 18px 0;
}

.page-notes-card .note + .note{
  border-top: 1px solid var(--line);
}

.page-notes-card .note-title{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #4a4642;
}

.page-notes-card .note-body{
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

@media (max-width: 720px){
  .page-notes-card .notes-list{
    max-width: 62ch;
  }
  .page-notes-card .note{
    padding: 16px 0;
  }
}

/* ---------- Projects (center card like mockup) ---------- */
.page-projects-card .projects-hero{
  text-align: center;
  padding: clamp(26px, 4vw, 44px) 0;
}

.page-projects-card .projects-kicker{
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.page-projects-card .projects-title{
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.6px;
  color: #4a4642;
  font-weight: 500;
}

.page-projects-card .projects-sub{
  margin: 14px auto 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}

/* 가운데 카드 정렬 */
/* ---------- Projects (max 4 per row, mobile 1 per view) ---------- */
.page-projects-card .projects-center{
  display: flex;
  justify-content: center;
  padding: clamp(18px, 3vw, 30px) 0 clamp(26px, 4vw, 44px);
}

/* 가운데에 모이는 그리드: 한 줄 최대 4개 */
.page-projects-card .projects-grid{
  width: 100%;
  max-width: 980px; /* 원하면 1000~1040까지 올려도 좋음 */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

/* 카드: 홈/노트 결 유지(조용한 보더) */
.page-projects-card .project-card{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;

  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;

  text-decoration: none;
  color: inherit;
}

.page-projects-card .project-thumb{
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.page-projects-card .project-thumb img{
  display: block;
  width: 100%;
  height: auto;
}

.page-projects-card .project-no{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.page-projects-card .project-name{
  font-size: 16px;
  letter-spacing: -0.2px;
  color: #4a4642;
  margin: 0 0 6px;
  font-weight: 600;
}

.page-projects-card .project-status{
  font-size: 13px;
  color: var(--muted);
}

.page-projects-card .project-card:hover{
  border-color: #d9d9d9; /* 과하지 않게 */
}

/* 반응형: 4 -> 2 -> 1 */
@media (max-width: 1100px){
  .page-projects-card .projects-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .page-projects-card .projects-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* "한 화면에 프로젝트 하나" 느낌: 카드 자체를 크게 */
  .page-projects-card .project-card{
    padding: 18px;
    min-height: 70vh;          /* 화면당 하나 느낌 */
    display: grid;
    align-content: center;     /* 카드 내용이 위로 쏠리지 않게 */
  }

  .page-projects-card .project-thumb{
    max-width: 520px;
    margin: 0 auto;
  }

  .page-projects-card .project-info{
    text-align: center;
  }
}

/* Selected page: landscape variant */
.page-selected-card .selected.is-landscape{
  grid-template-columns: 1.2fr 0.8fr; /* 왼쪽(이미지) 더 넓게 */
}

@media (max-width: 720px){
  .page-selected-card .selected.is-landscape{
    grid-template-columns: 1fr; /* 모바일은 그대로 1열 */
  }
}