/* sipsiphooray — 리소그래프 방향. 토큰은 docs/superpowers/specs 의 설계 문서와 맞춘다. */

:root {
  --butter: #FFF4DE;
  --ink: #181410;
  --tomato: #E04D2E;
  --tomato-dark: #B83A1F;
  --muted: #7A6A55;
  --hairline: #D8C7A8;

  --t-white: #E8B92E;
  --t-orange: #E87A2E;
  --t-red: #B4243A;
  --t-rose: #E2568C;

  --pad: 20px;
  --maxw: 560px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--butter);
  color: var(--ink);
  font-family: 'IBM Plex Sans KR', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* 리소 인쇄 그레인 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/></filter><rect width='150' height='150' filter='url(%23g)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── 뼈대 ───────────────────────────────────────────── */

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 22px 0 0;
}
.wordmark {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; font-size: 18px; letter-spacing: -.035em; color: var(--tomato);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--butter);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.avatar.lg { width: 62px; height: 62px; font-family: 'Black Han Sans', sans-serif; font-size: 24px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }

.iconbtn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  margin: -11px; /* 44px 터치 영역은 유지하고 시각적 위치는 그대로 */
}
.navrow { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 0; }

/* ── 헤드라인 ─────────────────────────────────────────── */

.hero {
  background: var(--tomato); color: var(--butter);
  padding: 22px 20px 24px; margin-top: 20px;
}
.hero h1 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: clamp(32px, 9vw, 40px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0; text-shadow: 2px 2px 0 rgba(24, 20, 16, .22);
}
.hero p { margin: 13px 0 0; font-size: 12.5px; font-weight: 500; opacity: .92; }

.pagetitle { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 17px; margin: 0; }
.sectionhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 24px 0 10px;
}
.sectionhead .sub { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ── 칩 ─────────────────────────────────────────────── */

.chips { display: flex; gap: 6px; padding: 15px 0 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 13px; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--butter); font-weight: 600; }

/* ── 카드와 목록 ──────────────────────────────────────── */

.feed { display: flex; flex-direction: column; gap: 11px; padding-bottom: 24px; }

.card { display: block; border: 2px solid var(--ink); padding: 14px 15px; background: var(--butter); }
.card-top { display: flex; align-items: flex-start; gap: 12px; }
.card-top > div:first-child { flex: 1; min-width: 0; }

.producer { display: flex; align-items: center; gap: 7px; }
.producer span:last-child {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.swatch { width: 9px; height: 9px; flex-shrink: 0; }
.swatch.white { background: var(--t-white); }
.swatch.orange { background: var(--t-orange); }
.swatch.red { background: var(--t-red); }
.swatch.rose { background: var(--t-rose); }
.swatch.lg { width: 11px; height: 11px; }

.winename {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: -.025em; margin-top: 5px;
  overflow-wrap: anywhere;
}
.winename .vintage { color: var(--muted); }

.score {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 30px; color: var(--tomato); line-height: .9;
  font-variant-numeric: tabular-nums;
}
.score.sm { font-size: 19px; line-height: 1; }
.score.lg { font-size: 56px; line-height: .82; letter-spacing: -.02em; }

.quote { font-size: 15px; line-height: 1.5; font-weight: 500; margin-top: 9px; text-wrap: pretty; overflow-wrap: anywhere; }
.byline { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

.list { border: 2px solid var(--ink); margin-bottom: 24px; }
.list > * + * { border-top: 1.5px solid var(--ink); }
.list-row { padding: 14px 15px; }
.list-row .head { display: flex; align-items: center; gap: 9px; }
.list-row .head .name { font-size: 13px; font-weight: 600; }
.list-row .head .when { font-size: 11.5px; color: var(--muted); }
.list-row .head .score { margin-left: auto; }

.likebtn { display: flex; align-items: center; gap: 5px; margin-top: 9px; padding: 6px 0; }
.likebtn span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.likebtn[aria-pressed="true"] svg { stroke: var(--tomato); fill: var(--tomato); }
.likebtn[aria-pressed="true"] span { color: var(--tomato); }

.empty { border: 2px dashed var(--hairline); padding: 28px 20px; text-align: center; margin-bottom: 24px; }
.empty p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── 버튼 ───────────────────────────────────────────── */

.actions { display: flex; gap: 9px; padding: 14px 0 26px; }
.btn {
  height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 17px;
  background: var(--ink); color: var(--butter); flex: 1; text-align: center;
}
.btn:disabled { background: var(--hairline); color: #9A8A72; cursor: not-allowed; }
.btn.tomato { background: var(--tomato); }
.btn.square { flex: 0 0 52px; width: 52px; background: none; border: 2px solid var(--ink); }
.btn.link { background: none; color: var(--tomato); font-family: inherit; font-weight: 600; font-size: 14px; height: 44px; flex: 0 0 auto; }

/* ── 와인 상세 ────────────────────────────────────────── */

.identity { padding-top: 24px; }
.identity h1 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(24px, 7vw, 30px); line-height: 1.12;
  letter-spacing: -.04em; margin: 11px 0 0; text-wrap: pretty; overflow-wrap: anywhere;
}
.identity .meta { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 11px; }

.scorebox {
  background: var(--tomato); color: var(--butter); padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; margin-top: 20px;
}
.scorebox .score { color: var(--butter); text-shadow: 2px 2px 0 rgba(24, 20, 16, .22); }
.scorebox .lines { flex: 1; min-width: 0; }
.scorebox .lines b { font-size: 13px; font-weight: 600; }
.scorebox .lines p { margin: 4px 0 0; font-size: 11.5px; opacity: .9; }

/* ── 입력 ───────────────────────────────────────────── */

.fieldlabel { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.counter { font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--tomato); font-weight: 600; }

.textbox {
  width: 100%; margin-top: 10px; border: 2px solid var(--ink); padding: 15px;
  background: var(--butter); color: var(--ink);
  font-family: inherit; font-size: 18px; line-height: 1.55; font-weight: 500;
  min-height: 120px; resize: vertical;
}
.textbox::placeholder { color: #B6A488; }

.search {
  width: 100%; border: 2px solid var(--ink); padding: 14px 15px; background: var(--butter);
  color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 500;
}
.search::placeholder { color: #B6A488; }

/* 칸 다섯 개, 값 열 개. 한 칸의 왼쪽 절반이 x.5, 오른쪽 절반이 x.0 */
.rating { display: flex; gap: 9px; }
.rating .block {
  position: relative; display: block; width: 34px; height: 48px;
  touch-action: manipulation;
}
.rating .block i {
  position: absolute; left: 0; right: 0; top: 7px; height: 34px;
  box-sizing: border-box; border: 2px solid var(--ink); background: var(--butter);
}
.rating .block i.full { background: var(--tomato); }
.rating .block i.half {
  background: linear-gradient(to right, var(--tomato) 0 50%, var(--butter) 50% 100%);
}
.rating .block button {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.rating .block button.lo { left: 0; }
.rating .block button.hi { right: 0; }
.rating .block button:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
.ratingrow { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.ratinglabel {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 19px;
  color: var(--tomato); font-variant-numeric: tabular-nums;
}

.daterow {
  padding: 16px 0; border-top: 1.5px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.daterow label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.daterow input {
  border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink); text-align: right; padding: 8px 0;
}

.stats { display: flex; gap: 9px; margin-top: 22px; }
.stat { flex: 1; border: 2px solid var(--ink); padding: 12px 13px; min-width: 0; }
.stat b { display: block; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(20px, 6vw, 26px); line-height: 1; }
.stat span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.stat.hl { background: var(--tomato); color: var(--butter); }
.stat.hl span { color: var(--butter); opacity: .92; }

.profilehead { padding-top: 26px; display: flex; align-items: center; gap: 15px; }
.profilehead h1 { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 27px; letter-spacing: -.01em; margin: 0; }
.profilehead p { margin: 4px 0 0; font-size: 12px; font-weight: 500; color: var(--muted); }

.note { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 넓은 화면: 홈만 분할 레이아웃 ──────────────────────── */

@media (min-width: 980px) {
  body.home { --maxw: 1440px; }
  body.home .shell { padding: 0; }

  body.home .topbar {
    padding: 0 44px; height: 76px; border-bottom: 2px solid var(--ink);
  }
  body.home .wordmark { font-size: 22px; letter-spacing: -.04em; }

  body.home .split { display: flex; align-items: stretch; min-height: calc(100vh - 76px); }

  body.home .panel {
    width: 452px; flex-shrink: 0; background: var(--tomato); color: var(--butter);
    border-right: 2px solid var(--ink); padding: 52px 44px 40px;
    display: flex; flex-direction: column;
  }
  body.home .panel .hero { background: none; padding: 0; margin: 0; }
  body.home .panel .hero h1 { font-size: 62px; line-height: 1.06; text-shadow: 3px 3px 0 rgba(24, 20, 16, .22); }
  body.home .panel .pitch {
    margin-top: 26px; font-size: 16px; line-height: 1.7; max-width: 320px;
  }
  body.home .panel .chips { flex-wrap: wrap; max-width: 340px; margin-top: 32px; padding: 0; overflow: visible; }
  body.home .panel .chip { border-color: var(--butter); }
  body.home .panel .chip[aria-pressed="true"] { background: var(--butter); color: var(--ink); }
  body.home .panel .tally { margin-top: auto; padding-top: 32px; font-size: 12.5px; font-weight: 500; opacity: .82; }

  body.home .feedwrap { flex: 1; min-width: 0; padding: 28px; }
  body.home .feed {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px; align-content: start; padding: 0;
  }
  body.home .card { padding: 20px 22px; display: flex; flex-direction: column; }
  body.home .card .winename { font-size: 19px; letter-spacing: -.03em; margin-top: 7px; }
  body.home .card .score { font-size: 34px; line-height: .88; }
  body.home .card .quote { font-size: 16px; margin-top: 12px; }
  body.home .card .byline { margin-top: auto; padding-top: 12px; }
  body.home .actions { display: none; }
}

@media (min-width: 1280px) {
  body.home .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 홈이 아닌 페이지는 넓은 화면에서도 한 단으로 읽는다 */
@media (min-width: 720px) {
  body:not(.home) { --maxw: 640px; }
}

/* ── 좁은 화면 보정 ──────────────────────────────────── */

/* 넓은 화면 전용 문구는 모바일에서 숨긴다. 히어로의 한 줄이 그 역할을 한다. */
.panel .tally { display: none; }

/* 모바일에서 주요 행동은 화면 아래에 붙어 있다 */
.actions {
  position: sticky;
  bottom: 0;
  background: var(--butter);
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

@media (min-width: 980px) {
  body.home .panel .tally { display: block; }
  /* 수치는 패널 아래에서 따로 보여주므로 히어로 안의 것만 숨긴다.
     가치 문장(.pitch)은 넓은 화면에서도 보여야 한다. */
  body.home #heroTally { display: none; }
}

.cta-solo { margin-top: 11px; }
.results { border: 2px solid var(--ink); margin-top: 10px; }
.results > * + * { border-top: 1.5px solid var(--ink); }
.result { display: block; width: 100%; text-align: left; padding: 13px 15px; }
.result:hover, .result:focus-visible { background: rgba(224, 77, 46, .08); }
.newform { border: 2px solid var(--ink); padding: 15px; margin-top: 10px; display: grid; gap: 11px; }
.newform label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.newform input, .newform select {
  border: 1.5px solid var(--ink); background: var(--butter); color: var(--ink);
  font-family: inherit; font-size: 15px; font-weight: 500; padding: 10px 12px; width: 100%;
}
.newform .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.formrow { display: flex; gap: 9px; align-items: center; }
.alert { border: 2px solid var(--tomato); color: var(--tomato); padding: 11px 14px; font-size: 13px; font-weight: 600; margin-top: 12px; }

/* ── 문서 페이지 (개인정보처리방침, 이용약관) ─────────── */

.doc { padding-bottom: 40px; }
.doc h1 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: clamp(28px, 8vw, 34px); line-height: 1.2; margin: 26px 0 0;
}
.doc .updated { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 10px; }
.doc .lede {
  font-size: 15px; line-height: 1.75; margin-top: 18px; text-wrap: pretty;
  border-left: 4px solid var(--tomato); padding-left: 14px;
}
.doc h2 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 18px;
  margin: 34px 0 0; padding-top: 22px; border-top: 2px solid var(--ink);
}
.doc h3 { font-size: 14.5px; font-weight: 700; margin: 20px 0 0; }
.doc p { font-size: 14.5px; line-height: 1.8; margin: 10px 0 0; text-wrap: pretty; }
.doc ul { margin: 10px 0 0; padding-left: 18px; }
.doc li { font-size: 14.5px; line-height: 1.8; margin: 4px 0; }
.doc strong { font-weight: 700; }
.doc a { color: var(--tomato); font-weight: 600; text-underline-offset: 3px; text-decoration: underline; }
.doc .box { border: 2px solid var(--ink); padding: 16px 18px; margin-top: 16px; }
.doc .box p:first-child { margin-top: 0; }

.sitefoot {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  padding: 22px 0 28px; margin-top: 8px; border-top: 1.5px solid var(--hairline);
  font-size: 12px; color: var(--muted);
}
.sitefoot a { color: var(--muted); text-underline-offset: 3px; }
.sitefoot a:hover { color: var(--tomato); }

/* ── 홈: 아직 한줄평이 없는 와인 ─────────────────────── */

.hero .pitch {
  margin: 14px 0 0; font-size: 14px; line-height: 1.65; font-weight: 500;
  opacity: .94; max-width: 30ch; text-wrap: pretty;
}

.feedwrap section + section { margin-top: 30px; }
.feedwrap section:first-child .sectionhead { padding-top: 0; }

/* 카드 전체가 "쓰러 가기" 버튼이다 */
.card-empty { display: flex; flex-direction: column; gap: 12px; transition: background .15s ease; }
.card-empty:hover,
.card-empty:focus-visible { background: rgba(224, 77, 46, .07); }
.card-empty .prompt {
  display: flex; align-items: center; gap: 6px; margin: 0;
  padding-top: 11px; border-top: 1.5px dashed var(--hairline);
  font-size: 14px; font-weight: 700; color: var(--tomato);
}
.card-empty .prompt svg { transition: transform .15s ease; }
.card-empty:hover .prompt svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .card-empty .prompt svg { transition: none; } }

/* 로그인하지 않은 사람에게, 왜 로그인하는지 */
.joinband {
  margin-top: 30px; padding: 20px; background: var(--ink); color: var(--butter);
  display: flex; flex-direction: column; gap: 16px;
}
.joinband b { display: block; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 19px; }
.joinband p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; opacity: .82; text-wrap: pretty; }
.joinband .btn {
  background: var(--tomato); height: 50px; font-size: 16px; flex: 0 0 auto;
}
@media (min-width: 620px) {
  .joinband { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .joinband .btn { padding: 0 26px; }
}

/* ── 라벨 사진 ──────────────────────────────────────── */

.thumb {
  width: 50px; height: 66px; flex-shrink: 0; display: block;
  object-fit: cover; border: 2px solid var(--ink); background: var(--butter);
}

.identity-row { display: flex; gap: 16px; align-items: flex-start; }
.identity-row > .identity-text { flex: 1; min-width: 0; }

.label-photo,
.label-add {
  width: 112px; flex-shrink: 0; aspect-ratio: 3 / 4;
  border: 2px solid var(--ink); background: var(--butter);
}
.label-photo { object-fit: cover; display: block; }

/* 사진이 없을 때 — 자리를 비워두지 않고 "추가하세요"로 채운다 */
.label-add {
  border-style: dashed; border-color: var(--hairline);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 10px; text-align: center;
  font-size: 11.5px; font-weight: 700; line-height: 1.4; color: var(--muted);
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.label-add:hover,
.label-add:focus-visible { border-color: var(--tomato); color: var(--tomato); }
.label-add[aria-busy="true"] { cursor: progress; color: var(--tomato); border-color: var(--tomato); }

@media (min-width: 720px) {
  .label-photo, .label-add { width: 140px; }
}

/* 한줄평이 아직 없는 와인 — 숫자 대신 권유 */
.scorebox-empty { display: block; }
.scorebox-empty .lines b { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 21px; }
.scorebox-empty .lines p { margin-top: 8px; font-size: 13px; line-height: 1.6; opacity: .92; max-width: 38ch; }

/* 한글 표기 — 찾은 게 맞는지 눈으로 확인시켜 준다 */
.korean { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.identity .korean { font-size: 14px; margin-top: 8px; }

/* 등록 폼의 접히는 부분 */
.newform .more { border-top: 1.5px dashed var(--hairline); padding-top: 12px; }
.newform .more summary {
  font-size: 12.5px; font-weight: 700; color: var(--tomato);
  cursor: pointer; list-style: none; user-select: none;
}
.newform .more summary::-webkit-details-marker { display: none; }
.newform .more summary::before { content: "＋ "; }
.newform .more[open] summary::before { content: "－ "; }
.newform .more-body { display: grid; gap: 11px; margin-top: 13px; }

/* 한글 이름 채우기 */
.ko-add {
  margin-top: 8px; padding: 0; font-size: 12.5px; font-weight: 700;
  color: var(--tomato); border-bottom: 1.5px solid #E8B8AA;
}
.ko-add:hover { border-bottom-color: var(--tomato); }
.ko-form { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ko-form input {
  flex: 1 1 130px; min-width: 0; border: 1.5px solid var(--ink); background: var(--butter);
  color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; padding: 8px 10px;
}
.ko-form .btn { height: 36px; font-size: 13px; }

/* ── 연관 와인 ──────────────────────────────────────── */

.related-grid {
  display: grid; gap: 9px; margin-bottom: 24px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.related {
  display: block; border: 2px solid var(--ink); padding: 11px 12px;
  background: var(--butter); transition: background .15s ease;
}
.related:hover, .related:focus-visible { background: rgba(224, 77, 46, .07); }
.related .swatch { display: block; margin-bottom: 7px; }
.related b {
  display: block; font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: -.02em; overflow-wrap: anywhere;
}
.related span:last-child { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }

/* ── 와인 항목 목록 ─────────────────────────────────── */

.spec { margin: 18px 0 0; display: grid; gap: 0; }
.spec > div {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px;
  padding: 9px 0; border-top: 1.5px solid var(--hairline);
}
.spec > div:last-child { border-bottom: 1.5px solid var(--hairline); }
.spec dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.spec dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.spec dd span { font-weight: 500; color: var(--muted); }
.spec dd .dim { font-weight: 500; color: #B6A488; }

/* ── 맛의 세 기준 ───────────────────────────────────── */

.taste { border: 2px solid var(--ink); margin-bottom: 24px; }
.taste-row {
  display: grid; grid-template-columns: 58px auto 1fr; align-items: center;
  gap: 12px; padding: 13px 15px;
}
.taste-row + .taste-row { border-top: 1.5px solid var(--ink); }
.taste-row .axis { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.taste-row .scale { display: flex; gap: 5px; }
.taste-row .scale i {
  width: 13px; height: 13px; box-sizing: border-box;
  border: 2px solid var(--ink); background: var(--butter);
}
.taste-row .scale i.on { background: var(--tomato); }
.taste-row .said {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 15px; color: var(--tomato); white-space: nowrap;
}
.taste-row .tail { display: none; font-size: 11px; color: var(--muted); text-align: right; }
@media (min-width: 560px) {
  .taste-row { grid-template-columns: 58px auto auto 1fr; }
  .taste-row .tail { display: block; }
}

/* 한줄평 쓰기의 맛 고르기 */
.taste-pick { margin-top: 12px; border: 2px solid var(--ink); }
.taste-pick .pick-row {
  display: grid; grid-template-columns: 58px 1fr; align-items: center;
  gap: 10px; padding: 11px 13px;
}
.taste-pick .pick-row + .pick-row { border-top: 1.5px solid var(--ink); }
.taste-pick .axis { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.taste-pick .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.taste-pick .opts button {
  flex: 1 1 auto; min-height: 38px; padding: 7px 10px;
  border: 1.5px solid var(--ink); background: var(--butter);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.taste-pick .opts button[aria-pressed="true"] {
  background: var(--tomato); border-color: var(--tomato); color: var(--butter); font-weight: 700;
}

/* ── 생산자 ─────────────────────────────────────────── */

.kicker {
  margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tomato);
}
.identity .kicker + h1 { margin-top: 7px; }

/* 와인 상세에서 와이너리 이름을 누르면 생산자 페이지로 */
.speclink {
  color: var(--ink); border-bottom: 1.5px solid #E8B8AA;
  text-underline-offset: 3px; transition: border-color .15s ease, color .15s ease;
}
.speclink:hover, .speclink:focus-visible { color: var(--tomato); border-bottom-color: var(--tomato); }

.morelink { color: var(--tomato); font-weight: 700; white-space: nowrap; }
.morelink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 「굳이」 — 이 페이지가 있는 이유라서 본문처럼 크게 둔다 */
.story {
  border-left: 3px solid var(--tomato); padding: 2px 0 2px 16px; margin-bottom: 14px;
}
.story p {
  margin: 0; font-size: 15.5px; line-height: 1.75; font-weight: 500;
  text-wrap: pretty; overflow-wrap: anywhere;
}
.story p + p { margin-top: 12px; }

/* 이야기가 아직 없을 때 — 빈칸을 두지 않고 권유로 채운다 */
.story-add {
  display: block; width: 100%; text-align: left; margin-bottom: 24px;
  border: 2px dashed var(--hairline); padding: 20px 20px 21px;
  transition: border-color .15s ease, background .15s ease;
}
.story-add b {
  display: block; font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 18px; color: var(--ink);
}
.story-add span {
  display: block; margin-top: 8px; font-size: 13px; line-height: 1.65;
  font-weight: 500; color: var(--muted);
}
.story-add:hover,
.story-add:focus-visible { border-color: var(--tomato); background: rgba(224, 77, 46, .05); }
.story-add:hover b { color: var(--tomato); }

.newform textarea {
  min-height: 118px; resize: vertical; padding: 12px 13px;
  font-size: 15px; line-height: 1.6;
}
