/* Home */

.hello {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.hello__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 6px;
}

.hello__greeting {
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.2px;
}

.hello__quote {
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--muted);
}

.hello__settings {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -2px -8px 0 0;
	color: var(--ink);
}

.hello__settings:hover {
	color: var(--ink);
}

.today {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 2px 4px;
	font-size: 14.5px;
}

/* ---- Routine card ---- */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 22px 24px;
	border-radius: 20px;
	background: var(--sand);
	text-align: center;
}

.hero__sun,
.hero__moon {
	color: var(--accent);
}

.hero__rays {
	transform-origin: 24px 24px;
	animation: rays 2.4s ease-in-out infinite;
}

@keyframes rays {
	0%, 100% { transform: scale(0.92) rotate(0deg); }
	50% { transform: scale(1.14) rotate(8deg); }
}

.hero--evening .hero__sun,
.hero:not(.hero--evening) .hero__moon {
	display: none;
}

.hero__title {
	margin-top: 2px;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
}

.hero__text {
	font-size: 14.5px;
	font-weight: 300;
	line-height: 1.55;
	color: var(--ink-soft);
}

.hero__go {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
}

.hero__go:hover,
.hero:hover .hero__go {
	color: var(--on-accent);
	background: var(--accent-ink);
}

/* the whole card is the link: the arrow's link stretched over it */
.hero__go::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;			/* the card's, not the round button's */
}

.hero__go:focus-visible {
	outline: none;
}

.hero:has(.hero__go:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---- Tiles ---- */

.tile {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 16px 16px 14px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}

a.tile:hover {
	color: var(--ink);
	background: var(--hover);
}

.tile__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
}

.tile__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tile__title {
	font-family: var(--serif);
	font-size: 16px;
	line-height: 1.3;
}

.tile__text {
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--ink-soft);
}

/* ---- Kelly ---- */

.kelly-card {
	display: flex;
	min-height: 168px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--linen);
}

.kelly-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 12px 18px 18px;
}

.kelly-card__title {
	font-family: var(--serif);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.25;
}

.kelly-card__text {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--ink-soft);
}

.kelly-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-top: auto;
	font-size: 14px;
	text-decoration: none;
}

.kelly-card__photo {
	flex: none;
	display: block;
	width: 146px;
	height: auto;
	object-fit: cover;
}

/* Not activated yet */

.activate-note {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 18px;
	border: 1px solid var(--ring);
	border-radius: 16px;
	background: var(--surface);
}

.activate-note__text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.activate-note__link {
	align-self: flex-start;
	font-size: 13.5px;
	color: var(--link);
}

/* ---- Quote (12:00–18:00, instead of the routine card) ---- */

.quote-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px 24px 22px;
	border-radius: 20px;
	background: var(--sand);
}

/* „like this” (Niek's choice: low opening mark, high closing mark) */
.quote-card__text {
	margin: 0;
	font-family: var(--serif);
	font-size: 19px;
	font-style: italic;
	line-height: 1.5;
	color: var(--ink);
}

.quote-card__text::before {
	content: "„";
}

.quote-card__text::after {
	content: "”";
}

/* - Author, always on the right */
.quote-card__author {
	font-size: 14px;
	text-align: right;
	color: var(--muted);
}

.quote-card__author:not(:empty)::before {
	content: "- ";
}
