/* ==========================================================
   HOME — PAPER MEMO PAD
   ----------------------------------------------------------
   index.html 전용 스타일입니다.
   공통 파일(base / shell / effects.css)은 그대로 두고,
   이 파일이 index에서만 그 위를 덮어씁니다.
   → DREAM / 상세 페이지 디자인에는 영향 없음

   장식은 네 가지만 사용합니다.
   1) 마스킹 테이프   : 붙여둔 메모, 열어볼 수 있는 라벨
   2) 형광펜          : 제목 강조, hover
   3) 점선 · 줄노트    : 구획, 받아 적는 줄
   4) 체크박스         : 짧은 목록
========================================================== */


/* ==========================================================
   TOKENS
========================================================== */

:root {
  /* paper */
  --paper: #fbf8f1;
  --paper-note: #fffdf8;
  --paper-edge: #ebe4d6;
  --paper-edge-dark: #d5cbb7;
  --desk: #dbd6cd;

  /* ink */
  --ink: #2f2b26;
  --ink-soft: #736c61;
  --rule: #e7e0d3;
  --rule-strong: #ccc2af;

  /* accent — 블루블랙 잉크 + 버터 형광펜 */
  --pen: #46597a;
  --marker: rgba(240, 208, 104, 0.5);
  --marker-solid: #f4e3a6;

  /* tape */
  --tape: rgba(219, 206, 181, 0.72);
  --tape-pen: rgba(172, 189, 215, 0.62);

  /* type */
  --font-display: "Gowun Batang", "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-hand: "Nanum Pen Script", "Gowun Batang", cursive;

  /* 공통 토큰을 이 페이지에서만 재정의 */
  --color-background: var(--paper);
  --color-surface: var(--paper-note);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-line: var(--rule-strong);
  --color-accent: var(--pen);

  --header-height: 68px;
  --space-section: 92px;
  --sheet-pad: 56px;

  /* 종이 결 */
  --grain: url("../assets/home-grain.png");

  /* 점선 (구획선 · 절취선) */
  --dots: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.5px);
}


/* ==========================================================
   DESK & PAD
========================================================== */

body {
  background-color: var(--desk);
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.38), transparent 65%),
    var(--grain);
  color: var(--ink);
}

::selection {
  background: var(--marker-solid);
  color: var(--ink);
}

:focus-visible {
  outline: 1.5px dashed var(--pen);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 떡메모지 한 묶음 */
.site {
  position: relative;

  width: min(100% - 64px, 1080px);
  min-height: calc(100vh - 104px);
  margin: 40px auto 64px;
  padding-top: 14px;

  background-color: var(--paper);
  background-image: var(--grain);
  border-radius: 2px 2px 3px 3px;

  /* 아래로 겹겹이 보이는 종이 단면 */
  box-shadow:
    0 1px 0 var(--paper-edge-dark),
    0 2px 0 var(--paper),
    0 3px 0 var(--paper-edge-dark),
    0 4px 0 var(--paper),
    1px 5px 0 var(--paper-edge-dark),
    1px 6px 0 var(--paper-edge),
    1px 7px 0 var(--paper-edge-dark),
    1px 8px 1px rgba(80, 64, 40, 0.18),
    0 26px 44px -24px rgba(70, 55, 35, 0.4),
    0 2px 8px rgba(70, 55, 35, 0.06);

  overflow-x: clip;
}

/* 윗면 풀칠 부분 */
.site::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;

  height: 14px;
  border-radius: 2px 2px 0 0;

  background:
    repeating-linear-gradient(90deg, rgba(110, 90, 60, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(#e4dccb, #efe9dd 72%, #e9e2d4);
  box-shadow: inset 0 -1px 0 rgba(120, 100, 70, 0.14);

  pointer-events: none;
}


/* ==========================================================
   HEADER — 메모지 상단 인쇄 영역
========================================================== */

.site-header {
  top: 0;
  height: var(--header-height);
  padding: 0 var(--sheet-pad);

  background-color: var(--paper);
  background-image: var(--grain);
  border-bottom: 0;
}

/* 절취선 */
.site-header::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;

  height: 4px;
  background: var(--dots) 0 50% / 9px 4px repeat-x;
}

.site-logo {
  flex: none;

  color: var(--ink);

  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.site-nav {
  gap: 6px 22px;
}

.site-nav a {
  position: relative;
  isolation: isolate;

  padding: 4px 2px;

  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;

  background: linear-gradient(var(--marker), var(--marker)) 0 80% / 0% 45% no-repeat;

  transition:
    color 200ms ease,
    background-size 280ms ease,
    transform 200ms ease;
}

/* DREAM — 다른 페이지로 넘어가는 메뉴는 테이프 라벨로 */
.site-nav a[href$="dream.html"] {
  margin-left: 4px;
  padding: 5px 12px 4px;

  color: var(--pen);
  background: none;

  transform: rotate(-2deg);
}

.site-nav a[href$="dream.html"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 6px),
    var(--tape-pen);

  clip-path: polygon(
    0 0, 100% 0,
    calc(100% - 3px) 25%, 100% 50%, calc(100% - 2px) 75%, 100% 100%,
    0 100%,
    3px 72%, 0 48%, 2px 24%
  );

  transition: opacity 200ms ease;
}


/* ==========================================================
   SECTION 공통
========================================================== */

.section {
  padding: var(--space-section) var(--sheet-pad);
  scroll-margin-top: var(--header-height);
}

.section-about,
.section-links {
  border-top: 0;
}

/* ABOUT / LINKS 사이 점점점 절취선 */
.section-links {
  position: relative;
}

.section-links::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--sheet-pad);
  right: var(--sheet-pad);

  height: 4px;
  background: var(--dots) 0 50% / 9px 4px repeat-x;
}

/* 메모지 머리글 — 왼쪽 제목 / 오른쪽 No. 칸 */
.section-header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;

  margin-bottom: 44px;
  padding-bottom: 12px;

  border-bottom: 3px double var(--rule-strong);
}

.section-title {
  color: var(--ink);

  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.section-number {
  display: flex;
  align-items: baseline;
  gap: 8px;

  margin: 0 0 2px;

  color: var(--pen);

  font-family: var(--font-hand);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.section-number::before {
  content: "No.";
  content: "No." / "";

  color: var(--ink-soft);

  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}


/* ==========================================================
   HOME — 첫 장
========================================================== */

.section-home {
  min-height: min(calc(100vh - var(--header-height) - 118px), 620px);

  display: flex;
  align-items: center;

  padding-top: 72px;
  padding-bottom: 88px;

  background-color: var(--paper);
  background-image: url("../assets/images/hero/hero.png");
  background-image: image-set(
    url("../assets/images/hero/hero.webp") type("image/webp"),
    url("../assets/images/hero/hero.png") type("image/png")
  );
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero {
  display: block;
}

/* 제목 위에 손으로 적은 한 줄 */
.hero-eyebrow {
  width: fit-content;
  margin: 0 0 1px 3px;

  color: var(--pen);

  font-family: var(--font-hand);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: lowercase;

  transform: rotate(-2.5deg);
  transform-origin: left bottom;
}

/* 형광펜을 두 번 그은 제목 */
.hero-title {
  display: inline;

  padding: 0 0.06em;

  color: var(--ink);

  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;

  background-image:
    linear-gradient(transparent 64%, var(--marker) 64%, var(--marker) 83%, transparent 83%),
    linear-gradient(transparent 67%, rgba(240, 208, 104, 0.3) 67%, rgba(240, 208, 104, 0.3) 86%, transparent 86%);
  background-size: 97% 100%, 93% 100%;
  background-position: 0 0, 2% 0;
  background-repeat: no-repeat;

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 공식 영문 표기: pàopao */
.hero-romanization {
  margin: 9px 0 0 3px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-description {
  margin-top: 24px;

  color: #625c53;

  font-size: 0.875rem;
  letter-spacing: 0.16em;
}


/* ==========================================================
   ABOUT — 붙여둔 메모 + 받아 적은 항목
========================================================== */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

/* 테이프로 붙인 작은 메모지 */
.about-intro {
  position: relative;

  max-width: 480px;
  margin-top: 16px;
  padding: 44px 40px 34px;

  background-color: var(--paper-note);
  background-image: var(--grain);
  border-radius: 1px 2px 2px 1px;

  box-shadow:
    0 1px 1px rgba(70, 55, 35, 0.08),
    0 14px 26px -18px rgba(70, 55, 35, 0.36);

  word-break: keep-all;
  overflow-wrap: break-word;

  transform: rotate(-0.8deg);
}

.about-intro::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;

  width: 108px;
  height: 28px;

  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 6px),
    var(--tape);

  clip-path: polygon(
    0 0, 100% 0,
    calc(100% - 3px) 25%, 100% 50%, calc(100% - 2px) 75%, 100% 100%,
    0 100%,
    3px 72%, 0 48%, 2px 24%
  );

  transform: translateX(-50%) rotate(2.5deg);
}

/* 손글씨 라벨 (HELLO!, ACTIVITY …) */
.about-label,
.about-block-label {
  color: var(--pen);

  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.about-label {
  margin-bottom: 14px;
  font-size: 1.75rem;
}

.about-heading {
  margin: 0 0 20px;

  color: var(--ink);

  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.9vw, 2.35rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* 줄노트 위에 적은 본문 */
.about-description {
  max-width: none;

  color: var(--ink);

  font-size: 1rem;
  line-height: 2.1;

  background-image: linear-gradient(transparent calc(100% - 1px), var(--rule) 0);
  background-size: 100% 2.1em;
  background-position: 0 -0.18em;
}

/* 오른쪽 — 메모지에 바로 적은 항목들 */
.about-details {
  border-top: 0;
}

.about-block {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px 20px;
  align-items: baseline;

  padding: 22px 0 20px;
  border-bottom: 0;

  background: var(--dots) 0 100% / 7px 3px repeat-x;
}

.about-block:first-child {
  padding-top: 4px;
}

.about-block-label {
  margin: 0;
  font-size: 1.5rem;
}

.about-block-text {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* INTERESTS — 테이프 라벨 */
.about-tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.about-tag-list li {
  border: 0;
  border-radius: 0;
  overflow: visible;

  font-size: inherit;
  letter-spacing: normal;
}

.about-tag-list a,
.about-tag-list span {
  position: relative;
  isolation: isolate;

  display: inline-block;
  padding: 5px 14px 3px;

  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.about-tag-list a::before,
.about-tag-list span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 6px),
    var(--tape);

  clip-path: polygon(
    0 0, 100% 0,
    calc(100% - 3px) 25%, 100% 50%, calc(100% - 2px) 75%, 100% 100%,
    0 100%,
    3px 72%, 0 48%, 2px 24%
  );
}

/* 상세 페이지가 있는 관심사 */
.about-tag-list .has-detail a {
  color: var(--pen);

  text-decoration: underline dotted 1.5px;
  text-underline-offset: 4px;

  transform: rotate(-1.2deg);

  transition:
    transform 200ms ease,
    color 200ms ease;
}

.about-tag-list .has-detail a::before {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 6px),
    var(--tape-pen);
  transition: opacity 200ms ease;
}

/* 상세 페이지가 없는 관심사 */
.about-tag-list .no-detail span {
  color: var(--ink-soft);
  transform: rotate(0.8deg);
}

.about-tag-list .no-detail span::before {
  opacity: 0.55;
}

/* PROJECT MOON 목록 — 체크리스트 */
.about-sub-list {
  display: grid;
  gap: 10px;
}

.about-sub-list li {
  position: relative;

  padding-left: 30px;

  color: var(--ink);
  font-size: 0.975rem;
}

.about-sub-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;

  width: 14px;
  height: 14px;

  border: 1.5px solid var(--pen);
  border-radius: 3px 2px 3px 2px;
  opacity: 0.8;

  transform: rotate(-3deg);
}

.about-sub-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.12em;

  width: 6px;
  height: 13px;

  border-right: 2px solid var(--pen);
  border-bottom: 2px solid var(--pen);
  border-radius: 0 0 2px 0;

  transform: rotate(38deg);
}


/* ==========================================================
   LINKS — 줄 위에 적어둔 주소
========================================================== */

.link-list {
  display: flex;
  flex-direction: column;

  border-top: 0;
}

.link-item {
  position: relative;

  display: flex;
  align-items: baseline;
  gap: 6px 28px;

  min-height: 0;
  padding: 22px 4px 14px;

  border-bottom: 1px solid var(--rule);

  color: var(--ink);
  font-size: inherit;
  letter-spacing: normal;

  transition: transform 220ms ease;
}

.link-item span {
  flex: none;

  padding: 0 2px;

  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.08em;

  background: linear-gradient(var(--marker), var(--marker)) 0 80% / 0% 46% no-repeat;

  transition: background-size 320ms ease;
}

/* 실제 주소를 종이에 적어둔 것처럼 */
.link-item::after {
  content: attr(href);

  min-width: 0;
  margin-left: auto;
  overflow: hidden;

  color: var(--ink-soft);

  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;

  text-decoration: underline 1px;
  text-decoration-color: transparent;
  text-underline-offset: 4px;

  transition:
    color 220ms ease,
    text-decoration-color 220ms ease;
}


/* ==========================================================
   FOOTER — 메모지 하단
========================================================== */

.site-footer {
  position: relative;

  padding: 22px var(--sheet-pad) 24px;
  border-top: 0;

  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;

  height: 4px;
  background: var(--dots) 0 50% / 9px 4px repeat-x;
}

.footer-label {
  color: var(--pen);

  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.site-footer a {
  background: linear-gradient(var(--marker), var(--marker)) 0 85% / 0% 45% no-repeat;

  transition:
    color 200ms ease,
    background-size 260ms ease;
}


/* ==========================================================
   INTERACTION
   effects.css의 공통 hover(opacity, padding-left)는
   이 페이지에서만 종이 질감에 맞는 효과로 교체합니다.
========================================================== */

.site-nav a:hover,
.site-logo:hover,
.site-footer a:hover {
  opacity: 1;
}

.link-item:hover {
  padding-left: 4px;
  background: transparent;
}

@media (hover: hover) {
  .site-logo:hover {
    color: var(--pen);
  }

  .site-nav a:hover {
    color: var(--ink);
    background-size: 100% 45%;
  }

  .site-nav a[href$="dream.html"]:hover {
    transform: rotate(-2deg) translateY(-2px);
  }

  .about-tag-list .has-detail a:hover {
    text-decoration-style: solid;
    transform: rotate(-1.2deg) translateY(-2px);
  }

  .link-item:hover {
    transform: translateY(-2px);
  }

  .link-item:hover span {
    background-size: 100% 46%;
  }

  .link-item:hover::after {
    color: var(--pen);
    text-decoration-color: currentColor;
  }

  .site-footer a:hover {
    color: var(--ink);
    background-size: 100% 45%;
  }
}

/* 키보드 포커스도 같은 표시 */
.about-tag-list .has-detail a:focus-visible {
  text-decoration-style: solid;
}

.site-nav a:focus-visible {
  color: var(--ink);
  background-size: 100% 45%;
}

.link-item:focus-visible span {
  background-size: 100% 46%;
}

.link-item:focus-visible::after {
  color: var(--pen);
  text-decoration-color: currentColor;
}


/* ==========================================================
   MOBILE — 세로로 긴 메모지 한 장
   ----------------------------------------------------------
   CSS-only 원칙:
   - 모바일 HOME 메뉴는 로고와 역할이 겹치므로 숨깁니다.
   - 泡泡 / ABOUT / LINKS / DREAM 을 한 줄에 고정합니다.
   - 480px 이하에서 실폰용 타이포·터치 영역을 세밀하게 보정합니다.
========================================================== */

@media (max-width: 720px) {
  :root {
    --space-section: 64px;
    --sheet-pad: 22px;
    --header-height: 58px;
  }

  /* PAPER */
  .site {
    width: calc(100% - 20px);
    min-height: calc(100vh - 34px);
    margin: 10px auto 24px;
    padding-top: 10px;
  }

  .site::before {
    height: 10px;
  }

  /* HEADER — 한 줄 compact bar */
  .site-header {
    height: var(--header-height);
    min-height: var(--header-height);

    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 8px var(--sheet-pad) 7px;
  }

  .site-header::after,
  .site-footer::before {
    left: 12px;
    right: 12px;
  }

  .site-logo {
    flex: 0 0 auto;

    font-size: 0.82rem;
    letter-spacing: 0.12em;
    line-height: 1;
  }

  .site-nav {
    min-width: 0;
    margin-left: auto;

    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  /* 로고가 HOME 역할을 하므로 모바일에서는 중복 메뉴 제거 */
  .site-nav a[href="#home"] {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;

    min-height: 40px;
    display: inline-flex;
    align-items: center;

    padding: 8px 0;

    font-size: 0.66rem;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .site-nav a[href$="dream.html"] {
    margin-left: 0;
    padding: 6px 8px 5px;
  }

  /* sticky header 아래로 anchor 제목이 가려지지 않게 */
  .section {
    scroll-margin-top: calc(var(--header-height) + 12px);
  }

  /* HERO */
  .section-home {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 62px;
    background-position: center top;
  }

  .hero-eyebrow {
    margin-left: 3px;
    font-size: 1.5rem;
  }

 .hero-title {
    display: inline-block;

    font-size: clamp(2.65rem, 12vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }

  .hero-description {
    margin-top: 18px;

    font-size: 0.82rem;
    line-height: 1.55;
    letter-spacing: 0.12em;
  }

  /* SECTION HEADER */
  .section-header {
    gap: 12px;

    margin-bottom: 32px;
    padding-bottom: 10px;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  .section-number {
    font-size: 1.85rem;
  }

  /* ABOUT */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-intro {
    max-width: none;
    margin-top: 10px;
    padding: 36px 24px 26px;
    transform: none;
  }

  .about-intro::before {
    top: -11px;
    width: 84px;
    height: 24px;
  }

  .about-description {
    line-height: 2;
    background-size: 100% 2em;
  }

  .about-block {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0 16px;
  }

  /* 터치 가능한 테이프는 손가락으로 누르기 충분한 높이 확보 */
  .about-tag-list .has-detail a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* LINKS */
  .link-item {
    min-height: 64px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;

    padding: 16px 2px 12px;
  }

  .link-item::after {
    width: 100%;
    max-width: 100%;
    margin-left: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* touch 환경에는 hover 대신 눌렀을 때 형광펜 피드백 */
  .link-item:active span {
    background-size: 100% 46%;
  }

  .site-nav a:active,
  .site-footer a:active {
    color: var(--ink);
    background-size: 100% 45%;
  }

  /* FOOTER */
  .site-footer {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px 14px;

    padding: 18px var(--sheet-pad) 20px;
  }

  .footer-contact,
  .footer-links,
  .footer-meta {
    width: 100%;
  }

  .footer-links,
  .footer-meta {
    gap: 8px 10px;
  }

  .footer-meta {
    white-space: normal;
  }
}


/* ==========================================================
   PHONE DETAIL — 480px 이하 실폰 조정
========================================================== */

@media (max-width: 480px) {
  :root {
    --sheet-pad: 20px;
    --space-section: 58px;
    --header-height: 54px;
  }

  /* PAPER — 책상 배경은 8px씩만 노출 */
  .site {
    width: calc(100% - 16px);
    min-height: calc(100vh - 28px);
    margin: 8px auto 20px;

    box-shadow:
      0 1px 0 var(--paper-edge-dark),
      0 2px 0 var(--paper),
      0 3px 0 var(--paper-edge-dark),
      0 4px 0 var(--paper),
      0 5px 1px rgba(80, 64, 40, 0.14),
      0 18px 32px -22px rgba(70, 55, 35, 0.38);
  }

  /* HEADER */
  .site-header {
    gap: 10px;
    padding: 6px var(--sheet-pad) 5px;
  }

  .site-logo {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .site-nav {
    gap: 7px;
  }

  .site-nav a {
    min-height: 40px;

    font-size: 0.63rem;
    letter-spacing: 0.065em;
  }

  .site-nav a[href$="dream.html"] {
    padding-left: 7px;
    padding-right: 7px;
  }

  /* HERO */
  .section-home {
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .hero-eyebrow {
    font-size: 1.42rem;
  }

 .hero-title {
    font-size: clamp(2.35rem, 11.9vw, 3.55rem);
  }

  .hero-description {
    margin-top: 17px;

    font-size: 0.79rem;
    letter-spacing: 0.1em;
  }

  /* SECTION HEADER */
  .section-header {
    gap: 10px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .section-number {
    font-size: 1.75rem;
  }

  /* ABOUT */
  .about-layout {
    gap: 38px;
  }

  .about-intro {
    margin-top: 8px;
    padding: 34px 21px 24px;
  }

  .about-intro::before {
    width: 80px;
    height: 22px;
  }

  .about-label {
    margin-bottom: 10px;
    font-size: 1.55rem;
  }

  .about-heading {
    margin-bottom: 16px;

    font-size: clamp(1.55rem, 7.5vw, 1.85rem);
    line-height: 1.4;
  }

  .about-description {
    font-size: 0.925rem;
    line-height: 2;
    background-size: 100% 2em;
  }

  .about-block {
    gap: 7px;
    padding: 17px 0 15px;
  }

  .about-block-label {
    font-size: 1.4rem;
  }

  .about-block-text,
  .about-sub-list li {
    font-size: 0.925rem;
  }

  .about-tag-list {
    gap: 8px 10px;
  }

  .about-tag-list a,
  .about-tag-list span {
    padding: 6px 11px 5px;
    font-size: 1.3rem;
  }

  /* LINKS */
  .link-item {
    min-height: 62px;
  }

  .link-item span {
    font-size: 1.05rem;
  }

  .link-item::after {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* FOOTER */
  .site-footer {
    gap: 12px 14px;

    padding: 17px var(--sheet-pad) 18px;

    font-size: 0.68rem;
  }

  .footer-label {
    font-size: 1.2rem;
  }
}


/* ==========================================================
   SMALL PHONE — 360px 이하
========================================================== */

@media (max-width: 360px) {
  :root {
    --sheet-pad: 18px;
    --header-height: 52px;
  }

  .site {
    width: calc(100% - 12px);
    margin-top: 6px;
  }

  /* 320px에서도 泡泡 / ABOUT / LINKS / DREAM 한 줄 유지 */
  .site-header {
    gap: 7px;
    padding-left: var(--sheet-pad);
    padding-right: var(--sheet-pad);
  }

  .site-logo {
    font-size: 0.72rem;
    letter-spacing: 0.075em;
  }

  .site-nav {
    gap: 5px;
  }

  .site-nav a {
    font-size: 0.59rem;
    letter-spacing: 0.045em;
  }

  .site-nav a[href$="dream.html"] {
    padding-left: 6px;
    padding-right: 6px;
  }

 .hero-title {
    font-size: clamp(2.2rem, 11.6vw, 2.62rem);
  }

  .hero-description {
    letter-spacing: 0.08em;
  }

  .about-intro {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-tag-list a,
  .about-tag-list span {
    font-size: 1.24rem;
  }
}


/* 터치 디바이스에서 탭 반응을 빠르고 깔끔하게 */
@media (hover: none) and (pointer: coarse) {
  .site-nav a,
  .about-tag-list a,
  .link-item,
  .site-footer a {
    -webkit-tap-highlight-color: transparent;
  }

  .site-nav a:active,
  .about-tag-list .has-detail a:active,
  .link-item:active,
  .site-footer a:active {
    transform: translateY(1px);
  }
}


/* PROFILE DISTRIBUTION — ABOUT / INTERACTION */
.about-block-body { min-width: 0; }
.about-block-note { margin-top: 9px; color: var(--ink-soft); font-size: .85rem; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.about-deep-link { display: inline-block; margin-top: 15px; color: var(--pen); font-weight: 700; font-size: .83rem; line-height: 1.6; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 5px; }
.about-deep-link:hover, .about-deep-link:focus-visible { text-decoration-color: var(--pen); }
@media (max-width: 720px) { .about-block-note { font-size: .8rem; line-height: 1.75; } }
