/*
Theme Name: Zileth Editorial - Study Abroad
Description: Editorial WordPress theme for Zileth Global Travels & Study.
Version: 1.2.1
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: zileth-editorial
*/
:root {
    --ink: #251820;
    --muted: #604e58;
    --paper: #fdfaf9;
    --line: #e8d9df;
    --wine: #521c39;
    --deep: #301124;
    --pink: #f5e0e8;
    --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, sans-serif; }
a { color: var(--wine); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b32e70; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1,h2,h3 { font-family: var(--serif); font-weight: 600; line-height: 1.13; margin: 0 0 .56em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 6vw, 4.3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -.022em; }
h3 { font-size: 1.38rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link,.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus,.screen-reader-text:focus { inset: 10px auto auto 10px; width:auto; height:auto; clip-path:none; z-index:99999; padding:.75rem; background:white; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.masthead { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1.06; text-decoration: none; }
.wordmark strong { font: 700 2.25rem/.98 var(--serif); letter-spacing: -.06em; }
.wordmark span { margin-top: .35rem; font-size: .78rem; font-weight: 650; }
.custom-logo-link { display: inline-block; max-width: 230px; }
.custom-logo { display: block; width: auto; max-height: 60px; object-fit: contain; }
.site-search { display: flex; width: min(100%, 320px); gap: 8px; align-items: center; }
input, textarea, button { font: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=submit]), textarea { border: 1px solid #bda8b3; background: white; color: var(--ink); border-radius: 7px; padding: .55rem .7rem; max-width: 100%; }
.site-search input { flex: 1; min-width: 0; }
button, input[type=submit], .button { min-height: 44px; background: var(--wine); color: white; font-weight: 650; border: 0; border-radius: 7px; padding: .6rem .91rem; cursor: pointer; }
.button { display: inline-flex; align-items: center; text-decoration: none; }
button:hover, .button:hover { background: #703155; }
.menu { display: flex; flex-wrap: wrap; gap: 0 .95rem; align-items: center; padding: 0; margin: 0; list-style: none; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .91rem; font-weight: 650; }
.menu a:hover,.menu a[aria-current=page] { text-decoration: underline; }
.primary-nav { border-top: 1px solid var(--line); padding-block: 3px; }
.hero { margin-top: 28px; display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; align-items: stretch; background: var(--deep); color: #fff9fc; border-radius: 18px; }
.hero-copy { padding: clamp(28px, 5vw, 68px); }
.hero-copy p { max-width: 48ch; color: #f5dfe9; font-size: 1.09rem; margin-bottom: 1.5rem; }
.hero .button { background: #f6d5e4; color: #361127; }
.hero .button:hover { background: white; }
.hero-start { align-self: center; margin: clamp(20px, 4vw, 48px); margin-left: 0; padding: clamp(20px, 3vw, 36px); background: #4b263d; border: 1px solid #815a70; border-radius: 14px; }
.hero-start h2 { font-size: 1.8rem; }
.hero-start ol { margin: 0; padding-left: 1.4em; }
.hero-start li { padding: .35em .08em; }
.hero-photo img { display:block; width:100%; height:100%; min-height: 225px; object-fit:cover; }
.topics,.guides,.related { margin-block: 42px; }
.topics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.topics a { display: block; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.topics a:hover { background: var(--pink); }
.topics span { display: block; font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.guide-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.card-media { aspect-ratio: 8/5; overflow: hidden; background: var(--pink); }
.card-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-copy { padding: 19px; }
.card-copy h2,.card-copy h3 { font-size: clamp(1.22rem,2vw,1.53rem); }
.card-copy h2 a,.card-copy h3 a { color: var(--ink); text-decoration: none; }
.card-copy a:hover { text-decoration: underline; }
.card-copy p { font-size: .93rem; color: var(--muted); margin: 0; }
.category-label { display: block; margin-bottom: .5rem; color: var(--wine); font-size: .83rem; font-weight: 700; text-decoration: none; }
.archive-heading { padding-block: 45px 8px; }
.archive-heading + .guides { margin-top: 20px; }
.article-main { padding-block: 40px; }
.article-frame { max-width: 780px; margin-inline:auto; }
.article-heading h1 { font-size: clamp(2.05rem, 5vw, 3.6rem); }
.byline { color: var(--muted); font-size: .91rem; }
.article-photo { margin: 22px 0; }
.article-photo img { display:block; border-radius: 12px; width:100%; }
.entry { font-size: 1.075rem; line-height: 1.75; overflow-wrap: anywhere; }
.entry h2,.entry h3 { margin-top: 1.45em; }
.entry ul,.entry ol { padding-left: 1.5em; }
.entry .alignwide,.entry .alignfull,.entry iframe { max-width: 100%; }
.entry table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.entry td,.entry th { padding: .5rem; border: 1px solid var(--line); }
.author-note,.comments { margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.author-note h2,.comments h2 { font-size: 1.45rem; }
.comments textarea,.comments label { display: block; }
.pagination { margin-top: 22px; }
.page-numbers { display: inline-flex; min-height:44px; min-width:44px; align-items:center; justify-content:center; padding-inline:.5rem; }
.page-numbers.current { border-radius: 8px; background: var(--pink); }
.site-footer { margin-top: 24px; background: var(--deep); color: #f9e6ee; }
.site-footer a { color: #fff9fc; }
.footer-inner { padding-block: 28px; }
.footer-inner p { margin: .6rem 0 0; font-size: .84rem; }
@media (max-width: 900px) {
    .topics ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .container { width: calc(100% - 30px); }
    .hero { grid-template-columns: 1fr; margin-top: 16px; }
    .hero-start { margin: 0 22px 22px; }
}
@media (max-width: 560px) {
    .masthead { align-items: flex-start; flex-direction: column; gap: 10px; }
    .menu { gap: 0 .7rem; }
    .topics ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .guide-grid { grid-template-columns: 1fr; }
}
