/*!
Theme Name: Beer and Guitars
Theme URI: https://beerandguitars.com/
Author: James
Description: Magazine-style theme for Beer and Guitars. Built on Underscores (_s) by Automattic. Surf teal, navy and white; centred masthead; two-up features and a four-column story grid; Tabs on Tap band; "Start a tab" newsletter; coming-soon mode.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: beerandguitars
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--navy: #14304a;
	--navy-deep: #0b1e30;
	--teal: #3fb8af;
	--teal-text: #1e7a73;
	--mist: #eaf7f6;
	--ink: #14304a;
	--muted: #4a5a6a;
	--rule: #d5dce2;
	--paper: #ffffff;
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "Newsreader", Georgia, serif;
	--font-mono: "Space Grotesk", ui-monospace, monospace;
	--wrap: 1240px;
	--gutter: 24px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--navy);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--teal-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0 0 0.5em;
}

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 2rem 0;
}

blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.25rem;
	border-left: 3px solid var(--teal);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.35em;
	line-height: 1.4;
}

code,
pre {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	background: var(--mist);
	padding: 1rem;
	overflow-x: auto;
	white-space: pre;
}

table {
	border-collapse: collapse;
	width: 100%;
}

th,
td {
	border-bottom: 1px solid var(--rule);
	padding: 0.5rem;
	text-align: left;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.wrap--narrow {
	max-width: 780px;
}

.kicker {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 8px;
}

/* ==========================================================================
   3. Accessibility and WordPress core classes
   ========================================================================== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--paper);
	clip: auto !important;
	clip-path: none;
	color: var(--navy);
	display: block;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	margin-left: -80px;
	margin-right: -80px;
	max-width: calc(100% + 160px);
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-caption,
figure {
	margin: 0 0 1.5em;
	max-width: 100%;
}

.wp-caption-text,
figcaption {
	color: var(--muted);
	font-size: 14px;
	margin-top: 0.5em;
}

.sticky,
.bypostauthor {
	display: block;
}

.admin-hint {
	background: var(--mist);
	border: 1px dashed var(--navy);
	padding: 12px 16px;
	font-size: 14px;
}

/* ==========================================================================
   4. Buttons and forms
   ========================================================================== */
.button,
button,
input[type="submit"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	background: var(--navy);
	border: 1px solid var(--navy);
	border-radius: 3px;
	color: #ffffff;
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--navy-deep);
	color: #ffffff;
}

.button-outline {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--navy);
	border-radius: 3px;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

.button-outline:hover {
	background: var(--navy);
	color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--navy);
	border-radius: 3px;
	background: #ffffff;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
}

textarea {
	min-height: 140px;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 0 0 2rem;
}

.search-form label {
	flex: 1;
}

/* ==========================================================================
   5. Top bar
   ========================================================================== */
.topbar {
	background: var(--navy);
	color: #ffffff;
	font-size: 13px;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.topbar ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.topbar a {
	color: #ffffff;
	text-decoration: none;
}

.topbar a:hover {
	color: var(--teal);
}

.topbar__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.topbar__search input[type="search"] {
	width: 150px;
	min-height: 30px;
	padding: 4px 10px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #ffffff;
	font-size: 13px;
}

.topbar__search input::placeholder {
	color: #c9d6e2;
}

.topbar__cta {
	background: var(--teal);
	color: var(--navy) !important;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 3px;
}

.topbar__cta:hover {
	background: #ffffff;
}

/* ==========================================================================
   6. Masthead and main menu (header B)
   ========================================================================== */
.site-header {
	padding: 28px 0 0;
}

.site-branding {
	text-align: center;
}

.site-title {
	margin: 0;
	line-height: 0;
}

.site-logo {
	display: inline-block;
}

.site-logo img {
	display: block;
	width: min(440px, 80vw);
	height: auto;
}

.site-logo--small img {
	width: 150px;
}

.site-logo--hero img {
	width: min(560px, 86vw);
}

.main-navigation {
	margin-top: 22px;
	border-top: 1px solid var(--navy);
	border-bottom: 1px solid var(--navy);
}

.main-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 30px;
	margin: 0;
	padding: 10px 0;
}

.main-navigation a {
	display: inline-block;
	padding: 6px 0;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--navy);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--teal-text);
	box-shadow: inset 0 -2px 0 var(--teal);
}

.main-navigation ul ul {
	display: none;
}

.menu-toggle {
	display: none;
}

@media (max-width: 760px) {
	.menu-toggle {
		display: flex;
		width: 100%;
		background: transparent;
		color: var(--navy);
		border: 0;
		font-family: var(--font-mono);
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}

	.menu-toggle:hover {
		background: var(--mist);
		color: var(--navy);
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		align-items: center;
		gap: 0;
		padding: 0 0 10px;
	}

	.main-navigation.toggled ul {
		display: flex;
	}

	.main-navigation a {
		padding: 10px 0;
	}

	.topbar__search input[type="search"] {
		width: 110px;
	}
}

/* ==========================================================================
   7. Homepage
   ========================================================================== */
.site-main {
	padding-bottom: 40px;
}

.home-intro {
	text-align: center;
	color: var(--muted);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 20px;
	margin: 18px auto 0;
	max-width: 640px;
}

.home-intro p {
	margin: 0;
}

.section-rule {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 36px 0 28px;
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.section-rule::before,
.section-rule::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--navy);
}

.grid {
	display: grid;
	gap: 48px 24px;
}

.grid--features {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 48px;
}

.grid--cards {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.grid--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.grid--features,
	.grid--cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

.more-link-row {
	text-align: center;
	margin: 48px 0 0;
}

/* Story cards */
.story__link {
	display: block;
	color: var(--ink);
	text-decoration: none;
}

.story__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--mist);
	margin-bottom: 14px;
}

.story--feature .story__media {
	aspect-ratio: 16 / 11;
	margin-bottom: 18px;
}

.story__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story__link:hover .story__media img {
	transform: scale(1.03);
}

.story__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--navy);
	color: var(--teal);
	font-weight: 700;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.story__meta {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 6px;
}

.story__title {
	font-size: 19px;
	margin: 0 0 4px;
}

.story--feature .story__title {
	font-size: clamp(24px, 2.6vw, 32px);
}

.story__link:hover .story__title {
	color: var(--teal-text);
}

.story__dek {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 16px;
	line-height: 1.35;
	color: var(--teal-text);
	margin: 0 0 8px;
}

.story--feature .story__dek {
	font-size: 19px;
}

.story__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

.story--feature .story__excerpt {
	font-size: 15px;
}

/* Tabs on Tap band */
.tabs-band {
	background: var(--teal);
	margin-top: 64px;
	padding: 56px 0;
}

.tabs-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.tabs-band__intro {
	flex: 1 1 320px;
	min-width: 0;
}

.tabs-band__title {
	font-size: clamp(36px, 4vw, 48px);
}

.tabs-band__intro p:last-child {
	margin: 0;
	font-size: 17px;
}

.tabs-band__tools {
	flex: 2 1 520px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.tool-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #ffffff;
	border: 1px solid var(--navy);
	border-radius: 4px;
	padding: 22px;
	color: var(--ink);
	text-decoration: none;
	box-shadow: 5px 5px 0 var(--navy);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 7px 7px 0 var(--navy);
	color: var(--ink);
}

.tool-card__title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.tool-card__text {
	font-size: 15px;
	color: var(--muted);
}

.tool-card__cta {
	margin-top: 8px;
	font-weight: 700;
	font-size: 14px;
	color: var(--teal-text);
}

/* Shop strip */
.shop-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 40px 0;
	border-bottom: 1px solid var(--rule);
}

.shop-strip__title {
	font-size: clamp(22px, 2.4vw, 30px);
	margin: 0;
}

/* ==========================================================================
   8. Single stories and pages
   ========================================================================== */
.article {
	max-width: 780px;
	margin: 48px auto 0;
}

.article__header {
	text-align: center;
	margin-bottom: 32px;
}

.article__title {
	font-size: clamp(32px, 5vw, 52px);
	margin-bottom: 12px;
}

.article__dek {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(20px, 2.4vw, 26px);
	line-height: 1.35;
	color: var(--teal-text);
	margin: 0 0 16px;
}

.article__byline {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	padding: 6px 14px;
	margin: 0;
}

.article__media {
	margin: 0 -60px 36px;
}

.article__media img {
	display: block;
	width: 100%;
}

@media (max-width: 900px) {
	.article__media {
		margin: 0 0 28px;
	}

	.alignwide {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}

.entry-content {
	font-family: var(--font-serif);
	font-size: 20px;
	line-height: 1.7;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-sans);
	margin-top: 1.6em;
}

.entry-content h2 {
	font-size: 28px;
}

.entry-content h3 {
	font-size: 22px;
}

.entry-content a {
	color: var(--teal-text);
}

.entry-content .wp-block-embed,
.entry-content iframe {
	margin: 2rem 0;
}

.entry-content .wp-block-embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

.article__footer {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
}

.article__tags a {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 4px 10px;
	border: 1px solid var(--navy);
	border-radius: 3px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

.article-comments {
	max-width: 780px;
	margin: 48px auto 0;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 24px;
}

.page .entry-header,
.error-404 .page-header {
	text-align: center;
	margin: 48px 0 28px;
}

.page .entry-title,
.error-404 .page-title {
	font-size: clamp(32px, 5vw, 48px);
}

.page-header .archive-description {
	text-align: center;
	color: var(--muted);
	margin: -12px auto 28px;
	max-width: 640px;
}

.post-thumbnail img {
	display: block;
	width: 100%;
	margin-bottom: 28px;
}

/* Pagination */
.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	justify-content: center;
	border: 1px solid var(--navy);
	border-radius: 3px;
	font-family: var(--font-mono);
	font-size: 13px;
	text-decoration: none;
}

.pagination .current {
	background: var(--navy);
	color: #ffffff;
}

/* ==========================================================================
   9. Newsletter and footer
   ========================================================================== */
.newsletter {
	margin-top: 40px;
	border-top: 1px solid var(--navy);
}

.newsletter__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 48px;
	padding-top: 56px;
	padding-bottom: 64px;
}

.newsletter__head {
	flex: 1 1 480px;
	min-width: 0;
}

.newsletter__title {
	font-size: clamp(38px, 5vw, 62px);
	font-weight: 600;
	line-height: 1.02;
	margin: 0;
}

.newsletter__body {
	flex: 1 1 340px;
	max-width: 440px;
	color: var(--muted);
	font-size: 15px;
}

.newsletter__body > p {
	margin-top: 0;
}

.signup-form form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.signup-form input[type="email"],
.signup-form input[type="text"] {
	flex: 1 1 200px;
	width: auto;
}

.signup-form button,
.signup-form input[type="submit"] {
	background: var(--teal);
	border-color: var(--navy);
	color: var(--navy);
}

.site-footer {
	background: var(--navy);
	color: #ffffff;
	font-size: 14px;
}

.site-footer a {
	color: #ffffff;
}

.site-footer a:hover {
	color: var(--teal);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 28px;
	padding-top: 40px;
	padding-bottom: 28px;
}

.site-footer__brand {
	max-width: 300px;
}

.site-footer__brand p {
	color: #c9d6e2;
	margin: 12px 0 0;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.site-footer__social {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	padding-top: 16px;
	padding-bottom: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-family: var(--font-mono);
	font-size: 12px;
	color: #c9d6e2;
}

/* ==========================================================================
   10. Coming-soon page
   ========================================================================== */
.coming-soon {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--teal);
}

.coming-soon__main {
	text-align: center;
	padding: 48px 24px;
	max-width: 640px;
}

.coming-soon__line {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 22px;
	margin: 24px 0 32px;
}

.coming-soon__form {
	background: #ffffff;
	border: 1px solid var(--navy);
	border-radius: 4px;
	box-shadow: 6px 6px 0 var(--navy);
	padding: 24px;
	text-align: left;
}

.coming-soon__form > p:not(.kicker) {
	margin-top: 0;
	color: var(--muted);
}

.coming-soon__yt {
	margin-top: 28px;
	font-weight: 600;
}
