/*
Theme Name: Has.Restaurant Blog
Theme URI: https://has.restaurant/
Author: Has.Restaurant
Description: Theme for the main has.restaurant site: a blog that writes about eateries around the world and gives each of them an online presence. The front page lists every restaurant site in the network, and the "contact-us" page embeds the Google contact form.
Version: 1.0.0
Requires at least: 5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: has-restaurant-blog
*/

:root {
    /* matches the logo: charcoal "Has." + green "Restaurant" */
    --hrb-bg: #f6f8f5;
    --hrb-surface: #ffffff;
    --hrb-text: #222222;
    --hrb-muted: #5f655f;
    --hrb-accent: #17801a;
    --hrb-accent-dark: #0f5c12;
    --hrb-border: #e1e6df;
    --hrb-hero-text: #dfe6dc;
    --hrb-radius: 10px;
    --hrb-width: 1120px;
    --hrb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --hrb-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--hrb-bg);
    color: var(--hrb-text);
    font: 17px/1.65 var(--hrb-font);
}

img, iframe, video { max-width: 100%; }
img { height: auto; }

a { color: var(--hrb-accent); }
a:hover, a:focus { color: var(--hrb-accent-dark); }

h1, h2, h3, h4 { font-family: var(--hrb-serif); line-height: 1.25; margin: 0 0 .6em; }

.hrb-container { width: 100%; max-width: var(--hrb-width); margin: 0 auto; padding: 0 16px; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
    position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
    padding: 8px 12px; background: var(--hrb-surface); color: var(--hrb-text);
}

/* Header */
.site-header { background: var(--hrb-surface); border-bottom: 1px solid var(--hrb-border); }
.site-header .hrb-container {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.site-branding { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hrb-text); }
.site-branding img { display: block; width: 140px; height: auto; }
.site-branding .site-tag { font-size: 14px; color: var(--hrb-muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.main-nav a { color: var(--hrb-text); text-decoration: none; font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--hrb-accent); }

/* Hero */
.hrb-hero { background: var(--hrb-text); color: #fff; padding: 56px 0 48px; text-align: center; border-bottom: 4px solid var(--hrb-accent); }
.hrb-hero h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: .4em; }
.hrb-hero p { max-width: 720px; margin: 0 auto 1em; color: var(--hrb-hero-text); font-size: 18px; }
.hrb-hero .hrb-button { margin-top: 8px; }

.hrb-button {
    display: inline-block; padding: 10px 22px; border-radius: 999px;
    background: var(--hrb-accent); color: #fff; text-decoration: none; font-weight: 600;
}
.hrb-button:hover, .hrb-button:focus { background: var(--hrb-accent-dark); color: #fff; }

/* Content */
.site-main { padding: 40px 0 56px; }
.hrb-section-title { font-size: 28px; margin-bottom: 20px; }

.entry {
    background: var(--hrb-surface); border: 1px solid var(--hrb-border); border-radius: var(--hrb-radius);
    padding: 28px; margin-bottom: 28px;
}
.entry-title { font-size: clamp(24px, 4vw, 34px); }
.entry-title a { color: var(--hrb-text); text-decoration: none; }
.entry-title a:hover { color: var(--hrb-accent); }
.entry-meta { font-size: 14px; color: var(--hrb-muted); margin: -.4em 0 1em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-thumb img { display: block; border-radius: var(--hrb-radius); margin-bottom: 18px; }

/* Restaurant directory */
.hrb-search { margin-bottom: 20px; }
.hrb-search input {
    width: 100%; max-width: 420px; padding: 10px 14px; font: inherit;
    border: 1px solid var(--hrb-border); border-radius: 999px; background: var(--hrb-surface);
}
.hrb-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hrb-site a {
    display: block; height: 100%; padding: 18px 20px; text-decoration: none; color: var(--hrb-text);
    background: var(--hrb-surface); border: 1px solid var(--hrb-border); border-radius: var(--hrb-radius);
    transition: border-color .15s, transform .15s;
}
.hrb-site a:hover, .hrb-site a:focus { border-color: var(--hrb-accent); transform: translateY(-2px); }
.hrb-site-name { display: block; font-family: var(--hrb-serif); font-size: 20px; font-weight: 700; }
.hrb-site-desc { display: block; margin-top: 4px; font-size: 15px; color: var(--hrb-muted); }
.hrb-site-url { display: block; margin-top: 8px; font-size: 13px; color: var(--hrb-accent); word-break: break-all; }
.hrb-empty { color: var(--hrb-muted); }

/* Contact form */
.hrb-form-wrap { max-width: 760px; margin: 0 auto; }
.hrb-form-wrap iframe { display: block; width: 100%; height: 1200px; border: 0; }

/* Pagination */
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.navigation.pagination .page-numbers {
    padding: 6px 12px; border: 1px solid var(--hrb-border); border-radius: 6px;
    background: var(--hrb-surface); text-decoration: none;
}
.navigation.pagination .current { background: var(--hrb-accent); border-color: var(--hrb-accent); color: #fff; }

/* Footer */
.site-footer { background: var(--hrb-surface); border-top: 1px solid var(--hrb-border); padding: 24px 0; font-size: 14px; color: var(--hrb-muted); }
.site-footer .hrb-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--hrb-muted); }

@media (max-width: 600px) {
    .site-header .hrb-container { justify-content: center; text-align: center; }
    .main-nav ul { justify-content: center; }
    .entry { padding: 20px; }
    .site-footer .hrb-container { justify-content: center; text-align: center; }
}