/*
 * Dark earth-tone overrides for Massively
 *
 * Palette:
 *   --bg-deep:    #1a1612  (body / outer wrapper)
 *   --bg-surface: #2a2320  (main content panel)
 *   --bg-raised:  #342c28  (cards, footer, subtle lifts)
 *   --text:       #d4ccc4  (body text)
 *   --text-muted: #9a8e82  (secondary text)
 *   --heading:    #ece4da  (headings)
 *   --border:     #3e3530  (dividers)
 *   --accent:     #c8956c  (links, highlights — warm amber)
 *   --accent-hover:#daa880  (hover state)
 */

/* ---- Base ---- */

body {
	background-color: #1a1612 !important;
	color: #d4ccc4 !important;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
	color: #ece4da !important;
}

strong, b {
	color: #ece4da !important;
}

a {
	color: inherit;
	border-bottom-color: rgba(200, 149, 108, 0.4) !important;
}

a:hover {
	color: #c8956c !important;
	border-bottom-color: transparent !important;
}

p, li, span, div, section, article {
	color: #d4ccc4;
}

blockquote {
	border-left-color: #3e3530 !important;
}

code {
	background: rgba(62, 53, 48, 0.5) !important;
	border-color: #3e3530 !important;
}

hr {
	border-bottom-color: #3e3530 !important;
}

/* ---- Main content panel ---- */

#main {
	background-color: #2a2320 !important;
	color: #d4ccc4 !important;
}

#main > * {
	border-top-color: #3e3530 !important;
}

#main .post,
#main .post p,
#main .post li,
#main .posts article,
#main .posts article p {
	color: #d4ccc4 !important;
}

#main .post header.major p {
	color: #9a8e82 !important;
}

#main .post header.major .date,
#main .posts article header .date {
	color: #9a8e82 !important;
}

/* ---- Posts grid ---- */

#main > .posts > article {
	border-color: #3e3530 !important;
}

/* ---- Header & Intro ---- */

#header {
	color: #ece4da !important;
}

#header .logo {
	color: #ece4da !important;
}

#intro {
	color: #ece4da !important;
}

#intro p {
	color: #d4ccc4 !important;
}

/* ---- Nav ---- */

#nav {
	background-color: #2a2320 !important;
}

#nav ul.links li a {
	color: #d4ccc4 !important;
}

#nav ul.links li a:hover {
	color: #c8956c !important;
}

#nav ul.links li.active {
	background-color: #2a2320 !important;
}

#nav ul.links li.active a {
	color: #ece4da !important;
}

#nav ul.icons a {
	color: #9a8e82 !important;
}

#nav ul.icons a:hover {
	color: #c8956c !important;
}

/* ---- Buttons ---- */

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	background-color: transparent !important;
	box-shadow: inset 0 0 0 2px #9a8e82 !important;
	color: #d4ccc4 !important;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
	color: #c8956c !important;
	box-shadow: inset 0 0 0 2px #c8956c !important;
}

input[type="submit"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
	background-color: #c8956c !important;
	box-shadow: none !important;
	color: #1a1612 !important;
}

input[type="submit"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover {
	background-color: #daa880 !important;
}

/* ---- Forms ---- */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
	border-color: #3e3530 !important;
	color: #d4ccc4 !important;
	background: transparent !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
	border-color: #c8956c !important;
}

select option {
	background-color: #2a2320 !important;
	color: #d4ccc4 !important;
}

/* ---- Footer ---- */

#footer {
	background-color: #221c19 !important;
	color: #9a8e82 !important;
}

#footer a {
	color: #d4ccc4 !important;
	border-bottom-color: rgba(212, 204, 196, 0.3) !important;
}

#footer a:hover {
	color: #c8956c !important;
}

#footer h3 {
	color: #ece4da !important;
}

#footer input[type="text"],
#footer input[type="email"],
#footer textarea {
	border-color: #3e3530 !important;
	color: #d4ccc4 !important;
}

/* ---- Copyright ---- */

#copyright {
	color: #9a8e82 !important;
}

#copyright a {
	color: #9a8e82 !important;
}

/* ---- Pagination ---- */

.pagination a,
.pagination span {
	border-color: #3e3530 !important;
	color: #d4ccc4 !important;
}

.pagination a:hover {
	border-color: #c8956c !important;
	color: #c8956c !important;
}

.pagination .page.active {
	background-color: #c8956c !important;
	color: #1a1612 !important;
}

/* ---- Table ---- */

table tbody tr {
	border-color: #3e3530 !important;
}

table tbody tr:nth-child(2n + 1) {
	background-color: rgba(62, 53, 48, 0.25) !important;
}

table th {
	color: #ece4da !important;
}

/* ---- Post date ---- */

.date {
	color: #9a8e82 !important;
}

/* ---- Image overlay (bg behind header/intro) ---- */

#wrapper > .bg {
	background-color: #1a1612 !important;
}

#wrapper.fade-in:before {
	background: #1a1612 !important;
}

/* ---- Koenig editor width classes ---- */

.kg-width-wide {
	position: relative;
	width: 85vw;
	min-width: 100%;
	margin: auto calc(50% - 42.5vw);
}

.kg-width-full {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.kg-width-full img,
.kg-width-wide img {
	width: 100%;
}
