/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

@use 'colors';
@use 'globals';

* {
    box-sizing: border-box;
}

body {

    color: colors.$text-color;
    background: colors.$background-color;

    font-family: 'Inter', sans-serif;
    text-rendering: optimizeLegibility;

    margin: 0;
    padding: 0;

}

code, pre {
    font-family: 'Inconsolata', monospace;
}

a[href],
a[href]:visited {
    color: colors.$link-text-color;
    font-weight: bold;
}

a[href].email {
    font-family: 'Inconsolata', monospace;
    font-weight: normal;
}

p {
    line-height: 1.5;
}

p,
figure {
    margin: 1em 0;
}

p > img:only-child,
figure {
    width: auto;
    max-width: 100%;
}

figure img,
figure video {
    width: 100%;
}

figcaption {
  font-size: 80%;
  font-style: italic;
}

li {
    line-height: 1.5;
}

dt {
    font-weight: bold;
    line-height: 1.5;
}

dd {
    line-height: 1.5;
    margin: 1em 2em;
    margin-top: 0.5em;
}

table {
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 0.75em;
}

table td {
    padding: 0.5em;
}

table tr:nth-child(odd) td {
    background: globals.lightdark(#f9f9f9, #1f1f1f);
}

table tr:nth-child(even) td {
    background: globals.lightdark(#f0f0f0, #252525);
}

table td > * {
    margin: 0.25em;
}

.readable-content {
    width: 100%;
    max-width: 1366px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.25in;
    padding-right: 0.25in;
}

/* Style appropriately for printing */
@media print {
    body {
        font-size: 11pt;
    }
}

