/*
Theme Name: RosenHeinrich Minimal
Theme URI: https://rosenheinrich.com
Author: Phillip Rosenheinrich
Description: Minimal frame theme (noblepete-style). Page content is edited in WordPress.
Version: 1.3.18
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rosenheinrich-minimal
*/

/* Self-hosted: Ubuntu (UFL), Nunito (OFL) — assets/fonts/ */

@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 300;
	font-display: optional;
	src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 300;
	font-display: optional;
	src: url("assets/fonts/nunito-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 400;
	font-display: optional;
	src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 400;
	font-display: optional;
	src: url("assets/fonts/nunito-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Ubuntu";
	font-style: normal;
	font-weight: 400;
	font-display: optional;
	src: url("assets/fonts/ubuntu-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Ubuntu";
	font-style: normal;
	font-weight: 400;
	font-display: optional;
	src: url("assets/fonts/ubuntu-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Ubuntu";
	font-style: normal;
	font-weight: 500;
	font-display: optional;
	src: url("assets/fonts/ubuntu-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Ubuntu";
	font-style: normal;
	font-weight: 500;
	font-display: optional;
	src: url("assets/fonts/ubuntu-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
	background: url(assets/bg.svg) no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-color: #3d1f42;
}

body {
	color: #eceff1;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

.rh-skip-link {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	padding: 0.5rem 0.85rem;
	border-radius: 6px;
	background: #eceff1;
	color: #3d1f42;
	font-family: "Ubuntu", system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform 0.15s ease;
}

.rh-skip-link:focus {
	transform: translateY(0);
	outline: 2px solid #b8f0e8;
	outline-offset: 2px;
}

.rh-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

a:focus-visible,
.rh-site-nav__lang:focus-visible,
.rh-site-footer a:focus-visible,
.rh-app__stores a:focus-visible,
.rh-app__icon:focus-visible {
	outline: 2px solid #b8f0e8;
	outline-offset: 3px;
	border-radius: 4px;
}

.rh-main {
	min-height: 100vh;
}

body.rh-front-page .rh-main {
	min-height: 100dvh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
}

body.rh-front-page .rh-page-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
}


/* —— Portfolio (homepage Custom HTML block: .rh-portfolio) —— */

	.rh-main,
	.rh-page-content,
	.entry-content,
	.wp-block-post-content,
	.wp-block-html {
	  margin: 0;
	  padding: 0;
	}

	.rh-portfolio {
	  --rh-ease: cubic-bezier(0.22, 1, 0.36, 1);
	  --rh-vh: 100dvh;
	  box-sizing: border-box;
	  width: 100%;
	  min-height: var(--rh-vh);
	  min-height: 100svh;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  padding:
	    max(0.75rem, env(safe-area-inset-top, 0px))
	    clamp(1rem, 3vw, 2rem)
	    max(0.75rem, env(safe-area-inset-bottom, 0px));
	  overflow-x: hidden;
	}

	html.admin-bar .rh-portfolio {
	  --rh-vh: calc(100dvh - 32px);
	}

	@media screen and (max-width: 782px) {
	  html.admin-bar .rh-portfolio {
	    --rh-vh: calc(100dvh - 46px);
	  }
	}

	.rh-portfolio *,
	.rh-portfolio *::before,
	.rh-portfolio *::after {
	  box-sizing: border-box;
	}

	.rh-portfolio-inner {
	  width: 100%;
	  max-width: 1180px;
	  margin: 0 auto;
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  gap: clamp(1rem, 2.5vh, 1.6rem);
	}

	.rh-hero {
	  text-align: center;
	  width: 100%;
	  padding-top: 0;
	  margin: 0;
	}

	.rh-hero__eyebrow {
	  margin: 0 0 0.4rem;
	  font-family: "Ubuntu", sans-serif;
	  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
	  font-weight: 500;
	  letter-spacing: 0.28em;
	  text-transform: uppercase;
	  color: rgba(236, 239, 241, 0.55);
	}

	.rh-hero__title {
	  margin: 0 auto;
	  max-width: 18ch;
	  font-family: "Ubuntu", sans-serif;
	  font-weight: 500;
	  font-size: clamp(1.55rem, 5.2vw, 2.65rem);
	  line-height: 1.2;
	  letter-spacing: -0.02em;
	  background: linear-gradient(125deg, #ffffff 0%, #b8f0e8 42%, #d4c4ff 100%);
	  -webkit-background-clip: text;
	  background-clip: text;
	  color: transparent;
	}

	.rh-hero__line {
	  width: min(120px, 28vw);
	  height: 1px;
	  margin: 0.65rem auto 0;
	  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	}

	.rh-grid {
	  display: grid;
	  grid-template-columns: repeat(3, minmax(0, 1fr));
	  gap: clamp(1rem, 2.5vw, 1.75rem);
	  width: 100%;
	  padding-bottom: clamp(0.5rem, 2vh, 1.5rem);
	}

	.rh-app {
	  position: relative;
	  display: flex;
	  flex-direction: column;
	  align-items: stretch;
	  min-height: 0;
	  animation: none;
	}

	.rh-app:nth-child(1) { animation-delay: 0.08s; }
	.rh-app:nth-child(2) { animation-delay: 0.16s; }
	.rh-app:nth-child(3) { animation-delay: 0.24s; }

	.rh-app--spinpick {
	  --rh-accent: #2a9d8f;
	  --rh-accent-soft: rgba(42, 157, 143, 0.35);
	  --rh-glass-a: rgba(42, 157, 143, 0.42);
	  --rh-glass-b: rgba(32, 120, 108, 0.28);
	  --rh-glass-c: rgba(18, 70, 64, 0.32);
	  --rh-border: rgba(72, 200, 180, 0.38);
	}

	.rh-app--zenpop {
	  --rh-accent: #e07a4f;
	  --rh-accent-soft: rgba(224, 122, 79, 0.35);
	  --rh-glass-a: rgba(224, 122, 79, 0.4);
	  --rh-glass-b: rgba(190, 90, 55, 0.26);
	  --rh-glass-c: rgba(120, 50, 30, 0.3);
	  --rh-border: rgba(255, 160, 120, 0.38);
	}

	.rh-app--pointalize {
	  --rh-accent: #7b8ee8;
	  --rh-accent-soft: rgba(123, 142, 232, 0.38);
	  --rh-glass-a: rgba(107, 127, 215, 0.42);
	  --rh-glass-b: rgba(85, 100, 180, 0.28);
	  --rh-glass-c: rgba(45, 55, 120, 0.32);
	  --rh-border: rgba(160, 175, 255, 0.38);
	}

	.rh-app__panel {
	  position: relative;
	  flex: 1;
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  text-align: center;
	  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.1rem, 3vw, 1.5rem) clamp(1.35rem, 3.5vw, 1.65rem);
	  border-radius: 28px;
	  background: linear-gradient(
	    155deg,
	    var(--rh-glass-a) 0%,
	    var(--rh-glass-b) 48%,
	    var(--rh-glass-c) 100%
	  );
	  border: 1px solid var(--rh-border);
	  box-shadow:
	    0 4px 24px rgba(0, 0, 0, 0.22),
	    inset 0 1px 0 rgba(255, 255, 255, 0.18);
	  -webkit-backdrop-filter: blur(16px) saturate(1.15);
	  backdrop-filter: blur(16px) saturate(1.15);
	  transition:
	    transform 0.4s var(--rh-ease),
	    box-shadow 0.4s var(--rh-ease),
	    border-color 0.4s var(--rh-ease),
	    background 0.4s var(--rh-ease);
	}

	.rh-app__panel::before {
	  content: "";
	  position: absolute;
	  top: 0;
	  left: 50%;
	  transform: translateX(-50%);
	  width: 42%;
	  height: 3px;
	  border-radius: 0 0 6px 6px;
	  background: linear-gradient(90deg, transparent, var(--rh-accent), transparent);
	  opacity: 0.9;
	}

	.rh-app:hover .rh-app__panel {
	  transform: translateY(-6px);
	  border-color: var(--rh-accent);
	  box-shadow:
	    0 20px 48px rgba(0, 0, 0, 0.3),
	    0 0 32px var(--rh-accent-soft),
	    inset 0 1px 0 rgba(255, 255, 255, 0.22);
	}

	.rh-app__icon {
	  display: block;
	  width: clamp(64px, 18vw, 80px);
	  margin-bottom: 1rem;
	  line-height: 0;
	  border-radius: 22%;
	  box-shadow:
	    0 12px 32px rgba(0, 0, 0, 0.35),
	    0 0 0 3px var(--rh-accent-soft);
	  transition: transform 0.35s var(--rh-ease), box-shadow 0.35s var(--rh-ease);
	}

	.rh-app__icon img {
	  width: 100%;
	  height: auto;
	  border-radius: 22%;
	  display: block;
	}

	.rh-app__icon--pointalize img {
	  border-radius: 14%;
	}

	.rh-app--spinpick .rh-app__icon,
	.rh-app--pointalize .rh-app__icon {
	  background: #ffffff;
	  padding: 8px;
	  box-shadow:
	    0 12px 28px rgba(0, 0, 0, 0.28),
	    0 0 0 1px rgba(255, 255, 255, 0.35);
	}

	.rh-app--pointalize .rh-app__icon {
	  border-radius: 14%;
	}

	.rh-app--spinpick:hover .rh-app__icon,
	.rh-app--pointalize:hover .rh-app__icon {
	  box-shadow:
	    0 16px 36px rgba(0, 0, 0, 0.32),
	    0 0 0 1px rgba(255, 255, 255, 0.45),
	    0 0 24px var(--rh-accent-soft);
	}

	.rh-app:hover .rh-app__icon {
	  transform: scale(1.06) translateY(-2px);
	  box-shadow:
	    0 16px 40px rgba(0, 0, 0, 0.4),
	    0 0 0 4px var(--rh-accent-soft),
	    0 0 28px var(--rh-accent-soft);
	}

	.rh-app__name {
	  margin: 0 0 0.65rem;
	  min-height: 2.75em;
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  justify-content: center;
	  gap: 0.1em;
	  text-align: center;
	  color: #f5f7fa;
	}

	.rh-app__name span {
	  display: block;
	  font-family: "Ubuntu", sans-serif;
	  font-weight: 500;
	  font-size: clamp(0.95rem, 2.35vw, 1.1rem);
	  line-height: 1.28;
	  letter-spacing: 0.01em;
	}

	.rh-app__desc {
	  margin: 0 0 1.15rem;
	  max-width: 26ch;
	  font-family: "Nunito", serif;
	  font-weight: 300;
	  font-size: clamp(0.82rem, 2.1vw, 0.95rem);
	  line-height: 1.55;
	  color: rgba(236, 239, 241, 0.82);
	}

	.rh-app__stores {
	  display: flex;
	  flex-wrap: wrap;
	  align-items: center;
	  justify-content: center;
	  gap: 8px;
	  margin-top: auto;
	}

	.rh-app__stores a {
	  line-height: 0;
	  opacity: 0.92;
	  transition: transform 0.25s var(--rh-ease), opacity 0.25s var(--rh-ease);
	}

	.rh-app__stores a:hover {
	  transform: scale(1.06);
	  opacity: 1;
	}

	.rh-app__stores img {
	  display: block;
	  height: 40px;
	  width: auto;
	  max-width: 135px;
	  object-fit: contain;
	}

	@keyframes rh-fade-up {
	  from {
	    transform: translateY(12px);
	  }
	  to {
	    transform: translateY(0);
	  }
	}

	@media (max-width: 960px) {
	  .rh-grid {
	    grid-template-columns: 1fr;
	    max-width: 400px;
	    margin: 0 auto;
	  }

	  .rh-portfolio {
	    align-items: center;
	    justify-content: center;
	  }

	  .rh-hero__title {
	    max-width: none;
	  }
	}

	@media (max-width: 380px) {
	  .rh-app__stores {
	    flex-direction: column;
	  }

	  .rh-app__stores img {
	    height: 36px;
	  }
	}

	@media (prefers-reduced-motion: reduce) {
	  .rh-app {
	    animation: none;
	  }

	  .rh-app__panel,
	  .rh-app__icon,
	  .rh-app__stores a {
	    transition: none;
	  }
	}

	.rh-site-footer {
	  margin-top: 2rem;
	  padding: 0 1.25rem 1.5rem;
	  display: flex;
	  flex-wrap: wrap;
	  align-items: center;
	  justify-content: center;
	  gap: 0.5rem;
	  text-align: center;
	  font-size: 0.875rem;
	  color: rgba(236, 239, 241, 0.72);
	}

	.rh-site-footer a {
	  display: inline-flex;
	  align-items: center;
	  justify-content: center;
	  min-height: 48px;
	  padding: 0.625rem 0.875rem;
	  color: #eceff1;
	  text-decoration: none;
	  border-radius: 6px;
	}

	.rh-site-footer a:hover {
	  text-decoration: underline;
	  background: rgba(255, 255, 255, 0.06);
	}

	.rh-site-footer span {
	  display: inline-flex;
	  align-items: center;
	  min-height: 48px;
	  padding: 0 0.125rem;
	  pointer-events: none;
	}

	@media (max-width: 720px) {
	  .rh-site-footer {
	    flex-direction: column;
	    align-items: stretch;
	    gap: 0.375rem;
	    max-width: 20rem;
	    margin-left: auto;
	    margin-right: auto;
	  }

	  .rh-site-footer span[aria-hidden="true"] {
	    display: none;
	  }

	  .rh-site-footer a {
	    width: 100%;
	  }
	}


/* —— Site nav (subpages + language switcher) —— */

.rh-site-nav {
	width: 100%;
	padding:
		max(0.85rem, env(safe-area-inset-top, 0px))
		clamp(1rem, 3vw, 1.5rem)
		0.5rem;
}

.rh-site-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 auto;
	font-family: "Ubuntu", sans-serif;
	font-size: 0.82rem;
}

body.rh-page-text .rh-site-nav__inner {
	max-width: 42rem;
}

body.rh-front-page .rh-site-nav__inner {
	max-width: 1180px;
}

.rh-site-nav__home {
	color: #eceff1;
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.rh-site-nav__home:hover {
	opacity: 0.85;
	text-decoration: underline;
}

.rh-site-nav__home--placeholder {
	display: block;
	min-width: 1px;
}

.rh-site-nav__langs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	margin: 0;
}

.rh-site-nav__lang {
	display: inline-block;
	padding: 0.22rem 0.55rem;
	border-radius: 6px;
	color: rgba(236, 239, 241, 0.62);
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0.04em;
	transition: color 0.2s ease, background 0.2s ease;
}

.rh-site-nav__lang:hover {
	color: #eceff1;
	background: rgba(255, 255, 255, 0.08);
}

.rh-site-nav__lang.is-active {
	color: #eceff1;
	background: rgba(255, 255, 255, 0.12);
}

/* —— Text pages (privacy, imprint, etc.) —— */

body.rh-page-text .rh-page-content--text {
	max-width: 42rem;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
	line-height: 1.65;
}

body.rh-page-text .rh-page-content--text h1,
body.rh-page-text .rh-page-content--text h2,
body.rh-page-text .rh-page-content--text h3 {
	font-family: "Ubuntu", sans-serif;
	font-weight: 500;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

body.rh-page-text .rh-page-content--text a {
	color: #fff;
}

body.rh-page-text .rh-page-content--text a:hover {
	opacity: 0.85;
}

body.rh-page-text .rh-page-content--text p,
body.rh-page-text .rh-page-content--text li {
	margin-bottom: 1em;
}

/* Hide duplicate page title if the block editor adds one */
body.rh-page-text .rh-page-content--text .wp-block-post-title {
	display: none;
}

/* Block editor alignment on text pages */
body.rh-page-text .rh-page-content--text .alignwide {
	max-width: 48rem;
}

body.rh-page-text .rh-page-content--text .alignfull {
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
}
