/*
Theme Name: Robinskis
Theme URI: https://robinskis.com/
Author: Robinskis
Author URI: https://robinskis.com/
Description: A minimal _s-style starter theme for Robinskis, with a custom Recipes post type.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robinskis
Tags: custom-post-type, recipes, minimal, starter-theme
*/

/* ==========================================================================
   Reset / base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #222;
    background: #fafafa;
}

a { color: #b32e2e; text-decoration: none; }
a:hover,
a:focus { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.25;
    margin: 0 0 .5em;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    padding: 2rem 0 1rem;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 2rem;
}

.site-branding { margin-bottom: 1rem; }

.site-title {
    font-size: 2rem;
    margin: 0;
}

.site-title a { color: #222; }

.site-description {
    margin: 0;
    color: #666;
    font-style: italic;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-navigation a { color: #444; }

.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e5e5;
    color: #666;
    font-size: .9rem;
}

/* ==========================================================================
   Posts and recipes
   ========================================================================== */
.entry { margin-bottom: 3rem; }

.entry-title { font-size: 1.75rem; }

.entry-meta {
    color: #666;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.entry-meta a { color: #666; }

.recipe-meta {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 2rem;
}

.recipe-meta dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .25rem 1rem;
    margin: 0;
}

.recipe-meta dt { font-weight: 600; color: #444; }
.recipe-meta dd { margin: 0; }

.recipe-taxonomy { margin-top: .5rem; font-size: .9rem; color: #666; }

/* ==========================================================================
   Accessibility
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: #f1f1f1;
    clip: auto !important;
    clip-path: none;
    color: #222;
    display: block;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
