/*
 * 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; }
 .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; }
.article-editor { border: 1px solid var(--rule); background: #fffdf8; }
.editor-toolbar { display: flex; 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; }
 .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; }
	 .site-footer { display: block; }
	 .site-footer span { display: block; }
 }
