/*
Theme Name: goJefferson
Description: The theme for goJefferson.com, a small-town computer consultant: a plain, friendly site that puts the phone number and the storefront first. Wraps the goStation product pages and the WooCommerce shop as well.
Author: goJefferson.com
Author URI: https://gojefferson.com/
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: gojefferson
*/

:root {
	--gj-ink: #1f2230;
	--gj-text: #2b2e3a;
	--gj-muted: #666a78;
	--gj-accent: #1f5a8a;
	--gj-accent-dark: #163f62;
	--gj-tint: #eef3f8;
	--gj-warm: #faf8f5;
	--gj-line: #d6dee8;
	--gj-foot: #1b2a3a;
	--gj-foot-text: #c9d4df;
	--serif: Georgia, 'Times New Roman', Times, serif;
	--sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--gj-text); background: #fff; }
a { color: var(--gj-accent); }
a:hover { color: var(--gj-accent-dark); }
a:focus-visible { outline: 2px solid var(--gj-accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--gj-ink); margin: 0 0 .5em; }
h1 { font-size: 2.3em; letter-spacing: -.01em; }
h2 { font-size: 1.55em; margin-top: 1.5em; }
h3 { font-size: 1.15em; margin-top: 1.3em; font-family: var(--sans); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .3em; }
img, iframe { max-width: 100%; }
img { height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.screen-reader-text:focus { position: static; width: auto; height: auto; clip: auto; background: #fff; padding: 8px; }
.gj-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header: the name, the phone, the menu. */
.gj-top { border-top: 5px solid var(--gj-accent); background: #fff; }
.gj-top .gj-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 14px; flex-wrap: wrap; }
.gj-brand { text-decoration: none; color: var(--gj-ink); }
.gj-brand .gj-name { display: block; font-family: var(--serif); font-size: 2.1em; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.gj-brand .gj-name span { color: var(--gj-accent); }
.gj-brand .gj-tag { display: block; font-size: .95em; color: var(--gj-muted); margin-top: 6px; }
.gj-brand:hover .gj-name { color: var(--gj-accent-dark); }
.gj-call { text-align: right; line-height: 1.35; }
.gj-call .gj-phone { display: block; font-family: var(--serif); font-size: 1.7em; font-weight: 700; color: var(--gj-ink); text-decoration: none; }
.gj-call .gj-phone:hover { color: var(--gj-accent); }
.gj-call .gj-where { display: block; font-size: .9em; color: var(--gj-muted); }
.gj-nav { background: var(--gj-accent); }
.gj-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.gj-nav li { margin: 0; }
.gj-nav a { display: block; padding: 11px 18px; color: #fff; text-decoration: none; font-weight: 600; font-size: .98em; }
.gj-nav a:hover, .gj-nav a:focus-visible { background: var(--gj-accent-dark); color: #fff; }
.gj-nav .current-menu-item > a, .gj-nav .current_page_item > a, .gj-nav .current-menu-ancestor > a, .gj-nav .current_page_ancestor > a, .gj-nav .current_page_parent > a { background: var(--gj-accent-dark); }
.gj-nav .gj-menu-toggle { display: none; }
@media (max-width: 760px) {
	.gj-top .gj-inner { align-items: flex-start; }
	.gj-call { text-align: left; }
	.gj-nav .gj-menu-toggle { display: block; width: 100%; background: none; border: 0; color: #fff; font: 600 1em var(--sans); padding: 11px 18px; text-align: left; cursor: pointer; }
	.gj-nav ul { display: none; flex-direction: column; }
	.gj-nav.is-open ul { display: flex; }
}

/* Inner pages: the writing, and a card with the ways to reach us. */
.gj-page { padding: 36px 0 56px; }
.gj-page .gj-inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.gj-main { max-width: 720px; }
.gj-main > h1 { margin-bottom: .6em; }
.gj-main h2:first-child { margin-top: 0; }
.gj-main iframe { width: 100%; border: 0; border-radius: 6px; }
.gj-aside { position: sticky; top: 16px; }
.gj-card { background: var(--gj-tint); border: 1px solid var(--gj-line); border-radius: 8px; padding: 18px 20px; font-size: .95em; margin-bottom: 18px; }
.gj-card h3 { margin: 0 0 .5em; font-family: var(--serif); font-size: 1.2em; }
.gj-card p { margin: 0 0 .7em; }
.gj-card p:last-child { margin-bottom: 0; }
.gj-card .gj-big { font-family: var(--serif); font-size: 1.35em; font-weight: 700; text-decoration: none; color: var(--gj-ink); }
.gj-card .gj-big:hover { color: var(--gj-accent); }
.gj-card ul { padding-left: 1.2em; margin: 0; }
@media (max-width: 900px) {
	.gj-page .gj-inner { grid-template-columns: 1fr; gap: 24px; }
	.gj-aside { position: static; }
}

/* Buttons. */
.gj-btn { display: inline-block; background: var(--gj-accent); color: #fff !important; text-decoration: none; font-weight: 600; padding: .65em 1.2em; border-radius: 6px; margin: .2em .5em .4em 0; }
.gj-btn:hover { background: var(--gj-accent-dark); }
.gj-btn.gj-quiet { background: #fff; color: var(--gj-accent) !important; border: 2px solid var(--gj-accent); padding: calc(.65em - 2px) calc(1.2em - 2px); }
.gj-btn.gj-quiet:hover { background: var(--gj-tint); }

/* The home page. */
.gj-hero { background: var(--gj-tint); border-bottom: 1px solid var(--gj-line); padding: 52px 0 44px; }
.gj-hero .gj-inner { max-width: 860px; }
.gj-hero h1 { font-size: 2.7em; margin-bottom: .4em; }
.gj-hero .gj-lede { font-size: 1.18em; max-width: 42em; }
.gj-hero .gj-lede p:last-child { margin-bottom: 1.2em; }
.gj-two { padding: 44px 0 20px; }
.gj-two .gj-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gj-service { border: 1px solid var(--gj-line); border-radius: 10px; padding: 26px 28px 22px; background: #fff; }
.gj-service h2 { margin: 0 0 .4em; font-size: 1.5em; }
.gj-service h2 a { text-decoration: none; color: var(--gj-ink); }
.gj-service h2 a:hover { color: var(--gj-accent); }
.gj-service ul { columns: 2; column-gap: 20px; font-size: .95em; margin: .6em 0 1em; padding-left: 1.2em; }
.gj-service li { break-inside: avoid; }
.gj-service .gj-more { font-weight: 600; text-decoration: none; }
.gj-service .gj-more::after { content: " \203A"; }
.gj-band { background: var(--gj-warm); border-top: 1px solid var(--gj-line); border-bottom: 1px solid var(--gj-line); padding: 36px 0; margin-top: 28px; }
.gj-band .gj-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gj-band h2 { margin-top: 0; font-size: 1.3em; }
.gj-band p:last-child { margin-bottom: 0; }
.gj-towns { font-size: 1.05em; }
.gj-towns strong { color: var(--gj-ink); }
.gj-about { padding: 40px 0 56px; }
.gj-about .gj-inner { max-width: 860px; }
.gj-about h2 { margin-top: 0; }
@media (max-width: 760px) {
	.gj-hero { padding: 36px 0 30px; }
	.gj-hero h1 { font-size: 2em; }
	.gj-two .gj-inner, .gj-band .gj-inner { grid-template-columns: 1fr; }
	.gj-service ul { columns: 1; }
}

/* Footer. */
.gj-foot { background: var(--gj-foot); color: var(--gj-foot-text); padding: 32px 0 40px; font-size: .95em; }
.gj-foot .gj-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gj-foot a { color: #fff; }
.gj-foot p { margin: 0 0 .4em; }
.gj-foot .gj-f-name { font-family: var(--serif); font-size: 1.3em; color: #fff; font-weight: 700; }
.gj-foot .gj-f-small { font-size: .88em; color: #9fb0c2; margin-top: 10px; }

/* Blog posts and archives, which this site barely uses. */
.gj-entry { margin-bottom: 2.5em; padding-bottom: 1.5em; border-bottom: 1px solid var(--gj-line); }
.gj-entry h2 { margin-top: 0; }
.gj-entry h2 a { text-decoration: none; }
.gj-date { font-size: .9em; color: var(--gj-muted); }

/* Page content written in the editor. */
.gj-main .wp-block-image, .gj-main figure { margin: 1em 0; }
.gj-main blockquote { margin: 1em 0; padding: .2em 1.2em; border-left: 4px solid var(--gj-line); color: #444; }
.gj-main .gj-old { margin-top: 3em; font-size: .85em; color: var(--gj-muted); }
.gj-main .gj-old a { color: var(--gj-muted); }

/* WooCommerce, kept simple inside the same column. */
.woocommerce .gj-main { max-width: none; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--gj-accent); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--gj-accent); }
.gj-main .woocommerce-breadcrumb { font-size: .9em; color: var(--gj-muted); margin-bottom: 1em; }
.woocommerce .gj-main .page-title { font-family: var(--serif); font-size: 2.3em; }
