/*
Theme Name: Mofelune
Theme URI: https://wordpress.org/themes/blocksy/
Description: A small English storefront for wool felt goods, built on Blocksy.
Author: Mofelune
Template: blocksy
Version: 0.2.0
Text Domain: felt-finch
License: GPL-2.0-or-later
*/

:root {
  --ff-ink: #24332a;
  --ff-plum: #1b3d2b;
  --ff-rose: #7d9e62;
  --ff-cream: #f8f9f5;
  --ff-paper: #ffffff;
  --ff-line: #e1e9dc;
}

body { background: var(--ff-cream); color: var(--ff-ink); }
body, button, input, select, textarea { font-family: "Trebuchet MS", Arial, sans-serif; }
h1, h2, h3, h4, .site-title { font-family: Georgia, "Times New Roman", serif; }
a { color: var(--ff-plum); }
.ff-demo-bar {
  background: #1b3d2b; color: #fff; text-align: center;
  padding: .6rem 1rem; font-size: .82rem; letter-spacing: .035em;
}
.ff-demo-bar strong { color: #d2e7b7; }
#header .menu a, #header .menu a:visited { color: var(--ff-ink) !important; }
#header .menu a:hover, #header .menu .current-menu-item > a { color: #628b45 !important; }
.ff-home { overflow: hidden; }
.ff-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.ff-hero { background: var(--ff-paper); border-bottom: 1px solid var(--ff-line); }
.ff-hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 570px; align-items: center; gap: 6%; }
.ff-eyebrow { color: var(--ff-rose); text-transform: uppercase; letter-spacing: .19em; font-size: .77rem; font-weight: 700; margin: 0 0 22px; }
.ff-hero h1 { font-size: clamp(3.3rem, 5.7vw, 5.9rem); line-height: 1.01; letter-spacing: -.055em; max-width: 690px; margin: 0 0 26px; color: var(--ff-ink); }
.ff-hero h1 em { color: var(--ff-rose); font-weight: 400; }
.ff-hero-copy { max-width: 520px; font-size: 1.12rem; line-height: 1.7; color: #63555e; margin-bottom: 30px; }
.ff-primary, .ff-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 0 22px; font-size: .88rem; font-weight: 700; letter-spacing: .035em; text-decoration: none; border-radius: 4px; transition: transform .2s ease, background .2s ease; }
.ff-primary { color: white; background: var(--ff-plum); }
.ff-primary:hover { color: white; background: #5d3b52; transform: translateY(-2px); }
.ff-secondary { color: var(--ff-plum); border: 1px solid var(--ff-line); margin-left: 8px; }
.ff-secondary:hover { transform: translateY(-2px); }
.ff-hero-art { align-self: stretch; display: flex; align-items: center; justify-content: center; position: relative; }
.ff-hero-art::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: #f1e6e1; }
.ff-hero-art img { position: relative; width: min(100%, 565px); aspect-ratio: 1; object-fit: cover; border-radius: 49% 49% 7px 7px; box-shadow: 22px 22px 0 #dfc4bd; }
.ff-note { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; padding: 19px 0; font-size: .84rem; color: #685b61; border-bottom: 1px solid var(--ff-line); }
.ff-note span::before { content: "✦"; color: var(--ff-rose); margin-right: 9px; }
.ff-products { padding: 78px 0 92px; }
.ff-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 31px; }
.ff-section-heading h2 { font-size: clamp(2.3rem, 3.5vw, 3.5rem); letter-spacing: -.035em; margin: 0; line-height: 1.1; }
.ff-section-heading p { max-width: 380px; color: #70636a; line-height: 1.6; margin: 0; }
.ff-section-heading a { white-space: nowrap; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.ff-products .woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; }
.ff-products .woocommerce ul.products li.product { float: none; width: auto; margin: 0; background: var(--ff-paper); padding: 0 0 21px; border: 1px solid var(--ff-line); border-radius: 5px; overflow: hidden; }
.ff-products .woocommerce ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 0 17px; }
.ff-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
.ff-products .woocommerce ul.products li.product .price,
.ff-products .woocommerce ul.products li.product .button { margin-left: 19px; margin-right: 19px; }
.ff-products .woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ff-ink); font-family: Georgia, serif; font-size: 1.27rem; }
.ff-products .woocommerce ul.products li.product .price { color: var(--ff-plum); font-weight: 700; }
.ff-products .woocommerce ul.products li.product .button,
.ff-products .woocommerce ul.products li.product .added_to_cart,
.woocommerce button.button.alt, .woocommerce a.button.alt,
.woocommerce input.button.alt { background: var(--ff-plum); color: white; border-radius: 4px; }
.ff-products .woocommerce ul.products li.product .added_to_cart { display: inline-block; padding: .65em 1em; text-decoration: none; font-weight: 700; }
.ff-story { background: #ece0dc; padding: 66px 0; }
.ff-story-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8%; align-items: center; }
.ff-story h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0; line-height: 1.1; }
.ff-story p { color: #62525b; line-height: 1.75; font-size: 1.05rem; margin: 0; }
.woocommerce div.product .product_title { font-family: Georgia, serif; }
.woocommerce .quantity .qty { min-width: 4.5em; }

/* Floreo-inspired storefront layout. */
.ff-hero {
  min-height: min(720px, 78vh);
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background-image: linear-gradient(90deg, rgba(9, 31, 20, .75), rgba(9, 31, 20, .5)), var(--ff-hero-image);
  background-color: #143323;
  background-size: cover;
  background-position: center;
}
.ff-hero-inner { padding: 115px 0; }
.ff-hero .ff-eyebrow { color: #c6e39e; margin-bottom: 24px; }
.ff-hero h1 { color: white; margin: 0 auto 26px; max-width: 900px; font-family: "Trebuchet MS", Arial, sans-serif; font-weight: 750; font-size: clamp(3rem, 5.2vw, 5.4rem); letter-spacing: -.04em; line-height: 1.13; }
.ff-hero-copy { color: #eff5ed; margin: 0 auto 31px; max-width: 560px; }
.ff-primary { background: #6c9749; min-height: 55px; border-radius: 0; letter-spacing: .08em; }
.ff-primary:hover { background: #80a95b; }
.ff-intro { background: #29533a; color: white; text-align: center; padding: 76px 0 82px; }
.ff-intro .ff-eyebrow { color: #bfdc9e; }
.ff-intro h2 { color: white; max-width: 810px; margin: 0 auto 55px; font-size: clamp(2.1rem, 3.5vw, 3.6rem); line-height: 1.2; }
.ff-intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.ff-intro-grid > div { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 24px; }
.ff-intro-grid span { color: #bfdc9e; font-size: .82rem; font-weight: 700; }
.ff-intro-grid h3 { color: white; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 1.25rem; margin: 11px 0; }
.ff-intro-grid p { color: #d8e5d8; line-height: 1.7; margin: 0; }
.ff-categories { padding: 76px 0 20px; text-align: center; }
.ff-categories h2 { color: var(--ff-ink); font-size: clamp(2.2rem, 3.5vw, 3.7rem); margin: 0 0 34px; }
.ff-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.ff-category-grid a { display: block; background: white; overflow: hidden; color: var(--ff-ink); text-decoration: none; }
.ff-category-grid img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: cover; transition: transform .3s ease; }
.ff-category-grid a:hover img { transform: scale(1.04); }
.ff-category-grid span { display: block; padding: 18px 12px; font-size: 1.15rem; font-weight: 700; }
.ff-products { padding-top: 69px; }
.ff-products .woocommerce ul.products li.product { border: 0; box-shadow: 0 3px 20px rgba(19, 49, 31, .06); }
.ff-story { background: #e5efdf; }
.ff-story h2 { color: var(--ff-ink); }
.ff-story p { color: #536453; }
@media (max-width: 800px) {
  .ff-hero { min-height: 610px; }
  .ff-intro-grid { gap: 16px; }
}
@media (max-width: 650px) {
  .ff-hero { min-height: 575px; }
  .ff-hero-inner { padding: 95px 0; }
  .ff-hero h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
  .ff-intro { padding: 58px 0; }
  .ff-intro h2 { margin-bottom: 32px; }
  .ff-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .ff-categories { padding-top: 57px; }
  .ff-category-grid { grid-template-columns: 1fr; gap: 16px; }
  .ff-category-grid img { aspect-ratio: 1.6; }
}
@media (max-width: 800px) {
  .ff-hero-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 62px; padding-bottom: 58px; }
  .ff-hero-art { min-height: 350px; }
  .ff-hero-art img { width: min(80%, 480px); }
  .ff-section-heading, .ff-story-grid { display: block; }
  .ff-section-heading p { margin-top: 14px; }
  .ff-section-heading a { display: inline-block; margin-top: 16px; }
  .ff-story p { margin-top: 18px; }
}
@media (max-width: 650px) {
  .ff-shell { width: min(100% - 28px, 1180px); }
  .ff-hero h1 { font-size: clamp(3.05rem, 12vw, 4.7rem); }
  .ff-hero-copy { font-size: 1rem; }
  .ff-products { padding: 55px 0 68px; }
  .ff-products .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 13px; }
  .ff-products .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.05rem; }
  .ff-products .woocommerce ul.products li.product .button { margin-left: 10px; margin-right: 10px; font-size: .75rem; padding: .7em .6em; }
  .ff-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .ff-products .woocommerce ul.products li.product .price { margin-left: 10px; margin-right: 10px; }
}

/* Public kit tutorials. */
.ff-learn, .ff-tutorial { padding-top: 68px; padding-bottom: 100px; }
.ff-learn-header { max-width: 780px; margin-bottom: 44px; }
.ff-learn-header h1, .ff-tutorial-header h1 { color: var(--ff-ink); font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 20px; }
.ff-learn-header > p:last-child, .ff-tutorial-lead { color: #566555; font-size: 1.1rem; line-height: 1.75; }
.ff-learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ff-learn-card { background: #fff; box-shadow: 0 4px 24px rgba(19, 49, 31, .07); }
.ff-learn-card > a { display: block; }
.ff-learn-card img, .ff-learn-card-art { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.ff-learn-card-art { display: grid; place-items: center; background: #e5efdf; color: var(--ff-rose); font-size: 3rem; }
.ff-learn-card-body { padding: 25px 25px 30px; }
.ff-learn-card-body .ff-eyebrow { margin-bottom: 11px; }
.ff-learn-card h2 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 10px; }
.ff-learn-card h2 a { text-decoration: none; }
.ff-learn-card-body > p:not(.ff-eyebrow) { color: #657065; line-height: 1.6; min-height: 3.2em; }
.ff-text-link { display: inline-block; color: var(--ff-plum); font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 5px; }
.ff-learn-empty { background: #e5efdf; padding: 42px; }
.ff-learn-empty h2 { margin-top: 0; }
.ff-learn-empty p { margin-bottom: 0; }
.ff-tutorial-breadcrumb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 42px; color: #6b786b; font-size: .9rem; }
.ff-tutorial-breadcrumb a { color: inherit; }
.ff-tutorial-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 6%; align-items: center; margin-bottom: 56px; }
.ff-tutorial-header .ff-eyebrow { margin-bottom: 17px; }
.ff-tutorial-cover { width: 100%; aspect-ratio: 1.3; object-fit: cover; }
.ff-tutorial-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 7%; align-items: start; }
.ff-tutorial-content { min-width: 0; color: #415143; font-size: 1.05rem; line-height: 1.75; }
.ff-tutorial-content h2 { color: var(--ff-ink); font-size: 2rem; margin-top: 2rem; }
.ff-tutorial-content h3 { color: var(--ff-ink); font-size: 1.35rem; }
.ff-tutorial-content iframe { max-width: 100%; }
.ff-tutorial-content .wp-block-embed__wrapper { position: relative; }
.ff-lesson-placeholder { background: #e5efdf; min-height: 300px; padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.ff-lesson-placeholder .ff-eyebrow { margin-bottom: 8px; }
.ff-lesson-placeholder h2 { margin: 0 0 10px; }
.ff-lesson-placeholder p:last-child { margin-bottom: 0; }
.ff-tutorial-aside { background: #e5efdf; padding: 30px; }
.ff-tutorial-aside .ff-eyebrow { margin-bottom: 14px; }
.ff-tutorial-aside h2 { font-size: 1.65rem; line-height: 1.25; margin: 0 0 14px; }
.ff-tutorial-aside p:not(.ff-eyebrow) { line-height: 1.65; color: #536453; }
.ff-tutorial-aside .ff-primary { text-align: center; font-size: .76rem; width: 100%; }
.ff-tutorial-aside .ff-text-link { margin-top: 7px; }
.ff-product-tutorial { margin: 16px 0; }
.ff-product-tutorial a { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.ff-home-learn { background: #f2f6ed; padding: 70px 0; }
.ff-home-learn-grid { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.ff-home-learn-grid > div { max-width: 650px; }
.ff-home-learn h2 { font-size: clamp(2rem, 3vw, 3.3rem); line-height: 1.15; margin: 0 0 16px; }
.ff-home-learn p:not(.ff-eyebrow) { color: #536453; line-height: 1.7; margin: 0; }
.ff-home-learn .ff-primary { flex: none; }
@media (max-width: 900px) {
  .ff-learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-tutorial-body { grid-template-columns: minmax(0, 1fr) 250px; gap: 5%; }
}
@media (max-width: 650px) {
  .ff-learn, .ff-tutorial { padding-top: 42px; padding-bottom: 70px; }
  .ff-learn-grid, .ff-tutorial-header, .ff-tutorial-body { grid-template-columns: 1fr; }
  .ff-tutorial-header { gap: 24px; margin-bottom: 28px; }
  .ff-tutorial-breadcrumb { margin-bottom: 27px; }
  .ff-tutorial-aside { margin-top: 20px; }
  .ff-learn-card-body > p:not(.ff-eyebrow) { min-height: 0; }
  .ff-home-learn { padding: 55px 0; }
  .ff-home-learn-grid { display: block; }
  .ff-home-learn .ff-primary { margin-top: 25px; }
}
