/* The ODUX home: an engraved hall. Black, ivory, a little brass for ornament; Cinzel for titles, Inter for reading. */
@font-face { font-family: Inter; font-weight: 400 700; font-display: swap; src: url("/assets/inter-latin.woff2") format("woff2"); }
@font-face { font-family: Cinzel; font-weight: 600; font-display: swap; src: url("/assets/cinzel-latin-600.woff2") format("woff2"); }

:root {
  --bg: #000;
  --ivory: #ece9e1;
  --muted: #9a968c;
  --rule: rgba(236, 233, 225, 0.16);
  --rule-soft: rgba(236, 233, 225, 0.07);
  --rule-strong: rgba(236, 233, 225, 0.38);
  --brass: #b49a64;
  --focus: #49dcd4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(42rem 30rem at 50% 6rem, rgba(236, 233, 225, 0.075), transparent 70%),
    radial-gradient(80% 60% at 50% 0%, #0a0d12 0%, var(--bg) 75%);
}

main { max-width: 1040px; margin: 0 auto; padding: 32px 32px 48px; }

/* The hall: the crest in a pool of light, the title engraved under it. */
.hall { display: flex; flex-direction: column; align-items: center; text-align: center; }
.crest { display: block; width: 190px; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.8)); }
.hall h1 {
  margin: 18px 0 0;
  font: 600 28px/1.1 Cinzel, Georgia, serif;
  letter-spacing: 0.08em;
}
.hall p { margin: 10px 0 0; max-width: 46ch; color: var(--muted); font-size: 15px; }

/* line, diamond, line */
.ornament { display: flex; align-items: center; gap: 12px; width: 200px; margin: 20px auto 0; color: var(--brass); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }

.products {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Each product: a framed panel, a double hairline like an engraving. The whole panel opens the product. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 26px 22px 22px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: linear-gradient(180deg, #0d0f13 0%, #060709 100%);
  color: inherit;
  text-align: center;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  pointer-events: none;
}
.card:hover { border-color: var(--rule-strong); transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(236, 233, 225, 0.04); }
.card:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.plaque { display: block; width: 100%; max-width: 184px; height: auto; aspect-ratio: 440 / 336; object-fit: contain; object-position: center bottom; }
.card .rule { display: flex; align-items: center; gap: 10px; width: 96px; margin: 16px 0 14px; color: var(--brass); opacity: 0.8; }
.card .rule::before, .card .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.6; }
.card .rule i { width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }
.tagline { margin: 0; color: #c9c5bb; font-size: 15px; line-height: 1.5; max-width: 26ch; flex: 1; }
.host { margin: 12px 0 16px; color: var(--muted); font-size: 12.5px; letter-spacing: 0.02em; }
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 3px;
  background: var(--ivory);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 15px;
}
.card:hover .cta { background: #fff; }
.go { display: none; }

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

@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* Narrow windows: two columns would crowd the plaques; one column of the same panels. */
@media (max-width: 820px) {
  .products { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* Phones: a compact hall, and each product one tappable row: plaque, line, arrow. */
@media (max-width: 560px) {
  main { padding: 20px 16px 28px; }
  .hall { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
  .crest { width: 92px; filter: none; }
  .hall h1 { margin: 0; font-size: 22px; }
  .hall p { margin-top: 4px; font-size: 13.5px; }
  .ornament { display: none; }
  .products { margin-top: 30px; gap: 12px; max-width: none; }
  .card {
    display: grid;
    grid-template-columns: 100px 1fr 14px;
    align-items: center;
    column-gap: 14px;
    padding: 14px 16px 14px 12px;
    text-align: left;
  }
  .card::before { inset: 4px; }
  .card:hover { transform: none; }
  .plaque { max-width: 100px; grid-row: 1 / span 2; }
  .card .rule, .cta { display: none; }
  .tagline { font-size: 14px; max-width: none; align-self: end; }
  .host { margin: 4px 0 0; font-size: 12px; align-self: start; }
  .go { display: block; grid-column: 3; grid-row: 1 / span 2; width: 9px; height: 9px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
}

/* Development only: says the tiles open the products' own public sites. */
.build { margin: 0; padding: 8px 24px; border-bottom: 1px solid var(--rule); color: var(--focus); font-size: 13px; text-align: center; }
@media (max-width: 560px) { .build { padding: 8px 16px; font-size: 12px; } }
