/*
Theme Name: Rohform
Theme URI: https://example.com/rohform
Author: Rohform
Description: Warm, minimal block theme for a small DIY workshop shop and journal. Cream ground, terracotta and sage accents, Caprasimo + Figtree, rounded shapes. Full Site Editing: every template, header, footer and pattern is editable in Appearance > Editor.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rohform
Tags: full-site-editing, blog, e-commerce, one-column, two-columns, block-patterns, custom-colors, custom-menu, editor-style, featured-images, threaded-comments
*/

/* Only what theme.json cannot express. Everything else is a token. */

/* — rounded, washed imagery — */
.rf-washed img,
.rf-washed .wp-block-post-featured-image img {
  filter: saturate(0.6) contrast(0.85) brightness(1.1);
  border-radius: var(--wp--preset--spacing--40);
}
.rf-round img { border-radius: 999px; }

/* — pill buttons and inputs — */
.wp-block-button__link,
.wp-block-search__button,
.wp-block-search .wp-block-search__input,
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
input[type="text"], input[type="email"], input[type="search"] {
  border-radius: 999px;
}
.wp-block-search .wp-block-search__inside-wrapper { border-radius: 999px; overflow: hidden; }
.wp-block-post-comments-form textarea { border-radius: var(--wp--preset--spacing--30); }

.wp-block-button__link:hover { background-color: var(--wp--preset--color--accent-deep); color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background-color: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--accent-deep); }

/* — top bar — */
.rf-topbar { font-size: var(--wp--preset--font-size--small); }
.rf-topbar a { color: inherit; text-decoration: none; }
.rf-topbar a:hover { text-decoration: underline; }

/* — main menu: pill hovers, never breaks to a second row — */
.rf-nav .wp-block-navigation-item__content {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.rf-nav .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--accent-soft); }
.rf-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--accent-soft); }

/* — post cards — */
.rf-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rf-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(46, 43, 37, 0.14); }
.rf-card .wp-block-post-featured-image img { border-radius: 0; }
.rf-card .wp-block-post-title a { text-decoration: none; color: inherit; }
.rf-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-deep); }

/* — category / tag pills (term list, post-terms) — */
.wp-block-post-terms a,
.rf-pill {
  display: inline-block;
  padding: 5px 14px;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  background: var(--wp--preset--color--accent-soft);
  color: var(--wp--preset--color--accent-deep);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
.wp-block-post-terms a:hover, .rf-pill:hover { background: var(--wp--preset--color--sage-soft); color: var(--wp--preset--color--sage-deep); }

/* — sidebar widget headings — */
.rf-sidebar .wp-block-heading { margin-bottom: var(--wp--preset--spacing--20); }
.rf-sidebar ul { list-style: none; padding-left: 0; }
.rf-sidebar li { padding: 6px 0; }
.rf-sidebar a { text-decoration: none; color: var(--wp--preset--color--ink); }
.rf-sidebar a:hover { color: var(--wp--preset--color--accent-deep); }

/* — pull quote — */
.wp-block-quote {
  border: 0;
  padding: var(--wp--preset--spacing--40);
  border-radius: var(--wp--preset--spacing--40);
  background: var(--wp--preset--color--accent-soft);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--x-large);
  line-height: 1.3;
}

/* — process numbers — */
.rf-numeral {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--display);
  font-size: 20px;
  line-height: 1;
}

/* — keyboard focus, never the browser default — */
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
::selection { background: var(--wp--preset--color--accent-soft); }

/* — small screens — */
@media (max-width: 781px) {
  .rf-topbar { text-align: center; }
  .wp-block-quote { font-size: var(--wp--preset--font-size--large); }
}
