/* ==========================================================================
   workfromanywhere.co — document pages (v1.0.0)
   Upload to: /wp-content/themes/wfa-theme/assets/css/wfa-document.css
   Loaded by page-wfa-document.php only.

   After outsite.co/code-of-conduct: one column, serif title at 60px,
   18px body, numbered serif section headings at 36px, lots of air.
   Ink and cream only, square, like the rest of the site.
   ========================================================================== */

.wfa-doc {
	--doc-ink:     var(--wfa-text, #14171a);
	--doc-muted:   var(--wfa-muted, #5f6a70);
	--doc-line:    var(--wfa-line, #e2dcd2);
	--doc-card:    var(--wfa-surface, #f2ede4);
	--doc-display: var(--wfa-display, "Fraunces", Georgia, "Times New Roman", serif);
	--doc-ui:      var(--wfa-ui, "Public Sans", system-ui, sans-serif);

	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	color: var(--doc-ink);
	font-family: var(--doc-ui);
}

/* Lines up with the logo: the header's gutter, 40px, 30px on phones. */
.wfa-doc__inner {
	max-width: calc(55rem + 80px);
	padding: clamp(3rem, 7vw, 5rem) 40px clamp(4rem, 9vw, 7rem);
	counter-reset: wfa-doc;
}

@media (max-width: 768px) {
	.wfa-doc__inner {
		padding-left: 30px;
		padding-right: 30px;
	}
}

/* ---------- title and intro ---------- */

.wfa-doc__head {
	margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.wfa-doc__title {
	margin: 0 0 1.75rem;
	font-family: var(--doc-display);
	font-size: clamp(2.5rem, 6vw, 3.75rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.wfa-doc__intro {
	font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
	line-height: 1.7;
}

.wfa-doc__intro > *:first-child { margin-top: 0; }

.wfa-doc__intro p {
	margin: 0 0 1em;
}

.wfa-doc__updated {
	margin: 1.5rem 0 0;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--doc-muted);
}

/* ---------- body ---------- */

.wfa-doc__body {
	font-size: clamp(1.0625rem, 1.6vw, 1.125rem);
	line-height: 1.75;
}

.wfa-doc__body > *:first-child {
	margin-top: 0;
}

.wfa-doc__body p {
	margin: 0 0 1.1em;
}

/* Section headings: numbered automatically, "1. Our Process". */
.wfa-doc__body h2 {
	counter-increment: wfa-doc;
	margin: clamp(3rem, 6vw, 4rem) 0 1.1rem;
	font-family: var(--doc-display);
	font-size: clamp(1.75rem, 3.4vw, 2.25rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.01em;
	scroll-margin-top: 2rem;
}

.wfa-doc__body h2::before {
	content: counter(wfa-doc) ". ";
}

.wfa-doc__body > h2:first-child {
	margin-top: 0;
}

.wfa-doc__body h3 {
	margin: 2.25em 0 .6em;
	font-family: var(--doc-display);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.3;
}

.wfa-doc__body h4 {
	margin: 1.75em 0 .5em;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.wfa-doc__body strong,
.wfa-doc__body b {
	font-weight: 600;
}

/* Lists: the site's thin tick, in ink. */
.wfa-doc__body ul {
	margin: .5em 0 1.4em;
	padding: 0;
	list-style: none;
}

.wfa-doc__body ul > li {
	position: relative;
	margin: 0 0 .5em;
	padding-left: 1.9rem;
	line-height: 1.6;
}

.wfa-doc__body ul > li::before {
	content: "";
	position: absolute;
	top: .3em;
	left: 0;
	width: 1.1rem;
	height: 1.1rem;
	background-color: var(--doc-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wfa-doc__body ol {
	margin: .5em 0 1.4em;
	padding-left: 1.4em;
}

.wfa-doc__body ol > li {
	margin-bottom: .5em;
	padding-left: .25em;
}

.wfa-doc__body a {
	color: var(--doc-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.wfa-doc__body a:hover {
	text-decoration-thickness: 2px;
}

.wfa-doc__body blockquote {
	margin: 1.75em 0;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid var(--doc-ink);
	background: var(--doc-card);
}

.wfa-doc__body blockquote p:last-child {
	margin-bottom: 0;
}

.wfa-doc__body img {
	max-width: 100%;
	height: auto;
}
