/* Shared visual vocabulary; no layout rules or framework dependency. */
:root {
  --fc-ink: #243c33;
  --fc-paper: #f5f3ed;
  --fc-green: #24493e;
  --fc-muted: #667064;
  --fc-line: #ddded3;
  --fc-lime: #e2edac;
  --fc-focus: #719247;
  --fc-surface: #ffffff;
  --fc-selected: #e8ecd9;
  --fc-notice-bg: #e9eedb;
  --fc-error-bg: #f7e9df;
  --fc-danger: #975845;
  --fc-backdrop: #182e2470;
  --fc-font-sans: Inter, "Pretendard", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", sans-serif;
}



:root {
  font-family: var(--fc-font-sans);
  color: var(--fc-ink);
  background: var(--fc-paper);
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.6;
  --green: var(--fc-green);
  --muted: var(--fc-muted);
  --line: var(--fc-line);
  --lime: var(--fc-lime);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--fc-focus);
  outline-offset: 4px;
}
button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 11px 18px;
  min-height: 44px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(32px, 6vw, 47px);
  line-height: 1.2;
  letter-spacing: -2px;
  margin-bottom: 12px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.7px;
  line-height: 1.45;
}
p {
  color: #656c61;
}
.header {
  height: 91px;
  max-width: 1056px;
  margin: auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.6px;
}
.logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  border-radius: 9px;
}
.quiet {
  border: 0;
  background: transparent;
  padding: 8px 12px;
}
.header .quiet {
  font-size: 23px;
}
main {
  max-width: 940px;
  margin: auto;
  padding: 45px 30px 130px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #808875;
  margin-bottom: 12px;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.dot {
  color: #7e9654;
}
.count {
  border: 1px solid #c9d2b7;
  border-radius: 50%;
  font-family: Georgia, serif;
  display: grid;
  place-items: center;
  height: 38px;
  min-width: 38px;
  font-size: 18px;
  margin-top: -10px;
}
.intro {
  font-size: 14px;
  margin-bottom: 33px;
}
.section-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 11px;
  color: #747c6b;
  margin-bottom: 24px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #839558;
  border-radius: 50%;
  margin-right: 5px;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 0;
  font-weight: 550;
  padding: 15px 22px;
  border-radius: 10px;
}
.primary span {
  margin-left: 25px;
  color: var(--lime);
}
.wide {
  width: 100%;
}
.empty {
  text-align: center;
  padding: 50px 20px;
}
.empty h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.empty p {
  font-size: 14px;
  line-height: 1.9;
}
.empty .primary {
  margin: 15px 0;
}
.micro {
  font-size: 11px !important;
  color: #848b7d;
  margin: 12px 0;
}
.shelf-art {
  height: 134px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 40px;
  width: 230px;
  border-bottom: 7px solid #d4dcc2;
  position: relative;
}
.shelf-art:after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 4px;
  width: 222px;
  height: 12px;
  background: #eaebdf;
  border-radius: 50%;
}
.shelf-art span {
  display: block;
  width: 53px;
  height: 74px;
  border: 1px solid #bec9aa;
  border-radius: 28px 28px 5px 5px;
  background: linear-gradient(130deg, #e9eddc, #d8e2c7);
  margin-bottom: 8px;
  transform: rotate(-5deg);
}
.shelf-art span:nth-child(2) {
  height: 99px;
  width: 68px;
  background: #e5edcb;
  transform: rotate(3deg);
}
.shelf-art span:nth-child(3) {
  height: 62px;
  transform: rotate(0);
}
.storage-foot {
  text-align: center;
  font-size: 11px;
  margin: 32px 0;
}
.text-link {
  border: 0;
  text-decoration: underline;
  padding: 0 3px;
  font-size: inherit;
  min-height: 44px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 560px);
  display: flex;
  justify-content: center;
  background: #faf9f4f5;
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 21px 21px 0 0;
  padding: 8px 18px calc(8px + env(safe-area-inset-bottom));
  z-index: 5;
  gap: 8px;
}
.bottom-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  flex: 1;
  justify-content: center;
  font-size: 12px;
  color: #87907c;
  padding: 11px 6px;
  white-space: nowrap;
  min-width: 0;
}
.bottom-nav button span {
  font-size: 24px;
  line-height: 1;
}
.bottom-nav .selected {
  background: var(--fc-selected);
  color: var(--green);
  font-weight: 650;
}
@media (max-width: 480px) {
  .bottom-nav button {
    flex-direction: column;
    gap: 4px;
  }
  .bottom-nav button span {
    font-size: 20px;
  }
}
.search {
  display: flex;
  align-items: center;
  background: var(--fc-surface);
  border: 1px solid #d6dbc9;
  border-radius: 13px;
  margin: 30px 0 18px;
  padding: 10px 15px;
  gap: 10px;
}
.search > span:first-child {
  font-size: 27px;
  line-height: 1;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline-offset: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  color: var(--green);
}
.search-key {
  font-size: 10px;
  white-space: nowrap;
  color: #8b937e;
}
.filter-row {
  display: flex;
  overflow: auto;
  gap: 8px;
  padding: 3px 0 14px;
  scrollbar-width: thin;
}
.chip {
  white-space: nowrap;
  border-radius: 30px;
  font-size: 11px;
  padding: 8px 14px;
}
.chip.active {
  background: #e4eaca;
  border-color: #c6d3a3;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}
.product-card {
  text-align: left;
  border: 0;
  padding: 0;
  position: relative;
  min-width: 0;
}
.product-image {
  background: var(--fc-surface);
  aspect-ratio: 1;
  border-radius: 12px;
  margin-bottom: 13px;
  overflow: hidden;
  padding: 12px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.card-brand {
  font-size: 10px;
  color: #889078;
}
.product-card h2 {
  font-size: 16px;
  line-height: 1.5;
  margin: 5px 0;
}
.product-card p {
  font-size: 11px;
  margin-bottom: 5px;
}
.mono {
  font-family: ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.jan {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #919785;
}
.card-arrow {
  position: absolute;
  right: 1px;
  bottom: 0;
  color: #9eaa8a;
}
.empty-symbol {
  font-size: 55px;
  color: #abb799;
}
.notice,
.error {
  font-size: 13px;
  background: var(--fc-notice-bg);
  border: 1px solid #d6dfc2;
  padding: 14px 17px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.notice button,
.error button {
  margin: 6px 0 0 10px;
  font-size: 12px;
  min-height: 36px;
  padding: 4px 12px;
}
.error {
  background: var(--fc-error-bg);
  border-color: #e6c9b5;
}
.collection-feed {
  max-width: 600px;
  margin: auto;
}
.owned-card {
  background: #fffdf8;
  border: 1px solid #e1e2d8;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 28px;
}
.owned-top {
  display: flex;
  align-items: center;
  padding: 9px 17px;
  gap: 12px;
  font-size: 10px;
  color: #929987;
}
.owned-top time {
  margin-left: auto;
}
.entry-number {
  letter-spacing: 1.7px;
}
.owned-image {
  border: 0;
  width: 100%;
  border-radius: 0;
  background: var(--fc-surface);
  display: block;
  height: 380px;
  padding: 25px;
}
.owned-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.owned-copy {
  padding: 23px 26px 27px;
}
.owned-copy h2 {
  font-size: 24px;
  margin: 5px 0;
}
.owned-copy p {
  font-size: 12px;
  margin-bottom: 7px;
}
.note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hint {
  font-size: 12px;
  color: #8a917e;
}
.detail {
  max-width: 720px;
  margin: auto;
}
.back {
  margin: 6px 0 12px;
  padding-left: 0;
  font-size: 12px;
}
.hero-image {
  background: var(--fc-surface);
  border-radius: 15px;
  height: 450px;
  padding: 30px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-copy {
  padding: 30px 0;
}
.detail-copy h2 {
  font-size: 28px;
  margin: 8px 0;
}
.detail-copy > p {
  font-size: 13px;
}
dl {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  margin: 22px 0;
}
dl div {
  display: flex;
  font-size: 12px;
  padding: 6px 0;
}
dt {
  width: 70px;
  color: #8a917e;
}
dd {
  margin: 0;
}
.detail-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.detail-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--fc-surface);
  border-radius: 10px;
}
.source {
  display: block;
  font-size: 11px;
  margin: 23px 0;
}
.info-panel {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
  margin-top: 28px;
}
.info-panel h2 {
  margin-top: 24px;
}
.info-panel p,
.info-panel li {
  font-size: 14px;
}
.info-panel li {
  margin-bottom: 20px;
}
.pill {
  border-radius: 20px;
  background: #e5ecd5;
  padding: 7px 12px;
  font-size: 11px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--fc-backdrop);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: #faf9f4;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  padding: 28px;
  max-height: 90dvh;
  overflow: auto;
}
.modal label {
  display: block;
  font-size: 12px;
  margin: 18px 0;
}
.modal input,
.modal textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--fc-surface);
  border: 1px solid #ccd3be;
  border-radius: 8px;
  padding: 12px;
}
.modal textarea {
  min-height: 100px;
  resize: vertical;
}
.actions {
  display: flex;
  gap: 10px;
}
.actions button {
  flex: 1;
}
.delete {
  border: 0;
  color: var(--fc-danger);
  font-size: 12px;
  padding-left: 0;
  margin-top: 15px;
}
.image-fallback {
  height: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #a1a78f;
  font-size: 25px;
}
.image-fallback span {
  font-size: 11px;
}
.loading {
  padding: 40px 0;
  text-align: center;
}
h1:focus {
  outline: none;
}
@media (max-width: 600px) {
  .header {
    height: 72px;
    padding: 0 22px;
  }
  .wordmark {
    font-size: 16px;
    gap: 9px;
  }
  main {
    padding: 32px 22px 120px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  h1 {
    font-size: 36px;
  }
  .intro {
    font-size: 12px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .product-card h2 {
    font-size: 14px;
  }
  .product-image {
    padding: 9px;
  }
  .product-card p {
    font-size: 10px;
  }
  .card-brand {
    font-size: 9px;
  }
  .collection-empty {
    padding: 32px 0;
  }
  .owned-image {
    height: 330px;
    padding: 20px;
  }
  .owned-copy {
    padding: 20px;
  }
  .owned-copy h2 {
    font-size: 22px;
  }
  .hero-image {
    height: 345px;
    padding: 22px;
  }
  .detail-copy h2 {
    font-size: 25px;
  }
  .info-panel {
    padding: 23px;
  }
  .notice,
  .error {
    font-size: 12px;
  }
  .count {
    height: 33px;
    min-width: 33px;
    font-size: 16px;
  }
  .modal {
    padding: 23px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      transform 0.15s;
  }
  .product-card:hover .product-image {
    background: #f0f2e6;
  }
  .primary:active {
    transform: scale(0.98);
  }
}

.search input,
.modal input,
.modal textarea {
  font-size: 16px;
}

.identifiers {
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.identifiers summary {
  cursor: pointer;
  padding: 8px 0;
}
.identifiers p {
  overflow-wrap: anywhere;
}

.account-page {
  display: grid;
  gap: 24px;
}
.account-page .info-panel {
  margin-top: 0;
}
.account-page .info-panel h2 {
  margin-top: 0;
}
.account-form {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.account-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.account-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
}
.account-form select,
.account-form textarea {
  max-width: 100%;
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.account-email,
.cloud-item {
  overflow-wrap: anywhere;
}
.cloud-item {
  margin-bottom: 16px;
}
.product-card {
  text-decoration: none;
  color: inherit;
}
.offers-panel { margin: 24px 0; width: 100%; grid-column: 1 / -1; }
.offer-row { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.offer-row p { margin: 6px 0; }
.offer-row a { color: var(--green); text-underline-offset: 3px; }

.article-reader-page {
  max-width: 780px;
  padding-bottom: 64px;
}
.article-editor-page {
  max-width: 1120px;
  padding-bottom: 60px;
}
.article-editor-heading,
.article-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.article-editor-heading {
  justify-content: space-between;
  margin-bottom: 32px;
}
.article-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
}
.article-workspace aside button {
  display: block;
  text-align: left;
  width: 100%;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.article-workspace aside small {
  display: block;
  color: var(--fc-muted);
}
.article-workspace .selected {
  background: var(--fc-selected);
}
.article-editor {
  min-width: 0;
}
.article-editor fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.article-editor label {
  display: block;
  font-weight: 600;
  margin-bottom: 20px;
}
.article-editor input:not([type="file"]),
.article-editor textarea,
.article-permalink input {
  display: block;
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: var(--fc-surface);
  color: var(--fc-ink);
  font: inherit;
  font-size: 16px;
}
.article-editor textarea {
  resize: vertical;
  line-height: 1.85;
}
.article-upload {
  padding: 20px;
  border: 1px dashed var(--fc-green);
  border-radius: 12px;
}
.article-upload input {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.article-photo-edit {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  margin: 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fc-line);
}
.article-photo-edit img {
  width: 100%;
  border-radius: 10px;
}
.article-link-edit {
  padding: 18px;
  background: var(--fc-surface);
  border-radius: 12px;
  margin-bottom: 16px;
}
.article-save {
  position: sticky;
  bottom: 0;
  background: var(--fc-paper);
  padding: 16px 0;
  border-top: 1px solid var(--fc-line);
  margin-top: 28px;
  z-index: 2;
}
.article-permalink {
  padding: 20px;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  margin: 24px 0;
}
.article-permalink .article-actions {
  margin-top: 14px;
}
.article-preview {
  border-top: 1px solid var(--fc-line);
  padding-top: 32px;
  margin-top: 32px;
}
.article-body {
  overflow-wrap: anywhere;
}
.article-body h1 {
  margin: 20px 0;
}
.article-body .article-summary {
  font-size: 20px;
  color: var(--fc-muted);
  margin: 24px 0 36px;
}
.article-body .article-paragraph {
  white-space: pre-wrap;
  font-size: 17px;
  line-height: 1.95;
  color: var(--fc-ink);
}
.article-body figure {
  margin: 32px 0;
}
.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.article-body figcaption {
  font-size: 14px;
  color: var(--fc-muted);
  padding-top: 10px;
}
.article-related {
  border-top: 1px solid var(--fc-line);
  padding-top: 24px;
  margin-top: 40px;
}
.article-related a {
  display: block;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.article-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 28px;
  border-top: 1px solid var(--fc-line);
}
.article-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.article-cards > a {
  text-decoration: none;
  border: 1px solid var(--fc-line);
  border-radius: 16px;
  padding: 20px;
  background: var(--fc-surface);
  overflow-wrap: anywhere;
}
.article-cards img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 700px) {
  .article-workspace {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-workspace aside {
    max-height: 210px;
    overflow: auto;
  }
  .article-photo-edit {
    grid-template-columns: 1fr;
  }
  .article-photo-edit img {
    max-height: 260px;
    object-fit: contain;
  }
  .article-cards {
    grid-template-columns: 1fr;
  }
  .article-editor-heading h1 {
    font-size: 32px;
  }
  .article-save button {
    flex: 1;
    white-space: nowrap;
  }
  .article-reader-page,
  .article-editor-page {
    padding-left: 20px;
    padding-right: 20px;
  }
  .article-footer {
    padding-bottom: 40px;
  }
}
