/* ARUCA — a bright, photo-first everyday comparison app. */
:root {
  color-scheme: light;
  --aruca-ink: #124b4a;
  --aruca-text: #253d3b;
  --aruca-muted: #5d706b;
  --aruca-coral: #f35b6b;
  --aruca-action: #b72e48;
  --aruca-pink: #ffc6d1;
  --aruca-mint: #a8ead2;
  --aruca-lemon: #f9de69;
  --aruca-paper: #fffaf9;
  --aruca-line: #dfebe6;
  --bg: var(--aruca-paper);
  --paper: var(--aruca-paper);
  --ink: var(--aruca-text);
  --muted: var(--aruca-muted);
  --accent: var(--aruca-ink);
  --plum: var(--aruca-ink);
  --rust: var(--aruca-action);
  --line: var(--aruca-line);
  --rule: var(--aruca-line);
  --soft: #e4f8ef;
  --peach: #ffe5eb;
  --gold: #bd7208;
  --storefront-ink: var(--aruca-ink);
  --storefront-muted: var(--aruca-muted);
  --storefront-line: var(--aruca-line);
}

body, body[data-view="home"] { background: var(--aruca-paper); color: var(--aruca-text); }
::selection { color: var(--aruca-ink); background: var(--aruca-mint); }
:focus-visible { outline-color: var(--aruca-action); }
[hidden] { display: none !important; }

/* Brand and search stay compact, even on a small phone. */
.storefront-mast { border-top: 4px solid var(--aruca-coral); }
.storefront-mast-row { min-height: 76px; }
.storefront-brand.logo img { width: 156px; height: auto; aspect-ratio: 68 / 15; }
.storefront-install { color: var(--aruca-ink); background: #e9f8f1; }
.storefront-wide-nav .navbtn.active { color: var(--aruca-action); text-decoration-color: var(--aruca-coral); }
.storefront-wide-nav .navbtn i,
.bottom-nav.storefront-bottom .navbtn i { background: var(--aruca-action); }
.storefront-tools { box-shadow: 0 4px 16px #124b4a05; }
.storefront-tools-inner { padding-block: 6px 10px; }
.storefront-search { min-height: 48px; padding: 2px 12px 2px 3px; border: 1px solid #d0e9de; border-radius: 28px; background: #f0faf5; }
.storefront-search button { color: var(--aruca-ink); }
.storefront-search input::placeholder { color: #5c726a; }
.storefront-search:focus-within { border-color: var(--aruca-ink); box-shadow: 0 0 0 3px #a8ead252; }
.storefront-departments { gap: 4px; margin-block: 8px -3px; padding-block: 2px; }
.storefront-departments button { min-height: 40px; padding: 5px 15px; border-radius: 22px; color: #536d65; }
.storefront-departments button[aria-pressed="true"] { color: #8c2840; background: #ffe3e9; }
.storefront-departments button[aria-pressed="true"]::after { content: none; }
.storefront-menu-links { border-color: var(--aruca-line); border-radius: 16px; box-shadow: 0 12px 35px #124b4a17; }
.storefront-menu-links a { border-radius: 11px; }

#home.sf-home {
  --store-ink: var(--aruca-ink);
  --store-plum: var(--aruca-action);
  --store-gutter: clamp(16px, 3.7vw, 38px);
  padding-top: 22px;
  padding-bottom: 28px;
}
.aruca-home-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 var(--store-gutter) 17px;
  color: var(--aruca-ink);
  font-family: inherit;
  font-size: clamp(1.375rem, 5vw, 1.875rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.45;
}
.aruca-home-title svg { width: 28px; height: 28px; flex: 0 0 28px; fill: var(--aruca-coral); }
body[data-store-dept]:not([data-store-dept="all"]) .aruca-home-title { display: none; }

/* The existing swipeable features pair real photography with clear colour. */
.store-features { background: transparent; }
.store-slides { gap: 12px; }
.store-slide {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  flex-basis: calc(100% - 12px);
  aspect-ratio: 1.87;
  max-height: 365px;
  border-radius: 20px;
  background: var(--aruca-pink);
  color: var(--aruca-ink);
}
.store-slide:nth-child(2) { background: var(--aruca-mint); }
.store-slide:nth-child(3) { background: var(--aruca-lemon); }
.store-slide::after { content: none; }
.store-slide > picture,
.store-slide > img {
  position: relative;
  grid-area: 1 / 2;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  z-index: 0;
  object-fit: cover;
}
.store-slide > picture img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
.store-slide-copy {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  color: var(--aruca-ink);
}
.store-slide-copy small { font-size: .875rem; font-weight: 650; letter-spacing: .015em; line-height: 1.4; }
.store-slide-copy strong { font-size: clamp(1.125rem, 4.8vw, 2rem); font-weight: 750; line-height: 1.5; letter-spacing: -.045em; text-wrap: initial; }
.store-slide-link { display: inline-block; margin-top: 4px; border-bottom: 1px solid currentColor; font-size: .875rem; font-weight: 600; line-height: 1.65; }
.store-pager { min-height: 40px; }
.store-pager button { width: 44px; height: 40px; }
.store-pager button::after { width: 6px; height: 6px; background: #d5ded9; }
.store-pager button[aria-current]::after { width: 20px; background: var(--aruca-coral); }
.store-slides a:focus-visible { outline-color: var(--aruca-action); outline-offset: -4px; }

.store-shortcuts { gap: 6px; padding-top: 2px; padding-bottom: 22px; background: transparent; border-color: var(--aruca-line); }
.store-shortcuts > :is(a, button) { gap: 8px; min-height: 88px; font-size: .875rem; color: var(--aruca-ink); }
.store-orb { width: clamp(54px, 14vw, 70px); border-radius: 19px; color: var(--aruca-ink); }
.store-orb-categories { padding: 14px; gap: 4px; background: #ffe2e8; }
.store-orb-categories i { border-radius: 3px; background: var(--aruca-coral); }
.store-orb-categories i:nth-child(2) { background: #1f8274; }
.store-orb-categories i:nth-child(3) { background: #dcaa27; }
.store-orb-categories i:nth-child(4) { border-radius: 3px 3px 9px 3px; background: #ae86d0; }
.store-orb-budget { background: var(--aruca-lemon); color: var(--aruca-ink); font-family: inherit; font-weight: 750; letter-spacing: -.06em; font-size: clamp(.9rem, 3.8vw, 1.2rem); }
.store-orb-journal { background: var(--aruca-mint); }
.store-orb-gift { background: #ddd2f5; color: #664281; }
.store-orb > svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Product photos and price stay prominent; colour belongs to the frame. */
.store-shelf { padding-top: 25px; padding-bottom: 3px; }
.store-shelf-head { margin-bottom: 13px; }
.store-shelf-head h2 { display: flex; align-items: center; gap: 9px; font-size: clamp(1rem, 4.4vw, 1.375rem); }
.store-shelf-head h2::before { content: ""; width: 6px; height: 19px; flex: 0 0 6px; border-radius: 5px; background: var(--aruca-coral); pointer-events: none; }
[data-store-shelf="budget"] h2::before { background: #deac25; }
[data-store-shelf="history"] h2::before,
[data-store-shelf="related"] h2::before { background: #34a98c; }
.store-shelf-head > :is(a, button) { min-height: 44px; color: var(--aruca-ink); }
.store-shelf-head > :is(a, button)::after { content: none; }
.sf-home .store-products { gap: 12px; overflow: visible; border-radius: 0; }
.sf-tile { --sf-ink: var(--aruca-text); --sf-muted: var(--aruca-muted); }
.sf-home .store-products .sf-tile { border: 1px solid var(--aruca-line); border-radius: 16px; overflow: hidden; box-shadow: 0 3px 10px #124b4a04; }
.sf-photo, .sf-home .store-products .sf-photo { background: #f6faf8; border-radius: 14px; }
.sf-home .store-products .sf-photo { border-radius: 15px 15px 0 0; }
.sf-home .store-products .sf-info { margin-top: 10px; padding-inline: 10px; }
.sf-home .store-products .sf-price-row { margin-inline: 10px 6px; margin-bottom: 5px; }
.sf-home .store-products .sf-heart { right: -3px; }
.sf-brand { color: var(--aruca-muted); }
.sf-name { font-size: clamp(.875rem, 1.9vw, 1rem); }
.sf-price strong { color: var(--aruca-ink); }
.sf-heart[aria-pressed="true"], .heart.active { color: var(--aruca-action); }
.sf-tile .sf-buy, .sf-tile .sf-compare[aria-pressed="true"] { color: var(--aruca-action); }
.sf-actions { border-color: var(--aruca-line); }
.store-dept-cover { background: var(--aruca-ink); border-radius: 18px; }
.store-dept-cover::after { background: linear-gradient(0deg, #124b4ac9, #124b4a12 86%); }
.store-guide-links { gap: 8px; }
.store-guide-links a { min-height: 44px; padding-inline: 15px; color: var(--aruca-ink); border-color: #cde5da; background: #eaf9f1; }

/* Bring the comparison and buying controls into the same visual language. */
:is(.page-heading, .guide-head, .rak-head) h1 { color: var(--aruca-ink); font-family: inherit; font-weight: 750; }
.primary, .guide-primary, .pd-cta a { background: var(--aruca-ink); color: #fff; border-radius: 12px; }
.primary:hover, .guide-primary:hover, .pd-cta a:hover { background: #0a3a39; }
.secondary, .action, .search-panel, .guide-controls { border-color: var(--aruca-line); }
.priority[aria-pressed="true"], .guide-chip[aria-pressed="true"] { color: var(--aruca-ink); background: #dff6eb; border-color: #80cdb4; }
.result-summary { color: var(--aruca-ink); background: #e4f8ef; }
.search-extra > summary { color: var(--aruca-ink); }
.compare-table th:first-child { background: #eaf9f1; }
.item-sheet { --item-ink: var(--aruca-text); --item-muted: var(--aruca-muted); --item-line: var(--aruca-line); }
.item-sheet .item-sheet-actions .action[aria-pressed="true"] { color: var(--aruca-action); border-color: #eca9b7; background: #fff0f4; }
.product-decision { --pd-ink: var(--aruca-text); --pd-muted: var(--aruca-muted); --pd-line: var(--aruca-line); }
.journal-page { --story-ink: var(--aruca-ink); --story-rule: var(--aruca-line); }
.journal-page .edit-head { background: var(--aruca-ink); border-radius: 20px; }
.journal-page .edit-head h1 { font-family: inherit; font-weight: 700; }
.journal-page .scene-choices button { background: #eaf9f1; border-color: #cde5da; }
.install-dialog .install-icon { border-radius: 17px; }
#toast { background: var(--aruca-ink); }

body[data-view] > footer { margin-top: 36px; background: #e9f8f1; border-top: 0; }
.footer-inner .logo img { width: 154px; height: auto; aspect-ratio: 68 / 15; }
.footer-inner b { color: var(--aruca-ink); }
.footer-links a { color: var(--aruca-ink); }
.copyright { color: #526b61; }

/* Article, policy and contact pages share the same identity. */
:is(.aruca-editorial-page, .aruca-journal-page, .aruca-guide-page, .aruca-contact-page, .aruca-brand-page) {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
:is(.aruca-editorial-page, .aruca-journal-page, .aruca-guide-page) :is(.mast, .topbar) { border-color: var(--aruca-line); }
:is(.aruca-editorial-page, .aruca-journal-page, .aruca-guide-page) :is(.intro, .lead, .lede) { color: var(--aruca-text); }
:is(.aruca-contact-page, .aruca-brand-page) header { background: #fff; border-top: 4px solid var(--aruca-coral); border-bottom-color: var(--aruca-line); }
:is(.aruca-contact-page, .aruca-brand-page) header > a { font-family: inherit; font-weight: 750; color: var(--aruca-ink); }
:is(.aruca-contact-page, .aruca-brand-page) h1 { color: var(--aruca-ink); font-family: inherit; font-weight: 750; letter-spacing: -.03em; }
:is(.aruca-contact-page, .aruca-brand-page) a { color: var(--aruca-ink); }
.aruca-contact-page :is(select, textarea) { border-color: #a8c9bb; border-radius: 12px; color: var(--aruca-text); }
.aruca-contact-page button { border-radius: 12px; background: var(--aruca-ink); }
.aruca-contact-page #result:not(:empty) { background: #e4f8ef; border-color: #299b79; }
.aruca-brand-display { margin: 24px 0; padding: clamp(24px, 6vw, 42px); border-radius: 22px; background: var(--aruca-pink); }
.aruca-brand-display img { display: block; width: 100%; max-width: 460px; height: auto; margin: auto; }
.aruca-brand-actions, .aruca-brand-assets { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.aruca-brand-actions a { padding: 12px 20px; border-radius: 12px; color: #fff; background: var(--aruca-ink); text-decoration: none; font-weight: 650; }
.aruca-brand-assets a { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; text-underline-offset: 4px; }

@media (hover: hover) {
  .storefront-menu summary:hover,
  .storefront-install:hover,
  .storefront-menu-links a:hover { background: #eaf9f1; }
  .storefront-departments button:hover { background: #fff0f4; color: var(--aruca-action); }
  .store-shortcuts > :is(a, button):hover .store-orb { transform: translateY(-2px); }
  .store-orb { transition: transform .16s ease; }
  .store-guide-links a:hover { background: var(--aruca-mint); }
}

@media (min-width: 680px) {
  #home.sf-home { padding-top: 28px; }
  .aruca-home-title { margin-bottom: 20px; }
  .store-slides { gap: 18px; }
  .store-slide { flex-basis: 69%; aspect-ratio: 2.18; border-radius: 24px; }
  .store-slide-copy { gap: 12px; padding: clamp(22px, 3vw, 34px); }
  .store-slide-copy strong { font-size: clamp(1.5rem, 3vw, 2.25rem); }
  .store-slide-link { margin-top: 10px; }
  .store-shortcuts { padding-top: 3px; padding-bottom: 25px; }
  .store-shelf { padding-top: 32px; }
  .sf-home .store-shelf:not(:has(.sf-tile:nth-child(4))) .store-products { max-width: 64%; }
}

@media (min-width: 980px) {
  .store-slide { flex-basis: 62%; }
  .sf-home .store-shelf:not(:has(.sf-tile:nth-child(4))) .store-products { max-width: calc(50% - 6px); }
}

@media (min-width: 680px) and (max-width: 979px) {
  .sf-home .store-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-home .store-shelf:not(:has(.sf-tile:nth-child(4))) .store-products { max-width: none; }
}

@media (max-width: 700px) {
  .storefront-mast-row { min-height: 58px; }
  .storefront-brand.logo img { width: 132px; }
  .storefront-install { width: 40px; height: 40px; }
  .storefront-tools-inner { padding: 3px 14px 8px; }
  .storefront-departments { margin: 7px -14px -4px; padding: 2px 12px; }
  .storefront-departments button { padding-inline: 13px; }
  .sf-home .store-products { gap: 12px; }
  .bottom-nav.storefront-bottom { border-top: 1px solid var(--aruca-line); padding-inline: 7px; gap: 3px; box-shadow: 0 -4px 18px #124b4a06; }
  .bottom-nav.storefront-bottom .navbtn { min-height: 52px; border-radius: 13px; color: #62766d; }
  .bottom-nav.storefront-bottom .navbtn.active { color: var(--aruca-action); background: #fff0f4; }
  #toast { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 360px) {
  .store-slide { grid-template-columns: 48% minmax(0, 1fr); }
  .store-slide-copy { padding: 12px; gap: 7px; }
  .store-slide-copy small, .store-slide-link { font-size: .875rem; }
  .store-shortcuts { gap: 3px; }
  .store-shortcuts > :is(a, button) { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .store-orb { transition: none; }
  .store-shortcuts > :is(a, button):hover .store-orb { transform: none; }
}
