/*
Theme Name: IUMM Diario
Theme URI: https://iumm.es/
Author: IUMM
Description: Portada y blog gastronómico independientes de Divi y del antiguo marketplace.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iumm-diario
*/
:root {
  --radius: 0.25rem;
  --background: oklch(0.975 0.004 85);
  --foreground: oklch(0.2 0.005 50);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.129 0.042 264.695);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.129 0.042 264.695);
  --primary: oklch(0.4 0.145 20);
  --primary-foreground: oklch(0.98 0.003 85);
  --secondary: oklch(0.968 0.007 247.896);
  --secondary-foreground: oklch(0.208 0.042 265.755);
  --muted: oklch(0.968 0.007 247.896);
  --muted-foreground: oklch(0.49 0.008 50);
  --accent: oklch(0.968 0.007 247.896);
  --accent-foreground: oklch(0.208 0.042 265.755);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.87 0.01 85);
  --input: oklch(0.929 0.013 255.508);
  --ring: oklch(0.704 0.04 256.788);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --sidebar: oklch(0.984 0.003 247.858);
  --sidebar-foreground: oklch(0.129 0.042 264.695);
  --sidebar-primary: oklch(0.208 0.042 265.755);
  --sidebar-primary-foreground: oklch(0.984 0.003 247.858);
  --sidebar-accent: oklch(0.968 0.007 247.896);
  --sidebar-accent-foreground: oklch(0.208 0.042 265.755);
  --sidebar-border: oklch(0.929 0.013 255.508);
  --sidebar-ring: oklch(0.704 0.04 256.788);
  --stage: oklch(0.12 0.003 60);
  --stage-foreground: oklch(0.97 0.005 85);
  --stage-muted: oklch(0.73 0.01 85);
  --gold: oklch(0.74 0.08 80);
  --stage-line: oklch(0.97 0.005 85 / 19%);
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Oswald', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-body); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.header-inner,.hero-bottom-inner { display:flex; height:100%; align-items:center; justify-content:space-between; gap:16px; }
.hero-button { display:inline-flex; align-items:center; justify-content:center; gap:16px; }
.icon { width:16px; height:16px; flex-shrink:0; display:inline-block; vertical-align:middle; }
.skip-link { position:absolute; left:20px; top:-100px; z-index:100; background:var(--background); color:var(--foreground); padding:12px; }
.skip-link:focus { top:12px; }
.site-header { height: 98px; background: var(--stage); color: var(--stage-foreground); border-bottom: 1px solid var(--stage-line); }
.site-width { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.brand img { width: 76px; height: 72px; object-fit: contain; }
.brand-caption { border-left: 1px solid var(--stage-line); padding-left: 20px; font-size: 11px; line-height: 1.65; text-transform: uppercase; }
.header-nav { display: flex; gap: 36px; align-items: center; font-size: 13px; }
.header-nav .current { color: var(--gold); }
.header-nav a { transition: color .2s; }
.header-nav a:hover { color: var(--gold); }
.hero { position: relative; isolation: isolate; background: var(--stage); color: var(--stage-foreground); min-height: 635px; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 20%, color-mix(in oklch, var(--stage) 15%, transparent) 45%, color-mix(in oklch, var(--stage) 75%, transparent) 100%); }
.hero-content { padding-top: 78px; padding-bottom: 110px; margin-left: 51%; max-width: 560px; }
.eyebrow { display: flex; gap: 12px; align-items: center; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0; }
.hero .eyebrow { color: var(--gold); }
.eyebrow::before { content: ''; height: 1px; width: 26px; background: currentColor; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: 88px; line-height: 1.08; text-transform: uppercase; margin: 24px 0; }
.hero h1 span { color: var(--gold); }
.hero-description { color: var(--stage-muted); font-size: 16px; line-height: 1.75; max-width: 365px; margin-bottom: 29px; }
.hero-button { background: var(--primary); color: var(--primary-foreground); border-radius: 2px; height: 48px; padding-inline: 24px; font-size: 12px; }
.hero-button:hover { background: color-mix(in oklch, var(--primary) 80%, var(--stage-foreground)); }
.hero-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 70px; border-top: 1px solid var(--stage-line); display: flex; align-items: center; justify-content: space-between; font-size: 10px; text-transform: uppercase; color: var(--stage-muted); background: color-mix(in oklch, var(--stage) 65%, transparent); }
.hero-bottom .topics { display: flex; gap: 28px; }
.topic-dot { color: var(--gold); margin-right: 10px; }
.scroll-link { color: var(--stage-foreground); display: flex; align-items: center; gap: 12px; }
.journal { padding-block: 65px 72px; }
.journal-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; }
.journal .eyebrow { color: var(--primary); margin-bottom: 12px; }
.journal h2 { font-family: var(--font-display); font-size: 42px; line-height: 1.2; font-weight: 400; }
.journal-intro { color: var(--muted-foreground); font-size: 13px; margin-top: 12px; }
.journal-link { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; border-bottom: 1px solid var(--border); padding-bottom: 9px; white-space: nowrap; }
.journal-link:hover { color: var(--primary); border-color: var(--primary); }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-image-wrap { overflow: hidden; aspect-ratio: 1.7; background: var(--muted); position: relative; }
.post-image { height: 100%; width: 100%; object-fit: cover; transition: transform .6s; }
.post-link:hover .post-image { transform: scale(1.04); }
.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--muted-foreground); margin: 21px 0 12px; text-transform: uppercase; }
.post-meta .post-number { color: var(--primary); }
.post h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.4; font-weight: 400; }
.post-link:hover h3 { color: var(--primary); }
.post-excerpt { font-size: 12px; color: var(--muted-foreground); line-height: 1.8; margin-top: 12px; }
.read-link { display: flex; align-items: center; gap: 10px; font-size: 11px; margin-top: 19px; font-weight: 500; }
.site-footer { background: var(--stage); color: var(--stage-muted); padding-block: 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 17px; font-size: 11px; }
.footer-brand img { width: 49px; height: 45px; object-fit: contain; }
.footer-links { display: flex; align-items: center; gap: 25px; font-size: 10px; }
.footer-links a:hover { color: var(--stage-foreground); }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
@media (min-width: 1600px) { .hero { min-height: 690px; } .hero-image { object-position: center 65%; } }
@media (max-width: 1023px) { .site-width { width: calc(100% - 64px); } .hero h1 { font-size: 70px; } .hero-content { margin-left: 46%; } .hero { min-height: 610px; } .hero-description { font-size: 14px; } .post h3 { font-size: 21px; } .topics { gap: 15px !important; } }
@media (max-width: 640px) {
  .site-width { width: calc(100% - 40px); } .site-header { height: 82px; } .brand img { width: 58px; height: 56px; } .brand-caption { display: none; } .header-nav { gap: 20px; font-size: 11px; }
  .hero { min-height: 650px; } .hero-image { object-position: 23% center; opacity: .55; } .hero::after { background: linear-gradient(0deg, var(--stage), transparent 95%); }
  .hero-content { margin-left: 0; padding-top: 66px; padding-bottom: 130px; } .hero h1 { font-size: 58px; margin-top: 22px; } .hero-description { max-width: 275px; font-size: 14px; } .hero-bottom { height: 90px; font-size: 9px; } .hero-bottom .topics { flex-direction: column; gap: 7px !important; } .hero-bottom .topics span:last-child { display: none; }
  .journal { padding-block: 42px 45px; } .journal-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; gap: 22px; } .journal h2 { font-size: 36px; } .journal-intro { font-size: 12px; } .posts-grid { grid-template-columns: 1fr; gap: 36px; } .post h3 { font-size: 25px; } .post-excerpt { font-size: 13px; } .footer-inner { align-items: flex-start; flex-direction: column; } .footer-links { flex-wrap: wrap; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .post-image, .header-nav a { transition: none; } }

.article-shell { padding-block:60px 72px; max-width:900px; }
.article-shell h1 { font-family:var(--font-display); font-size:48px; line-height:1.2; margin:18px 0 24px; overflow-wrap:anywhere; }
.article-cover { width:100%; max-height:520px; object-fit:cover; margin-bottom:30px; }
.entry-content { line-height:1.85; overflow-wrap:anywhere; }
.entry-content p,.entry-content ul,.entry-content ol,.entry-content figure,.entry-content h2,.entry-content h3 { margin-block:0 22px; }
.entry-content h2,.entry-content h3 { font-family:var(--font-display); font-weight:400; }
.entry-content a { color:var(--primary); text-decoration:underline; }
.entry-content iframe,.entry-content video { max-width:100%; }
.entry-content table { display:block; overflow:auto; max-width:100%; }
.aligncenter { margin-inline:auto; }.alignleft { float:left; margin-right:20px; }.alignright { float:right; margin-left:20px; }
.entry-content::after { content:''; display:table; clear:both; }
.pagination { margin-top:40px; display:flex; flex-wrap:wrap; gap:14px; }
.pagination .current { color:var(--primary); font-weight:600; }
.comment-list { padding-left:20px; }.comment-list li { margin-block:24px; }
.comments-area { margin-top:50px; }.comment-form label { display:block; }
.comment-form input:not([type=checkbox]),.comment-form textarea { max-width:100%; padding:10px; border:1px solid var(--border); font:inherit; background:var(--card); color:var(--foreground); }
.comment-form .submit { cursor:pointer; background:var(--primary); color:var(--primary-foreground); }
@media(max-width:640px) { .article-shell h1 { font-size:36px; } .article-shell { padding-block:40px; } }

/* Diary browsing, search and related stories. */
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.header-tools { display:flex; align-items:center; gap:32px; }
.header-search { display:flex; align-items:center; border-bottom:1px solid var(--stage-line); width:230px; }
.header-search:focus-within { border-color:var(--gold); }
.header-search input { min-width:0; width:100%; height:40px; border:0; background:transparent; color:var(--stage-foreground); font:inherit; font-size:12px; }
.header-search input::placeholder { color:var(--stage-muted); }
.header-search button { width:40px; height:40px; display:grid; place-items:center; flex-shrink:0; border:0; background:transparent; color:var(--gold); cursor:pointer; }
.journal h1 { font-family:var(--font-display); font-size:52px; line-height:1.2; font-weight:400; overflow-wrap:anywhere; }
.posts-grid { row-gap:44px; }
.post h3 { overflow-wrap:anywhere; }
.pagination { justify-content:center; padding-top:24px; border-top:1px solid var(--border); }
.pagination ul { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; list-style:none; padding:0; margin:0; }
.pagination .page-numbers:not(ul) { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:10px 14px; font-size:13px; border:1px solid var(--border); border-radius:2px; }
.pagination .page-numbers.current { background:var(--primary); color:var(--primary-foreground); border-color:var(--primary); }
.pagination a:hover { border-color:var(--primary); color:var(--primary); }
.article-eyebrow { margin-top:28px; color:var(--primary); }
.story-navigation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding-block:28px; margin-top:40px; border-block:1px solid var(--border); }
.story-nav-item { display:flex; align-items:center; gap:16px; min-width:0; }
.story-nav-item img { width:80px; height:80px; object-fit:cover; flex-shrink:0; }
.story-nav-item strong { display:block; font-family:var(--font-display); font-size:21px; font-weight:400; line-height:1.35; overflow-wrap:anywhere; }
.story-nav-label { display:block; color:var(--primary); font-size:11px; margin-bottom:8px; }
.story-nav-item:hover strong { color:var(--primary); }
.related-stories { padding-block:40px 72px; border-top:1px solid var(--border); }
.related-stories h2 { font-family:var(--font-display); font-size:38px; line-height:1.2; font-weight:400; }
.related-stories .eyebrow { color:var(--primary); margin-bottom:12px; }
.empty-state { padding-block:40px; }.empty-state h2 { margin-bottom:24px; }
.comment-author { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
@media (max-width:1100px) { .brand-caption { display:none; } .header-tools { gap:24px; } }
@media (max-width:700px) { .site-header { height:auto; } .header-inner { flex-wrap:wrap; padding-block:12px 16px; gap:10px; } .header-tools { display:contents; } .header-nav { margin-left:auto; gap:20px; } .header-search { width:100%; } .header-search input { font-size:16px; } .journal h1 { font-size:40px; } .story-navigation { grid-template-columns:1fr; } .related-stories h2 { font-size:32px; } .related-stories { padding-block:32px 48px; } }
