/* 0cean: what every page shares. The colours come from the mark: the cyan and the blues of the ribbon, the navy of
   its tile. Light by default; dark when the visitor chooses it (theme.js keeps the choice in the browser). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  /* The page is as wide as a marketplace's: five products to a row on a desktop (the Founder, 20 November 2026). */
  --wide: 1580px;

  /* light */
  --bg: #f3f8fd;
  --bg-top: #e6f3ff;
  --glow-a: rgba(36, 220, 255, 0.34);
  --glow-b: rgba(0, 120, 249, 0.16);
  --surface: #ffffff;
  --surface-2: #f5f9fe;
  --surface-solid: #ffffff;
  --bar: rgba(243, 248, 253, 0.78);
  --ink: #06182d;
  --ink-2: #2b3f58;
  --muted: #5b6c84;
  --line: rgba(6, 24, 45, 0.1);
  --line-2: rgba(6, 24, 45, 0.17);
  --brand: #0a6cf5;
  --brand-ink: #0052cc;
  --brand-soft: rgba(10, 108, 245, 0.08);
  --brand-line: rgba(10, 108, 245, 0.32);
  --ring: rgba(10, 108, 245, 0.2);
  --accent: linear-gradient(94deg, #0044bb 0%, #0078f9 48%, #00b2ee 100%);
  --btn: linear-gradient(180deg, #1c8dff 0%, #0063f2 100%);
  --btn-hover: linear-gradient(180deg, #3a9cff 0%, #0a6cf5 100%);
  --btn-ink: #ffffff;
  --btn-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 10px 22px -10px rgba(0, 99, 242, 0.7);
  --good: #08806c;
  --warn: #b4560a;
  --amber: #f5a623;
  --shadow-1: 0 1px 2px rgba(6, 24, 45, 0.05), 0 1px 1px rgba(6, 24, 45, 0.03);
  --shadow-2: 0 1px 2px rgba(6, 24, 45, 0.05), 0 14px 34px -14px rgba(0, 68, 187, 0.26);
  --shadow-3: 0 2px 4px rgba(6, 24, 45, 0.05), 0 28px 64px -22px rgba(0, 68, 187, 0.4);
  --mark-shadow: drop-shadow(0 5px 10px rgba(0, 84, 214, 0.28));
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020a17;
  --bg-top: #04162c;
  --glow-a: rgba(36, 232, 255, 0.2);
  --glow-b: rgba(0, 90, 240, 0.3);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.03);
  --surface-solid: #061529;
  --bar: rgba(2, 10, 23, 0.72);
  --ink: #eaf4ff;
  --ink-2: #c6d7ea;
  --muted: #93a8c3;
  --line: rgba(163, 250, 255, 0.12);
  --line-2: rgba(163, 250, 255, 0.22);
  --brand: #4fcaff;
  --brand-ink: #7fdcff;
  --brand-soft: rgba(36, 232, 255, 0.07);
  --brand-line: rgba(36, 232, 255, 0.38);
  --ring: rgba(36, 232, 255, 0.22);
  --accent: linear-gradient(94deg, #b5fbff 0%, #24e8ff 42%, #3f9dff 100%);
  --btn: linear-gradient(180deg, #5cecff 0%, #1193ff 100%);
  --btn-hover: linear-gradient(180deg, #8af2ff 0%, #2ba0ff 100%);
  --btn-ink: #00122b;
  --btn-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 12px 28px -10px rgba(36, 200, 255, 0.55);
  --good: #4fe3c1;
  --warn: #ffc27a;
  --amber: #fbbf24;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -24px rgba(0, 60, 160, 0.7);
  --mark-shadow: drop-shadow(0 6px 16px rgba(36, 200, 255, 0.35));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* The water behind every page: two soft lights from the mark's colours, fading into the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(980px 560px at 92% -12%, var(--glow-a), transparent 64%),
    radial-gradient(820px 520px at -8% 2%, var(--glow-b), transparent 62%),
    linear-gradient(180deg, var(--bg-top), var(--bg) 560px);
}
[hidden] { display: none !important; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: rgba(36, 200, 255, 0.32); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.page { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }

/* the bar on top: the mark, a few doors, the theme */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bar);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  width: 100%;
  max-width: var(--wide);
  min-height: 62px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
/* The name: the mark is its first letter. "0cean" is read as "ocean" because the zero is drawn as the ring. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--ink);
  font-size: 26px;
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  border-radius: 10px;
}
.logo-svg { display: block; height: 40px; width: auto; overflow: visible; }
/* The ring turns a little under the pointer, about its own middle (a point of the drawing, not of the page). */
.lg-ring { transform-origin: 200px 210px; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.brand:hover .lg-ring { transform: rotate(-14deg) scale(1.05); }
/* The letters: dark on a light page (the drawing's own colours), the logo's white-to-water on a dark one. */
:root[data-theme="dark"] .lg-a { stop-color: #ffffff; }
:root[data-theme="dark"] .lg-b { stop-color: #9eefff; }
.mark-svg { display: block; overflow: visible; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; min-width: 0; }
.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--brand-soft); color: var(--ink); }
/* The search on top, on every page but the front one, whose own box is the search (web/theme.js sends it there). */
.top-search { position: relative; flex: 1 1 auto; display: flex; align-items: center; min-width: 0; max-width: 520px; margin: 0; }
.top-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 40px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  box-shadow: var(--shadow-1);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.top-search input::placeholder { color: var(--muted); opacity: 1; }
.top-search input:hover { border-color: var(--brand-line); }
.top-search input:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--ring, var(--brand-soft)); }
.top-search input::-webkit-search-decoration { -webkit-appearance: none; }
.top-search-ic { position: absolute; left: 13px; top: 50%; display: grid; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.top-search-ic svg { width: 18px; height: 18px; }

/* The doors a buyer uses all the time, in words; the one you are on is marked. */
.top-nav { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
.top-nav a {
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.top-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }

/* The visitor's own: the account, the cart, and the menu with the rest of the network. A thin line sets them apart. */
.top-end { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.top-end::before { content: ""; flex: none; width: 1px; height: 24px; margin-right: 4px; background: var(--line-2); }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-ink);
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.signin { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 14.5px; font-weight: 580; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-1); white-space: nowrap; transition: border-color 0.15s ease, color 0.15s ease; }
.signin:hover { color: var(--brand-ink); border-color: var(--brand-line); }
/* The icons a phone's bar has instead of words: the search and the account. */
.top-icon { display: none; flex: none; place-items: center; width: 42px; height: 42px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: var(--shadow-1); transition: border-color 0.15s ease, color 0.15s ease; }
.top-icon:hover, .top-icon[aria-expanded="true"] { color: var(--ink); border-color: var(--brand-line); }
.top-icon svg { width: 21px; height: 21px; }
/* The menu: the rest of the network's pages, behind one quiet button. */
.menu { position: relative; }
.menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: var(--shadow-1); cursor: pointer; list-style: none; user-select: none; transition: border-color 0.15s ease, color 0.15s ease; }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn svg { width: 19px; height: 19px; }
.menu-btn:hover, .menu[open] .menu-btn { color: var(--ink); border-color: var(--brand-line); }
.menu-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 90px); overflow-y: auto; display: grid; gap: 2px; padding: 8px; background: var(--surface-solid, var(--bg)); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-3); }
.menu-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.menu-item b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.menu-item span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.menu-item:hover, .menu-item:focus-visible { background: var(--brand-soft); outline: none; }
.menu-item:hover b { color: var(--brand-ink); }
.menu-small { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.menu-small a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.menu-small a:hover { color: var(--brand-ink); text-decoration: underline; }
.menu-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 12px 6px; }
.menu-tag { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* The theme: a small switch that says what it changes to (in the menu on top and in the line under the page). */
.theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 36px;
  padding: 0 13px 0 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme:hover { border-color: var(--brand-line); color: var(--ink); }
.theme svg { width: 17px; height: 17px; flex: none; }
/* In the light the switch offers the night, and the other way round. */
.theme .sun, .theme .to-light { display: none; }
:root[data-theme="dark"] .theme .moon, :root[data-theme="dark"] .theme .to-dark { display: none; }
:root[data-theme="dark"] .theme .sun, :root[data-theme="dark"] .theme .to-light { display: inline; }

/* The tabs at the bottom of a phone's screen: the five doors a buyer uses all the time, the one you are on marked. */
.tabs { display: none; }
@media (max-width: 760px) {
  :root { --tabs-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .page { padding-bottom: var(--tabs-h); }
  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    /* As even as the words allow: a tab is never narrower than its own word (Departments is the longest). */
    grid-template-columns: repeat(5, minmax(max-content, 1fr));
    padding: 0 max(2px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(2px, env(safe-area-inset-left, 0px));
    /* Nearly solid: a product's bright button scrolling under it must not show through the words. */
    background: color-mix(in srgb, var(--bg) 93%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
    border-top: 1px solid var(--line-2);
  }
  /* While the visitor types, the keyboard needs the room: the tabs step aside. */
  body:has(input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus) .tabs { display: none; }
  .tab {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    height: 60px;
    padding: 0 1px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tab > span { white-space: nowrap; }
  .tab-ic { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background-color 0.15s ease; }
  .tab-ic svg { width: 23px; height: 23px; }
  .tab-ic .cart-n { top: -3px; right: 3px; }
  .tab[aria-current="page"] { color: var(--brand-ink); }
  .tab[aria-current="page"] .tab-ic { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-line); }

  /* The bar on top of a phone: the name, then the search, the cart and the account as icons. */
  .top-in { gap: 0 8px; }
  .top-nav, .signin, .menu, .top-end::before { display: none; }
  .top-end { gap: 8px; margin-left: auto; }
  #me-link { display: inline-grid; }
  .top-search input { font-size: 16px; }
}
/* Too narrow for a field beside the words: the search is an icon, and opens as a row of its own under the bar. */
@media (max-width: 1000px) {
  .top-in { flex-wrap: wrap; }
  .top-in > .brand, .top-end { min-height: 56px; }
  #search-open { display: inline-grid; }
  .top-search { display: none; order: 9; flex: 1 0 100%; max-width: none; margin: 0 0 10px; }
  .top.searching .top-search { display: flex; }
}

/* what is pressed */
.go,
.buy,
.pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--btn-ink);
  background: var(--btn);
  border: 0;
  box-shadow: var(--btn-shadow);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.go:hover,
.buy:hover,
.pay:hover { background: var(--btn-hover); transform: translateY(-1px); }
.go:active,
.buy:active,
.pay:active { transform: translateY(0.5px); filter: brightness(0.96); }
.go:disabled { opacity: 0.6; cursor: default; transform: none; }
.go:focus-visible,
.buy:focus-visible,
.pay:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }

/* under every page: three short columns, the page's fine print, the theme */
.foot { margin-top: auto; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, var(--brand-soft)); }
.foot-in {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 30px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; }
.foot-col { display: grid; align-content: start; justify-items: start; gap: 2px; min-width: 0; }
.foot-h { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.foot-col a { padding: 4px 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.35; text-decoration: none; }
.foot-col a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot-end { display: flex; align-items: center; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot-fine { flex: 1 1 auto; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.foot-fine a { color: var(--ink-2); }

/* The theme changes as a circle that opens from the button (theme.js), where the browser can do it. */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (max-width: 860px) {
  .nav { display: none; }
}
/* A narrower wide screen: the words on top come closer, and the search gives up room first. */
@media (min-width: 761px) and (max-width: 1000px) {
  .top-in { gap: 10px 12px; }
  .top-nav a { padding: 9px 9px; font-size: 14.5px; }
  .top-search input { padding-right: 8px; }
}
/* A tablet: the four columns of the foot stand two by two. */
@media (min-width: 561px) and (max-width: 820px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .top-in { min-height: 56px; }
  .brand { font-size: 24px; }
  .logo-svg { height: 35px; }
  .tag { display: none; }
  .top-icon, .cart-link { width: 40px; height: 40px; }
  .foot-in { padding-top: 24px; gap: 18px; }
  /* Short on a phone: each column is a heading and one line of links that wraps, nothing breaks in the middle. */
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .foot-col { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 16px; }
  .foot-h { flex: 1 0 100%; margin-bottom: 2px; }
  .foot-col a { padding: 5px 0; font-size: 14.5px; white-space: nowrap; }
  .foot-end { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
