/**
 * Base Layout CSS
 * https://github.com/taufik-nurrohman/layout
 */

 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font: inherit;
    background: none;
    color: inherit;
    border: 0;
    text-align: left;
    word-wrap: break-word;
}

:root {
    font: normal normal 16px/1.5 sans-serif;
    background: #fff;
    color: #000;
    padding: 1.5rem;
}

a {
    color: #00f;
    text-decoration: none;
}

a:focus {
    color: #f00;
}

b,
h1,
h2,
h3,
h4,
h5,
h6,
legend,
strong,
th {
    font-weight: bold;
}

blockquote {
    font-size: 1.125rem;
}

caption,
figcaption {
    text-align: center;
}

code {
    font-family: monospace;
}

dl,
ol,
ul {
    margin-left: 2rem;
}

em,
i,
var {
    font-style: italic;
}

fieldset {
    border: 1px solid;
    padding: 1.5rem;
}

figcaption {
    margin-top: .5rem;
}

figure {
    text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
    letter-spacing: -.05rem;
}

/* https://www.modularscale.com/?16&px&1.125 */
h1 {
    font-size: 2.027rem;
}

h2 {
    font-size: 1.802rem;
}

h3 {
    font-size: 1.602rem;
}

h4 {
    font-size: 1.424rem;
}

h5 {
    font-size: 1.266rem;
}

h6 {
    font-size: 1.125rem;
}

hr {
    border: 0;
    border-top: 1px solid;
    width: 2.5rem;
}

label {
    cursor: pointer;
}

legend {
    padding: 0 .5rem;
}

mark {
    background: #ff0;
}

ol {
    list-style: decimal;
}

ol > ol,
ol > ul,
ul > ol,
ul > ul {
    margin-left: 1rem;
}

pre code {
    display: block;
    background: #000;
    color: #fff;
    padding: 1rem 1.25rem;
    white-space: pre-wrap;
    overflow: auto;
}

small {
    font-size: .889rem;
}

sub,
sup {
    position: relative;
    vertical-align: middle;
    top: .25rem;
}

sup {
    top: -.25rem;
}

table {
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
}

table caption {
    caption-side: bottom;
    margin-top: .5rem;
}

ul {
    list-style: disc;
}

* + blockquote,
* + details,
* + dl,
* + fieldset,
* + figure,
* + form,
* + h1,
* + h2,
* + h3,
* + h4,
* + h5,
* + h6,
* + ol,
* + p,
* + pre,
* + table,
* + ul,
* + li:has(p) {
    margin-top: 1.5rem;
}

* + hr,
hr + * {
    margin-top: 2.5rem;
}

legend + * {
    margin-top: 0;
}

.code {
    font-family: monospace;
}

.button,
.input,
.select,
.textarea {
    display: inline-block;
    vertical-align: middle;
    width: 15rem;
    border: 1px solid;
    padding: .25rem .5rem;
}

.button {
    width: auto;
    background: #ccc;
    padding-right: .75rem;
    padding-left: .75rem;
    cursor: pointer;
}

.input[type=color],
.input[type=checkbox],
.input[type=file],
.input[type=image],
.input[type=radio],
.input[type=range],
.select {
    cursor: pointer;
}

.table th,
.table td {
    border: 1px solid;
    padding: .5rem 1rem;
    vertical-align: top;
}

.width {
    display: block;
    width: 100%;
}
