/* LOTUSLAMP: shared navigation, typography and reading layouts. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/fraunces-normal-300-700-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: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/fraunces-normal-300-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/fraunces-italic-300-700-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/plex-normal-400-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/plex-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/plex-italic-400-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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/plex-normal-500-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/plex-normal-600-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 {
  --bg: #0b0d10;
  --bg-deep: #050607;
  --wall: #171a1e;
  --line: #393e44;
  --line-soft: #282d32;
  --text: #f5f6f7;
  --dim: #c4c8cd;
  --muted: #a0a6ae;
  --ember: #58dbe0;
  --ember-soft: rgba(88, 219, 224, .08);
  --honey: #f3c875;
  --lagoon: #76dbc0;
  --lilac: #bfc8f2;
  --accent: var(--ember);
  --radius: 6px;
  --radius-img: 4px;
  --measure: 42rem;
  --container: 1240px;
  --font-display: var(--font-body);
  --font-body: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", "PingFang TC", "Noto Sans TC",
               "Microsoft YaHei", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
body[data-section="decorative"]    { --accent: var(--honey); }
body[data-section="ambient"]       { --accent: var(--ember); }
body[data-section="installations"] { --accent: var(--lagoon); }
body[data-section="apps"]          { --accent: var(--lilac); }
body[data-section="solutions"],
body[data-section="products"]      { --accent: var(--chalk, #f2ede4); }

* { box-sizing: border-box; letter-spacing: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--ember); color: #0b0d10; }
[hidden] { display: none !important; }
button { font: inherit; }

/* ---------- layout ---------- */

.wrap { width: min(calc(100% - 2.5rem), var(--measure)); margin-inline: auto; }
.wrap-wide { width: min(calc(100% - 2.5rem), var(--container)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line-soft); background: var(--bg-deep); }
.site-header > .wrap {
  width: min(calc(100% - 2.5rem), var(--container));
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  font-variation-settings: "opsz" 48, "SOFT" 30;
  letter-spacing: 0;
}
.brand-mark { flex: none; width: 1.8rem; height: 1.4rem; color: var(--ember); }
.brand em { font-style: normal; color: var(--ember); }
.site-nav { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--dim);
  font-size: .94rem;
  text-decoration: none;
  white-space: nowrap;
  padding: .6rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--ember); }
.language-switcher { display: flex; gap: .1rem; margin-left: 1rem; }
.language-switcher a {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.75rem;
  padding: .2rem .5rem;
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius);
}
.language-switcher a:hover { color: var(--text); }
.language-switcher a[aria-current="page"] { color: var(--ember); background: transparent; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.icon-button:hover { color: var(--ember); border-color: var(--ember); }
.nav-toggle { display: none; border: 0; border-radius: 0; }
.icon-button svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

main { position: relative; padding: 2.75rem 0 5rem; }

main > .wrap { position: relative; z-index: 1; }

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: .88rem;
  padding: 2.5rem 0 3rem;
}
.site-footer > .wrap { width: min(calc(100% - 2.5rem), var(--container)); }
.site-footer > .wrap > * + * { margin-top: .8rem; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--ember); }
.site-footer p { margin: 0; }

/* ---------- typography ---------- */

h1, h2, h3 { font-family: var(--font-display); color: var(--text); }
h1 {
  margin: 0 0 1rem;
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: 0;
  text-wrap: balance;
}
h2 {
  margin: 2.8rem 0 .8rem;
  font-size: 1.65rem;
  line-height: 1.22;
  font-weight: 600;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  letter-spacing: 0;
}
h3 {
  margin: 1.9rem 0 .5rem;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
h2 a, h3 a { color: inherit; text-decoration: none; }
h2 a:hover, h3 a:hover { color: var(--accent); }
p, ul, ol { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .4rem; }
li::marker { color: var(--muted); }
strong { font-weight: 600; color: #fff; }
em { color: var(--dim); }
a { color: var(--ember); text-decoration: underline; text-decoration-color: rgba(88, 219, 224, .4); text-underline-offset: .15em; }
a:hover { text-decoration-color: var(--ember); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--wall);
  padding: .1em .4em;
  border-radius: var(--radius);
}
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.5rem 0; }

.lede {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--dim);
  margin: 0 0 1.6rem;
  text-wrap: pretty;
}
.meta { font-size: .86rem; color: var(--muted); }
p.meta { margin-bottom: 1.8rem; }
.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: .6rem;
}
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- content blocks ---------- */

figure { margin: 1.8rem 0; padding: 0; }
figure img { border-radius: var(--radius-img); width: 100%; background: var(--wall); }
figure video { width: 100%; border-radius: var(--radius-img); background: #000; display: block; }
figcaption { margin-top: .6rem; font-size: .86rem; line-height: 1.5; color: var(--muted); }
figcaption strong { color: var(--dim); }
figure.diagram img { background: transparent; border-radius: 0; }

.note {
  background: var(--wall);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.15rem;
  margin: 1.5rem 0;
  font-size: .97rem;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note.takeaways > p:first-child { margin: 0 0 .45rem; font-size: .78rem; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.note.takeaways ul { margin: 0; }
.warnbox { background: var(--wall); border-left: 3px solid var(--honey); border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.15rem; margin: 1.5rem 0; font-size: .97rem; }
.warnbox b { display: block; margin-bottom: .3rem; color: var(--honey); font-weight: 600; }
.warnbox p:last-child { margin-bottom: 0; }

.answer {
  background: var(--ember-soft);
  border-left: 3px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.15rem;
  margin: 1rem 0 1.4rem;
  font-size: 1.05rem;
}
.answer p { margin: 0; }
.answer .app { font-weight: 600; color: var(--text); }

.table-scroll { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--text); background: var(--wall); white-space: nowrap; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1.1rem; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* Index rows. The markup still says .card; it renders as a list row:
   thumbnail in column 1 spanning every row, everything else in column 2. */
.card {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: 1.1rem;
  row-gap: 0;
  align-items: start;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}
.card > * { grid-column: 2; }
.card > .card-thumb { grid-column: 1; grid-row: 1 / span 40; }
.card:not(:has(> .card-thumb)) { grid-template-columns: minmax(0, 1fr); }
.card:not(:has(> .card-thumb)) > * { grid-column: 1; }
.card-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin: .2rem 0 0; background: var(--wall); }
.card h3 { margin: 0 0 .3rem; font-size: 1.12rem; }
.card p { margin: 0; font-size: .95rem; color: var(--dim); }
.card p + p, .card ul, .card .table-scroll { margin-top: .5rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:hover { color: var(--accent); }
.card p a, .card ul a, .card ol a, .card figcaption a, .card table a, .card .answer a { position: relative; z-index: 2; }
.card:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card h3 a:focus-visible { outline: none; }
.card + :not(.card) { margin-top: 1.4rem; }
.card:last-of-type { border-bottom: 1px solid var(--line-soft); }

/* App download directory. */
/* One app per row: icon, then name over description, then one store link per line. */
.app-download-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 1.5rem 0 2.5rem; }
.app-download-card { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--line-soft); background: var(--wall); }
.app-download-card img { width: 4.5rem; height: 4.5rem; border-radius: 12px; }
.app-download-card h3 { margin: 0; font-size: 1.12rem; }
.app-name-alt { font-weight: 400; font-size: .92rem; color: var(--dim); }
.app-download-card p { margin: .2rem 0 0; color: var(--dim); font-size: .95rem; }
.app-download-card .store-links { flex-direction: column; align-items: stretch; gap: .4rem; min-width: 11rem; }
.app-download-card .store-links a { justify-content: center; }
.store-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.store-links a { display: inline-flex; align-items: center; min-height: 2.2rem; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: .82rem; text-decoration: none; }
.store-links a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 680px) {
  .app-download-card { grid-template-columns: 3.5rem minmax(0, 1fr); gap: .9rem 1rem; padding: 1rem; }
  .app-download-card img { width: 3.5rem; height: 3.5rem; }
  .app-download-card .store-links { grid-column: 1 / -1; min-width: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: #0b0d10;
  background: var(--ember);
}
.btn:hover { background: #9debef; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }

/* ---------- home ---------- */

.hero { padding: 1.5rem 0 1rem; }
.hero h1 { font-size: 3.5rem; font-weight: 600; max-width: 18ch; }
.hero .lede { max-width: 38rem; }

.tasks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0 1.5rem; }
.tasks li { margin: 0; border-top: 1px solid var(--line); padding: .9rem 0 1.1rem; }
.tasks a { display: block; text-decoration: none; color: var(--text); }
.tasks b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; font-variation-settings: "opsz" 48, "SOFT" 40; margin-bottom: .2rem; }
.tasks span { color: var(--dim); font-size: .95rem; line-height: 1.5; display: block; }
.tasks a:hover b { color: var(--ember); }
@media (min-width: 700px) { .tasks { grid-template-columns: repeat(3, 1fr); } }

.loops { display: grid; gap: 1rem; margin: 2.2rem 0 0; }
.loops figure { margin: 0; }
.loops img { aspect-ratio: 1 / 1; object-fit: cover; }
.loops figcaption { font-size: .82rem; }
@media (min-width: 620px) { .loops { grid-template-columns: repeat(3, 1fr); } }

.pick { list-style: none; padding: 0; margin: 1rem 0 0; }
.pick li { margin: 0; border-top: 1px solid var(--line-soft); }
.pick li:last-child { border-bottom: 1px solid var(--line-soft); }
.pick a {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0;
  align-items: center;
  padding: .8rem 0;
  text-decoration: none;
  color: var(--text);
}
.pick a > * { grid-column: 2; }
.pick img { grid-column: 1; grid-row: 1 / span 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--wall); }
.pick.plain a { grid-template-columns: minmax(0, 1fr); padding: .7rem 0; }
.pick.plain a > * { grid-column: 1; }
.pick b { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.35; align-self: end; }
.pick span { display: block; color: var(--dim); font-size: .92rem; line-height: 1.45; margin-top: .15rem; align-self: start; }
.pick a:hover b { color: var(--ember); }
.pick i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .5rem; vertical-align: .05rem; background: var(--ember); }
.pick i.decorative { background: var(--honey); }
.pick i.installations { background: var(--lagoon); }
.pick i.apps { background: var(--lilac); }

/* ---------- galleries, apps, misc ---------- */

.shots { display: grid; gap: 1rem; margin: 1.75rem 0; }
@media (min-width: 620px) { .shots { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.shots figure { margin: 0; }
.vid-grid { display: grid; gap: 1rem; margin: 1.75rem 0; }
@media (min-width: 700px) { .vid-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.vid-grid figure { margin: 0; }

.illus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.illus-grid figure { margin: 0; padding: 0; overflow: hidden; background: var(--wall); border-radius: var(--radius); }
.illus-grid img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.illus-grid figcaption { margin: 0; padding: .5rem .6rem .55rem; font-size: .78rem; line-height: 1.4; color: var(--dim); }
.illus-grid figcaption strong { color: var(--text); }
.illus-note { font-size: .84rem; color: var(--muted); border-left: 2px solid var(--line); padding-left: .9rem; margin: 1.25rem 0 1.75rem; }

.app-tag {
  display: inline-block;
  margin-top: .3rem;
  padding: .05rem .45rem;
  border-radius: var(--radius);
  background: var(--wall);
  color: var(--lilac);
  font-size: .74rem;
  font-weight: 500;
}
.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 1rem; margin: 1.4rem 0 1.8rem; }
.icon-grid > div, .icon-grid > a { display: block; text-decoration: none; color: inherit; }
.icon-grid img { width: 3.6rem; height: 3.6rem; border-radius: 22%; margin-bottom: .5rem; }
.icon-grid strong { display: block; font-size: .9rem; color: var(--text); font-weight: 600; }
.icon-grid span { display: block; font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.app-icon-inline { width: 1.6rem; height: 1.6rem; border-radius: 22%; vertical-align: middle; margin-right: .5rem; display: inline-block; }

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { margin-top: 2.3rem; }
  .site-header > .wrap { min-height: 3.5rem; padding-block: .5rem; gap: .9rem 1.2rem; }
  .site-nav { gap: .9rem; }
  .card { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: .8rem; }
  .pick a { grid-template-columns: 5rem minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .site-header > .wrap { gap: .5rem; flex-wrap: wrap; min-height: 4.25rem; padding-block: .45rem; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 1.6rem; }
  .language-switcher { margin-left: 0; }
  .language-switcher a { min-width: 2rem; padding-inline: .35rem; }
  .site-nav { order: 4; width: 100%; gap: .25rem 1.25rem; padding: .5rem 0; }
  .site-header[data-enhanced] .nav-toggle { display: inline-grid; }
  .site-header[data-enhanced] .site-nav { display: none; }
  .site-header[data-menu-open] .site-nav { display: flex; }
}
@media (max-width: 380px) {
  .site-header > .wrap { width: calc(100% - 1.5rem); gap: .2rem; }
  .brand { gap: .3rem; font-size: 1rem; }
  .brand-mark { width: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
