/*
Theme Name: Calm Clinical
Template: generatepress
Version: 1.0.0
Description: GeneratePress child theme for portlandplantmedicine.com (visual direction A).
*/

:root {
	--teal-900: #04342c;
	--teal-800: #085041;
	--teal-600: #0f6e56;
	--teal-400: #1d9e75;
	--teal-100: #9fe1cb;
	--teal-50: #e1f5ee;
	--sand-50: #f7f6f2;
	--sand-100: #f1efe8;
	--ink: #23231f;
	--ink-2: #55544f;
	--line: #e3e1d9;
	--radius: 12px;
	--wrap: 1180px;
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: #fff;
	font-size: 17px;
	line-height: 1.7;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
a { color: var(--teal-600); }
a:hover { color: var(--teal-800); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.main-title a, .main-title a:hover { color: var(--teal-800); font-weight: 700; letter-spacing: -0.02em; }
.main-navigation .main-nav ul li a { color: var(--ink); font-weight: 500; font-size: 15px; }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--teal-600); }

/* Shared layout */
.rm-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.rm-section { padding: 56px 0; }
.rm-section--sand { background: var(--sand-50); }
.rm-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.rm-section__head h2 { font-size: 28px; margin: 0; }
.rm-section__head a { font-weight: 600; font-size: 15px; text-decoration: none; }
.rm-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 8px; }

/* Hero */
.rm-hero { background: var(--teal-50); padding: 72px 0 64px; }
.rm-hero h1 { font-size: clamp(32px, 5vw, 48px); max-width: 760px; margin: 0 0 16px; color: var(--teal-900); }
.rm-hero p { font-size: 19px; color: var(--teal-800); max-width: 620px; margin: 0 0 28px; }
.rm-search { display: flex; max-width: 620px; background: #fff; border: 1px solid var(--teal-100); border-radius: 999px; padding: 6px; }
.rm-search input[type="search"] { flex: 1; border: 0; background: transparent; padding: 10px 18px; font-size: 16px; min-width: 0; }
.rm-search input[type="search"]:focus { outline: none; }
.rm-search button { border-radius: 999px; background: var(--teal-600); color: #fff; padding: 10px 22px; font-weight: 600; border: 0; }
.rm-search button:hover { background: var(--teal-800); }
.rm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rm-chips a { background: #fff; border: 1px solid var(--teal-100); color: var(--teal-800); border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; }
.rm-chips a:hover { border-color: var(--teal-400); }

/* Topic tiles */
.rm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.rm-tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--sand-100); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background .15s; }
.rm-tile:hover { background: var(--teal-50); color: var(--ink); }
.rm-tile__icon { width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--teal-600); display: flex; align-items: center; justify-content: center; }
.rm-tile__icon svg { width: 24px; height: 24px; }
.rm-tile strong { font-size: 17px; }
.rm-tile span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* Cards */
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.rm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.rm-card:hover { border-color: var(--teal-100); }
.rm-card__media { aspect-ratio: 16 / 9; background: var(--teal-50); display: flex; align-items: center; justify-content: center; color: var(--teal-400); }
.rm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rm-card__media svg { width: 48px; height: 48px; }
.rm-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rm-card__cat { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-600); text-decoration: none; }
.rm-card__title { font-size: 19px; margin: 0; line-height: 1.35; }
.rm-card__title a { color: var(--ink); text-decoration: none; }
.rm-card__title a:hover { color: var(--teal-800); }
.rm-card__excerpt { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.rm-card__meta { font-size: 13px; color: var(--ink-2); margin-top: auto; padding-top: 6px; }

/* Crisis callout */
.rm-crisis { border-left: 4px solid var(--teal-400); background: var(--teal-50); padding: 18px 22px; border-radius: 0; font-size: 15px; color: var(--teal-900); }
.rm-crisis strong { display: block; margin-bottom: 2px; }
.rm-crisis a { color: var(--teal-800); font-weight: 600; }

/* Archive / author header */
.rm-archive-head { background: var(--teal-50); padding: 48px 0 40px; }
.rm-archive-head h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 10px; color: var(--teal-900); }
.rm-archive-head p { color: var(--teal-800); max-width: 680px; margin: 0; font-size: 18px; }
.rm-archive-head .rm-tile__icon { margin-bottom: 16px; }
.rm-pagination { margin-top: 40px; display: flex; gap: 8px; justify-content: center; }
.rm-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.rm-pagination .current { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.rm-empty { color: var(--ink-2); }

/* Author */
.rm-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--teal-600); color: #fff; font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.rm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rm-avatar--sm { width: 56px; height: 56px; font-size: 20px; }
.rm-author-head { display: flex; gap: 28px; align-items: center; }
.rm-author-bio { max-width: 760px; }

/* Single article */
.single .site-content { padding-top: 0; }
.single .inside-article { padding: 0; }
.single .entry-header, .single .entry-content, .rm-after { max-width: 760px; margin-left: auto; margin-right: auto; }
.single .entry-header { padding-top: 40px; }
.single .entry-header .entry-meta { display: none; }
.single .entry-title { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 14px; }
.rm-breadcrumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.rm-breadcrumbs a { color: var(--teal-600); text-decoration: none; }
.rm-byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); padding: 14px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.rm-byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rm-byline .rm-avatar { width: 40px; height: 40px; font-size: 15px; }
.rm-featured { max-width: 960px; margin: 0 auto 32px; border-radius: var(--radius); overflow: hidden; }
.single .entry-content h2 { font-size: 28px; margin-top: 44px; }
.single .entry-content h3 { font-size: 21px; margin-top: 32px; }
.single .entry-content > p:first-child { font-size: 19px; color: var(--ink); }
.single .entry-content blockquote { border-left: 4px solid var(--teal-400); background: var(--sand-50); padding: 16px 22px; font-style: normal; }
.single .entry-content ul li::marker { color: var(--teal-400); }
.rm-keypoints { background: var(--sand-100); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 32px; }
.rm-keypoints h2 { font-size: 18px !important; margin: 0 0 8px !important; }
.rm-after { padding: 16px 0 56px; display: flex; flex-direction: column; gap: 24px; }
.rm-authorbox { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.rm-authorbox h3 { font-size: 17px; margin: 0 0 4px; }
.rm-authorbox p { font-size: 15px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.6; }
.rm-authorbox a { font-size: 14px; font-weight: 600; text-decoration: none; }
.rm-disclaimer { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.rm-related h2 { font-size: 22px; }

/* Footer */
.site-footer .site-info { background: var(--teal-900); color: #cfe9df; font-size: 14px; }
.site-footer .site-info a { color: #fff; }
.rm-footer { max-width: var(--wrap); margin: 0 auto; text-align: left; display: grid; gap: 10px; }
.rm-footer p { margin: 0; }

@media (max-width: 768px) {
	.rm-section { padding: 40px 0; }
	.rm-hero { padding: 48px 0 40px; }
	.rm-author-head { flex-direction: column; align-items: flex-start; }
	.single .entry-header { padding-top: 24px; }
	.rm-authorbox { flex-direction: column; }
}

/* Custom templates break out of the GeneratePress container */
.rm-main { width: 100%; }
.rm-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.home .site-content, .archive .site-content, .search .site-content { padding: 0; display: block; }
.single footer.entry-meta, .single .post-navigation { display: none; }
