@use "vars" as *;

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
}

body {
    color: var(--text);
    font-family: "IBM Plex Sans", "Noto Sans TC", "PingFang HK", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    word-break: normal;
    overflow-wrap: break-word;
}

a {
    color: var(--primaryStrong);
    text-decoration: none;
    transition: color .12s ease;
}

a:hover { color: var(--primary); text-decoration: underline; }

input, button, textarea, select { font: inherit; color: inherit; }

::placeholder { color: var(--muted2); opacity: 1; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

img { max-width: 100%; }

// Numeric columns line up — thread counts, member stats, prices.
.tabular { font-variant-numeric: tabular-nums; }

// Short pages (404, static pages) still push the footer to the bottom of the viewport.
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#wrapper > main { flex: 1 0 auto; }

.shell {
    width: 100%;
    max-width: $shellWidth;
    margin: 0 auto;
    padding: 0 $shellPadding;
}
