/* YJP Marketplace, styled after apple.com's own design system.
   Font is the real system stack: -apple-system resolves to actual
   SF Pro on a Mac or iPhone. SF Pro itself is Apple's font and is not
   redistributable, so nothing is downloaded here, on any device. */
:root {
  --ink: #1d1d1f;        /* primary text, apple.com's near black */
  --ink-70: #424245;     /* secondary text */
  --ink-45: #6e6e73;     /* meta text, placeholders */
  --ink-20: #d2d2d7;     /* hairlines, borders */
  --ink-08: #f5f5f7;     /* section grey, apple.com's signature tint */
  --paper: #f9f9f9;      /* page background, light grey for better viewability */
  --raised: #ffffff;     /* card background, lifted with shadow not fill */
  --accent: #0071e3;     /* apple blue, links and primary buttons */
  --accent-dark: #0058b0;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 30px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-card: 18px;
  --pill: 980px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --rule: 1px solid var(--ink-20);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.serif { font-weight: 600; letter-spacing: -0.022em; line-height: 1.07; }
.saying { font-size: 19px; font-weight: 400; color: var(--ink-70); letter-spacing: -0.011em; margin: 0 0 1rem; }
.eyebrow {
  font-size: 12px; font-weight: 590; letter-spacing: 0.01em;
  color: var(--ink-45);
}

/* header, blurred and sticky like apple.com */
header.site {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky; top: 0; z-index: 20;
}
header.site .bar { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 0; min-height: 44px; }
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: -0.014em; color: var(--ink); flex: 0 0 auto; }
.wordmark span { color: var(--ink-45); font-weight: 400; }
nav.site {
  margin-left: auto; display: flex; gap: 1.4rem; align-items: center;
  font-size: 12px; color: var(--ink-70);
  min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
nav.site::-webkit-scrollbar { display: none; }
nav.site a { white-space: nowrap; }
nav.site a { color: var(--ink-70); }
nav.site a:hover { color: var(--ink); text-decoration: none; }
nav.site a.active { color: var(--ink); }

/* announcement strip, understated like apple's promo bar */
.strip {
  background: var(--ink-08);
  color: var(--ink-70);
  font-size: 12px;
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.strip a { margin-left: 0.4rem; font-weight: 590; }

/* hero, centered and oversized like a product page */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.hero h1 {
  font-weight: 600; letter-spacing: -0.022em;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1.07;
  margin: 0.35rem auto 0.7rem; max-width: 17ch; text-wrap: balance;
}
.hero .saying {
  font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 590; color: var(--ink);
  margin: 0 auto 0.5rem; max-width: 26ch;
}
.hero p.lede {
  color: var(--ink-45); max-width: 34ch; margin: 0 auto 1.4rem;
  font-size: clamp(14px, 1.8vw, 17px); line-height: 1.4;
}
.hero-cta { display: flex; gap: 1.2rem; justify-content: center; align-items: center; flex-wrap: wrap; margin: 0; }

/* aparigraha in three words */
.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0; border-top: 1px solid var(--ink-20);
  text-align: center;
}
.principles h2 {
  font-size: clamp(15px, 1.9vw, 19px); font-weight: 600; letter-spacing: -0.014em;
  margin: 0 0 0.25rem;
}
.principles p { font-size: clamp(12px, 1.5vw, 14px); color: var(--ink-45); margin: 0; line-height: 1.35; }
.principles-note {
  grid-column: 1 / -1; font-size: 12px; color: var(--ink-45);
  margin: 0.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--ink-08);
}

/* buttons: filled pill and chevron text link, the two apple uses everywhere */
.btn {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.62rem 1.35rem;
  border: none; border-radius: var(--pill); background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 400; letter-spacing: -0.01em; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.ghost {
  background: none; color: var(--accent); padding: 0.62rem 0.2rem; border: none;
}
.btn.ghost::after { content: "\2039"; display: inline-block; transform: rotate(180deg) translateY(-1px); margin-left: 1px; }
.btn.ghost:hover { background: none; text-decoration: underline; }
.btn.small { padding: 0.35rem 0.85rem; font-size: 13px; }
.btn.ghost.small {
  color: var(--ink-70); border: 1px solid var(--ink-20); border-radius: var(--pill);
  padding: 0.3rem 0.75rem;
}
.btn.ghost.small::after { content: none; }
.btn.ghost.small:hover { border-color: var(--ink-45); color: var(--ink); text-decoration: none; background: var(--ink-08); }

/* grid of listings, real cards lifted off a white page */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 2.5rem 0; }
.card {
  background: var(--raised); border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 14px 34px rgba(0,0,0,0.09); }
.card .frames { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; height: 150px; }
.frame { border-radius: 10px; overflow: hidden; background: var(--ink-08); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 { font-size: 15px; margin: 0; font-weight: 590; letter-spacing: -0.01em; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.price { font-weight: 600; font-size: 19px; letter-spacing: -0.014em; }
.tag { font-size: 11px; font-weight: 590; color: var(--ink-45); background: var(--ink-08); padding: 0.2rem 0.55rem; border-radius: var(--pill); }
.sold { position: relative; }
.sold::after { content: "Sold"; position: absolute; top: 1.1rem; right: 1.1rem; background: var(--ink); color: #fff; font-size: 11px; font-weight: 590; padding: 0.22rem 0.6rem; border-radius: var(--pill); }

/* filters, apple's rounded field style */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1.3rem 0; border-bottom: 1px solid var(--ink-20); }
.filters input[type=search], .filters select {
  border: none; background: var(--ink-08); border-radius: var(--pill); padding: 0.55rem 0.9rem;
  font: inherit; font-size: 14px; color: var(--ink);
}
.chip { font-size: 12px; padding: 0.35rem 0.7rem; border: 1px solid var(--ink-20); border-radius: var(--pill); color: var(--ink-45); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* detail, product page shape */
.detail { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; padding: 2.5rem 0; }
.gallery { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.gallery .frame:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery .frame { aspect-ratio: 1 / 1; border-radius: var(--radius-card); }
.detail h1 { font-weight: 600; letter-spacing: -0.022em; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.08; margin: 0.5rem 0; }
.spec { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--ink-20); font-size: 14px; }
.spec dt { color: var(--ink-45); }

/* forms, rounded fields, no boxed borders */
form.stack { max-width: 620px; }
form.stack label { display: block; font-size: 12px; font-weight: 590; color: var(--ink-45); margin-bottom: 0.4rem; }
form.stack input[type=text], form.stack input[type=email], form.stack input[type=password],
form.stack input[type=number], form.stack input[type=file], form.stack select, form.stack textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--ink-20); border-radius: var(--radius);
  background: var(--raised); font: inherit; font-size: 15px; margin-bottom: 1.1rem;
}
form.stack input:focus, form.stack select:focus, form.stack textarea:focus { border-color: var(--accent); }
form.stack .check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.2rem; }
form.stack .check label { font-weight: 400; font-size: 13px; color: var(--ink-70); margin: 0; }
.helptext, .errorlist { font-size: 12px; }
.helptext { color: var(--ink-45); margin: -0.8rem 0 1rem; }
.errorlist { color: var(--ink); list-style: none; padding: 0.6rem 0.9rem; margin: 0 0 0.8rem; border-radius: var(--radius); background: #fff2f1; border-left: 3px solid #ff3b30; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.4rem; }
.slot { border: 1px dashed var(--ink-20); border-radius: var(--radius); padding: 0.75rem; }
.slot .eyebrow { display: block; margin-bottom: 0.5rem; }
.slot input[type=file] { font-size: 11px; margin-bottom: 0; border: none; padding: 0; }

/* notices, panels, and the dark feature tile apple uses for callouts */
.notice { border-radius: var(--radius); background: var(--ink-08); padding: 0.85rem 1.1rem; margin: 1rem 0; font-size: 13px; }
.empty { border-radius: var(--radius-card); background: var(--ink-08); padding: 3rem 1rem; text-align: center; color: var(--ink-45); margin: 2rem 0; }

.panel {
  background: var(--ink-08); border-radius: var(--radius-card);
  padding: clamp(1.4rem, 3.5vw, 2.4rem); margin: 2rem 0;
}
.panel h2 { font-weight: 600; letter-spacing: -0.018em; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.12; margin: 0.3rem 0 0.8rem; }
.panel p:last-child { margin-bottom: 0; }
.panel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.6rem; }
.panel-row > div { border-left: 2px solid var(--ink-20); padding-left: 1rem; }
.panel-row .price { display: block; margin: 0.2rem 0 0.4rem; }
.panel-row p:last-child { font-size: 13px; color: var(--ink-70); margin: 0; }

.coffee {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
  background: #000; color: #fff; border-radius: var(--radius-card);
  padding: clamp(1.6rem, 4vw, 2.6rem); margin: 2.5rem 0;
}
.coffee-mark { font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; opacity: 0.9; }
.coffee h2 { font-weight: 600; letter-spacing: -0.018em; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.12; margin: 0.25rem 0 0.7rem; color: #fff; }
.coffee .eyebrow { color: #a1a1a6; }
.coffee p { color: #d2d2d7; margin: 0 0 0.6rem; max-width: 58ch; }
.coffee .btn { background: var(--accent); color: #fff; }
.coffee .btn:hover { background: var(--accent-dark); }
.coffee-cta { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 1rem; }
@media (max-width: 560px) { .coffee { grid-template-columns: 1fr; gap: 0.6rem; } }

main h2.serif { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin: 2.4rem 0 0.7rem; }
main ul { padding-left: 1.1rem; color: var(--ink-70); }
main ul li { margin-bottom: 0.5rem; }
main a.btn, main a.card { text-decoration: none; }

/* footer, quiet and small like apple's legal footer */
footer.site { background: var(--ink-08); margin-top: 3rem; padding: 2.5rem 0 2rem; font-size: 12px; color: var(--ink-45); }
footer.site .tag-line { font-weight: 590; font-size: 15px; color: var(--ink-70); }
footer.site a { color: var(--ink-70); }
footer.site a:hover { color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--ink-20); }
.foot-cols p:first-child.eyebrow { margin-bottom: 0.6rem; }
.foot-cols a { display: inline-block; margin-top: 0.3rem; }

table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain td, table.plain th { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--ink-20); }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; gap: 1.5rem; }
  nav.site { gap: 1.1rem; font-size: 12px; }
  .principles { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .principles > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem; align-items: baseline; }
  .principles h2 { margin: 0; }
  .principles-note { text-align: left; }
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .coffee { padding: 1.4rem; }
  .coffee h2 { font-size: 1.25rem; }
  .coffee p { font-size: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  header.site .bar { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.55rem 0; }
  nav.site { margin-left: 0; width: 100%; }
  .strip { font-size: 11px; text-align: left; }
  .hero-cta { gap: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
