/* ---------------------------------------------------------
   Hexword.ca — Company Theme
   Solutions in systems & silicon
--------------------------------------------------------- */

@font-face {
    font-family: 'Audiowide';
    src: url('/fonts/Audiowide-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Michroma';
    src: url('/fonts/Michroma-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-latin-ext.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    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: 'Inter';
    src: url('/fonts/Inter-latin.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    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: 'Roboto';
    src: url('/fonts/Roboto-latin-ext.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    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: 'Roboto';
    src: url('/fonts/Roboto-latin.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    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: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-latin-ext.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    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: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-latin.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    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;
}

/* Base */
:root {
    --bg: #f7f7f9;
    --bg-card: #ffffff;
    --text: #222;
    --text-muted: #666;
    --border: #ddd;
    --accent: #005bbb;
    --accent-light: #e6f0ff;
    --icon-ring: rgba(0, 0, 0, 0.35);
    --icon-bg: rgba(0, 0, 0, 0.08);    
}

[data-theme="dark"] {
    --bg: #111;
    --bg-card: #1a1a1a;
    --text: #e6e6e6;
    --text-muted: #999;
    --border: #333;
    --accent: #4da3ff;
    --accent-light: #002244;
    --icon-ring: rgba(255, 255, 255, 0.55);
    --icon-bg: rgba(255, 255, 255, 0.1);    
}


body {
    margin: 0;
    font-family: 'Roboto', 'Michroma', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

[data-font="readable"] body {
    font-family: 'Playfair Display', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* Layout */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: .4rem .6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 1rem;
}

.theme-toggle.active {
    border-color: var(--accent);
    color: var(--accent);
}

.header-buttons-closeby {
    display: inline-flex;
    gap: 2px;
    margin-left: 1rem;
}

.header-buttons-closeby .theme-toggle {
    margin-left: 0;
}

#fontToggle {
    color: #7ab8f5;
    border-color: #7ab8f5;
}

#fontToggle.active {
    color: #4da3ff;
    border-color: #4da3ff;
    background: var(--accent-light);
}

.breadcrumbs {
    margin: 1rem 0;
    font-size: .9rem;
    color: var(--text-muted);
}
.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    vertical-align: middle;
}

.logo-text {
    font-family: 'Audiowide', sans-serif;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: auto;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: 2fr 1fr;
}

/* Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons-closeby {
    display: flex;
    gap: .0rem;
}

.brand a {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav {
    text-align: left;
    align-self: center;
    flex: 1;
    padding-left: 1rem;
}

.nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.nav a:hover {
    color: var(--accent);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 1.5rem;
}

ul li::before {
    content: '■';
    color: orange;
    font-size: 0.5em;
    vertical-align: middle;
    margin-right: 0.5em;
}

.list {
    list-style: none;
    padding-left: 0;
}

.list li {
    margin-bottom: .4rem;
}

.list.nested {
    margin-left: 1rem;
}

/* Media list */
.media {
    display: flex;
    gap: .8rem;
}

.thumb {
    width: 120px;
    border-radius: 6px;
}

/* Blog post thumbnails */
.blog-thumb {
    width: 120px;
    min-width: 120px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* Search bar */
.site-search {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.site-search input[type="search"] {
    background: var(--bg);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: .35rem .6rem;
    color: var(--text);
    font-size: .85rem;
    width: 160px;
    outline: none;
    font-family: inherit;
}

.site-search input[type="search"]:focus {
    border-color: var(--accent);
}

.search-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: .35rem .55rem;
    cursor: pointer;
    font-size: .85rem;
    color: var(--text);
    line-height: 1;
}

.search-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.search-results-count {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.search-result {
    border-bottom: 1px solid var(--border);
    padding: .8rem 0;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    font-size: 1rem;
}

.search-result-title a {
    color: var(--accent);
    text-decoration: none;
}

.search-result-title a:hover {
    text-decoration: underline;
}

.search-result-snippet {
    font-size: .88rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

.search-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: .1rem .45rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    margin-right: .5rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 .5rem;
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: .5rem;
}

.icon.github,
.icon.docker,
.icon.youtube {
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--icon-ring);
  background-color: var(--icon-bg);
  background-size: 68%;
  background-position: center;
  background-repeat: no-repeat;
}


/* GitHub */
.icon.github {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23b0bec5' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M8 .2a8 8 0 00-2.5 15.6c.4.1.5-.2.5-.4v-1.4c-2 .4-2.5-.9-2.5-.9-.3-.8-.8-1-0.8-1-.7-.5.1-.5.1-.5.8.1 1.2.8 1.2.8.7 1.2 1.9.8 2.4.6.1-.5.3-.8.5-1-1.6-.2-3.3-.8-3.3-3.6 0-.8.3-1.4.8-2-.1-.2-.4-1 .1-2 0 0 .6-.2 2 .8a6.7 6.7 0 013.6 0c1.4-1 2-.8 2-.8.5 1 .2 1.8.1 2 .5.6.8 1.2.8 2 0 2.8-1.7 3.4-3.3 3.6.3.3.6.8.6 1.6v2.3c0 .2.1.5.5.4A8 8 0 008 .2z'/></svg>");
}

/* Docker */
.icon.docker {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230db7ed' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.186.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.186.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.186.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.263-.187-.836-.512-1.57-.993-.696-3.17-4.78-4.902-5.032-5.005a.515.515 0 00-.197-.043.54.54 0 00-.446.24c-.256.37-.246.977-.218 1.43.019.3.063.59.124.87a8.293 8.293 0 00-1.733-.18H2.582a.51.51 0 00-.511.511C2.02 9.5 2 11.35 2.746 13.07c.388.913.957 1.628 1.69 2.126 1.553 1.04 3.532 1.187 5.14 1.187.929 0 1.68-.058 2.155-.1.336-.03.67-.06 1.003-.1a5.853 5.853 0 002.012 1.658c.95.477 2.026.72 3.199.72 1.066 0 2.068-.218 2.978-.647a7.24 7.24 0 002.142-1.707c.592-.709 1.006-1.518 1.226-2.396.26-.12.505-.243.738-.374 1.297-.723 1.97-1.602 1.97-2.61 0-.548-.183-1.025-.536-1.418l-.7.38z'/></svg>");
}

/* YouTube */
.icon.youtube {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23FF0000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M23.5 6.2s-.2-1.7-.9-2.5c-.9-.9-1.9-.9-2.4-1C16.8 2.3 12 2.3 12 2.3h-.1s-4.8 0-8.2.4c-.5.1-1.5.1-2.4 1-.7.8-.9 2.5-.9 2.5S0 8.1 0 10v1.9c0 1.9.2 3.8.2 3.8s.2 1.7.9 2.5c.9.9 2.1.9 2.6 1 1.9.2 8.1.4 8.1.4s4.8 0 8.2-.4c.5-.1 1.5-.1 2.4-1 .7-.8.9-2.5.9-2.5s.2-1.9.2-3.8V10c0-1.9-.2-3.8-.2-3.8zM9.6 14.8V7.2l6.4 3.8-6.4 3.8z'/></svg>");
}
