/* Fonts, sizes and plain elements. Colours only from colors.css. */

:root {
	--sc-font-body: 'Heebo', sans-serif;
	--sc-font-head: 'Frank Ruhl Libre', serif;
	--sc-frame: 1648px;        /* the banner / the widest things on a page */
	--sc-wide: 1400px;         /* lists, grids */
	--sc-read: 900px;          /* articles and text pages */
	--sc-r-photo: 16px;        /* photo corners */
	--sc-title: clamp(2.6rem, 4.6vw, 4.2rem); /* every page's main title (= the plant name, approved 2026-09-29) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
	margin: 0; background: var(--sc-c-bg); color: var(--sc-c-text);
	font-family: var(--sc-font-body); font-size: 18px; line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	transition: background-color .45s ease, color .45s ease;
}
@media (max-width: 600px) { body { font-size: 17px; } }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--sc-c-ink); font-family: var(--sc-font-head); font-weight: 700; line-height: 1.25; }
h1 { font-size: var(--sc-title); line-height: 1.05; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
a { color: var(--sc-c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .25s ease; }
a:hover { color: var(--sc-c-accent); }
strong, b { font-weight: 700; }
small { font-size: .85em; }
img, video, iframe { max-width: 100%; height: auto; }
figure { margin: 0; }
hr { height: 1px; margin: 2.5em 0; border: 0; background: var(--sc-c-line); }
ul, ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
li { margin-bottom: .35em; }
blockquote { margin: 1.8em 0; padding: 4px 22px; border-inline-start: 3px solid var(--sc-c-accent); color: var(--sc-c-ink); font-size: 1.1em; }
table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--sc-c-line); text-align: start; }
th { color: var(--sc-c-ink); font-weight: 700; }
code { padding: 2px 6px; border-radius: 6px; background: var(--sc-c-panel); font-size: .9em; }
::selection { background: color-mix(in srgb, var(--sc-c-accent) 30%, transparent); }
:focus-visible { outline: 2px solid var(--sc-c-accent); outline-offset: 3px; }

/* fields: one look everywhere (contact, login, profile, comments, search) */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], input[type="number"], input[type="tel"], select, textarea {
	width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--sc-c-line); border-radius: 12px;
	background: var(--sc-c-card); color: var(--sc-c-text); font: inherit; font-size: 1rem; line-height: 1.5;
	transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sc-c-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc-c-accent) 18%, transparent); }
select {
	-webkit-appearance: none; appearance: none; padding-inline-start: 16px; padding-inline-end: 42px; /* the arrow is at the end (the left, in Hebrew) */
	background: var(--sc-c-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606860' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 15px center / 16px;
}
label { font-weight: 600; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--sc-c-btn); }
::placeholder { color: var(--sc-c-muted); opacity: .8; }

/* screen readers only */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; right: 8px; z-index: 100001; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; clip-path: none; border-radius: 999px; background: var(--sc-c-card); color: var(--sc-c-ink); }

/* WordPress content blocks */
.alignwide { max-width: var(--sc-wide); }
.alignfull { width: 100%; max-width: none; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { margin-top: 6px; color: var(--sc-c-muted); font-size: .88rem; }
.wp-block-image img { border-radius: var(--sc-r-photo); }
