diff options
| author | Jason McCormick <jason@mfamily.org> | 2026-11-27 16:08:05 -0500 |
|---|---|---|
| committer | Jason McCormick <jason@mfamily.org> | 2026-11-27 16:08:05 -0500 |
| commit | 5873e1ae7762deb07e3594143ee93064e81b1546 (patch) | |
| tree | 2defb3f48051c59c16ae9cce75eaba8161e59ee7 | |
| parent | acb15d2a37bb25e69d70063fa2aa073b766123b8 (diff) | |
initial prod version
| -rw-r--r-- | README.md | 30 | ||||
| -rw-r--r-- | css/pw-fonts.css | 6 | ||||
| -rw-r--r-- | css/pw-tokens.css | 260 | ||||
| -rw-r--r-- | fonts/IBMPlexMono-Regular.woff2 | bin | 0 -> 49248 bytes | |||
| -rw-r--r-- | fonts/IBMPlexSans-Bold.woff2 | bin | 0 -> 65012 bytes | |||
| -rw-r--r-- | fonts/IBMPlexSans-Regular.woff2 | bin | 0 -> 65080 bytes | |||
| -rw-r--r-- | fonts/IBMPlexSans-SemiBold.woff2 | bin | 0 -> 69388 bytes | |||
| -rw-r--r-- | fonts/OFL.txt | 93 | ||||
| -rw-r--r-- | index.html | 136 | ||||
| -rw-r--r-- | style.css | 738 | ||||
| -rw-r--r-- | theme.js | 50 |
11 files changed, 1290 insertions, 23 deletions
@@ -1,3 +1,31 @@ # Packet Warriors flagship homepage -Upload the contents of this ZIP to your web root. Preserve existing subdirectories, including style-guide and applications. The production version is static HTML, CSS, SVG and WebP; no backend or build step. IBM Plex is loaded via Google Fonts with system fallbacks. To self-host fonts, replace the external font link with local IBM Plex Sans and IBM Plex Mono. +The production homepage is a buildless static site using Packet Warriors Carbon & Signal v1.5.0. It contains static HTML, CSS, JavaScript, SVG, WebP and locally hosted IBM Plex fonts; there is no application server, package manager or build step. + +## Local preview + +Run a static server from this directory: + +```sh +python3 -m http.server 8000 +``` + +Then open `http://127.0.0.1:8000/`. + +## Deployment + +Copy the repository contents to the website document root while preserving existing subdirectories such as `style-guide` and deployed applications. All runtime resources are local and paths are relative. + +## Design-system integration + +- `css/pw-tokens.css` is the vendored Carbon & Signal functional token contract. +- `css/pw-fonts.css` declares the local IBM Plex font files in `fonts/`. +- `theme.js` applies and persists Light, Dark or System appearance. +- `style.css` contains only flagship presentation and responsive layout rules. +- Approved logo geometry and Signal Architecture artwork must not be redrawn or recolored. + +IBM Plex is distributed under the SIL Open Font License; see `fonts/OFL.txt`. + +## Validation + +Before deployment, test Light, Dark and System modes, keyboard navigation, 200% zoom, forced colors, reduced motion and layouts at 768px, 1024px and 1280px. Verify that all local resources load without network dependencies and that project links retain their intended destinations. diff --git a/css/pw-fonts.css b/css/pw-fonts.css new file mode 100644 index 0000000..f355993 --- /dev/null +++ b/css/pw-fonts.css @@ -0,0 +1,6 @@ +/* Optional: place licensed local WOFF2 files in ../fonts/; no CDN needed. + Use static faces with their actual weight range (do not label static files variable). */ +@font-face { font-family:"IBM Plex Sans"; src:local("IBM Plex Sans Regular"),url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight:400; font-display:swap; } +@font-face { font-family:"IBM Plex Sans"; src:local("IBM Plex Sans SemiBold"),url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight:600; font-display:swap; } +@font-face { font-family:"IBM Plex Sans"; src:local("IBM Plex Sans Bold"),url("../fonts/IBMPlexSans-Bold.woff2") format("woff2"); font-weight:700; font-display:swap; } +@font-face { font-family:"IBM Plex Mono"; src:local("IBM Plex Mono Regular"),url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight:400; font-display:swap; } diff --git a/css/pw-tokens.css b/css/pw-tokens.css new file mode 100644 index 0000000..067b994 --- /dev/null +++ b/css/pw-tokens.css @@ -0,0 +1,260 @@ +/* Packet Warriors / Carbon & Signal v1.0. Framework-independent tokens. */ +:root { + --pw-brand-carbon: #171715; + --pw-brand-carbon-rgb: 23, 23, 21; + --pw-brand-graphite: #2E2E2A; + --pw-brand-graphite-rgb: 46, 46, 42; + --pw-brand-pewter: #B8B5AB; + --pw-brand-pewter-rgb: 184, 181, 171; + --pw-brand-porcelain: #F2EFE9; + --pw-brand-porcelain-rgb: 242, 239, 233; + --pw-brand-signal: #C12735; + --pw-brand-signal-rgb: 193, 39, 53; + --pw-brand-signal-bright: #D32939; + --pw-brand-signal-bright-rgb: 211, 41, 57; + --pw-brand-signal-deep: #861E28; + --pw-brand-signal-deep-rgb: 134, 30, 40; + --pw-brand-amber: #DAB16B; + --pw-brand-amber-rgb: 218, 177, 107; + --pw-brand-jade: #50B39A; + --pw-brand-jade-rgb: 80, 179, 154; + --pw-brand-copper: #C79A80; + --pw-brand-copper-rgb: 199, 154, 128; + --pw-font: "IBM Plex Sans", system-ui, sans-serif; + --pw-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; + --pw-size-xs: .8125rem; + --pw-size-sm: .875rem; + --pw-size-base: 1rem; + --pw-size-lg: 1.125rem; + --pw-size-xl: 1.375rem; + --pw-size-2xl: 1.75rem; + --pw-size-3xl: 2.25rem; + --pw-space-1: .25rem; + --pw-space-2: .5rem; + --pw-space-3: .75rem; + --pw-space-4: 1rem; + --pw-space-5: 1.5rem; + --pw-space-6: 2rem; + --pw-radius: 4px; + --pw-radius-panel: 6px; + --pw-control-height: 2.5rem; + --pw-focus-width: 2px; + --pw-action: var(--pw-primary); + --pw-on-action: var(--pw-on-primary); + --pw-action-hover: var(--pw-primary-hover); + --pw-action-active: var(--pw-primary-active); + --pw-action-rgb: var(--pw-primary-rgb); + --pw-product-mark: var(--pw-brand-signal); +} +:root, [data-pw-theme="light"], [data-bs-theme="light"], [data-md-color-scheme="default"] { + color-scheme: light; + --pw-canvas: #F2EFE9; + --pw-canvas-rgb: 242, 239, 233; + --pw-surface: #FFFCF7; + --pw-surface-rgb: 255, 252, 247; + --pw-raised: #E1DED5; + --pw-raised-rgb: 225, 222, 213; + --pw-inset: #F8F5EF; + --pw-inset-rgb: 248, 245, 239; + --pw-text: #272620; + --pw-text-rgb: 39, 38, 32; + --pw-muted: #615F56; + --pw-muted-rgb: 97, 95, 86; + --pw-border: #CBC7BD; + --pw-border-rgb: 203, 199, 189; + --pw-control-border: #817D72; + --pw-control-border-rgb: 129, 125, 114; + --pw-focus: #A52C36; + --pw-focus-rgb: 165, 44, 54; + --pw-link: #A52C36; + --pw-link-rgb: 165, 44, 54; + --pw-primary: #C12735; + --pw-primary-rgb: 193, 39, 53; + --pw-on-primary: #FFFFFF; + --pw-on-primary-rgb: 255, 255, 255; + --pw-primary-hover: #A51F2C; + --pw-primary-hover-rgb: 165, 31, 44; + --pw-primary-active: #861E28; + --pw-primary-active-rgb: 134, 30, 40; + --pw-firefly: #8A5D20; + --pw-firefly-rgb: 138, 93, 32; + --pw-on-firefly: #FFFFFF; + --pw-on-firefly-rgb: 255, 255, 255; + --pw-firefly-hover: #704A17; + --pw-firefly-hover-rgb: 112, 74, 23; + --pw-firefly-active: #593B13; + --pw-firefly-active-rgb: 89, 59, 19; + --pw-success: #186950; + --pw-success-rgb: 24, 105, 80; + --pw-success-bg: #DFEDE6; + --pw-success-bg-rgb: 223, 237, 230; + --pw-warning: #785018; + --pw-warning-rgb: 120, 80, 24; + --pw-warning-bg: #EEE5D3; + --pw-warning-bg-rgb: 238, 229, 211; + --pw-danger: #A52C36; + --pw-danger-rgb: 165, 44, 54; + --pw-danger-bg: #F2DDDD; + --pw-danger-bg-rgb: 242, 221, 221; + --pw-info: #615F56; + --pw-info-rgb: 97, 95, 86; + --pw-info-bg: #E7E4DC; + --pw-info-bg-rgb: 231, 228, 220; + --pw-inactive: #615F56; + --pw-inactive-rgb: 97, 95, 86; + --pw-selection: #EFD8D7; + --pw-selection-rgb: 239, 216, 215; + --pw-on-selection: #272620; + --pw-on-selection-rgb: 39, 38, 32; + --pw-hover: #EEEAE1; + --pw-hover-rgb: 238, 234, 225; + --pw-disabled: #77736A; + --pw-disabled-rgb: 119, 115, 106; + --pw-disabled-bg: #E7E3DA; + --pw-disabled-bg-rgb: 231, 227, 218; +} +[data-pw-theme="dark"], [data-bs-theme="dark"], [data-md-color-scheme="slate"] { + color-scheme: dark; + --pw-canvas: #171715; + --pw-canvas-rgb: 23, 23, 21; + --pw-surface: #22221F; + --pw-surface-rgb: 34, 34, 31; + --pw-raised: #2E2E2A; + --pw-raised-rgb: 46, 46, 42; + --pw-inset: #141412; + --pw-inset-rgb: 20, 20, 18; + --pw-text: #E8E6DF; + --pw-text-rgb: 232, 230, 223; + --pw-muted: #ADA99F; + --pw-muted-rgb: 173, 169, 159; + --pw-border: #484840; + --pw-border-rgb: 72, 72, 64; + --pw-control-border: #7A7971; + --pw-control-border-rgb: 122, 121, 113; + --pw-focus: #DAB16B; + --pw-focus-rgb: 218, 177, 107; + --pw-link: #D8D4C9; + --pw-link-rgb: 216, 212, 201; + --pw-primary: #C12735; + --pw-primary-rgb: 193, 39, 53; + --pw-on-primary: #FFFFFF; + --pw-on-primary-rgb: 255, 255, 255; + --pw-primary-hover: #D32939; + --pw-primary-hover-rgb: 211, 41, 57; + --pw-primary-active: #A82330; + --pw-primary-active-rgb: 168, 35, 48; + --pw-firefly: #DAB16B; + --pw-firefly-rgb: 218, 177, 107; + --pw-on-firefly: #171715; + --pw-on-firefly-rgb: 23, 23, 21; + --pw-firefly-hover: #E6C28A; + --pw-firefly-hover-rgb: 230, 194, 138; + --pw-firefly-active: #C39955; + --pw-firefly-active-rgb: 195, 153, 85; + --pw-success: #50B39A; + --pw-success-rgb: 80, 179, 154; + --pw-success-bg: #1C332D; + --pw-success-bg-rgb: 28, 51, 45; + --pw-warning: #DAB16B; + --pw-warning-rgb: 218, 177, 107; + --pw-warning-bg: #352C1D; + --pw-warning-bg-rgb: 53, 44, 29; + --pw-danger: #F1989C; + --pw-danger-rgb: 241, 152, 156; + --pw-danger-bg: #3C2225; + --pw-danger-bg-rgb: 60, 34, 37; + --pw-info: #B8B5AB; + --pw-info-rgb: 184, 181, 171; + --pw-info-bg: #30302C; + --pw-info-bg-rgb: 48, 48, 44; + --pw-inactive: #ADA99F; + --pw-inactive-rgb: 173, 169, 159; + --pw-selection: #48272A; + --pw-selection-rgb: 72, 39, 42; + --pw-on-selection: #E8E6DF; + --pw-on-selection-rgb: 232, 230, 223; + --pw-hover: #30302C; + --pw-hover-rgb: 48, 48, 44; + --pw-disabled: #918E85; + --pw-disabled-rgb: 145, 142, 133; + --pw-disabled-bg: #30302C; + --pw-disabled-bg-rgb: 48, 48, 44; +} +@media (prefers-color-scheme: dark) { +:root:not([data-pw-theme]):not([data-bs-theme]):not([data-md-color-scheme]), [data-pw-theme="auto"] { + color-scheme: dark; + --pw-canvas: #171715; + --pw-canvas-rgb: 23, 23, 21; + --pw-surface: #22221F; + --pw-surface-rgb: 34, 34, 31; + --pw-raised: #2E2E2A; + --pw-raised-rgb: 46, 46, 42; + --pw-inset: #141412; + --pw-inset-rgb: 20, 20, 18; + --pw-text: #E8E6DF; + --pw-text-rgb: 232, 230, 223; + --pw-muted: #ADA99F; + --pw-muted-rgb: 173, 169, 159; + --pw-border: #484840; + --pw-border-rgb: 72, 72, 64; + --pw-control-border: #7A7971; + --pw-control-border-rgb: 122, 121, 113; + --pw-focus: #DAB16B; + --pw-focus-rgb: 218, 177, 107; + --pw-link: #D8D4C9; + --pw-link-rgb: 216, 212, 201; + --pw-primary: #C12735; + --pw-primary-rgb: 193, 39, 53; + --pw-on-primary: #FFFFFF; + --pw-on-primary-rgb: 255, 255, 255; + --pw-primary-hover: #D32939; + --pw-primary-hover-rgb: 211, 41, 57; + --pw-primary-active: #A82330; + --pw-primary-active-rgb: 168, 35, 48; + --pw-firefly: #DAB16B; + --pw-firefly-rgb: 218, 177, 107; + --pw-on-firefly: #171715; + --pw-on-firefly-rgb: 23, 23, 21; + --pw-firefly-hover: #E6C28A; + --pw-firefly-hover-rgb: 230, 194, 138; + --pw-firefly-active: #C39955; + --pw-firefly-active-rgb: 195, 153, 85; + --pw-success: #50B39A; + --pw-success-rgb: 80, 179, 154; + --pw-success-bg: #1C332D; + --pw-success-bg-rgb: 28, 51, 45; + --pw-warning: #DAB16B; + --pw-warning-rgb: 218, 177, 107; + --pw-warning-bg: #352C1D; + --pw-warning-bg-rgb: 53, 44, 29; + --pw-danger: #F1989C; + --pw-danger-rgb: 241, 152, 156; + --pw-danger-bg: #3C2225; + --pw-danger-bg-rgb: 60, 34, 37; + --pw-info: #B8B5AB; + --pw-info-rgb: 184, 181, 171; + --pw-info-bg: #30302C; + --pw-info-bg-rgb: 48, 48, 44; + --pw-inactive: #ADA99F; + --pw-inactive-rgb: 173, 169, 159; + --pw-selection: #48272A; + --pw-selection-rgb: 72, 39, 42; + --pw-on-selection: #E8E6DF; + --pw-on-selection-rgb: 232, 230, 223; + --pw-hover: #30302C; + --pw-hover-rgb: 48, 48, 44; + --pw-disabled: #918E85; + --pw-disabled-rgb: 145, 142, 133; + --pw-disabled-bg: #30302C; + --pw-disabled-bg-rgb: 48, 48, 44; +} +} + +[data-pw-product="firefly"] { + --pw-action: var(--pw-firefly); + --pw-on-action: var(--pw-on-firefly); + --pw-action-hover: var(--pw-firefly-hover); + --pw-action-active: var(--pw-firefly-active); + --pw-action-rgb: var(--pw-firefly-rgb); + --pw-product-mark: var(--pw-firefly); +} diff --git a/fonts/IBMPlexMono-Regular.woff2 b/fonts/IBMPlexMono-Regular.woff2 Binary files differnew file mode 100644 index 0000000..8bdb4c4 --- /dev/null +++ b/fonts/IBMPlexMono-Regular.woff2 diff --git a/fonts/IBMPlexSans-Bold.woff2 b/fonts/IBMPlexSans-Bold.woff2 Binary files differnew file mode 100644 index 0000000..c4beccb --- /dev/null +++ b/fonts/IBMPlexSans-Bold.woff2 diff --git a/fonts/IBMPlexSans-Regular.woff2 b/fonts/IBMPlexSans-Regular.woff2 Binary files differnew file mode 100644 index 0000000..9c75d2e --- /dev/null +++ b/fonts/IBMPlexSans-Regular.woff2 diff --git a/fonts/IBMPlexSans-SemiBold.woff2 b/fonts/IBMPlexSans-SemiBold.woff2 Binary files differnew file mode 100644 index 0000000..6061208 --- /dev/null +++ b/fonts/IBMPlexSans-SemiBold.woff2 diff --git a/fonts/OFL.txt b/fonts/OFL.txt new file mode 100644 index 0000000..c35c4c6 --- /dev/null +++ b/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+
+This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,7 +1,129 @@ -<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Packet Warriors — Independent Engineering</title><meta name="description" content="Practical software for amateur radio operators and independent engineering by Jason McCormick, N8EI."><link rel="icon" href="favicon.svg"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap" rel="stylesheet"><link rel="stylesheet" href="style.css"></head><body class="works hybrid"><a class="skip" href="#main">Skip to content</a> -<header class="masthead"><div class="wrap mast"><a class="brand" href="index.html"><img class="" src="logos/packet-warriors-flat-dark.svg" alt="" aria-hidden="true"><span><b>PACKET</b>WARRIORS<small>INDEPENDENT ENGINEERING</small></span></a><nav aria-label="Main navigation"><a href="#projects">Software</a><a href="#about">About</a><a href="https://github.com/jxmx">GitHub</a></nav></div></header> -<main id="main"><section class="hero"><div class="wrap hero-inner"><div class="hero-copy"><p class="eyebrow"><span></span> SOFTWARE / AMATEUR RADIO / SYSTEMS</p><h1>Built for the<br>signal<span class="period">.</span></h1><p class="lead">Practical software for radio operators and independent engineering.</p><p class="intro">Tools for logging contacts, confirming QSOs, monitoring networks, and making technical systems work better.</p><div class="actions"><a class="btn primary" href="#projects">Explore software</a><a class="btn secondary" href="https://github.com/jxmx">Browse source</a></div><div class="hero-credit">JASON McCORMICK <span>/</span> N8EI</div></div><div class="hero-visual"><figure class="signal-artwork"><img src="artwork/signal-architecture.webp" width="1448" height="1086" alt="Futuristic graphite signal-processing nodes connected by luminous red packet paths" fetchpriority="high"><figcaption><span>SIGNAL ARCHITECTURE</span><span>CARBON & SIGNAL</span></figcaption></figure></div></div></section> -<section id="projects" class="catalogue wrap"><div class="section-head"><div><p class="eyebrow"><span></span> PROJECT CATALOGUE</p><h2>Software & utilities</h2></div><p>Purpose-built tools for the radio station and the systems behind it.</p></div><div class="projects"><article class="project amber"><div class="project-identity"><img class="project-logo" src="logos/firefly-flat-dark.svg" alt="" aria-hidden="true"><span class="category">Field operations</span></div><div class="project-copy"><h3>Firefly Logger</h3><p>Field Day contact logging built around the operating station.</p></div><a class="project-link" href="https://packetwarriors.net/firefly-logger/">Documentation</a></article><article class="project amber"><div class="project-identity"><img class="project-logo" src="logos/firefly-flat-dark.svg" alt="" aria-hidden="true"><span class="category">Contact confirmation</span></div><div class="project-copy"><h3>Firefly QSL</h3><p>An ADIF-based QSL manager for clubs and individual operators.</p></div><a class="project-link" href="https://github.com/jxmx/smooth-qsl">Source & documentation</a></article><article class="project signal"><div class="project-identity"><img class="project-logo" src="logos/xlx-observatory-flat-dark.svg" alt="" aria-hidden="true"><span class="category">Network monitoring</span></div><div class="project-copy"><h3>XLX Observatory</h3><p>Visibility into XLX reflector activity and digital voice networks.</p></div><a class="project-link" href="https://github.com/jxmx/xlx-observatory">Project repository</a></article><article class="project signal"><div class="project-identity"><img class="project-logo" src="logos/fwdfix-flat-dark.svg" alt="" aria-hidden="true"><span class="category">Mail infrastructure</span></div><div class="project-copy"><h3>FwdFix</h3><p>Mail forwarding and authentication mitigation for forwarding domains.</p></div><a class="project-link" href="https://github.com/jxmx/FwdFix">Project repository</a></article><article class="project signal"><div class="project-identity"><img class="project-logo" src="logos/gps-clock-dash-flat-dark.svg" alt="" aria-hidden="true"><span class="category">Precision timing</span></div><div class="project-copy"><h3>GPS Clock Dash</h3><p>GPS-derived time and synchronization monitoring.</p></div><a class="project-link" href="https://gitweb.mfamily.org/gps-clock-dash/">Project repository</a></article></div><div class="more"><span class="eyebrow">ADDITIONAL PROJECTS</span><a href="https://rf.packetwarriors.com/">RF Exposure Assessment</a><a href="https://github.com/AllStarLink/Allmon3">Allmon3</a></div></section> -<section id="about" class="about"><div class="wrap about-inner"><div><p class="eyebrow"><span></span> THE ENGINEERING BEHIND IT</p><h2>Independent by design.</h2></div><div><p>Packet Warriors is the software home of Jason McCormick (N8EI), with a focus on amateur radio and the infrastructure that supports it.</p><p>Technical expertise, independence, experimentation, innovation and professionalism guide the work.</p><a class="textlink" href="https://github.com/jxmx">Explore the repositories</a></div></div></section></main> -<footer class="wrap footer"><div><img class="" src="logos/packet-warriors-flat-dark.svg" alt="" aria-hidden="true"><span>PACKET WARRIORS <small> / N8EI</small></span></div><nav><a href="https://packetwarriors.net/">Software archive</a><a href="https://www.packetwarriors.com/style-guide/">Style guide</a><a href="https://github.com/jxmx">GitHub</a></nav></footer> -</body></html>
\ No newline at end of file +<!doctype html> +<html lang="en" data-pw-theme="dark" data-pw-product="packet"> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Packet Warriors — Independent Engineering</title> + <meta name="description" content="Practical software for amateur radio operators and independent engineering by Jason McCormick, N8EI."> + <link rel="icon" href="favicon.svg" type="image/svg+xml"> + <script src="theme.js"></script> + <link rel="stylesheet" href="css/pw-tokens.css"> + <link rel="stylesheet" href="css/pw-fonts.css"> + <link rel="stylesheet" href="style.css"> +</head> +<body> + <a class="skip-link" href="#main">Skip to content</a> + + <header class="masthead"> + <div class="wrap masthead-inner"> + <a class="brand" href="index.html" aria-label="Packet Warriors home"> + <span class="brand-mark master-mark" aria-hidden="true"></span> + <span class="brand-name"><b>PACKET</b>WARRIORS<small>INDEPENDENT ENGINEERING</small></span> + </a> + <div class="masthead-actions"> + <nav class="primary-nav" aria-label="Main navigation"> + <a href="#projects">Software</a> + <a href="#about">About</a> + <a href="https://github.com/jxmx">GitHub</a> + </nav> + <div class="mode-switch" role="group" aria-label="Appearance"> + <button type="button" data-mode="light" aria-pressed="false">Light</button> + <button type="button" data-mode="dark" aria-pressed="true">Dark</button> + <button type="button" data-mode="auto" aria-pressed="false">System</button> + </div> + </div> + </div> + </header> + + <main id="main" tabindex="-1"> + <section class="hero" aria-labelledby="hero-title"> + <div class="wrap hero-inner"> + <div class="hero-copy"> + <p class="eyebrow"><span aria-hidden="true"></span> SOFTWARE / AMATEUR RADIO / SYSTEMS</p> + <h1 id="hero-title">Built for the<br>signal<span class="period">.</span></h1> + <p class="lead">Practical software for radio operators and independent engineering.</p> + <p class="intro">Tools for logging contacts, confirming QSOs, monitoring networks, and making technical systems work better.</p> + <div class="actions"> + <a class="button primary" href="#projects">Explore software</a> + <a class="button secondary" href="https://github.com/jxmx">Browse source</a> + </div> + <p class="hero-credit">JASON McCORMICK <span>/</span> N8EI</p> + </div> + <div class="hero-visual"> + <figure class="signal-artwork"> + <img src="artwork/signal-architecture.webp" width="1448" height="1086" alt="Futuristic graphite signal-processing nodes connected by luminous red packet paths" fetchpriority="high"> + <figcaption><span>SIGNAL ARCHITECTURE</span><span>CARBON & SIGNAL</span></figcaption> + </figure> + </div> + </div> + </section> + + <section id="projects" class="catalogue wrap" aria-labelledby="projects-title"> + <div class="section-head"> + <div> + <p class="eyebrow"><span aria-hidden="true"></span> PROJECT CATALOGUE</p> + <h2 id="projects-title">Software & utilities</h2> + </div> + <p>Purpose-built tools for the radio station and the systems behind it.</p> + </div> + + <div class="projects"> + <article class="project amber"> + <div class="project-identity"><span class="project-logo firefly-mark" aria-hidden="true"></span><span class="category">Field operations</span></div> + <div class="project-copy"><h3>Firefly Logger</h3><p>Field Day contact logging built around the operating station.</p></div> + <a class="project-link" href="https://packetwarriors.net/firefly-logger/">Documentation</a> + </article> + <article class="project amber"> + <div class="project-identity"><span class="project-logo firefly-mark" aria-hidden="true"></span><span class="category">Contact confirmation</span></div> + <div class="project-copy"><h3>Firefly QSL</h3><p>An ADIF-based QSL manager for clubs and individual operators.</p></div> + <a class="project-link" href="https://github.com/jxmx/smooth-qsl">Source & documentation</a> + </article> + <article class="project signal"> + <div class="project-identity"><span class="project-logo observatory-mark" aria-hidden="true"></span><span class="category">Network monitoring</span></div> + <div class="project-copy"><h3>XLX Observatory</h3><p>Visibility into XLX reflector activity and digital voice networks.</p></div> + <a class="project-link" href="https://github.com/jxmx/xlx-observatory">Project repository</a> + </article> + <article class="project signal"> + <div class="project-identity"><span class="project-logo fwdfix-mark" aria-hidden="true"></span><span class="category">Mail infrastructure</span></div> + <div class="project-copy"><h3>FwdFix</h3><p>Mail forwarding and authentication mitigation for forwarding domains.</p></div> + <a class="project-link" href="https://github.com/jxmx/FwdFix">Project repository</a> + </article> + <article class="project signal"> + <div class="project-identity"><span class="project-logo gps-clock-mark" aria-hidden="true"></span><span class="category">Precision timing</span></div> + <div class="project-copy"><h3>GPS Clock Dash</h3><p>GPS-derived time and synchronization monitoring.</p></div> + <a class="project-link" href="https://gitweb.mfamily.org/gps-clock-dash/">Project repository</a> + </article> + </div> + + <div class="more-projects"> + <span class="eyebrow">ADDITIONAL PROJECTS</span> + <a href="https://rf.packetwarriors.com/">RF Exposure Assessment</a> + <a href="https://github.com/AllStarLink/Allmon3">Allmon3</a> + </div> + </section> + + <section id="about" class="about" aria-labelledby="about-title"> + <div class="wrap about-inner"> + <div> + <p class="eyebrow"><span aria-hidden="true"></span> THE ENGINEERING BEHIND IT</p> + <h2 id="about-title">Independent by design.</h2> + </div> + <div> + <p>Packet Warriors is the software home of Jason McCormick (N8EI), with a focus on amateur radio and the infrastructure that supports it.</p> + <p>Technical expertise, independence, experimentation, innovation and professionalism guide the work.</p> + <a class="text-link" href="https://github.com/jxmx">Explore the repositories</a> + </div> + </div> + </section> + </main> + + <footer class="wrap footer"> + <div class="footer-brand"><span class="footer-mark master-mark" aria-hidden="true"></span><span>PACKET WARRIORS <small>/ N8EI</small></span></div> + <nav aria-label="Footer navigation"> + <a href="https://packetwarriors.net/">Software archive</a> + <a href="https://www.packetwarriors.com/style-guide/">Style guide</a> + <a href="https://github.com/jxmx">GitHub</a> + </nav> + </footer> +</body> +</html> @@ -1,15 +1,723 @@ -:root{font-family:"IBM Plex Sans",Arial,sans-serif;font-size:16px;--signal:#C12735;--dark:#171715;--carbon:#171715;--graphite:#2E2E2A;--pewter:#B8B5AB;--porcelain:#F2EFE9;--mono:"IBM Plex Mono",Consolas,monospace;scroll-behavior:smooth} -*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--canvas);line-height:1.5}a{color:inherit;text-decoration:none}a:focus-visible{outline:2px solid var(--focus);outline-offset:4px}a:hover{text-decoration:underline;text-underline-offset:4px}a img{vertical-align:middle}p,h1,h2,h3{margin:0}img{max-width:100%;display:block}.wrap{max-width:1232px;margin:auto;padding-inline:36px}.skip{position:absolute;z-index:10;left:12px;top:-80px;background:#F2EFE9;color:#171715;padding:12px}.skip:focus{top:12px} -.review{background:#2E2E2A;color:#E8E6DF;font:500 13px var(--mono);border-bottom:1px solid #484840}.review-inner{max-width:1232px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:51px;padding-inline:36px}.review-inner>div span{color:#B8B5AB}.review nav{display:flex;gap:4px;align-items:center}.review nav a{padding:9px 13px;border:1px solid transparent;white-space:nowrap}.review nav a[aria-current]{background:#171715;border-color:#7A7971;box-shadow:inset 0 -2px #C12735;color:#fff}.review nav a:hover{background:#171715} -.masthead{border-bottom:1px solid var(--border)}.mast{height:93px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:700;line-height:1;letter-spacing:-.045em;white-space:nowrap}.brand:hover{text-decoration:none}.brand img{width:50px;height:42px}.brand b{color:#C12735}.brand small{display:block;font:500 10px var(--mono);letter-spacing:.12em;margin-top:7px;color:var(--muted)}.mast nav{display:flex;gap:30px;align-items:center;font-weight:500} -.hero{border-bottom:1px solid var(--border)}.hero-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:52px;padding-block:72px 78px}.eyebrow{display:flex;align-items:center;gap:9px;font:500 .75rem/1.5 var(--mono);letter-spacing:.07em;color:var(--muted)}.eyebrow>span{width:25px;height:3px;background:var(--signal)}h1{font-size:clamp(3.6rem,7.2vw,6.9rem);line-height:.94;font-weight:700;letter-spacing:-.065em;margin:24px 0}.period{color:var(--signal)}.lead{font-size:1.4rem;font-weight:500;line-height:1.35;max-width:490px}.intro{font-size:1rem;color:var(--muted);max-width:465px;margin-top:14px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:27px 0 32px}.btn{font-weight:600;display:inline-flex;align-items:center;justify-content:center;padding:12px 19px;border:1px solid var(--control);border-radius:4px;min-height:46px}.btn:hover{text-decoration:none;filter:brightness(1.1)}.primary{background:var(--signal);color:white;border-color:var(--signal)}.secondary{background:var(--surface)}.hero-credit{font:500 .75rem var(--mono);letter-spacing:.06em;color:var(--muted)}.hero-credit span{color:var(--signal);margin-inline:8px}.hero-visual{min-width:0}.hero-visual svg{display:block;width:100%;height:auto}.catalogue{padding-block:50px 58px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:25px}.section-head>p{max-width:375px;color:var(--muted)}h2{font-weight:700;font-size:clamp(2rem,3.6vw,3.2rem);line-height:1.08;letter-spacing:-.045em;margin-top:10px}.project{border:1px solid var(--border);min-width:0;position:relative}.project h3{font-size:1.3rem;letter-spacing:-.025em;line-height:1.2;margin-bottom:8px}.project p{color:var(--muted);line-height:1.45}.project-link{font-size:.93rem;font-weight:600;text-decoration:underline;text-underline-offset:4px;align-self:start}.project-logo{width:42px;height:42px;object-fit:contain}.category{font:500 .74rem/1.25 var(--mono);letter-spacing:.025em;color:var(--muted);text-transform:uppercase}.project-identity{display:flex;gap:14px;align-items:center}.more{display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin-top:27px;padding-top:21px;border-top:1px solid var(--border)}.more a{font-weight:500;text-decoration:underline;text-underline-offset:4px}.about{background:var(--surface);border-block:1px solid var(--border)}.about-inner{padding-block:55px 62px;display:grid;grid-template-columns:1fr 1fr;gap:55px}.about p:not(.eyebrow){margin-bottom:15px;color:var(--muted);max-width:540px}.textlink{text-decoration:underline;text-underline-offset:4px;font-weight:600}.footer{padding-block:31px;display:flex;justify-content:space-between;gap:24px;align-items:center}.footer>div{display:flex;align-items:center;gap:9px;font-weight:600;font-size:.93rem}.footer img{width:30px;height:24px}.footer small{color:var(--muted);font:400 .75rem var(--mono)}.footer nav{display:flex;gap:18px;font-size:.9rem}.review-note{background:#2E2E2A;color:#E8E6DF;padding:14px 0;font:400 12px/1.5 var(--mono)}.review-note .wrap{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.review-note strong{color:white}.review-note span{color:#B8B5AB} -.bureau{--canvas:#F2EFE9;--surface:#FFFCF7;--text:#272620;--muted:#615F56;--border:#CBC7BD;--control:#817D72;--focus:#A52C36;--accent-amber:#8A5D20}.bureau .masthead{background:var(--surface)}.bureau .hero-inner{grid-template-columns:1.08fr .92fr;gap:28px}.bureau .hero-visual{padding:15px;background:#E1DED5;border:1px solid #CBC7BD}.bureau h1{font-weight:600;font-size:clamp(3.8rem,7.3vw,7.0rem)}.bureau .projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--border);border-left:1px solid var(--border)}.bureau .project{padding:23px 24px 25px;display:grid;grid-template-rows:auto 1fr auto;gap:20px;border-width:0 1px 1px 0;background:var(--surface)}.bureau .project-link{color:#A52C36}.bureau .project.amber .project-link{color:#8A5D20}.bureau .project-identity{flex-direction:row-reverse;justify-content:space-between}.bureau .project-logo{width:44px;height:44px}.bureau .project:last-child{grid-column:span 2} -.works,.lab{--canvas:#171715;--surface:#22221F;--text:#E8E6DF;--muted:#ADA99F;--border:#484840;--control:#7A7971;--focus:#DAB16B;--accent-amber:#DAB16B}.works .masthead{background:#22221F;border-bottom:3px solid #C12735}.works .hero{background:#171715}.works .hero-inner{grid-template-columns:.95fr 1.05fr;gap:50px;padding-block:62px 65px}.works .hero-visual{padding:12px;border:1px solid #484840;background:#22221F;box-shadow:0 9px 0 #111110}.plate{background:#171715;border:1px solid #7A7971;padding:19px;position:relative;box-shadow:inset 0 0 0 6px #2E2E2A}.plate-top,.plate-bottom{display:flex;justify-content:space-between;gap:8px;font:500 .65rem/1.5 var(--mono);color:#B8B5AB;letter-spacing:.02em}.plate-top{border-bottom:1px solid #484840;padding-bottom:11px}.plate-bottom{border-top:3px solid #C12735;padding-top:12px}.plate-body{position:relative;overflow:hidden;height:320px;display:grid;place-items:center;background:repeating-linear-gradient(0deg,#171715 0 3px,#1a1a18 3px 4px)}.plate-body>img{width:70%;height:73%;object-fit:contain;position:relative}.plate-zone{position:absolute;inset:17px 18px;border:1px solid #484840}.plate-zone:before,.plate-zone:after{content:"";position:absolute;width:48px;height:48px;border-color:#7A7971;border-style:solid}.plate-zone:before{top:0;left:0;border-width:2px 0 0 2px}.plate-zone:after{bottom:0;right:0;border-width:0 2px 2px 0}.plate-scale{position:absolute;bottom:26px;left:25px;right:25px;display:flex;gap:10px}.plate-scale i{height:3px;width:100%;background:#484840}.plate-scale i:nth-child(3),.plate-scale i:nth-child(4){background:#C12735}.works:not(.hybrid) .projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.works:not(.hybrid) .project{background:#22221F;border-radius:4px;display:flex;flex-direction:column;gap:16px;padding:23px 22px 20px;box-shadow:0 4px 0 #111110;border-top:3px solid #C12735}.works:not(.hybrid) .project.amber{border-top-color:#DAB16B}.works:not(.hybrid) .project-identity{padding-bottom:14px;border-bottom:1px solid #484840}.works:not(.hybrid) .project-copy{flex:1}.works:not(.hybrid) .project:last-child{grid-column:span 2}.works:not(.hybrid) .project-link{margin-top:7px}.works .about{background:#22221F} -.lab .masthead{background:#171715}.lab .hero{background:#22221F}.lab .hero-inner{gap:0;grid-template-columns:1fr 1fr;padding-block:0;align-items:stretch}.lab .hero-copy{padding:60px 37px 56px 0}.lab h1{font-weight:600;font-size:clamp(3.6rem,6.8vw,6.3rem)}.lab .hero-visual{padding:42px 25px 42px 32px;border-left:1px solid #484840;display:flex;align-items:center;background:#171715;border-right:1px solid #484840}.scope{background:#2E2E2A;border:1px solid #7A7971;padding:13px;width:100%;box-shadow:0 3px 0 #111110}.scope-bar,.scope-bottom{display:flex;justify-content:space-between;gap:8px;font:500 .68rem/1.5 var(--mono);color:#B8B5AB;padding:8px 2px 12px}.scope-bottom{padding:12px 2px 5px}.scope svg{border:1px solid #484840}:is(.lab,.hybrid) .catalogue{padding-top:40px}:is(.lab,.hybrid) .projects{border:1px solid #484840;border-top:3px solid #C12735}:is(.lab,.hybrid) .project{display:grid;grid-template-columns:240px 1fr 180px;gap:24px;align-items:center;padding:18px 23px;border-width:0 0 1px;background:#22221F}:is(.lab,.hybrid) .project:nth-child(even){background:#1D1D1B}:is(.lab,.hybrid) .project:last-child{border-bottom:0}:is(.lab,.hybrid) .project-identity{gap:20px}:is(.lab,.hybrid) .project-logo{width:40px;height:40px}:is(.lab,.hybrid) .project h3{margin-bottom:4px}:is(.lab,.hybrid) .project-link{align-self:center}:is(.lab,.hybrid) .project.amber{border-left:3px solid #DAB16B}:is(.lab,.hybrid) .project.signal{border-left:3px solid #C12735}.lab .about{background:#22221F} -@media(max-width:900px){.review-inner{flex-wrap:wrap;padding-block:9px;gap:5px}.review nav{flex-wrap:wrap}.hero-inner,.works .hero-inner,.bureau .hero-inner{gap:30px}.plate-body{height:250px}:is(.lab,.hybrid) .project{grid-template-columns:180px 1fr 145px;gap:15px;padding:15px}.wrap{padding-inline:25px}.review-inner{padding-inline:25px}.bureau .projects,.works:not(.hybrid) .projects{grid-template-columns:repeat(2,minmax(0,1fr))}.bureau .project:last-child,.works:not(.hybrid) .project:last-child{grid-column:auto}.mast nav{gap:18px}.hero h1{font-size:clamp(3.4rem,7.5vw,6.2rem)}} -@media(max-width:680px){.wrap{padding-inline:20px}.review-inner{padding-inline:12px}.review-inner>div{padding-left:6px}.review nav{gap:0;width:100%;display:grid;grid-template-columns:repeat(4,1fr)}.review nav a{white-space:normal;font-size:11px;padding:8px 5px;text-align:center}.mast{height:auto;min-height:88px;flex-wrap:wrap;padding-block:17px;gap:17px}.brand{font-size:21px}.brand img{width:40px;height:34px}.mast nav{width:100%;gap:24px;font-size:14px}.hero-inner,.bureau .hero-inner,.works .hero-inner,.lab .hero-inner{grid-template-columns:1fr;padding-block:36px;gap:26px}.hero h1{font-size:clamp(3.4rem,13vw,5.2rem)}.lab .hero-copy{padding:0}.lab .hero-visual{border:1px solid #484840;padding:17px}.plate-body{height:220px}.hero-credit{font-size:.72rem}.section-head{align-items:start;flex-direction:column;gap:12px}.catalogue{padding-block:35px 40px}.bureau .projects,.works:not(.hybrid) .projects{grid-template-columns:1fr}:is(.lab,.hybrid) .project{grid-template-columns:1fr;gap:12px;padding:19px}:is(.lab,.hybrid) .project-identity{justify-content:start}.about-inner{grid-template-columns:1fr;gap:18px;padding-block:36px}.footer{flex-wrap:wrap;padding-block:22px}.footer nav{flex-wrap:wrap}.more{gap:13px}.more .eyebrow{width:100%}.review-note .wrap{display:grid;gap:5px}}@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}} - -@media(min-width:901px) and (max-width:1100px){.review-inner{flex-wrap:wrap;padding-block:9px;gap:6px}.review nav{flex-wrap:wrap}} - -/* Approved Signal Architecture hero artwork (Hybrid only). */ -.hybrid .signal-artwork{margin:0;background:#171715;border:1px solid #7A7971;overflow:hidden}.hybrid .signal-artwork img{width:100%;height:auto;display:block}.hybrid .signal-artwork figcaption{display:flex;justify-content:space-between;gap:12px;padding:10px 13px;border-top:2px solid #C12735;color:#B8B5AB;font:500 .72rem/1.5 var(--mono);letter-spacing:.055em} +:root { + font-family: var(--pw-font); + font-size: 16px; + scroll-behavior: smooth; + scroll-padding-top: 1rem; + --site-width: 77rem; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 300px; + margin: 0; + color: var(--pw-text); + background: var(--pw-canvas); + font: 400 var(--pw-size-base)/1.5 var(--pw-font); +} + +a { + color: inherit; + text-decoration: none; +} + +a:hover { + text-decoration: underline; + text-underline-offset: .25em; +} + +:focus-visible { + outline: var(--pw-focus-width) solid var(--pw-focus); + outline-offset: 4px; +} + +main:focus-visible { + outline: 0; +} + +::selection { + color: var(--pw-on-selection); + background: var(--pw-selection); +} + +p, +h1, +h2, +h3, +figure { + margin: 0; +} + +img { + display: block; + max-width: 100%; +} + +button { + font: inherit; +} + +.wrap { + width: min(100%, var(--site-width)); + margin-inline: auto; + padding-inline: var(--pw-space-6); +} + +.skip-link { + position: fixed; + z-index: 20; + top: -6rem; + left: var(--pw-space-3); + padding: var(--pw-space-3) var(--pw-space-4); + color: var(--pw-text); + background: var(--pw-raised); + border: 1px solid var(--pw-control-border); + border-radius: var(--pw-radius); + font-weight: 600; +} + +.skip-link:focus { + top: var(--pw-space-3); +} + +.masthead { + background: var(--pw-surface); + border-bottom: 3px solid var(--pw-brand-signal); +} + +.masthead-inner { + min-height: 6rem; + display: flex; + align-items: center; + justify-content: space-between; + gap: var(--pw-space-5); +} + +.brand { + display: inline-flex; + align-items: center; + gap: var(--pw-space-3); + flex: none; + color: var(--pw-text); + font-size: 1.5rem; + font-weight: 700; + line-height: 1; + letter-spacing: -.045em; + white-space: nowrap; +} + +.brand:hover { + text-decoration: none; +} + +.brand-mark, +.footer-mark, +.project-logo { + display: block; + flex: none; + background-position: center; + background-repeat: no-repeat; + background-size: contain; +} + +.brand-mark { + width: 3.125rem; + height: 2.625rem; +} + +.master-mark { + background-image: url("logos/packet-warriors-flat-dark.svg"); +} + +.firefly-mark { + background-image: url("logos/firefly-flat-dark.svg"); +} + +.observatory-mark { + background-image: url("logos/xlx-observatory-flat-dark.svg"); +} + +.fwdfix-mark { + background-image: url("logos/fwdfix-flat-dark.svg"); +} + +.gps-clock-mark { + background-image: url("logos/gps-clock-dash-flat-dark.svg"); +} + +[data-pw-theme="light"] .master-mark { + background-image: url("logos/packet-warriors-flat-light.svg"); +} + +[data-pw-theme="light"] .firefly-mark { + background-image: url("logos/firefly-flat-light.svg"); +} + +[data-pw-theme="light"] .observatory-mark { + background-image: url("logos/xlx-observatory-flat-light.svg"); +} + +[data-pw-theme="light"] .fwdfix-mark { + background-image: url("logos/fwdfix-flat-light.svg"); +} + +[data-pw-theme="light"] .gps-clock-mark { + background-image: url("logos/gps-clock-dash-flat-light.svg"); +} + +.brand-name b { + color: var(--pw-brand-signal); +} + +.brand-name small { + display: block; + margin-top: .45rem; + color: var(--pw-muted); + font: 400 var(--pw-size-xs)/1.3 var(--pw-mono); + letter-spacing: .1em; +} + +.masthead-actions, +.primary-nav, +.mode-switch { + display: flex; + align-items: center; +} + +.masthead-actions { + justify-content: flex-end; + gap: var(--pw-space-5); +} + +.primary-nav { + gap: var(--pw-space-5); + font-weight: 600; +} + +.primary-nav a, +.footer nav a { + min-height: 2.75rem; + display: inline-flex; + align-items: center; +} + +.mode-switch { + padding: 2px; + border: 1px solid var(--pw-control-border); + border-radius: var(--pw-radius); + background: var(--pw-inset); +} + +.mode-switch button { + min-height: 2.25rem; + padding: .4rem .65rem; + color: var(--pw-muted); + background: transparent; + border: 0; + border-radius: 2px; + cursor: pointer; + font-size: var(--pw-size-xs); + font-weight: 600; +} + +.mode-switch button[aria-pressed="true"] { + color: var(--pw-on-action); + background: var(--pw-action); +} + +.hero { + background: var(--pw-canvas); + border-bottom: 1px solid var(--pw-border); +} + +.hero-inner { + display: grid; + grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); + align-items: center; + gap: 3.125rem; + padding-block: 3.875rem 4.125rem; +} + +.eyebrow { + display: flex; + align-items: center; + gap: .55rem; + color: var(--pw-muted); + font: 400 var(--pw-size-xs)/1.5 var(--pw-mono); + letter-spacing: .07em; +} + +.eyebrow > span { + width: 1.55rem; + height: 3px; + flex: none; + background: var(--pw-brand-signal); +} + +h1 { + margin: var(--pw-space-5) 0; + font-size: clamp(3.1rem, 7.2vw, 6.9rem); + font-weight: 700; + line-height: .94; + letter-spacing: -.065em; +} + +.period { + color: var(--pw-brand-signal); +} + +.lead { + max-width: 31rem; + font-size: 1.4rem; + font-weight: 600; + line-height: 1.35; +} + +.intro { + max-width: 29rem; + margin-top: .9rem; + color: var(--pw-muted); +} + +.actions { + display: flex; + flex-wrap: wrap; + gap: var(--pw-space-3); + margin: 1.7rem 0 2rem; +} + +.button { + min-height: 2.875rem; + display: inline-flex; + align-items: center; + justify-content: center; + padding: .75rem 1.2rem; + border: 1px solid var(--pw-control-border); + border-radius: var(--pw-radius); + font-weight: 600; +} + +.button:hover { + text-decoration: none; +} + +.button.primary { + color: var(--pw-on-action); + background: var(--pw-action); + border-color: var(--pw-action); +} + +.button.primary:hover { + background: var(--pw-action-hover); + border-color: var(--pw-action-hover); +} + +.button.primary:active { + background: var(--pw-action-active); + border-color: var(--pw-action-active); +} + +.button.secondary { + color: var(--pw-text); + background: var(--pw-surface); +} + +.button.secondary:hover { + background: var(--pw-hover); +} + +.hero-credit { + color: var(--pw-muted); + font: 400 var(--pw-size-xs)/1.5 var(--pw-mono); + letter-spacing: .06em; +} + +.hero-credit span { + margin-inline: var(--pw-space-2); + color: var(--pw-brand-signal); +} + +.hero-visual { + min-width: 0; + padding: var(--pw-space-3); + background: var(--pw-surface); + border: 1px solid var(--pw-border); + box-shadow: 0 9px 0 var(--pw-inset); +} + +.signal-artwork { + overflow: hidden; + background: var(--pw-brand-carbon); + border: 1px solid #7A7971; +} + +.signal-artwork img { + width: 100%; + height: auto; +} + +.signal-artwork figcaption { + display: flex; + justify-content: space-between; + gap: var(--pw-space-3); + padding: .65rem .8rem; + color: var(--pw-brand-pewter); + background: var(--pw-brand-carbon); + border-top: 2px solid var(--pw-brand-signal); + font: 400 var(--pw-size-xs)/1.5 var(--pw-mono); + letter-spacing: .055em; +} + +.catalogue { + padding-block: 2.5rem 3.625rem; +} + +.section-head { + display: flex; + align-items: end; + justify-content: space-between; + gap: var(--pw-space-6); + margin-bottom: 1.55rem; +} + +.section-head > p { + max-width: 23.5rem; + color: var(--pw-muted); +} + +h2 { + margin-top: .65rem; + font-size: clamp(2rem, 3.6vw, 3.2rem); + font-weight: 700; + line-height: 1.08; + letter-spacing: -.045em; +} + +.projects { + border: 1px solid var(--pw-border); + border-top: 3px solid var(--pw-brand-signal); +} + +.project { + min-width: 0; + display: grid; + grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr) minmax(9rem, 11.25rem); + align-items: center; + gap: var(--pw-space-5); + padding: 1.1rem 1.4rem; + background: var(--pw-surface); + border-bottom: 1px solid var(--pw-border); +} + +.project:nth-child(even) { + background: var(--pw-inset); +} + +.project:last-child { + border-bottom: 0; +} + +.project.amber { + border-left: 3px solid var(--pw-brand-amber); +} + +.project.signal { + border-left: 3px solid var(--pw-brand-signal); +} + +.project-identity { + display: flex; + align-items: center; + gap: var(--pw-space-4); +} + +.project-logo { + width: 2.5rem; + height: 2.5rem; +} + +.category { + color: var(--pw-muted); + font: 400 var(--pw-size-xs)/1.35 var(--pw-mono); + letter-spacing: .025em; + text-transform: uppercase; +} + +.project h3 { + margin-bottom: var(--pw-space-1); + font-size: 1.3rem; + line-height: 1.2; + letter-spacing: -.025em; +} + +.project p { + color: var(--pw-muted); + line-height: 1.45; +} + +.project-link, +.more-projects a, +.text-link { + color: var(--pw-link); + font-weight: 600; + text-decoration: underline; + text-underline-offset: .25em; +} + +.project-link { + min-height: 2.75rem; + display: inline-flex; + align-items: center; + align-self: center; + font-size: var(--pw-size-sm); +} + +.more-projects { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: var(--pw-space-5); + margin-top: 1.7rem; + padding-top: 1.3rem; + border-top: 1px solid var(--pw-border); +} + +.more-projects a { + min-height: 2.75rem; + display: inline-flex; + align-items: center; +} + +.about { + background: var(--pw-surface); + border-block: 1px solid var(--pw-border); +} + +.about-inner { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 3.4rem; + padding-block: 3.4rem 3.9rem; +} + +.about p:not(.eyebrow) { + max-width: 34rem; + margin-bottom: .95rem; + color: var(--pw-muted); +} + +.text-link { + min-height: 2.75rem; + display: inline-flex; + align-items: center; +} + +.footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: var(--pw-space-5); + padding-block: 1.9rem; +} + +.footer-brand, +.footer nav { + display: flex; + align-items: center; +} + +.footer-brand { + gap: var(--pw-space-2); + font-size: var(--pw-size-sm); + font-weight: 600; +} + +.footer-mark { + width: 1.875rem; + height: 1.5rem; +} + +.footer small { + color: var(--pw-muted); + font: 400 var(--pw-size-xs)/1.5 var(--pw-mono); +} + +.footer nav { + flex-wrap: wrap; + gap: 1.15rem; + font-size: var(--pw-size-sm); +} + +@media (max-width: 64rem) { + .masthead-inner { + align-items: flex-start; + flex-direction: column; + gap: var(--pw-space-3); + padding-block: var(--pw-space-4); + } + + .masthead-actions { + width: 100%; + justify-content: space-between; + } + + .hero-inner { + gap: var(--pw-space-6); + } + + .project { + grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr) minmax(8rem, 9rem); + gap: var(--pw-space-4); + padding: var(--pw-space-4); + } +} + +@media (max-width: 48rem) { + .wrap { + padding-inline: var(--pw-space-5); + } + + .masthead-actions { + align-items: flex-start; + flex-direction: column; + gap: var(--pw-space-3); + } + + .primary-nav { + width: 100%; + justify-content: space-between; + } + + .hero-inner { + grid-template-columns: 1fr; + padding-block: 2.4rem; + } + + h1 { + font-size: clamp(3.1rem, 13vw, 5.2rem); + } + + .section-head, + .about-inner { + align-items: start; + grid-template-columns: 1fr; + } + + .section-head { + flex-direction: column; + gap: var(--pw-space-3); + } + + .catalogue { + padding-block: 2.2rem 2.6rem; + } + + .project { + grid-template-columns: 1fr; + gap: var(--pw-space-3); + padding: 1.2rem; + } + + .project-link { + justify-self: start; + } + + .more-projects { + gap: var(--pw-space-3) var(--pw-space-5); + } + + .more-projects .eyebrow { + width: 100%; + } + + .about-inner { + gap: var(--pw-space-5); + padding-block: 2.3rem; + } + + .footer { + align-items: flex-start; + flex-direction: column; + padding-block: var(--pw-space-5); + } +} + +@media (max-width: 30rem) { + .wrap { + padding-inline: var(--pw-space-4); + } + + .brand { + font-size: 1.3rem; + } + + .brand-mark { + width: 2.5rem; + height: 2.125rem; + } + + .primary-nav { + gap: var(--pw-space-4); + font-size: var(--pw-size-sm); + } + + .mode-switch { + width: 100%; + } + + .mode-switch button { + flex: 1; + } + + .signal-artwork figcaption { + align-items: flex-start; + flex-direction: column; + gap: var(--pw-space-1); + } +} + +@media (pointer: coarse) { + .primary-nav a, + .footer nav a, + .project-link, + .more-projects a, + .text-link, + .mode-switch button { + min-height: 44px; + } +} + +@media (prefers-reduced-motion: reduce) { + :root { + scroll-behavior: auto; + } +} + +@media (forced-colors: active) { + :focus-visible { + outline: 2px solid Highlight; + } + + .masthead, + .projects, + .project, + .hero-visual, + .signal-artwork, + .button, + .mode-switch { + border-color: CanvasText; + } + + .mode-switch button[aria-pressed="true"] { + color: HighlightText; + background: Highlight; + forced-color-adjust: none; + } + + .project.amber, + .project.signal { + border-left-color: CanvasText; + } +} diff --git a/theme.js b/theme.js new file mode 100644 index 0000000..242bf6a --- /dev/null +++ b/theme.js @@ -0,0 +1,50 @@ +(() => { + const root = document.documentElement; + const media = matchMedia('(prefers-color-scheme: dark)'); + const storageKey = 'pw-theme'; + const allowed = ['light', 'dark', 'auto']; + let preference = 'dark'; + + try { + preference = localStorage.getItem(storageKey) || 'dark'; + } catch {} + + if (!allowed.includes(preference)) preference = 'dark'; + + function apply() { + const resolved = preference === 'auto' ? (media.matches ? 'dark' : 'light') : preference; + root.dataset.pwTheme = resolved; + document.querySelectorAll('[data-mode]').forEach(button => { + button.setAttribute('aria-pressed', String(button.dataset.mode === preference)); + }); + } + + function setTheme(mode) { + if (!allowed.includes(mode)) return; + preference = mode; + try { + localStorage.setItem(storageKey, mode); + } catch {} + apply(); + } + + window.setPacketWarriorsTheme = setTheme; + media.addEventListener('change', () => { + if (preference === 'auto') apply(); + }); + + apply(); + + const bind = () => { + document.querySelectorAll('[data-mode]').forEach(button => { + button.addEventListener('click', () => setTheme(button.dataset.mode)); + }); + apply(); + }; + + if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', bind, { once: true }); + } else { + bind(); + } +})(); |
