/*
Theme Name: Gus Sits Ever After
Theme URI: https://gussits.com/
Author: Gus Sits
Description: Faithful recreation of the original Gussits.com WordPress.com "Ever After" by Automattic design — Pacifico site title, Vollkorn body, Oswald headings, teal ribbon tagline banner, ornament post dividers, white page card with double inner frame.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: gussits-ever-after
*/

/* ---- Self-hosted fonts (latin subsets, from Google Fonts) ---- */
@font-face {
  font-family: 'Pacifico'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/be955174636e5369-s.p.woff2') format('woff2');
}
@font-face {
  font-family: 'Vollkorn'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/a827ab865c85ffb7-s.p.woff2') format('woff2');
}
@font-face {
  font-family: 'Vollkorn'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/a827ab865c85ffb7-s.p.woff2') format('woff2');
}
@font-face {
  font-family: 'Vollkorn'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/c580d9a3f6458f4a-s.p.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('assets/fonts/7f06be3f780a819a-s.p.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/7f06be3f780a819a-s.p.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/7f06be3f780a819a-s.p.woff2') format('woff2');
}

/* ---- Ever After tokens ---- */
* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  background-color: #605b49;
  background-image: url('assets/images/body-bg-2x.png');
  background-repeat: repeat;
  background-attachment: fixed;
  color: #87a2a5;
  font-family: 'Vollkorn', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 0 23px;
}
a { color: #e693a2; text-decoration: none; }
a:hover, a:focus, a:active { color: #ae8397; }
a:visited { color: #e693a2; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 400; text-transform: uppercase; line-height: 1.25;
  margin: 0 0 0.5em;
}

/* Page card with double inner frame */
#page {
  position: relative; max-width: 978px; margin: 0 auto;
  background: #fff url('assets/images/page-bg.png');
  box-shadow: rgba(0,0,0,0.4) 0 0 6px;
}
#page::before, #page::after {
  content: ""; position: absolute; pointer-events: none;
  border: 1px solid #e6e6e6;
}
#page::before { top: 20px; right: 32px; bottom: 20px; left: 32px; }
#page::after { top: 32px; right: 20px; bottom: 32px; left: 20px; }
.site-shell { max-width: 870px; margin: 0 auto; padding: 0 5.5%; position: relative; z-index: 1; }

/* Header */
#masthead { text-align: center; padding: 4.5em 0 0; }
.site-title {
  font-family: 'Pacifico', cursive; font-size: 50px; font-weight: 400;
  text-transform: none; margin: 0 0 0.35em; line-height: 1.1;
}
.site-title a { color: #09093d; }
.site-title a:hover { color: #09093d; text-decoration: none; }
.tagline-ribbon { display: inline-flex; align-items: stretch; margin: 0 0 2.05em; height: 54px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25)); }
.tagline-ribbon .ribbon-end { width: 56px; flex: 0 0 56px; background-repeat: no-repeat; background-position: center; }
.tagline-ribbon .ribbon-left { background-image: url('assets/images/ribbon-left.png'); }
.tagline-ribbon .ribbon-right { background-image: url('assets/images/ribbon-right.png'); }
.tagline-ribbon .ribbon-mid {
  display: inline-flex; align-items: center;
  background-image: url('assets/images/ribbon-middle.png'); background-repeat: repeat-x; background-position: center;
  color: #fff; font-family: 'Oswald','Arial Narrow',sans-serif; font-size: 13px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3); padding: 0 12px; white-space: nowrap;
}

/* Navigation */
.main-navigation { border-top: 3px double #e6e6e6; border-bottom: 3px double #e6e6e6; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.main-navigation a {
  display: inline-block; font-family: 'Oswald','Arial Narrow',sans-serif; font-size: 14px;
  text-transform: uppercase; color: #e693a3; padding: 5px 10px; margin: 7px 10px; border-radius: 3px;
}
.main-navigation a:hover { background: #59dfe6; color: #fff; text-decoration: none; }
.main-navigation .current-menu-item a, .main-navigation .current_page_item a { background: #eee; color: #777; }

/* Layout: single column */
#primary { padding: 2.5em 0 1em; }
.hentry { position: relative; margin: 0 0 3.25em; padding-bottom: 4.35em; }
.entry-header { position: relative; text-align: center; margin-bottom: 1.2em; }
.entry-title { font-size: 26px; margin: 0 0 0.4em; }
.entry-title a { color: #a9c3c6; }
.entry-title a:hover { color: #e693a2; text-decoration: none; }
.entry-meta { font-size: 0.85em; color: #a9c3c6; }
.entry-meta a { color: #a9c3c6; }
.entry-meta a:hover { color: #e693a2; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content ul { margin: 0 0 1.1em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.ornament-divider { text-align: center; margin: 0 0 0.4em; }
.ornament-divider img { width: 153px; height: auto; }

/* Entry images */
.entry-content img, .page-hero img {
  background: #fff; padding: 10px; box-shadow: rgba(0,0,0,0.1) 0 0 6px;
  border-radius: 0; display: block; margin-left: auto; margin-right: auto;
}
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; margin: 1.4em 0; }
.post-gallery img { width: 100%; height: auto; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.4em auto; max-width: 640px; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Tags footer */
.entry-tags { text-align: center; font-family: 'Oswald','Arial Narrow',sans-serif; font-size: 13px;
  text-transform: uppercase; color: #a9c3c6; margin-top: 2em; }
.entry-tags a { color: #a9c3c6; }
.entry-tags a:hover { color: #e693a2; }

/* Post navigation + pagination */
.post-navigation, .pagination { display: flex; justify-content: space-between; gap: 1em; margin: 2.5em 0;
  font-family: 'Oswald','Arial Narrow',sans-serif; font-size: 15px; text-transform: uppercase; }
.post-navigation .next { margin-left: auto; }

/* Supplementary widget area */
#supplementary { border-top: 3px double #e6e6e6; margin-top: 1em; padding: 2.5em 0 1em;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2em 3em; }
.widget { margin-bottom: 1.5em; }
.widget h3, .widget-title { font-size: 15px; color: #87a2a5; margin-bottom: 0.9em; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.55em; font-size: 0.9em; }
.widget p { font-size: 0.9em; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; font-family: 'Vollkorn', Georgia, serif; font-size: 16px;
  padding: 6px 10px; border: 1px solid #e6e6e6; border-radius: 3px; color: #87a2a5; background: #fff; min-width: 0; }
.btn, .search-form input[type="submit"] { font-family: 'Oswald','Arial Narrow',sans-serif; font-size: 15px;
  text-transform: uppercase; padding: 4px 21px 6px; border: 0; border-radius: 3px;
  background: #59dfe6; color: #fff; cursor: pointer; }
.btn:hover { background: #3fb8bf; color: #fff; }
.tag-cloud, .wp-tag-cloud { line-height: 2; }
.tag-cloud a, .wp-tag-cloud a { color: #a9c3c6; white-space: nowrap; }
.tag-cloud a:hover { color: #e693a2; }

/* Footer */
#colophon { text-align: center; color: #a9c3c6; font-size: 14px; padding: 1.5em 0 3.8571428571em; }
#colophon a { color: #e693a2; }

/* Static pages */
.page-header { text-align: center; margin-bottom: 1.5em; }
.page-title { font-size: 26px; }
.page-hero { margin: 0 auto 1.8em; max-width: 460px; }

/* Comments */
#comments { margin: 2em 0; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { margin-bottom: 1.5em; padding-bottom: 1.5em; border-bottom: 1px solid #e6e6e6; }

/* Responsive */
@media (max-width: 700px) {
  body { padding: 0 10px; font-size: 18px; }
  .site-title { font-size: 38px; }
  .tagline-ribbon { height: auto; max-width: 100%; }
  .tagline-ribbon .ribbon-end { display: none; }
  .tagline-ribbon .ribbon-mid { white-space: normal; line-height: 1.5; padding: 10px 18px; text-align: center; }
  #page::before { top: 10px; right: 16px; bottom: 10px; left: 16px; }
  #page::after { top: 16px; right: 10px; bottom: 16px; left: 10px; }
}
