:root {
    --red: #b51716;
    --dark: #34332e;
    --text: #707070;
    --soft: #f5f5f3;
    --line: rgba(0,0,0,.1);
    --ok: #449922;
    --warn: #ffc107;
    --bad: #992222;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    color: var(--text);
    font-family: Lato, Helvetica, Arial, sans-serif;
    margin: 0;
    background: #fff;
}
a { color: inherit; }
.container { width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
.header {
    text-align: left;
    position: relative;
    width: 80%;
    max-width: 1200px;
    min-height: 74px;
    margin: auto;
}
.header_main {
    line-height: 23px;
    font-weight: 500;
    top: 0;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 0 7px rgba(0,0,0,.1);
    position: sticky;
    z-index: 10;
}
.logo_helper { display: inline-block; height: 100%; vertical-align: middle; width: 0; }
.logo { position: absolute; height: 100%; width: 45%; }
.logo img { max-height: 70%; max-width: 100%; height: auto; vertical-align: middle; }
.nav { padding: 25px 0 0 0; float: right; font-weight: 600; }
.nav_in ul { float: left; list-style: none; padding: 0; margin: 0; }
.nav_in ul li { display: inline-block; font-size: 14px; padding-right: 22px; line-height: 1em; }
.nav_in ul li a {
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--dark);
    font-size: 16px;
}
.nav_in ul li a:hover { color: #71706c; }
.clear { clear: both; }
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.main { flex: 1; padding: 2rem 0 3rem; }
.box_in { max-width: 1200px; margin: 0 auto; width: 80%; }
.h1pre {
    display: block;
    font-size: 26px;
    color: #333;
    line-height: 1em;
    font-weight: 500;
    margin: .5rem 0 .4rem;
}
h1 {
    font-weight: 900;
    font-style: italic;
    font-size: clamp(42px, 7vw, 80px);
    color: var(--red);
    line-height: 1em;
    margin: 0 0 1rem;
}
h2 {
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: var(--red);
    font-size: 22px;
    margin: 0 0 1.2rem;
    line-height: 1em;
}
h3 { color: var(--dark); margin: 0; font-size: 1.3rem; }
.topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.userline { color: #555; margin: 0 0 1.3rem; }
.login_out.single,
.panel_card,
.site_card,
.secret_box {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 22px;
    box-shadow: 0 0 41px 0 rgba(0,0,0,0.15);
}
.login_out.single { max-width: 450px; }
.panel_grid { display: grid; grid-template-columns: minmax(280px, 430px) 1fr; gap: 2rem; align-items: start; }
.list_card { min-width: 0; }
form { margin: 0; }
label { display: block; font-weight: 700; color: var(--dark); }
input, textarea, select {
    color: var(--dark);
    background-color: #efefef;
    border-color: #2d3940;
    width: 100%;
    border-radius: 0;
    font-size: 14px;
    padding: 14px 16px;
    margin: .45rem 0 0;
    border: 1px solid #bbb;
    outline: 0;
    font-family: inherit;
}
textarea { resize: vertical; }
.checkline label { font-weight: 500; color: #555; }
.checkline input { width: auto; margin: 0 .45rem 0 0; }
.hint, .muted, .empty { color: #777; line-height: 1.45; }
.button_container { float: right; text-align: right; }
button, .button_dark {
    padding: .3em 1em;
    color: #fff;
    border-width: 0;
    border-radius: 5px;
    letter-spacing: 1px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 900;
    font-style: italic;
    background-color: var(--dark);
    margin-top: 10px;
    transition: background-color 300ms ease 0ms, color 300ms ease 0ms;
    box-shadow: 0 8px 5px -6px rgba(0,0,0,.3);
    display: inline-block;
    cursor: pointer;
    line-height: 1.7em;
    border: 2px solid transparent;
    text-decoration: none;
}
button:hover, .button_dark:hover { color: var(--red); background-color: #fff; border-color: var(--red); }
.danger_btn { background: var(--bad); }
.flash, .secret_box { margin: 0 0 1rem; }
.flash { padding: .9rem 1rem; border-left: 5px solid var(--dark); background: var(--soft); color: var(--dark); }
.flash.ok { border-left-color: var(--ok); }
.flash.warn { border-left-color: var(--warn); }
.flash.error { border-left-color: var(--bad); }
.secret_box { border-top: 5px solid var(--red); }
.secret_box h3 { margin-bottom: .5rem; }
.secret_box dl, .site_meta { display: grid; grid-template-columns: 130px 1fr; gap: .35rem 1rem; }
.secret_box dt, .site_meta dt { color: var(--dark); font-weight: 900; }
.secret_box dd, .site_meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
code { background: #efefef; padding: .15rem .3rem; border-radius: 3px; color: #222; }
.site_list { display: grid; gap: 1rem; }
.site_card { box-shadow: 0 0 18px 0 rgba(0,0,0,.11); }
.site_head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .7rem; }
.badges { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.badge { display: inline-block; padding: .22rem .55rem; border-radius: 999px; color: #fff; font-size: .78rem; text-transform: uppercase; font-weight: 900; }
.badge.green { background: var(--ok); }
.badge.gray { background: #777; }
.site_actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-top: 1rem; }
.site_actions form { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; }
.site_actions input[type=email] { width: 190px; margin: 0; padding: .65rem .8rem; }
details.danger { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
details.danger summary { cursor: pointer; color: var(--bad); font-weight: 900; }
.footer {
    width: 100%;
    padding: 2rem 0 0;
    color: #fff;
    background-color: var(--dark);
    min-height: 10rem;
}
.footer_copy, .footer_links { max-width: 1200px; width: 80%; margin: 0 auto; color: #afafaf; padding-bottom: 1rem; }
.footer_links a, .footer a:hover { text-decoration: none; color: #fff; }
.footer h4 { color: #fff; font-weight: bold; text-transform: uppercase; padding-bottom: 1rem; font-size: 17px; margin: 0; }

@media (max-width: 900px) {
    .panel_grid { grid-template-columns: 1fr; }
    .topline { align-items: flex-start; flex-direction: column; }
    .userline { margin: 0 0 .5rem; }
}
@media (max-width: 600px) {
    .header, .box_in, .footer_copy, .footer_links { width: 92%; }
    .logo { width: 60%; }
    .nav_in ul li { padding-right: 0; padding-left: 12px; }
    .secret_box dl, .site_meta { grid-template-columns: 1fr; }
    .site_head { flex-direction: column; }
    .button_container { float: none; text-align: left; }
}
