/* Real Good Coffee Co. The look of the brand's old Shopify store: Montserrat, white pages, teal buttons,
   orange stars, a black footer. */
:root { --ink: #1d1d1d; --muted: #5d5d5d; --line: #e6e6e6; --panel: #f8f8f8; --teal: #0e9fb6; --teal-dark: #0b8397; --orange: #f0652a; --red: #b3261e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 15px/1.6 Montserrat, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; }
.rg-skip { position: absolute; left: -9999px; }
.rg-skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.rg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rg-wrap--narrow { max-width: 820px; }
.rg-center { text-align: center; }
.rg-section { padding: 64px 0; }
.rg-section--tight { padding: 36px 0 56px; }
.rg-h2 { font-size: 24px; text-align: center; margin-bottom: 28px; }
.rg-h2 a { text-decoration: none; }
.rg-h2 a:hover { text-decoration: underline; }
.rg-h2--left { text-align: left; margin: 36px 0 8px; }
.rg-stars { color: var(--orange); letter-spacing: 2px; }

.rg-btn { display: inline-block; background: var(--teal); color: #fff; font: 600 13px/1 Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 14px 22px; border: 0; cursor: pointer; }
.rg-btn:hover, .rg-btn:focus-visible { background: var(--teal-dark); }

/* Top bar and header */
.rg-bar { margin: 0; background: var(--ink); color: #fff; text-align: center; font-size: 13px; font-weight: 500; padding: 9px 16px; }
.rg-header { text-align: center; padding: 22px 16px 0; border-bottom: 1px solid var(--line); }
.rg-logo { display: inline-block; }
.rg-logo img { width: 224px; }
.rg-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 40px; margin-top: 18px; }
.rg-nav > a, .rg-nav__drop > a { display: inline-block; padding: 12px 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.rg-nav a:hover { color: var(--teal-dark); }
.rg-nav__drop { position: relative; }
.rg-nav__menu { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 100%; z-index: 5; min-width: 250px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08); padding: 8px 0; text-align: left; }
.rg-nav__drop:hover .rg-nav__menu, .rg-nav__drop:focus-within .rg-nav__menu { display: block; }
.rg-nav__menu a { display: block; padding: 9px 18px; font-size: 14px; text-decoration: none; }
.rg-nav__menu a:hover { background: var(--panel); }

/* Home: slides */
.rg-hero { position: relative; }
.rg-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rg-hero__track::-webkit-scrollbar { display: none; }
.rg-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: min(56vw, 560px); display: flex; align-items: center; overflow: hidden; background: #8fb486; }
.rg-slide picture, .rg-slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rg-slide__text { position: relative; color: #fff; max-width: 620px; padding: 40px 24px 64px; margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px)); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.rg-slide__text h1, .rg-slide__text h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.15; }
.rg-slide__text p { font-size: 16px; font-weight: 500; margin: 16px 0 22px; max-width: 560px; }
.rg-slide__text .rg-btn { text-shadow: none; margin-top: 6px; }
.rg-slide__new { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px !important; }
.rg-hero__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 14px; }
.rg-hero__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #fff; cursor: pointer; opacity: .9; }
.rg-hero__dots button.is-on { outline: 2px solid #fff; outline-offset: 3px; }

/* Home: collection tiles, the "we care" block, quotes, the blog band */
.rg-tiles { padding: 56px 0; }
.rg-tiles__in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rg-tiles a { text-align: center; text-decoration: none; font-size: 16px; font-weight: 500; }
.rg-tiles img { width: 170px; height: 170px; object-fit: contain; margin: 0 auto 14px; transition: transform .2s; }
.rg-tiles a:hover img { transform: scale(1.04); }
.rg-care { display: grid; grid-template-columns: 2fr 1fr; background: var(--panel); }
.rg-care img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }
.rg-care__text { align-self: center; text-align: center; padding: 40px 24px; }
.rg-care__text h2 { font-size: 22px; margin-bottom: 14px; }
.rg-care__text h2 span { font-size: 18px; }
.rg-care__text p { margin: 8px 0; font-weight: 500; }
.rg-quotes { background: var(--panel); padding: 56px 0; }
.rg-quotes__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(24px, calc((100vw - 1180px) / 2 + 24px)) 14px; }
.rg-quotes figure { flex: 0 0 250px; scroll-snap-align: center; margin: 0; background: #fff; text-align: center; padding: 28px 22px; }
.rg-quotes blockquote { margin: 12px 0 14px; font-weight: 500; }
.rg-quotes figcaption { color: var(--muted); }
.rg-blogband { background: #2b1a10 url(/img/home/beans.jpg) center / cover; color: #fff; text-align: center; padding: 76px 24px; }
.rg-blogband h1, .rg-blogband h2 { font-size: 32px; }
.rg-blogband p { max-width: 640px; margin: 14px auto 20px; font-weight: 500; }
.rg-blogband--plain { background: var(--panel); color: var(--ink); }
.rg-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; margin-bottom: 36px; }
.rg-post { text-decoration: none; display: block; }
.rg-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; }
.rg-post time { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.rg-post h3 { font-size: 17px; font-weight: 500; margin: 6px 0; }
.rg-post p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.rg-more { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid currentColor; }

/* Page titles, crumbs */
.rg-title { text-align: center; padding: 34px 24px 26px; border-bottom: 1px solid var(--line); }
.rg-title h1 { font-size: 30px; }
.rg-title p { margin: 10px auto 0; max-width: 720px; color: var(--muted); }
.rg-crumbs { font-size: 13px; color: var(--muted); }
.rg-crumbs a { text-decoration: none; }
.rg-crumbs a:hover { text-decoration: underline; }
.rg-crumbs span { margin: 0 6px; }
.rg-crumbs--left { margin: 0 0 22px; }

/* Product grid */
.rg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.rg-card { text-align: center; text-decoration: none; display: block; }
.rg-card__img { position: relative; display: block; aspect-ratio: 1; margin-bottom: 14px; }
.rg-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.rg-card:hover .rg-card__img img { transform: scale(1.03); }
.rg-card__img em { position: absolute; left: 10px; top: 10px; font: 600 11px/1 Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 6px 8px; }
.rg-card__name { display: block; font-weight: 500; }
.rg-card__price { display: block; margin-top: 4px; font-size: 14px; }
.rg-card__price b, .rg-price b { color: var(--teal-dark); font-weight: 600; }
.rg-card__price s, .rg-price s { color: #8a8a8a; font-size: .85em; }

/* Product page */
.rg-product__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.rg-gallery { display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.rg-gallery > input { position: absolute; opacity: 0; pointer-events: none; }
.rg-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.rg-gallery__thumbs img { width: 64px; height: 64px; object-fit: cover; cursor: pointer; border: 1px solid transparent; }
.rg-gallery__main img { display: none; width: 100%; max-height: 640px; object-fit: contain; }
.rg-gallery:not(:has(.rg-gallery__thumbs)) { grid-template-columns: 1fr; }
.rg-gallery > input:nth-of-type(1):checked ~ .rg-gallery__main img:nth-child(1), .rg-gallery > input:nth-of-type(2):checked ~ .rg-gallery__main img:nth-child(2),
.rg-gallery > input:nth-of-type(3):checked ~ .rg-gallery__main img:nth-child(3), .rg-gallery > input:nth-of-type(4):checked ~ .rg-gallery__main img:nth-child(4),
.rg-gallery > input:nth-of-type(5):checked ~ .rg-gallery__main img:nth-child(5), .rg-gallery > input:nth-of-type(6):checked ~ .rg-gallery__main img:nth-child(6),
.rg-gallery > input:nth-of-type(7):checked ~ .rg-gallery__main img:nth-child(7), .rg-gallery > input:nth-of-type(8):checked ~ .rg-gallery__main img:nth-child(8),
.rg-gallery > input:nth-of-type(9):checked ~ .rg-gallery__main img:nth-child(9) { display: block; }
.rg-gallery > input:nth-of-type(1):checked ~ .rg-gallery__thumbs label:nth-child(1) img, .rg-gallery > input:nth-of-type(2):checked ~ .rg-gallery__thumbs label:nth-child(2) img,
.rg-gallery > input:nth-of-type(3):checked ~ .rg-gallery__thumbs label:nth-child(3) img, .rg-gallery > input:nth-of-type(4):checked ~ .rg-gallery__thumbs label:nth-child(4) img,
.rg-gallery > input:nth-of-type(5):checked ~ .rg-gallery__thumbs label:nth-child(5) img, .rg-gallery > input:nth-of-type(6):checked ~ .rg-gallery__thumbs label:nth-child(6) img,
.rg-gallery > input:nth-of-type(7):checked ~ .rg-gallery__thumbs label:nth-child(7) img, .rg-gallery > input:nth-of-type(8):checked ~ .rg-gallery__thumbs label:nth-child(8) img,
.rg-gallery > input:nth-of-type(9):checked ~ .rg-gallery__thumbs label:nth-child(9) img { border-color: var(--ink); }
.rg-gallery > input:focus-visible ~ .rg-gallery__thumbs { outline: 2px solid var(--teal); outline-offset: 4px; }
.rg-product__info h1 { font-size: 24px; }
.rg-price { font-size: 19px; margin: 10px 0 18px; }
.rg-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rg-chip { border: 1px solid var(--line); padding: 9px 16px; text-decoration: none; font-size: 14px; }
.rg-chip.is-on { border-color: var(--ink); font-weight: 600; }
.rg-soldout { width: 100%; background: var(--panel); border: 1px solid #bdbdbd; color: var(--muted); font: 500 14px/1 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 15px; }
.rg-notify { margin: 10px 0 26px; background: var(--panel); padding: 16px; }
.rg-notify__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.rg-notify__row { display: flex; gap: 8px; }
.rg-notify__row input { flex: 1; min-width: 0; }
input[type=text], input[type=email], textarea { font: inherit; color: inherit; border: 1px solid #bdbdbd; background: #fff; padding: 11px 12px; width: 100%; border-radius: 0; }
input:focus-visible, textarea:focus-visible, .rg-btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.rg-desc { margin: 0 0 14px; }
.rg-feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.rg-feats li { display: flex; gap: 12px; align-items: center; font-size: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rg-feats img { flex: 0 0 34px; width: 34px; height: 34px; object-fit: contain; }
.rg-more-from { border-top: 1px solid var(--line); padding-top: 48px; }
.rg-more-from .rg-grid { grid-template-columns: repeat(4, 1fr); }
.rg-msg { margin: 0 0 12px; padding: 10px 12px; font-weight: 500; }
.rg-msg--ok { background: #e6f4ea; color: #1e5c33; }
.rg-msg--err { background: #fbe9e7; color: var(--red); }

/* Story, FAQ, blog post, forms */
.rg-banner { background: #333 center / cover; color: #fff; text-align: center; padding: 120px 24px; }
.rg-banner h1 { font-size: clamp(26px, 3.6vw, 40px); max-width: 760px; margin: 0 auto; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.rg-prose h2 { font-size: 20px; margin: 34px 0 10px; }
.rg-prose h3, .rg-prose h4 { font-size: 17px; margin: 24px 0 8px; }
.rg-prose p, .rg-prose li { margin: 0 0 14px; }
.rg-prose a { color: var(--teal-dark); }
.rg-prose img { margin: 18px 0; }
.rg-prose .rg-btn { color: #fff; margin-top: 12px; }
.rg-faq details { border-bottom: 1px solid var(--line); }
.rg-faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-size: 16px; font-weight: 500; list-style: none; position: relative; }
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; }
.rg-faq details[open] summary::after { content: '\2212'; }
.rg-faq .rg-prose { color: var(--muted); padding-bottom: 10px; }
.rg-post__title { font-size: 30px; }
.rg-post__date { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 10px 0 22px; }
.rg-post__lead { width: 100%; margin-bottom: 24px; }
.rg-form { margin-top: 28px; display: grid; gap: 16px; }
.rg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rg-form label span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.rg-form .rg-btn { justify-self: start; }

/* Footer */
.rg-footer { background: #1b1b1b; color: #e9e9e9; padding: 56px 0 28px; font-size: 14px; }
.rg-footer__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.rg-footer h2 { font-size: 15px; font-weight: 500; margin-bottom: 14px; color: #fff; }
.rg-footer p { margin: 0 0 10px; }
.rg-footer nav a { display: block; text-decoration: none; padding: 4px 0; }
.rg-footer a:hover { color: #fff; text-decoration: underline; }
.rg-footer__social { display: inline-block; margin-top: 6px; }
.rg-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; color: #a9a9a9; font-size: 13px; }

@media (max-width: 900px) {
  .rg-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .rg-more-from .rg-grid { grid-template-columns: repeat(2, 1fr); }
  .rg-product__grid { grid-template-columns: 1fr; gap: 28px; }
  .rg-tiles__in { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .rg-care { grid-template-columns: 1fr; }
  .rg-posts { grid-template-columns: 1fr; }
  .rg-footer__in { grid-template-columns: 1fr 1fr; }
  .rg-footer__in > div { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .rg-logo img { width: 170px; }
  .rg-nav { gap: 0 22px; }
  .rg-slide { min-height: 420px; }
  .rg-slide__text { padding-bottom: 56px; }
  .rg-tiles__in { grid-template-columns: repeat(2, 1fr); }
  .rg-tiles img { width: 130px; height: 130px; }
  .rg-gallery { grid-template-columns: 1fr; }
  .rg-gallery__thumbs { flex-direction: row; overflow-x: auto; order: 2; }
  .rg-gallery__thumbs img { width: 56px; height: 56px; }
  .rg-feats, .rg-form__row { grid-template-columns: 1fr; }
  .rg-notify__row { flex-direction: column; }
  .rg-section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
