/* Home Roastery Bogor
   Built on Rapi 0.2, the design language of 21 Strive (github.com/21strive/rapi): square corners,
   1px rules instead of shadows, Geist for reading and Geist Mono for figures. This site keeps to
   ink and greys only, and leans brutalist: the grid is the only decoration. */

@font-face {
  font-family: 'Geist Variable';
  src: url('assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono Variable';
  src: url('assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (Rapi primitives and roles, monochrome) ---------- */
:root {
  --r-neutral-0: #ffffff;
  --r-neutral-50: #f4f4f4;
  --r-neutral-100: #ededed;
  --r-neutral-150: #e5e5e5;
  --r-neutral-300: #c2c2c2;
  --r-neutral-400: #a3a3a3;
  --r-neutral-500: #6b6b6b;
  --r-neutral-600: #525252;
  --r-neutral-700: #3d3d3d;
  --r-neutral-900: #151515;

  --r-font-sans: 'Geist Variable', 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, sans-serif;
  --r-font-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas,
    monospace;

  --r-tracking-display: -0.045em;
  --r-tracking-tighter: -0.032em;
  --r-tracking-tight: -0.022em;
  --r-tracking-snug: -0.011em;

  --r-control-md: 32px;
  --r-control-lg: 40px;
  --r-control-xl: 48px;

  --r-ease-out: cubic-bezier(0.2, 0, 0, 1);
  --r-duration-fast: 110ms;

  --page: 24px;
  --header-h: 56px;
}

:root,
[data-theme='light'] {
  color-scheme: light;
  --r-bg-canvas: var(--r-neutral-0);
  --r-bg-muted: var(--r-neutral-50);
  --r-bg-hover: var(--r-neutral-100);
  --r-border: var(--r-neutral-150);
  --r-border-strong: var(--r-neutral-300);
  --r-border-control: #8a8a8a;
  --r-text: var(--r-neutral-900);
  --r-text-secondary: var(--r-neutral-600);
  --r-text-tertiary: var(--r-neutral-500);
  --r-text-disabled: var(--r-neutral-400);
  --r-ink: var(--r-neutral-900);
  --r-ink-hover: var(--r-neutral-700);
  --r-on-ink: var(--r-neutral-0);
  --r-focus: var(--r-neutral-900);
  /* The structural rule: the grid of the page, drawn in ink. Rows inside use --r-border. */
  --r-rule: var(--r-neutral-900);
}

[data-theme='dark'] {
  color-scheme: dark;
  --r-bg-canvas: var(--r-neutral-900);
  --r-bg-muted: #1b1b1b;
  --r-bg-hover: #222222;
  --r-border: #2a2a2a;
  --r-border-strong: #424242;
  --r-border-control: #707070;
  --r-text: #ededed;
  --r-text-secondary: #b4b4b4;
  --r-text-tertiary: #8f8f8f;
  --r-text-disabled: #5e5e5e;
  --r-ink: #ededed;
  --r-ink-hover: #ffffff;
  --r-on-ink: var(--r-neutral-900);
  --r-focus: #ededed;
  --r-rule: #5e5e5e;
}

[data-theme]:not(html) {
  background: var(--r-bg-canvas);
  color: var(--r-text);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--r-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--r-text);
  background: var(--r-bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

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

/* Keeps the drawings at their own aspect ratio when CSS sets only their width. */
img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

::selection {
  background: var(--r-ink);
  color: var(--r-on-ink);
}

:focus-visible {
  outline: 2px solid var(--r-focus);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--r-ink);
  color: var(--r-on-ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.mono {
  font-family: var(--r-font-mono);
  font-variant-numeric: tabular-nums;
}

/* Line art is drawn in ink on white. On a dark surface it is inverted just enough that its white
   lands exactly on the dark canvas (#151515) and its ink on the light text tone. */
[data-theme='dark'] .art {
  filter: invert(0.918);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: var(--header-h);
  border-bottom: 1px solid var(--r-rule);
  background: var(--r-bg-canvas);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--page);
  border-right: 1px solid var(--r-rule);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: var(--r-tracking-snug);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 20px;
  height: auto;
}

.site-nav,
.site-header__end {
  display: flex;
}

.site-nav a,
.site-header__end a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--r-duration-fast) var(--r-ease-out);
}

.site-nav a {
  border-right: 1px solid var(--r-rule);
}

.site-header__end a {
  border-left: 1px solid var(--r-rule);
}

.site-nav a:hover,
.site-header__end a:hover {
  background: var(--r-bg-hover);
}

.site-nav .count {
  font-family: var(--r-font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--r-text-tertiary);
}

.site-nav a[aria-current='page'] {
  background: var(--r-ink);
  color: var(--r-on-ink);
}

.site-nav a[aria-current='page'] .count {
  color: inherit;
}

.site-header__end .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--r-control-lg);
  padding: 0 16px;
  border: 1px solid var(--r-ink);
  background: var(--r-ink);
  color: var(--r-on-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--r-tracking-snug);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--r-duration-fast) var(--r-ease-out),
    border-color var(--r-duration-fast) var(--r-ease-out),
    color var(--r-duration-fast) var(--r-ease-out);
}

.btn:hover {
  background: var(--r-ink-hover);
  border-color: var(--r-ink-hover);
}

.btn--outline {
  background: transparent;
  color: var(--r-text);
  border-color: var(--r-ink);
}

.btn--outline:hover {
  background: var(--r-ink);
  border-color: var(--r-ink);
  color: var(--r-on-ink);
}

.btn--xl {
  height: var(--r-control-xl);
  padding: 0 20px;
  font-size: 16px;
}

/* ---------- Shared blocks ---------- */
.section {
  border-bottom: 1px solid var(--r-rule);
}

/* Rapi's spec header: the title on the left, a short description in a narrow column on the right. */
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 24px;
  padding: 56px var(--page) 24px;
  border-bottom: 1px solid var(--r-rule);
}

.section__title {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--r-tracking-tighter);
}

.section__desc {
  max-width: 30em;
  color: var(--r-text-secondary);
}

.specs {
  border-top: 1px solid var(--r-border);
}

.specs > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--r-border);
  font-size: 15px;
}

.specs dt {
  color: var(--r-text-tertiary);
}

.cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cell {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 24px var(--page) 40px;
  border-right: 1px solid var(--r-rule);
}

.cell:last-child {
  border-right: 0;
}

.cell h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--r-tracking-tight);
}

.cell p {
  max-width: 26em;
  color: var(--r-text-secondary);
  font-size: 15px;
}

.cell a {
  width: fit-content;
}

.index {
  font-family: var(--r-font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--r-text-tertiary);
}

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-bottom: 1px solid var(--r-rule);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(48px, 7vw, 112px) var(--page) var(--page);
}

.hero__title {
  font-size: clamp(52px, 7.6vw, 124px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: var(--r-tracking-display);
}

.hero__title span {
  display: block;
}

.hero__foot {
  display: grid;
  gap: 24px;
}

.hero__lede {
  max-width: 34em;
  color: var(--r-text-secondary);
  font-size: clamp(17px, 1.3vw, 19px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid var(--r-rule);
}

.hero__art img {
  width: min(78%, 360px);
  margin: 40px auto var(--page);
}

/* ---------- Home: the two choices ---------- */
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--r-rule);
}

.choice {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  min-height: 620px;
  text-decoration: none;
  transition: background-color var(--r-duration-fast) var(--r-ease-out);
}

/* The whole block shades on hover: 8% of its text colour mixed into its canvas. White turns light
   grey (#ececec) and black turns dark grey (#262626), a step that reads about the same on both. */
.choice:hover,
.choice:focus-visible {
  background: color-mix(in srgb, var(--r-text) 8%, var(--r-bg-canvas));
}

/* Rows are a tint of the text colour rather than a flat grey, so they keep their contrast when the
   block shades. At rest they match --r-border exactly. */
.choice[data-theme='light'] {
  --r-border: rgb(21 21 21 / 0.11);
}

.choice[data-theme='dark'] {
  --r-border: rgb(237 237 237 / 0.097);
}

.choice + .choice {
  border-left: 1px solid var(--r-rule);
}

.choice__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 32px var(--page) 0;
}

.choice__title {
  font-size: clamp(64px, 8vw, 132px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.05em;
}

.choice__count {
  padding-top: 10px;
  font-family: var(--r-font-mono);
  font-size: 13px;
  color: var(--r-text-tertiary);
  white-space: nowrap;
}

.choice__text {
  max-width: 24em;
  padding: 20px var(--page) 0;
  color: var(--r-text-secondary);
  font-size: 18px;
}

.choice__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.62fr);
  align-items: end;
  gap: 32px;
  padding: 40px var(--page) 32px;
}

.choice__art {
  width: 100%;
  max-width: 230px;
  justify-self: end;
  /* Blends into the block, so the drawing's white paper takes the hover shade too. */
  mix-blend-mode: darken;
}

[data-theme='dark'] .choice__art {
  mix-blend-mode: lighten;
}

.choice__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 var(--page);
  border-top: 1px solid var(--r-rule);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: var(--r-tracking-snug);
}

.choice__cta .icon {
  width: 20px;
  height: 20px;
}

.choice:focus-visible {
  outline-offset: -4px;
}

/* ---------- Catalogue pages: head ---------- */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--r-rule);
}

.page-head__title {
  align-self: end;
  padding: clamp(40px, 6vw, 96px) var(--page) clamp(16px, 2vw, 28px);
  font-size: clamp(64px, 11.5vw, 188px);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.055em;
}

.page-head__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: var(--page);
  border-left: 1px solid var(--r-rule);
}

.page-head__aside > p {
  max-width: 30em;
  color: var(--r-text-secondary);
  font-size: 17px;
}

/* The page's drawing sits beside its specs, the same pairing as the choice blocks on the home page. */
.page-head__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.62fr);
  align-items: end;
  gap: 24px;
}

.page-head__art {
  width: 100%;
  max-width: 220px;
  justify-self: end;
}

/* ---------- Catalogue pages: toolbar ---------- */
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 12px var(--page);
  border-bottom: 1px solid var(--r-rule);
  background: var(--r-bg-canvas);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.chips__label {
  margin-right: 4px;
  color: var(--r-text-tertiary);
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--r-border-control);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color var(--r-duration-fast) var(--r-ease-out),
    border-color var(--r-duration-fast) var(--r-ease-out),
    color var(--r-duration-fast) var(--r-ease-out);
}

.chip small {
  font-family: var(--r-font-mono);
  font-size: 11px;
  color: var(--r-text-tertiary);
}

.chip:hover {
  border-color: var(--r-ink);
}

.chip[aria-pressed='true'] {
  border-color: var(--r-ink);
  background: var(--r-ink);
  color: var(--r-on-ink);
}

.chip[aria-pressed='true'] small {
  color: inherit;
}

.search {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
}

.search .icon {
  position: absolute;
  top: 50%;
  left: 11px;
  color: var(--r-text-tertiary);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--r-border-control);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: var(--r-text-tertiary);
  opacity: 1;
}

.search input:focus-visible {
  border-color: var(--r-ink);
  outline-offset: -1px;
}

.toolbar__count {
  margin-left: auto;
  font-family: var(--r-font-mono);
  font-size: 12px;
  color: var(--r-text-tertiary);
  white-space: nowrap;
}

/* ---------- Catalogue pages: the list ---------- */
.list-head,
.row {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 16px;
  padding: 0 var(--page);
}

.catalog--espresso {
  --cols: 32px minmax(0, 1.5fr) minmax(0, 1fr) repeat(4, minmax(112px, 124px)) 132px;
}

.catalog--filter {
  --cols: 32px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) repeat(3, minmax(100px, 112px)) 132px;
}

.list-head {
  align-items: center;
  height: 36px;
  border-bottom: 1px solid var(--r-rule);
  background: var(--r-bg-muted);
  color: var(--r-text-tertiary);
  font-size: 13px;
}

.list-head .is-num {
  padding-right: 11px;
  font-family: var(--r-font-mono);
  font-size: 12px;
  text-align: right;
}

.group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 32px var(--page) 12px;
  border-bottom: 1px solid var(--r-rule);
}

.group h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--r-tracking-tight);
}

.group p {
  color: var(--r-text-secondary);
  font-size: 15px;
}

.group .index {
  margin-left: auto;
}

.row {
  align-items: start;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--r-border);
}

.row__no {
  padding-top: 5px;
}

.row__name {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--r-tracking-tight);
}

.row__sub {
  margin-top: 4px;
  color: var(--r-text-secondary);
  font-size: 14px;
}

.row__cell {
  padding-top: 3px;
  font-size: 15px;
}

.row__cell small {
  display: none;
}

.row__spec {
  display: grid;
  align-content: start;
  gap: 2px;
}

.row__spec .row__cell + .row__cell {
  padding-top: 0;
  color: var(--r-text-secondary);
  font-size: 14px;
}

.row__notes {
  color: var(--r-text-secondary);
}

.row__notes .tag {
  margin-bottom: 6px;
}

.row.is-sold .row__name,
.row.is-sold .row__sub {
  color: var(--r-text-tertiary);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--r-border-control);
  color: var(--r-text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tag--sold {
  margin-left: 4px;
  border-color: var(--r-ink);
  vertical-align: 3px;
}

.price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--r-border);
  background: transparent;
  font-family: var(--r-font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  transition:
    background-color var(--r-duration-fast) var(--r-ease-out),
    border-color var(--r-duration-fast) var(--r-ease-out),
    color var(--r-duration-fast) var(--r-ease-out);
}

.price__size {
  display: none;
  margin-right: auto;
  color: var(--r-text-tertiary);
}

.price__unit {
  margin-left: 2px;
  color: var(--r-text-tertiary);
  font-size: 11px;
}

.price:hover:not(:disabled) {
  border-color: var(--r-ink);
}

.price[aria-pressed='true'] {
  border-color: var(--r-ink);
  background: var(--r-ink);
  color: var(--r-on-ink);
}

.price[aria-pressed='true'] .price__size,
.price[aria-pressed='true'] .price__unit {
  color: inherit;
}

.price:disabled {
  color: var(--r-text-disabled);
  text-decoration: line-through;
  cursor: not-allowed;
}

.price--none {
  visibility: hidden;
}

.row__action .btn {
  width: 100%;
  padding: 0 12px;
}

.empty {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 48px var(--page);
  border-bottom: 1px solid var(--r-border);
  font-size: 18px;
}

.empty[hidden] {
  display: none;
}

.notes {
  display: grid;
  gap: 4px;
  padding: 20px var(--page) 28px;
  border-bottom: 1px solid var(--r-rule);
  color: var(--r-text-secondary);
  font-size: 14px;
}

.next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px var(--page);
  border-bottom: 1px solid var(--r-rule);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--r-tracking-tighter);
  text-decoration: none;
  transition:
    background-color var(--r-duration-fast) var(--r-ease-out),
    color var(--r-duration-fast) var(--r-ease-out);
}

.next span {
  display: block;
  margin-bottom: 6px;
  color: var(--r-text-tertiary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.next .icon {
  width: 28px;
  height: 28px;
}

.next:hover {
  background: var(--r-ink);
  color: var(--r-on-ink);
}

.next:hover span {
  color: inherit;
}

/* ---------- Cara pesan ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--r-rule);
}

.step {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 24px var(--page) 48px;
  border-right: 1px solid var(--r-rule);
}

.step:last-child {
  border-right: 0;
}

.step h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--r-tracking-tighter);
}

.step p {
  max-width: 24em;
  color: var(--r-text-secondary);
}

.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--r-rule);
}

.channel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 28px var(--page) 32px;
  text-decoration: none;
  transition:
    background-color var(--r-duration-fast) var(--r-ease-out),
    color var(--r-duration-fast) var(--r-ease-out);
}

.channel + .channel {
  border-left: 1px solid var(--r-rule);
}

.channel__label {
  color: var(--r-text-tertiary);
  font-size: 15px;
}

.channel__name {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.channel__name .icon {
  width: 28px;
  height: 28px;
  margin-top: 4px;
}

.channel p {
  max-width: 30em;
  color: var(--r-text-secondary);
}

.channel:hover {
  background: var(--r-ink);
  color: var(--r-on-ink);
}

.channel:hover .channel__label,
.channel:hover p {
  color: inherit;
}

.info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  border-bottom: 1px solid var(--r-rule);
}

.info__title {
  padding: 24px var(--page);
  border-right: 1px solid var(--r-rule);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--r-tracking-tighter);
}

.info .specs {
  border-top: 0;
}

.info .specs > div {
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  gap: 24px;
  padding: 16px var(--page);
  font-size: 16px;
}

.info .specs > div:last-child {
  border-bottom: 0;
}

/* ---------- Footer ---------- */
/* The panorama follows the page theme: ink on white, or inverted on the dark espresso page. */
.pano {
  padding-top: 40px;
  background: var(--r-bg-canvas);
}

.pano__stage {
  position: relative;
}

.pano__stage img {
  width: 100%;
  height: auto;
}

.pano__labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pano__labels text {
  fill: var(--r-text);
  font-family: var(--r-font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  paint-order: stroke;
  stroke: var(--r-bg-canvas);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.pano__labels .pano__alt {
  font-family: var(--r-font-mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.pano__labels path {
  fill: none;
  stroke: var(--r-text);
  stroke-width: 1.5;
}

.pano__labels circle {
  fill: var(--r-text);
}

/* "Kami di sini" is set in reverse, so the showroom is the first thing the eye finds. */
.pano__here rect {
  fill: var(--r-text);
}

.pano__labels .pano__here text {
  fill: var(--r-bg-canvas);
  stroke: none;
}

.pano__legend {
  display: none;
}

.footer-base {
  border-top: 1px solid var(--r-rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  padding: 32px var(--page) 48px;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-brand b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--r-tracking-tight);
}

.footer-brand p,
.footer-col p {
  color: var(--r-text-secondary);
}

.footer-col h2 {
  margin-bottom: 10px;
  color: var(--r-text-tertiary);
  font-size: 14px;
  font-weight: 400;
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 2px 0;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col .count {
  margin-left: 6px;
  font-family: var(--r-font-mono);
  font-size: 12px;
  color: var(--r-text-tertiary);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px var(--page) 20px;
  border-top: 1px solid var(--r-border);
  color: var(--r-text-tertiary);
  font-size: 14px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 140;
  width: min(calc(100vw - 32px), 460px);
  padding: 14px 16px;
  border: 1px solid var(--r-neutral-700);
  background: var(--r-neutral-900);
  color: var(--r-neutral-100);
  box-shadow:
    0 1px 3px rgb(14 14 14 / 0.06),
    0 10px 24px -10px rgb(14 14 14 / 0.2);
  font-size: 15px;
  transform: translateX(-50%);
}

html[data-theme='dark'] .toast {
  border-color: var(--r-neutral-300);
  background: var(--r-neutral-100);
  color: var(--r-neutral-900);
}

.toast[hidden] {
  display: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 1101px) {
  /* On wide screens every cell of a row is its own column, lined up under the list head. */
  .row__info,
  .row__buy,
  .row__prices {
    display: contents;
  }
}

@media (max-width: 1100px) {
  .list-head {
    display: none;
  }

  /* What the bean is on the left; sizes and the order button on the right. */
  .row {
    grid-template-columns: 32px minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 10px 24px;
  }

  .row__info,
  .row__buy {
    display: grid;
    align-content: start;
    gap: 10px;
  }

  .row__buy {
    gap: 8px;
  }

  .row__cell small {
    display: inline;
    margin-right: 8px;
    color: var(--r-text-tertiary);
    font-size: 13px;
  }

  .row__prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  /* Each size cell stacks its size above its price. Side by side, the longest cell
     ("> 10 kg", Rp160.000/kg) needs about 165px and overflowed narrower columns. */
  .price {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    height: 52px;
    line-height: 1.3;
  }

  .price__size {
    display: block;
    margin-right: 0;
    font-size: 12px;
  }

  .price--none {
    display: none;
  }
}

@media (max-width: 900px) {
  /* Tokopedia stays in the footer and on the order page; the header keeps Instagram only. */
  .site-header__end a + a {
    display: none;
  }

  .hero,
  .choices,
  .section__head,
  .page-head,
  .steps,
  .channels,
  .info {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    border-left: 0;
    border-top: 1px solid var(--r-rule);
  }

  .choice {
    min-height: 0;
  }

  .choice + .choice {
    border-left: 0;
    border-top: 1px solid var(--r-rule);
  }

  .cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cell:nth-child(2n) {
    border-right: 0;
  }

  .cell:nth-child(n + 3) {
    border-top: 1px solid var(--r-rule);
  }

  .cells--3 .cell:nth-child(3) {
    grid-column: 1 / -1;
  }

  .page-head__aside {
    border-left: 0;
    border-top: 1px solid var(--r-rule);
  }

  .step {
    border-right: 0;
  }

  .step + .step {
    border-top: 1px solid var(--r-rule);
  }

  .channel + .channel {
    border-left: 0;
    border-top: 1px solid var(--r-rule);
  }

  .info__title {
    border-right: 0;
    border-bottom: 1px solid var(--r-rule);
  }

  .pano__labels {
    display: none;
  }

  .pano__legend {
    display: block;
    padding: 0 var(--page) 16px;
    color: var(--r-text-secondary);
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --page: 16px;
    --header-h: 104px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 52px;
    height: auto;
  }

  .brand {
    border-right: 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--r-rule);
  }

  .site-nav a {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
  }

  .site-nav a:last-child {
    border-right: 0;
  }

  .site-header__end a {
    padding: 0 14px;
  }

  .section__head {
    padding-top: 40px;
  }

  .cells {
    grid-template-columns: minmax(0, 1fr);
  }

  .cell {
    border-right: 0;
    padding-bottom: 28px;
  }

  .cell + .cell {
    border-top: 1px solid var(--r-rule);
  }

  .choice__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .choice__art {
    grid-row: 1;
    justify-self: start;
    max-width: 180px;
  }

  .page-head__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-head__art {
    grid-row: 1;
    justify-self: start;
    max-width: 168px;
  }

  .toolbar {
    position: static;
  }

  .search {
    flex-basis: 100%;
    max-width: none;
  }

  .toolbar__count {
    margin-left: 0;
  }

  .row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .row__buy {
    grid-column: 2;
  }

  .footer-legal {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
