/* ==========================================================================
   07 · COMMUNITY — join the 감자밭
   ========================================================================== */

.community { padding-top: clamp(100px, 16vh, 180px); }
.community__sun { position: absolute; left: 50%; bottom: clamp(240px, 40vh, 440px); width: 2px; height: 2px; }

.community__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "label label" "title lead" "title stats"; column-gap: 60px; align-items: end; }
.community__head .section-label { grid-area: label; }
.community__title { grid-area: title; display: flex; flex-direction: column; margin-top: 22px; }
.community__title > span:first-child { font-family: var(--f-display); font-size: var(--fs-h2); letter-spacing: -.055em; line-height: .9; }
.community__title-kr { font-family: var(--f-kr); font-weight: 400; font-size: clamp(4.4rem, 11vw, 11rem); line-height: .95; color: var(--red-hot); text-shadow: 0 0 50px rgba(227, 24, 45, .45); }
.community__lead { grid-area: lead; max-width: 44ch; color: var(--muted); font-size: var(--fs-lead); }
.stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin-top: 30px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3.4rem); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* social rows */
.socials { margin-top: clamp(50px, 9vh, 100px); }
.social {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) auto 52px;
    align-items: center;
    gap: 20px;
    padding: 18px 12px;
    border-top: 1px solid var(--line-2);
    isolation: isolate;
    transition: color .4s;
}
.social:last-child { border-bottom: 1px solid var(--line-2); }
.social__fill { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #c10f1e, var(--red)); clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease-out); }
.social:hover .social__fill, .social:focus-visible .social__fill { clip-path: inset(0 0 0 0); }
.social__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1.15rem; transition: background-color .4s, border-color .4s, color .4s; }
.social:hover .social__icon { background: var(--cream); border-color: var(--cream); color: var(--red); }
.social__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 3rem); letter-spacing: -.05em; line-height: 1; transition: transform .6s var(--ease-out); }
.social:hover .social__name { transform: translateX(10px); }
.social__note { color: var(--muted); font-size: .92rem; transition: color .4s; }
.social__handle { font-size: .85rem; font-weight: 700; color: var(--dim); transition: color .4s; }
.social:hover .social__note, .social:hover .social__handle { color: var(--cream); }
/* the red marker would vanish into the red hover fill */
.social:hover .tbc, .social:focus-visible .tbc { color: var(--cream); }
.social__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(244, 234, 216, .06); font-size: 1.1rem; transition: transform .5s var(--ease-out), background-color .4s; }
.social:hover .social__arrow { transform: rotate(45deg); background: rgba(0, 0, 0, .25); }
.social__peek { position: absolute; right: 20%; bottom: 100%; width: 74px; height: 70px; overflow: hidden; pointer-events: none; }
.social__peek .gamja-img { position: absolute; left: 0; right: 0; top: 100%; transition: transform .55s var(--ease-back); }
.social:hover .social__peek .gamja-img { transform: translateY(-78%); }

/* potato patch */
.patch { position: relative; height: clamp(320px, 50vh, 560px); margin-top: clamp(60px, 10vh, 120px); }
.patch__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.patch__gamja { position: absolute; right: max(var(--gutter), 7%); bottom: 16%; height: 54%; z-index: 2; }
.patch__gamja .gamja-img, .patch__gamja img { height: 100%; width: auto; max-width: none; }
.patch__gamja img { pointer-events: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .7)); }
.patch__hint { position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%); white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); pointer-events: none; text-shadow: 0 2px 10px #000, 0 0 2px #000; }
.patch__hint span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.patch__hint .icon { color: var(--sprout); font-size: 1.1rem; }
.patch__count b { color: var(--cream); font-size: 1rem; }
.patch__count [lang="ko"] { font-family: var(--f-kr-body); letter-spacing: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
    .community__head { grid-template-columns: 1fr; grid-template-areas: "label" "title" "lead" "stats"; }
    .community__lead { margin-top: 20px; }
    .social { grid-template-columns: 48px minmax(0, 1fr) auto 44px; }
    .social__note { display: none; }
}
@media (max-width: 600px) {
    .social { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 14px; padding: 16px 4px; }
    .social__handle { display: none; }
    /* the handle column is gone on phones, so a "Yet to confirm" handle drops under the name */
    .social--tbc { row-gap: 2px; }
    .social--tbc .social__icon { grid-row: 1 / span 2; }
    .social--tbc .social__arrow { grid-column: 3; grid-row: 1 / span 2; }
    .social--tbc .social__handle { display: block; grid-column: 2; }
    .social__icon, .social__arrow { width: 40px; height: 40px; }
    .social__peek { right: 18%; }
    .patch__gamja { height: 42%; }
    .patch__hint { font-size: .64rem; }
}
