/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
 :root {
	 --ink: #20201d;
	 --muted: #706f67;
	 --paper: #f4f0e8;
	 --rule: #d8d1c4;
	 --accent: #c84b31;
	 --serif: Georgia, "Times New Roman", serif;
	 --sans: "Avenir Next", Avenir, Helvetica, sans-serif;
 }
 
 * { box-sizing: border-box; }
 body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
 .site-header, .site-footer, .site-main { max-width: 1120px; margin: 0 auto; padding-inline: 6vw; }
 .site-header { display: flex; justify-content: space-between; align-items: baseline; padding-top: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
 .site-name { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.2rem var(--serif); text-decoration: none; letter-spacing: .02em; }
 .site-name-logo { width: 28px; height: 28px; object-fit: contain; }
 nav { display: flex; gap: 1.5rem; font-size: .85rem; }
.nav-button { padding: 0; color: inherit; background: none; border: 0; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
 .weather-widget { max-width: 1120px; margin: 0 auto; padding: .55rem 6vw 0; color: var(--muted); font-size: .75rem; line-height: 1.4; text-align: right; }
 .weather-current { padding: 0; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
 .weather-current:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
 .weather-toggle-icon { display: inline-block; margin-left: .25rem; transition: transform .18s ease; }
 .weather-widget.is-open .weather-toggle-icon { transform: rotate(180deg); }
 .weather-forecast { display: grid; grid-template-rows: 0fr; max-width: 100%; opacity: 0; visibility: hidden; transform: translateY(-.2rem); transition: grid-template-rows .18s ease, opacity .15s ease, transform .18s ease, visibility 0s linear .18s; }
 .weather-widget.is-open .weather-forecast { grid-template-rows: 1fr; opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
 .weather-forecast-inner { min-height: 0; overflow: hidden; }
 .weather-forecast-list { width: max-content; max-width: 100%; margin: .45rem 0 0 auto; padding: .55rem .7rem; list-style: none; text-align: left; background: #fffdf8; border-radius: .35rem; box-shadow: 0 .25rem .8rem rgb(32 32 29 / 10%); }
 .weather-forecast-list li + li { margin-top: .3rem; }
 .site-main { min-height: 72vh; padding-top: 5rem; padding-bottom: 6rem; }
 .eyebrow { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
 h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.05; }
 h1 { max-width: 780px; margin: .5rem 0 1.5rem; font-size: clamp(3rem, 8vw, 6.6rem); letter-spacing: -.04em; }
 .intro { max-width: 560px; color: var(--muted); font-size: 1.15rem; }
.intro span { display: block; margin-bottom: .8rem; }
 .intro-image { display: block; width: 100%; max-width: 780px; height: auto; margin-top: 2rem; }
 .article-list { display: grid; max-width: 780px; margin-top: 5rem; }
 .article-preview { display: grid; grid-template-columns: 8rem 1fr; gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
 .article-preview time { color: var(--muted); font-size: .8rem; }
 .article-preview h2 { margin: 0 0 .4rem; font-size: 1.8rem; }
 .article-preview p { margin: 0; color: var(--muted); }
 .article-body { max-width: 680px; }
 .article-body h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
 .article-body p { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.2rem; text-align: justify; }
 .article-line { display: block; }
 .article-divider { margin: 2.5rem 0 1.5rem; border: 0; border-top: 1px solid var(--rule); }
 .article-line--red { color: var(--accent); }
.article-subtitle { color: var(--muted); font-style: italic; }
 .article-link { font-family: var(--sans) !important; }
.about-title { font-size: clamp(2.8rem, 6vw, 5rem); }
.admin-page { max-width: 860px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.admin-page h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.admin-button { display: inline-block; padding: .7rem 1rem; color: var(--paper); background: var(--accent); border: 0; text-decoration: none; font: inherit; cursor: pointer; }
.admin-notice { padding: .8rem 1rem; color: #315d3b; background: #dce9d7; }
.admin-table { margin-top: 3rem; border-top: 1px solid var(--rule); }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.admin-row strong, .admin-row small { display: block; }
.admin-row small { color: var(--muted); font-size: .8rem; }
.admin-actions { display: flex; align-items: center; gap: 1rem; }
.admin-actions form { margin: 0; }
.admin-delete { padding: 0; color: var(--accent); background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.admin-editor { max-width: 720px; }
.admin-form { margin-top: 2rem; }
.admin-field { display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.admin-field label { font-size: .8rem; font-weight: 700; }
.admin-field input, .admin-field textarea { width: 100%; padding: .7rem; color: var(--ink); background: #fffdf8; border: 1px solid var(--rule); font: inherit; }
.admin-checkbox { display: flex; align-items: center; gap: .6rem; }
.admin-checkbox input { width: auto; }
.admin-form-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.5rem; }
.admin-errors { margin-bottom: 1.2rem; padding: .8rem 1rem; color: #8c2e24; background: #f5dcd6; }
.login-page { max-width: 480px; }
.page-views-page { max-width: 1120px; }
.page-view-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 3rem; }
.page-view-stats div { padding: 1rem; border: 1px solid var(--rule); background: #fffdf8; }
.page-view-stats dt { color: var(--muted); font-size: .8rem; }
.page-view-stats dd { margin: .2rem 0 0; font: 400 2rem var(--serif); }
.page-view-section { margin-top: 3rem; }
.page-view-section h2 { font-size: 2rem; }
.page-view-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.page-view-section-heading span { color: var(--muted); font-size: .85rem; }
.page-view-filters { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr) auto; align-items: end; gap: 1rem; margin: 1.5rem 0; }
.page-view-filters .admin-field, .page-view-filters .admin-form-actions { margin: 0; }
.page-view-table-wrap { max-width: 100%; overflow-x: auto; }
.page-view-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.page-view-table th, .page-view-table td { padding: .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.page-view-table th, .page-view-table time { white-space: nowrap; }
.page-view-breakable, .page-view-user-agent { max-width: 20rem; overflow-wrap: anywhere; word-break: break-word; }
.page-view-user-agent summary { max-width: 18rem; cursor: pointer; }
.page-view-user-agent details span { display: block; margin-top: .4rem; color: var(--muted); }
.page-view-pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.article-editor { border: 1px solid var(--rule); background: #fffdf8; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .6rem; border-bottom: 1px solid var(--rule); background: var(--paper); }
.editor-toolbar button, .editor-toolbar select { min-width: 2rem; padding: .35rem .55rem; color: var(--ink); background: transparent; border: 1px solid var(--rule); font: inherit; cursor: pointer; }
.editor-toolbar label { display: flex; align-items: center; gap: .4rem; margin-left: .4rem; font-size: .8rem; }
.editor-canvas { min-height: 18rem; padding: .8rem; outline: 0; white-space: pre-wrap; }
.article-rich-body { font-family: var(--serif); font-size: 1.2rem; text-align: justify; }
.article-rich-body p { margin: 0 0 1.2rem; text-align: justify; }
.editor-canvas ul, .editor-canvas ol, .article-rich-body ul, .article-rich-body ol { margin: .4rem 0 .8rem; padding-left: 2rem; white-space: normal; }
.editor-canvas li, .article-rich-body li { margin-block: 0; }
.editor-canvas li > p, .editor-canvas li > div, .article-rich-body li > p, .article-rich-body li > div { margin: 0; }
.editor-canvas li > ul, .editor-canvas li > ol, .article-rich-body li > ul, .article-rich-body li > ol { margin: .2rem 0 .3rem; }
.editor-canvas font[size="2"], .article-rich-body font[size="2"] { font-size: .85em; }
.editor-canvas font[size="4"], .article-rich-body font[size="4"] { font-size: 1.35em; }
.editor-canvas font[size="6"], .article-rich-body font[size="6"] { font-size: 1.8em; }
 .article-rich-body { white-space: pre-wrap; }
 .article-rich-body div { display: block; }
 .site-footer { display: flex; justify-content: space-between; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .75rem; }
 .site-mark { display: flex; justify-content: center; padding: 0 0 1rem; }
 .site-mark img { display: block; width: 28px; height: 28px; object-fit: contain; }
 @media (max-width: 600px) {
	 .site-header { align-items: flex-start; gap: 1rem; }
	 nav { gap: .8rem; flex-direction: column; align-items: flex-end; }
	 .site-main { padding-top: 3.5rem; }
	 .article-body p, .article-rich-body { text-align: left; }
	 .article-preview { grid-template-columns: 1fr; gap: .25rem; }
	 .page-view-stats, .page-view-filters { grid-template-columns: 1fr; }
	 .site-footer { display: block; }
	 .site-footer span { display: block; }
 }
