/* Book typography: one column, generous spacing, dark gray on white. */

/* Open Sans, self-hosted variable font (SIL OFL, see fonts/OFL.txt). */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(fonts/open-sans-latin-wght-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url(fonts/open-sans-latin-wght-italic.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(fonts/open-sans-latin-ext-wght-normal.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: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url(fonts/open-sans-latin-ext-wght-italic.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;
}

html {
    font-size: 105%; /* 18px */
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0 1rem;
    background: #fff;
    color: #333;
    font-family: "Open Sans", system-ui, sans-serif;
    font-weight: 350;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

main, footer {
    max-width: 34rem;
    margin: 0 auto;
}

main {
    padding: 6rem 0 3rem;
}

/* Headings */

h1, h2, h3 {
    color: #222;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.15rem;
    margin: 2.75rem 0 0.85rem;
}

h3 {
    font-size: 1rem;
    margin: 2rem 0 0.65rem;
}

h1 + p:not(.subtitle) {
    margin-top: 2.75rem; /* same as paragraph to h2 */
}

.subtitle {
    color: #777;
    font-size: 1rem;
    font-weight: 450;
    margin: 0 0 2.75rem; /* same as paragraph to h2 */
    text-wrap: balance;
}

/* Text */

p, ul, table {
    margin: 0 0 1rem;
}

ul {
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

strong {
    font-weight: 600;
    color: #222;
}

/* Links: a discreet dotted rule */

a {
    color: inherit;
    text-decoration: underline dotted #aaa;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

a:hover {
    text-decoration-color: currentColor;
}

/* Top of page: the logo on the front page, the home button elsewhere */

.top {
    max-width: 34rem;
    margin: 0 auto;
    padding: 2rem 0 0;
}

.top + main {
    padding-top: 4.5rem;
}

.logo {
    display: block;
    width: max-content;
}

.logo img {
    display: block;
    position: relative;
    top: -0.2rem;
    height: 2.25rem;
    width: auto;
    margin: 0 0 -0.25rem -0.0625rem; /* keep the text below in place; optical left alignment */
}

/* Round buttons: an icon in a circle, inverted on hover and press */

.button {
    display: block;
    flex: none;
    width: calc(2rem - 2px);
    height: calc(2rem - 2px);
    box-sizing: border-box;
    border: 1.5px solid #999;
    border-radius: 50%;
}

.button::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #555;
}

.button:hover,
.button:active,
a.button:focus-visible,
a:hover > .button,
a:active > .button,
a:focus-visible > .button {
    background-color: #333;
    border-color: #333;
}

.button:hover::before,
.button:active::before,
a.button:focus-visible::before,
a:hover > .button::before,
a:active > .button::before,
a:focus-visible > .button::before {
    background-color: #fff;
}

.home::before {
    -webkit-mask: url(home.svg) 50% calc(50% - 1px) / 1.1rem no-repeat;
    mask: url(home.svg) 50% calc(50% - 1px) / 1.1rem no-repeat;
}

.chevron::before {
    -webkit-mask: url(chevron-right.svg) calc(50% + 0.1rem) 50% / 1.25rem no-repeat;
    mask: url(chevron-right.svg) calc(50% + 0.1rem) 50% / 1.25rem no-repeat;
}

.lead {
    font-weight: 450;
}

.example {
    padding-left: 1.5rem;
}

.placeholder {
    color: #999;
}

/* Table of contents: the chevron button inverts when anywhere on the link
   is hovered or pressed */

.toc {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.toc li {
    margin: 0 0 0.5rem;
}

.toc a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.toc .chevron {
    position: relative;
    top: 1px;
}

.toc .label {
    text-decoration: underline dotted #aaa;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.toc a:hover .label {
    text-decoration-color: currentColor;
}

/* User Group Meetings: year, then host with a hanging indent */

.ugm-list {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    padding: 0 0 0 0.5rem;
}

.ugm-list dt {
    font-weight: bold;
}

.ugm-list dd {
    margin: 0;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.55;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 0.6rem 1rem 0.6rem 0;
    border-bottom: 1px solid #e5e5e5;
}

th {
    font-weight: 600;
    color: #222;
    border-bottom-color: #ccc;
}

th:last-child, td:last-child {
    padding-right: 0;
}

@media (max-width: 34rem) {
    main { padding-top: 3rem; }
    table, thead, tbody, tr, th, td { display: block; }
    thead { display: none; }
    tr { border-bottom: 1px solid #e5e5e5; padding: 0.6rem 0; }
    td { border: 0; padding: 0.1rem 0; }
    td:first-child { font-weight: 600; color: #222; }
}

/* Footer */

footer {
    padding: 2rem 0 4rem;
    border-top: 1px solid #ccc;
    color: #888;
    font-size: 0.75rem;
}

footer p {
    margin: 0 0 0.75rem;
}

/* Print */

@media print {
    html { font-size: 11pt; }
    main { padding-top: 0; }
    a { text-decoration: none; }
    .home { display: none; }
}

