/* =========================================================
   bareframe/single.css
   役割：single（記事本文）専用の可読性確保
   方針：演出しない／整えるだけ
   ========================================================= */



/* single / page は main の幅に完全追従させる */
.single,
.page{
  width: 100%;
  max-width: none;
  margin: 0;
}


.single,
.page{
  position: relative;
  z-index: 2;   /* ★main::before（z=1）より前へ */
}



/* =========================================================
   single / page : background
   ========================================================= */

/* single/page は main 幅に追従済みの前提 */
.single,
.page{
  position: relative;
  overflow: hidden;
}

/* 背景は疑似要素に置いて透過させる（本文は透けない） */
.single::before,
.page::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/page-back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

    pointer-events: none;
  z-index: 0;
}

/* 本文・ヘッダー等は背景より前に */
.single > *,
.page > *{
  position: relative;
  z-index: 1;
}


/* ===== header ===== */

.single__header{
  margin-bottom: 36px;
}

.single__title{
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.single__meta{
  font-size: 24px;
  color: var(--muted);
}

/* ===== content ===== */
.single__content,
.page__content{
  max-width: 880px;
  margin: 0 auto;
}


.single__content{
  font-size: 32px;
  line-height: 1.8;
}

/* 段落 */
.single__content p{
  margin: 0 0 1.6em;
}

/* 見出し（意味を足さない） */
.single__content h2{
  font-family: var(--mono);
  font-size: 32px;
  margin: 2.8em 0 1em;
  letter-spacing: .04em;
}

.single__content h3{
  font-family: var(--mono);
  font-size: 26px;
  margin: 2.4em 0 .8em;
  letter-spacing: .04em;
}

/* リンク（本文内） */
.single__content a{
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* リスト */
.single__content ul,
.single__content ol{
  margin: 0 0 1.6em 1.4em;
}

/* 引用 */
.single__content blockquote{
  margin: 2em 0;
  padding-left: 1em;
  border-left: 2px solid var(--line-2);
  color: var(--muted);
}

/* コード（最小） */
.single__content code{
  font-family: var(--mono);
  font-size: .9em;
}

/* ===== footer ===== */

.single__footer{
  margin-top: 48px;
}

.single__categories{
  display: flex;
  gap: 10px;
  
}

.single__category{
  font-size: 24px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 2px 6px;
}

/* ===== prev / next ===== */

.single__nav{
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}

.single__nav a{
  font-family: var(--mono);
  font-size: 36px;
  color: var(--muted);
}

.single__nav a:hover{
  color: var(--fg);
}