LATTICE for SMF 2.1  -  version 1.0.0
=====================================

A BoredSkull theme that pushes SMF's templates further than usual,
mostly with modern CSS on top of SMF's own markup.

  - a glass command bar: forum name, main menu, search and member menus.
    When the menu runs out of room its items fold down to icons and open
    up again on hover. How much room it needs depends on how many items
    it has, so menus that mods add to still fit
  - a tiled ("bento") board index: the first board in each category is a
    feature tile, every tile shows its figures, sub-boards as chips and
    the latest post as a footer with the poster's avatar. Boards with new
    posts glow. Tiles adapt to their own width (container queries)
  - the info center as a "pulse": big figures for posts, topics, members
    and who is online now, the latest post and newest member, recent posts
    as a numbered list and online members as chips. Blocks that mods add
    get a card of their own
  - page transitions: pages fade into each other, and the board or topic
    you click morphs into the heading of the next page (cross-document
    View Transitions)
  - the Display panel (sliders button in the bar): colour mode, density,
    tiles or list, motion, fonts and topic peek. Changes apply straight
    away; members' choices are saved to their account, guests' choices in
    their browser. The same options are in Profile > Look and Layout
  - topic peek: a Peek button on each topic in a board opens the first
    post in a side sheet, without leaving the board
  - a reading progress bar and author cards that stay in view on long posts
  - five accent colours (theme variants): Lagoon, Orchid, Ember, Saffron,
    Fern - each with a light and a dark mode
  - its own fonts: DM Sans and Bitter, included in fonts/ (members can
    switch to system fonts in the Display panel)

INSTALL
  Admin > Themes and Layout > Install a new theme > upload Lattice.zip
  (theme_info.xml sits at the zip root, so SMF installs it as "Lattice").

ACCENT COLOURS
  - pick the forum default in Admin > Themes and Layout > Theme Settings
  - leave "Disable user variant selection" unticked there to let members
    choose their own
  Each accent is css/index_{accent}.css and sets two colours (--lt-accent
  and --lt-on-accent); every tint is worked out from them. A new accent
  is that file plus an entry in $settings['theme_variants'] and
  $settings['lt_theme_colours'] in index.template.php.

DEFAULTS FOR EVERYONE
  Admin > Themes and Layout > Member Options (with Lattice selected) sets
  the default colour mode, density, board index, motion, fonts and peek
  for members who have not chosen, and for guests.

THEME SETTINGS
  Hide the welcome banner on the board index
  Hide the Display button from guests
  The usual SMF options (logo image URL, slogan, news line) still work.

FILES
  index.template.php        command bar, Display panel, banner, footer, peek sheet
  BoardIndex.template.php   tile figures, latest-post footers, the info center
  Settings.template.php     SMF's settings + the Lattice options
  css/lattice.css           the theme, loaded right after index.css
  css/index_*.css           the five accent colours
  css/lattice_responsive.css  tablet and phone layouts
  scripts/lattice.js        Display panel, topic peek, page transitions
                            (holds no text - every word is in the language files)
  scripts/                  also the output folder for SMF's minified JS
  fonts/                    DM Sans and Bitter (SIL Open Font License 1.1)
  languages/ThemeStrings.english.php  theme strings (copy to translate)
  languages/Settings.english.php      description + accent names
  Every other template, CSS file, script and image falls back to the
  default theme automatically.

BROWSER SUPPORT
  Works in every current browser. Some extras only appear where the
  browser supports them, and nothing breaks where it does not:
    page transitions          Chrome/Edge 126+, Safari 18.2+
    scroll effects, progress  Chrome/Edge 115+, Safari 26+
    Display panel anchoring   Chrome/Edge 125+, Safari 26+ (else top right)
  Motion always follows the visitor's reduce-motion setting.

NOTES
  - No inline CSS is added by the theme. The only style attributes left
    are three SMF core lines kept as they are (category and button-strip
    collapse), which SMF's own scripts rely on.
  - Topic peek reads the topic page with the visitor's own permissions
    and strips scripts and inline handlers before showing the post.
  - The fonts are subsets (Latin and Latin Extended-A) to keep them small.

LICENCE
  ISC - see LICENSE.txt. Based on SMF's default theme templates (BSD, see
  SMF-LICENSE.txt). Fonts: SIL Open Font License 1.1 (fonts/OFL-*.txt).

AUTHOR
  BoredSkull - https://boredskull.net
