/*
Theme Name: Myralbe Editable
Description: Myralbe’s existing visual identity with individually editable WordPress pages and an editorial publication layout.
Version: 2.4.0
Author: Myralbe
Text Domain: myralbe-editable
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Original page styles are loaded independently; these rules support native
   blocks, accessibility and the WordPress editorial views. */
:root {
  --ink: #292826;
  --ink-soft: #6f6964;
  --paper: #f7f5f1;
  --paper-deep: #ede5dd;
  --white: #fff;
  --clay: #a55f46;
  --clay-dark: #884c39;
  --gold: #d6b79c;
  --line: #ded7d0;
  --max: 1320px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
body { margin: 0; }
img { height: auto; }
.myralbe-editable .wp-block-group { box-sizing: border-box; }
.myralbe-editable .wp-block-image { margin: 0; }
.myralbe-editable figure.wp-block-image.myralbe-inline-image { display: contents; margin: 0; }
.myralbe-editable .wp-block-image img { vertical-align: middle; }
.myralbe-editable .page-hero-media.wp-block-image img,
.myralbe-editable .visual-frame.wp-block-image img,
.myralbe-editable .hero-media .myralbe-inline-image img,
.myralbe-editable .editorial-media .myralbe-inline-image img,
.myralbe-editable .myr-photo .myralbe-inline-image img,
.myralbe-editable .myr-figure .myralbe-inline-image img { width: 100%; height: 100%; object-fit: cover; }
.myralbe-editable .wp-block-heading { overflow-wrap: normal; }
.myralbe-editable .wp-block-separator { border-color: var(--line); }
.myralbe-editable .wp-block-button__link { border-radius: 0; }
.myre-skip-link {
  position: fixed; top: -120px; left: 16px; z-index: 999999;
  padding: 13px 20px; background: #fff; color: #292826;
  border: 2px solid #a55f46; font: 700 15px Arial, sans-serif;
}
.myre-skip-link:focus { top: 12px; }
#myre-content-start { display: block; height: 0; scroll-margin-top: 120px; }
.myralbe-editable :focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.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;
}
.myralbe-editable.admin-bar .site-header,
.myralbe-editable.admin-bar .myr-header,
.myralbe-editable.admin-bar .myr-head { top: 32px; }
.myre-document { padding: 84px 24px 108px; }
.myre-document-heading { max-width: 860px; margin: 0 auto 44px; }
.myre-document-heading h1,
.myre-article-heading h1 {
  margin: 0; color: var(--ink); font-family: var(--serif);
  font-size: clamp(2.65rem, 4.6vw, 4.9rem); font-weight: 400;
  line-height: 1.08; letter-spacing: -.035em; text-wrap: balance;
}
.myre-publication { padding: 68px 24px 94px; background: #fff; }
.myre-article-heading { max-width: 940px; margin: 0 auto; }
.myre-back-link {
  display: inline-block; margin-bottom: 44px; color: var(--clay);
  font-family: var(--sans); font-size: .87rem; font-weight: 600;
}
.myre-back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.myre-article-heading .eyebrow { margin-bottom: 18px; }
.myre-article-deck {
  margin: 28px 0 22px; max-width: 770px; color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.6;
}
.myre-article-meta { margin: 26px 0 38px; color: var(--ink-soft); font-size: .87rem; }
.myre-article-cover { max-width: 1160px; margin: 0 auto 62px; }
.myre-article-cover img { width: 100%; max-height: 690px; object-fit: cover; }
.myre-article-cover figcaption { margin-top: 10px; color: var(--ink-soft); font-size: .84rem; }
.myre-prose { max-width: 770px; margin: 0 auto; font-size: 1.125rem; line-height: 1.85; }
.myre-prose > * { margin-top: 0; margin-bottom: 1.35em; }
.myre-prose p, .myre-prose li { color: #514d49; }
.myre-prose h2, .myre-prose h3, .myre-prose h4 {
  color: var(--ink); font-family: var(--serif); font-weight: 400;
  line-height: 1.18; letter-spacing: -.025em;
}
.myre-prose h2 { margin-top: 2em; margin-bottom: .65em; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.myre-prose h3 { margin-top: 1.7em; margin-bottom: .6em; font-size: 1.65rem; }
.myre-prose h4 { font-size: 1.3rem; }
.myre-prose a { color: var(--clay-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.myre-prose a:hover { color: var(--ink); }
.myre-prose a.button { color: #fff; text-decoration: none; }
.myre-prose li { margin: .5em 0; }
.myre-prose blockquote, .myre-prose .wp-block-pullquote {
  margin: 2em 0; padding: 24px 32px; background: var(--paper);
  border: 0; border-left: 3px solid var(--clay);
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.5;
}
.myre-prose blockquote p:last-child { margin-bottom: 0; }
.myre-prose cite { font-family: var(--sans); font-size: .85rem; }
.myre-prose figure, .myre-prose .wp-block-image { margin: 2em 0; }
.myre-prose figure img { display: block; max-width: 100%; }
.myre-prose figcaption { color: var(--ink-soft); font-size: .85rem; line-height: 1.5; margin-top: 10px; }
.myre-prose .alignwide { width: min(calc(100vw - 48px), 1020px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.myre-prose .alignfull { width: calc(100vw - 48px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.myre-prose .wp-block-table { overflow-x: auto; }
.myre-prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.myre-prose th, .myre-prose td { padding: 13px 16px; border: 1px solid var(--line); text-align: left; }
.myre-prose th { background: var(--paper); }
.myre-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 24px; background: var(--paper); }
.myre-prose .wp-block-embed__wrapper iframe { max-width: 100%; }
.myre-article-ending { max-width: 770px; margin: 62px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.myre-tags { font-size: .9rem; color: var(--clay-dark); }
.myre-search { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.myre-search label { width: 100%; }
.myre-search input { flex: 1 1 240px; width: auto; min-height: 48px; }
.myre-search .button { flex: 0 0 auto; width: auto; }
.myre-search > a { padding: 12px 0; color: var(--clay-dark); text-decoration: underline; text-underline-offset: 4px; }
.myre-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.myre-post-card { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.myre-post-image { display: block; aspect-ratio: 1.45; overflow: hidden; background: var(--paper-deep); }
.myre-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.myre-post-image:hover img { transform: scale(1.025); }
.myre-post-copy { padding-top: 22px; }
.myre-post-copy time { color: var(--ink-soft); font-size: .8rem; }
.myre-post-copy h2 { margin: 10px 0 16px; font-family: var(--serif); font-size: 1.8rem; line-height: 1.2; font-weight: 400; }
.myre-post-copy h2 a:hover { color: var(--clay-dark); }
.myre-post-copy p { color: var(--ink-soft); }
.myre-text-link { font-size: .9rem; font-weight: 700; color: var(--clay-dark); }
.myre-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.navigation.pagination, .myre-pagination { margin-top: 45px; }
.nav-links .page-numbers, .myre-pagination .post-page-numbers { padding: 10px 15px; border: 1px solid var(--line); }
.nav-links .page-numbers.current, .myre-pagination .current { background: var(--ink); color: #fff; }
.navigation.pagination .nav-links { position: static; inset: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.navigation.pagination .nav-links a { padding: 10px 15px; letter-spacing: 0; text-transform: none; }
.navigation.pagination .nav-links a::after { display: none; }
@media (max-width: 900px) {
  .myre-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
  .myralbe-editable.admin-bar .site-header,
  .myralbe-editable.admin-bar .myr-header,
  .myralbe-editable.admin-bar .myr-head { top: 46px; }
}
@media (max-width: 600px) {
  .myre-publication, .myre-document { padding: 46px 20px 65px; }
  .myre-back-link { margin-bottom: 30px; }
  .myre-article-heading h1 { font-size: 2.65rem; }
  .myre-article-cover { margin-bottom: 40px; }
  .myre-prose { font-size: 1.05rem; line-height: 1.8; }
  .myre-prose blockquote, .myre-prose .wp-block-pullquote { padding: 22px; }
  .myre-prose .alignwide, .myre-prose .alignfull { width: calc(100vw - 40px); }
  .myre-post-grid { grid-template-columns: 1fr; }
  .myralbe-editable.admin-bar .site-header,
  .myralbe-editable.admin-bar .myr-header,
  .myralbe-editable.admin-bar .myr-head { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .myre-post-image img { transition: none; }
}
