/*
Theme Name: Living The Legacy Notebook
Description: A very simple, old-fashioned WordPress notebook: left navigation, white pages, black text, and blue links.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ltl-notebook
*/

:root {
    color-scheme: light;
    --notebook-link: #0000ee;
    --notebook-text: #111111;
    --notebook-rule: #d6d6d6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
    margin: 0;
    color: var(--notebook-text);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

/* Traditional blue underlined links, including previously visited links. */
a, a:visited { color: var(--notebook-link); text-decoration: underline; }
a:hover { color: #0000aa; }
a:focus-visible { outline: 2px solid #1549e6; outline-offset: 3px; }

.notebook-layout {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    min-height: 100vh;
}
.notebook-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--notebook-rule);
    padding: 24px 17px 36px 21px;
    min-width: 0;
}
.notebook-title {
    color: var(--notebook-text);
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 5px;
    text-decoration: none;
}
.notebook-title:hover, .notebook-title:visited { color: var(--notebook-text); text-decoration: none; }
.notebook-site-url {
    color: #555555;
    font-size: 12px;
    margin: 0 0 15px;
    overflow-wrap: anywhere;
}
.notebook-nav-label {
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 9px;
}
.notebook-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notebook-nav li { margin: 0 0 9px; line-height: 1.45; overflow-wrap: anywhere; }
.notebook-nav a[aria-current="page"] { font-weight: 700; }
.notebook-empty {
    color: #666666;
    font-size: 12px;
    margin-top: 15px;
}
.notebook-main {
    min-width: 0;
    padding: 30px 46px 80px;
}
.notebook-content { width: 100%; max-width: 1050px; }
.notebook-content h1 {
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 19px;
}
.notebook-content h2 { font-size: 19px; margin: 27px 0 11px; line-height: 1.35; }
.notebook-content h3 { font-size: 16px; margin: 22px 0 8px; line-height: 1.35; }
.notebook-content p { margin: 0 0 16px; }
.notebook-content ul, .notebook-content ol { padding-left: 26px; margin: 0 0 16px; }
.notebook-content li { margin-bottom: 5px; }
.notebook-content hr { border: 0; border-top: 1px solid #bdbdbd; margin: 26px 0; }
.notebook-content img { max-width: 100%; height: auto; }
.notebook-content figure { max-width: 100%; margin: 14px 0 22px; }
.notebook-content figcaption { color: #666666; font-size: 12px; }
.notebook-content blockquote { border-left: 3px solid #bdbdbd; margin: 18px 0; padding: 4px 0 4px 15px; }
.notebook-content pre { background: #f5f5f5; overflow-x: auto; padding: 14px; }
.notebook-content code, .notebook-content pre { font-family: Consolas, 'Liberation Mono', monospace; }
.notebook-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0 22px;
    font-size: 14px;
}
.notebook-content th, .notebook-content td {
    border: 1px solid #bcbcbc;
    padding: 7px 10px;
    text-align: left;
    vertical-align: top;
}
.notebook-content th { background: #f4f4f4; font-weight: 700; }
.notebook-content .wp-block-table { overflow-x: auto; }
.notebook-content .wp-block-table table { margin-bottom: 0; }
.notebook-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f6f6f6; }
.notebook-content .wp-block-buttons { margin-bottom: 16px; }
.notebook-content .wp-block-button__link {
    background: #ececec;
    border: 1px solid #aaaaaa;
    border-radius: 0;
    color: #0000ee;
    font-size: 14px;
    padding: 8px 14px;
    text-decoration: underline;
}
.notebook-content .wp-block-button__link:visited { color: #0000ee; }
.notebook-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.notebook-content .alignleft { float: left; margin-right: 18px; }
.notebook-content .alignright { float: right; margin-left: 18px; }
.notebook-content::after { content: ''; display: block; clear: both; }
.notebook-edit-link {
    border-top: 1px solid #e5e5e5;
    margin-top: 34px;
    padding-top: 12px;
    font-size: 12px;
}
.notebook-not-found { color: #555555; }

@media (max-width: 780px) {
    .notebook-layout { grid-template-columns: 175px minmax(0, 1fr); }
    .notebook-sidebar { padding: 21px 13px; }
    .notebook-main { padding: 24px 23px 60px; }
}
@media (max-width: 540px) {
    .notebook-layout { display: block; }
    .notebook-sidebar { border-right: 0; border-bottom: 1px solid var(--notebook-rule); padding: 17px 19px; }
    .notebook-site-url { margin-bottom: 12px; }
    .notebook-nav { display: flex; flex-wrap: wrap; gap: 3px 14px; }
    .notebook-nav li { margin: 0; }
    .notebook-main { padding: 23px 19px 55px; }
    .notebook-content h1 { font-size: 23px; }
}

/* One global account link, between website details and page navigation. */
.notebook-account {
    padding: 0 0 14px;
    margin: 0 0 17px;
    border-bottom: 1px solid var(--notebook-rule);
    font-size: 14px;
}
