/* OCTO GARDEN — House Typography & Architectural UI Layer (2026-11-01)
   Self-hosted Nohemi (display/UI) + Host Grotesk (body/glyph fallback) + JetBrains Mono (labels/code).
   Follows Horst's UI standards: >= 24px hit targets (38px buttons), labels >= 13px, hairline cards,
   calm scrims, tabular numerals, flush alignment. */

@font-face {
  font-family: 'Nohemi';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/Nohemi-VF-8b351058.ttf") format('truetype');
}

@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/host-grotesk-latin-5602e896.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/host-grotesk-latin-ext-33d67b6c.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/jetbrains-mono-latin-17a27a06.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-family: 'Host Grotesk', 'Nohemi', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Nohemi', 'Host Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --btn-size: 2.5rem; /* 40px >= 24px rule */
}

html, body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display typography for headings, room titles, and primary buttons */
h1, h2, h3, legend, .room--current, .room {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Enforce >= 13px minimum and JetBrains Mono on all micro-labels, timestamps, code & badges */
code, pre, .input--code, .version-badge, .message__day-separator, .message__permalink, .txt--small {
  font-family: var(--font-mono);
  font-size: max(13px, 0.8125rem);
  font-variant-numeric: tabular-nums;
}

.message__author {
  font-family: var(--font-display);
  font-size: max(13.5px, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.message__permalink {
  letter-spacing: 0.02em;
  opacity: 0.68;
}

.message__day-separator {
  letter-spacing: 0.06em;
  font-weight: 500;

  time, span {
    border: 1px solid var(--garden-hairline);
    border-radius: 6px;
    padding: 0.4em 1.4ch;
  }

  &::before, &::after {
    border-top: 1px solid var(--garden-hairline);
  }
}

/* Architectural hairline message cards & Celadon own-message tint */
.message__body-content {
  border-radius: 8px;
  border: 1px solid var(--garden-hairline);
}

.message--me .message__body-content {
  --message-background: var(--garden-me-bg);
  border-color: var(--garden-me-border);
}

/* Crisp buttons & inputs with >= 38px hit area */
.btn {
  min-block-size: 38px;
  min-inline-size: 38px;
  border-radius: 8px;
  border-color: var(--garden-hairline-strong);
  font-family: var(--font-display);
  font-size: max(14px, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.input, .nametag__inner, .panel, .notifications-help {
  border-radius: 8px;
  border-color: var(--garden-hairline-strong);
}

.nametag {
  border-radius: 10px;
  border-color: var(--garden-hairline-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.panel {
  @media (min-width: 100ch) {
    background-color: var(--garden-card);
    border: 1px solid var(--garden-hairline-strong);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  }
}

/* Sidebar refinement */
#sidebar {
  .sidebar & {
    background-color: oklch(var(--lch-white) / 0.86);
    border-inline-start: 1px solid var(--garden-hairline);
  }
}

#main-content {
  .sidebar & {
    @media (min-width: 100ch) {
      border-inline: 1px solid var(--garden-hairline);
    }
  }
}

/* Replace neon-rainbow modal backdrop with calm architectural scrim */
.dialog {
  border-radius: 10px;
  border: 1px solid var(--garden-hairline-strong);

  &::backdrop {
    background-image: none;
    background-color: rgba(18, 22, 20, 0.55);
    backdrop-filter: blur(4px);
    opacity: 1;
  }
}
