/* 오늘의 코디 일기 — D안 (일기장 겉모습 + 옷장 카드 구조)
   모바일 화면을 기본으로 쓰고, 900px 이상에서 PC 배치로 바뀐다. */

:root
{
	--paper: #FFFBEF;
	--grid-line: #F1E7CF;
	--ink: #3A2E2A;
	--sub: #6B5A53;
	--white: #FFFFFF;
	--marker: #FFE873;
	--mint: #BFE8D6;
	--pink: #FFC9D9;
	--thumb: #F6EEDC;
	--line-soft: #D9CBB0;
	--link-hover: #8A2F4D;
	--shadow: 0 6px 14px rgba(58, 46, 42, 0.18);
	--shadow-small: 0 4px 10px rgba(58, 46, 42, 0.16);
	--font-hand: 'Gaegu', 'Gowun Dodum', sans-serif;
	--font-body: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	--page-width: 1120px;
	--touch: 44px;
}

*
{
	box-sizing: border-box;
}

body
{
	margin: 0;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.5;
	background-color: var(--paper);
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
}

img, video
{
	display: block;
	max-width: 100%;
}

a
{
	color: var(--ink);
}

a:hover
{
	color: var(--link-hover);
}

a:focus-visible, button:focus-visible
{
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}

.page
{
	width: 100%;
	max-width: var(--page-width);
	min-height: 100vh;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
}

.marker
{
	background: linear-gradient(transparent 55%, var(--marker) 55%);
}

/* ── 고지 문구 ── */
.disclosure
{
	margin: 14px auto 0;
	padding: 8px 12px;
	background: var(--white);
	border: 1.5px dashed var(--ink);
	border-radius: 10px;
	font-size: 11.5px;
	text-align: center;
}

/* ── 언어 선택 ── */
.lang-switch
{
	margin: 10px 4px 0;
	align-self: flex-end;
	font-size: 13px;
}

.lang-switch a
{
	display: inline-block;
	padding: 10px 2px;
}

.lang-switch__current
{
	font-weight: 700;
}

/* ── 머리말 ── */
.site-header
{
	padding: 8px 4px 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.site-header__text
{
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.site-title
{
	margin: 0;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 36px;
	line-height: 1.15;
}

.site-tagline
{
	margin: 0;
	font-size: 14px;
}

.site-author
{
	margin: 0;
	font-size: 12.5px;
	color: var(--sub);
}

.profile-link
{
	flex: none;
}

.profile-img
{
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--white);
	box-shadow: var(--shadow-small);
	transform: rotate(4deg);
}

/* ── 전환 버튼 (종류 탭, 코디 선택, 체형 선택) ── */
.tabs
{
	margin: 8px 0 0;
	padding: 4px;
	background: var(--white);
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 4px;
}

.tab-button
{
	min-height: var(--touch);
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 18px;
	white-space: nowrap;
	cursor: pointer;
}

.tab-button[aria-pressed="true"]
{
	background: var(--ink);
	color: var(--white);
}

/* ── 폴라로이드 ── */
.polaroid
{
	position: relative;
	padding: 12px 12px 14px;
	background: var(--white);
	box-shadow: var(--shadow);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.polaroid__caption
{
	text-align: center;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
}

.polaroid--hero
{
	width: 100%;
	max-width: 310px;
	margin: 0 auto;
	transform: rotate(-2deg);
}

.polaroid--hero img
{
	width: 100%;
	aspect-ratio: 286 / 340;
	object-fit: cover;
	object-position: center 35%;
}

.polaroid--mini
{
	width: 104px;
	padding: 6px 6px 8px;
	gap: 4px;
	box-shadow: var(--shadow-small);
}

.polaroid--mini img
{
	width: 100%;
	height: 124px;
	object-fit: cover;
	object-position: center 35%;
}

.polaroid--mini .polaroid__caption
{
	font-size: 19px;
}

.polaroid--mini:nth-child(odd)
{
	transform: rotate(-2deg);
}

.polaroid--mini:nth-child(even)
{
	transform: rotate(1.5deg);
}

.polaroid--post
{
	width: 100%;
	max-width: 326px;
	margin: 0 auto;
	transform: rotate(-1.5deg);
}

.polaroid--post img
{
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 15%;
}

.polaroid__video
{
	width: 100%;
	aspect-ratio: 9 / 16;
	background: var(--thumb);
}

.tape
{
	position: absolute;
	left: 36%;
	top: -13px;
	width: 90px;
	height: 26px;
}

.tape--mint
{
	background: var(--mint);
	transform: rotate(-4deg);
}

.tape--pink
{
	background: var(--pink);
	transform: rotate(3deg);
}

/* ── 알약 표시 ── */
.pill
{
	padding: 3px 10px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 12px;
}

.pill--pink
{
	background: var(--pink);
}

.pill--mint
{
	background: var(--mint);
}

/* ── 버튼 ── */
.button
{
	min-height: 46px;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	text-decoration: none;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 21px;
}

.button--primary
{
	min-height: 50px;
	background: var(--ink);
	color: var(--white);
}

.button--primary:hover
{
	color: var(--marker);
}

.button--buy
{
	border: 1.5px solid var(--ink);
	background: var(--marker);
	color: var(--ink);
}

.button--pending
{
	border: 1.5px dashed var(--sub);
	background: var(--white);
	color: var(--sub);
}

.button--outline
{
	min-height: var(--touch);
	border: 1.5px solid var(--ink);
	background: var(--white);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 14px;
}

/* ── 홈: 오늘 일기 ── */
.hero
{
	margin-top: 22px;
	display: grid;
	grid-template-areas: "date" "media" "text";
	row-gap: 22px;
}

.hero__date
{
	grid-area: date;
	margin: 0;
	padding: 0 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 22px;
}

.hero__media
{
	grid-area: media;
}

.hero__text
{
	grid-area: text;
	margin-top: 6px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hero__title, .hero__summary, .hero__looks
{
	display: none;
}

/* ── 제목 ── */
.section-title
{
	margin: 30px 4px 16px;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
}

/* ── 홈: 카드 격자 ── */
.card-grid
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.card
{
	padding: 8px 8px 12px;
	background: var(--white);
	border: 1.5px solid var(--ink);
	border-radius: 20px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.card[hidden]
{
	display: none;
}

.card__media
{
	position: relative;
	display: block;
}

.card__media img
{
	width: 100%;
	aspect-ratio: 5 / 6;
	object-fit: cover;
	object-position: center 25%;
	border-radius: 14px;
}

.badge
{
	position: absolute;
	left: 8px;
	top: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	color: var(--ink);
}

.badge--video
{
	background: var(--marker);
}

.badge--photo
{
	background: var(--mint);
}

.badge--makeup
{
	background: var(--pink);
}

.card__title
{
	padding: 0 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.card__meta
{
	padding: 0 4px;
	font-size: 12px;
	color: var(--sub);
}

.empty-note
{
	margin: 16px 4px 0;
	font-size: 13px;
	color: var(--sub);
}

/* ── 상세 화면 ── */
.back-link
{
	margin: 8px 4px 0;
	min-height: var(--touch);
	align-self: flex-start;
	display: flex;
	align-items: center;
	text-decoration: none;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 22px;
}

.post
{
	display: grid;
	grid-template-areas: "header" "media" "body";
}

.post__header
{
	grid-area: header;
	padding: 6px 4px 0;
}

.post__title
{
	margin: 0;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 34px;
	line-height: 1.15;
}

.post__meta
{
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--sub);
}

.post__media
{
	grid-area: media;
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.post__body
{
	grid-area: body;
	min-width: 0;
}

/* 전환 대상: 스크립트가 켜져 있으면 고른 것만 보인다.
   스크립트가 꺼져 있으면 전부 차례로 보여서 내용을 놓치지 않는다. */
.js [data-panel]:not(.is-active)
{
	display: none;
}

.look-title
{
	margin: 14px 4px 10px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 13.5px;
	color: var(--sub);
}

.item-list
{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.item-card
{
	padding: 12px;
	background: var(--white);
	border: 1.5px solid var(--ink);
	border-radius: 20px;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	grid-template-areas: "thumb text" "button button";
	align-items: center;
	gap: 10px 12px;
}

.item-card__thumb
{
	grid-area: thumb;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background: var(--thumb);
	color: var(--sub);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.item-card__thumb img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.item-card__text
{
	grid-area: text;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.item-card__category
{
	font-size: 12px;
	color: var(--sub);
}

.item-card__name
{
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
}

.item-card__product
{
	font-size: 12.5px;
	color: var(--sub);
}

.item-card__buttons
{
	grid-area: button;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.notice
{
	margin: 16px 4px 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--sub);
}

/* ── 체형별 보기 ── */
.body-type
{
	margin-top: 28px;
	padding: 14px;
	background: var(--white);
	border: 1.5px solid var(--ink);
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.body-type__head
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.body-type__title
{
	margin: 0;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 23px;
	line-height: 1.2;
}

.body-type .tabs
{
	margin: 0;
	border: 0;
	background: var(--thumb);
}

.body-type .notice
{
	margin: 0;
	font-size: 12px;
}

/* ── 안내 화면 ── */
.text-page
{
	max-width: 680px;
	padding: 6px 4px 0;
}

.text-page p
{
	margin: 16px 0 0;
	font-size: 15px;
	line-height: 1.8;
}

/* ── 꼬리말 ── */
.site-footer
{
	margin-top: auto;
	padding: 36px 4px 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.site-footer__note
{
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--sub);
}

.site-footer__links
{
	margin: 0;
	font-size: 12.5px;
}

/* ── PC 배치 (900px 이상) ── */
@media (min-width: 900px)
{
	.page
	{
		padding: 0 32px;
	}

	.disclosure
	{
		margin-top: 16px;
		padding: 8px 16px;
		font-size: 12px;
	}

	.site-header
	{
		padding: 12px 0 8px;
		flex-direction: row-reverse;
		justify-content: flex-end;
		gap: 18px;
	}

	.site-title
	{
		font-size: 44px;
	}

	.profile-img
	{
		width: 76px;
		height: 76px;
		transform: rotate(-4deg);
	}

	.tabs
	{
		max-width: 460px;
	}

	.tab-button
	{
		font-size: 20px;
	}

	.hero
	{
		margin-top: 40px;
		grid-template-columns: minmax(0, 372px) minmax(0, 1fr);
		grid-template-areas: "media date" "media text";
		column-gap: 72px;
		row-gap: 16px;
	}

	.hero__date
	{
		align-self: end;
		font-size: 26px;
	}

	.hero__text
	{
		align-self: start;
		margin-top: 0;
		align-items: flex-start;
		gap: 16px;
	}

	.hero__title
	{
		display: block;
		margin: 0;
		font-family: var(--font-hand);
		font-weight: 700;
		font-size: 52px;
		line-height: 1.15;
	}

	.hero__summary
	{
		display: block;
		margin: 0;
		font-size: 16px;
		color: var(--sub);
	}

	.hero__looks
	{
		margin-top: 14px;
		display: flex;
		gap: 16px;
	}

	.polaroid--hero
	{
		max-width: 372px;
		padding: 14px 14px 16px;
	}

	.polaroid--hero .polaroid__caption
	{
		font-size: 24px;
	}

	.button--primary
	{
		min-height: 54px;
		padding: 0 40px;
		font-size: 24px;
	}

	.section-title
	{
		margin: 44px 0 18px;
		font-size: 30px;
	}

	.card-grid
	{
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}

	.card
	{
		padding: 8px 8px 14px;
		border-radius: 22px;
	}

	.card__title
	{
		font-size: 15px;
	}

	.card__meta
	{
		font-size: 12.5px;
	}

	.back-link
	{
		margin: 12px 0 0;
		font-size: 24px;
	}

	.post
	{
		margin-top: 8px;
		grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
		grid-template-areas: "media header" "media body";
		grid-template-rows: auto 1fr;
		column-gap: 80px;
	}

	.post__header
	{
		padding: 0;
	}

	.post__title
	{
		font-size: 52px;
	}

	.post__meta
	{
		font-size: 14.5px;
	}

	.post__media
	{
		margin-top: 16px;
	}

	.polaroid--post
	{
		max-width: 340px;
		padding: 14px 14px 16px;
	}

	.post__body .tabs
	{
		max-width: 380px;
	}

	.post__body .section-title
	{
		margin: 32px 0 14px;
		font-size: 28px;
	}

	.item-list
	{
		gap: 12px;
	}

	.item-card
	{
		padding: 14px;
		border-radius: 22px;
		grid-template-columns: 84px minmax(0, 1fr) minmax(0, 190px);
		grid-template-areas: "thumb text button";
		gap: 16px;
	}

	.item-card__thumb
	{
		width: 84px;
		height: 84px;
		border-radius: 16px;
	}

	.item-card__name
	{
		font-size: 17px;
	}

	.item-card .button
	{
		min-height: 48px;
		font-size: 21px;
	}

	.lang-switch
	{
		margin: 10px 0 0;
	}

	.body-type
	{
		max-width: 420px;
	}

	.site-footer
	{
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
		padding: 36px 0 30px;
	}
}
