@import url('https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css');

@font-face {
    font-family: 'Merica Grotesk';
    src: url('font/MericaGroteskRegular_PERSONAL_USE_ONLY.woff') format('woff');
    font-weight: 400;
}

:root {
    --bg: #ffffff;
    --fg: #000000;
    --accent: #E23003;  /* 포인트 컬러 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1.5px, transparent 0);
    background-size: 32px 32px;
    color: var(--fg);
    font-family: 'Wanted Sans Variable', 'Pretendard', sans-serif;
    line-height: 1.5;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--accent); color: var(--bg); }

/* 공통 텍스트 */
.date { font-size: 0.9rem; font-weight: 600; }

/* 홈: 사진 | 제목 2단, 한 줄마다 좌우 반전 ---------------- */
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2px;
    background: var(--fg);
    min-height: 72vh;
    border-bottom: 2px solid var(--fg);
}
.feed .story:nth-child(even) .story-img,
.story--reverse .story-img { order: 2; }

.story-img {
    display: grid;
    place-items: center;
    padding: 12%;
    background: #f2f2f2;
    overflow: hidden;
}
.story-img img:not(.story-logo) {
    width: 100%;
    transition: transform 0.6s ease;
}
.story-img--photo { position: relative; padding: 0; }
.story-img--photo img:not(.story-logo) { position: absolute; inset: 0; height: 100%; object-fit: cover; }
a.story:hover .story-img img:not(.story-logo) { transform: scale(1.03); }

.story-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: var(--bg);
}
/* 홈 줄 색 순서: 흰 → 빨강 → 흰 → 검정 (반복) */
.feed .story:nth-child(4n+2) .story-text,
.story--accent .story-text { background: var(--accent); color: var(--fg); }
.feed .story:nth-child(4n) .story-text,
.story--dark .story-text { background: var(--fg); color: var(--bg); }
/* 로고 크기: 가로세로 비율이 달라도 같은 면적으로 보이게 맞춤 (--ratio = 가로/세로) */
.story-logo {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    z-index: 1;
    width: auto;
    height: calc(var(--logo-size) / sqrt(var(--ratio, 3)));
    --logo-size: clamp(4.5rem, 7vw, 6.5rem);
    filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}
/* 홈에서는 로고를 이미지 정중앙에 */
.feed .story-logo {
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}
.story-title {
    font-size: clamp(2rem, 3.8vw, 3.6rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    max-width: 14em;
}
.story-dek { font-weight: 600; max-width: 32em; }

.site-foot {
    background: var(--fg);
    color: var(--bg);
    padding: 5rem 2rem 0;
}
.foot-logo {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    padding-bottom: 2rem;
}
.foot-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--bg);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.foot-row a:hover { color: var(--accent); }
.foot-team {
    font-size: 1rem;
    font-weight: 800;
}
.foot-contact {
    margin: 0.25rem 0 5rem;
    font-size: 1rem;
    font-weight: 600;
}
.foot-contact a:hover { color: var(--accent); }
.foot-copy { margin-left: auto; }

/* About ------------------------------------------------- */
/* Merica 무료판에는 숫자가 없어서 영문 대형 타이포에만 씁니다 */
.about-mast, .about-cta {
    font-family: 'Merica Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 10.5vw, 10rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    padding: 5rem 2rem;
}
.about-mast { border-bottom: 2px solid var(--fg); }

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid var(--fg);
}
.about-intro p {
    grid-column: 2;
    padding: 3rem 2rem 6rem;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.04em;
}

.member {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2px;
    background: var(--fg);
    min-height: 80vh;
    border-bottom: 2px solid var(--fg);
}
.member--accent .member-img { order: 2; }
.member-img {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
}
.member-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.member:hover .member-img img { transform: scale(1.03); }
.member-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}
.member--accent .member-text { background: var(--accent); color: var(--fg); }
.member-name {
    font-family: 'Merica Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.member-meta { font-weight: 700; }

/* 떠 있는 해우소 로고 (네비바 대신, 모든 페이지 좌측 상단 고정) */
.page-logo {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 50;
    display: block;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    background: var(--fg);
    transition: background 0.2s ease;
}
.page-logo:hover { background: var(--accent); }
.page-logo img { display: block; height: 20px; filter: brightness(0) invert(1); }

.post-hero { min-height: 100vh; min-height: 100svh; }
.post-meta { margin-bottom: 1rem; }

/* 글 페이지 ----------------------------------------------- */
.article {
    max-width: 680px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
}
.article-body p { font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.5rem; }
.article-body a { text-decoration: underline; text-underline-offset: 4px; }
.article-body blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 2px solid var(--fg);
    border-bottom: 2px solid var(--fg);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.4;
}
/* 글 하단 작성자 소개 */
.author {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--fg);
}
.author-label {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.author-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.5rem;
    align-items: center;
}
.author-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
}
.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-img--mark {
    display: grid;
    place-items: center;
    background: var(--fg);
}
.author-img--mark img {
    width: 70%;
    height: auto;
    filter: brightness(0) invert(1);
}
.author-name {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    margin-bottom: 0.6rem;
}
.author-bio { line-height: 1.7; }

.article-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 2px solid var(--fg);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.article-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 모바일 ------------------------------------------------- */
@media (max-width: 900px) {
    .story { grid-template-columns: 1fr; min-height: 0; }
    .feed .story:nth-child(even) .story-img, .story--reverse .story-img { order: 0; }
    .story-img { border-bottom: 2px solid var(--fg); aspect-ratio: 4 / 3; }
    .story-text { padding: 2rem 1.25rem 2.5rem; }
    .story-logo { left: 1.25rem; bottom: 1.25rem; --logo-size: 4rem; }
    .post-hero { min-height: 100svh; grid-template-rows: 1fr auto; }
    .post-hero .story-img { aspect-ratio: auto; min-height: 45svh; }
    .site-foot { padding: 3.5rem 1.25rem 0; }
    .foot-contact { margin-bottom: 3.5rem; }
    .foot-copy { margin-left: 0; width: 100%; }
    .article { padding: 3rem 1.25rem 3rem; }
    .page-logo { top: 0.75rem; left: 0.75rem; padding: 0.55rem 1rem; }
    .page-logo img { height: 16px; }
    .author-row { grid-template-columns: 72px 1fr; gap: 1.1rem; }
    .author-img { width: 72px; height: 72px; }
    .about-mast, .about-cta { padding: 3.5rem 1.25rem; }
    .about-intro { grid-template-columns: 1fr; }
    .about-intro p { grid-column: 1; padding: 2rem 1.25rem 4rem; }
    .member { grid-template-columns: 1fr; min-height: 0; }
    .member--accent .member-img { order: 0; }
    .member-img { aspect-ratio: 4 / 5; border-bottom: 2px solid var(--fg); }
    .member-text { padding: 2rem 1.25rem 2.5rem; }
}
