/*
Theme Name: Soft Beige — Full Width — Full Width
Theme URI: https://example.com/soft-beige
Author: OpenAI
Description: A calm, minimal WordPress theme with an off-white to light beige vertical background, elegant spacing, and clean typography.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soft-beige
Tags: blog, custom-logo, custom-menu, featured-images, one-column, accessibility-ready
*/

:root {
  --sb-offwhite: #fcfaf5;
  --sb-cream: #f4eee5;
  --sb-beige: #e7d8c5;
  --sb-text: #2f2a25;
  --sb-muted: #746b62;
  --sb-border: rgba(72, 58, 44, 0.16);
  --sb-card: rgba(255, 255, 255, 0.54);
  --sb-card-strong: rgba(255, 255, 255, 0.76);
  --sb-accent: #8d7258;
  --sb-accent-dark: #64503d;
  --sb-radius: 18px;
  --sb-content: 760px;
  --sb-wide: 1120px;
  --sb-shadow: 0 12px 38px rgba(69, 52, 36, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--sb-text);
  background:
    linear-gradient(
      180deg,
      var(--sb-offwhite) 0%,
      #faf7f1 18%,
      var(--sb-cream) 55%,
      #eee4d7 78%,
      var(--sb-beige) 100%
    );
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sb-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--sb-accent);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.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;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  z-index: 100000;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--sb-border);
  background: rgba(252, 250, 245, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: 90vw;
  max-width: 1600px;
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-logo {
  max-height: 48px;
  width: auto;
  border-radius: 0;
}

.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--sb-text);
  text-decoration: none;
}

.site-description {
  margin: 2px 0 0;
  color: var(--sb-muted);
  font-size: 0.78rem;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  color: var(--sb-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--sb-accent);
}

.site-main {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(62px, 9vw, 118px) 0 90px;
}

.home .site-main,
.blog .site-main,
.archive .site-main,
.search .site-main {
  width: 90vw;
  max-width: 1400px;
}

.page-header,
.archive-header {
  margin-bottom: 42px;
}

.page-title,
.entry-title,
.archive-title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-title,
.archive-title {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.entry-title {
  font-size: clamp(2.1rem, 5.5vw, 4rem);
}

.entry-title a {
  color: var(--sb-text);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--sb-accent-dark);
}

.entry-meta {
  margin-bottom: 24px;
  color: var(--sb-muted);
  font-size: 0.85rem;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.8em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  font-weight: 500;
}

.entry-content h2 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
}

.entry-content h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 2px solid var(--sb-accent);
  color: #554b42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.entry-content .alignwide {
  width: min(100vw - 40px, var(--sb-wide));
  max-width: var(--sb-wide);
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-card {
  margin: 0 0 28px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: var(--sb-card);
  box-shadow: var(--sb-shadow);
}

.post-card .entry-title {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
}

.post-card .entry-content,
.post-card .entry-summary {
  color: #514940;
}

.post-thumbnail {
  display: block;
  margin: -8px 0 26px;
}

.post-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wp-block-button__link,
button,
input[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 0.72em 1.2em;
  background: var(--sb-text);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--sb-accent-dark);
  color: #fff;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--sb-text);
  background: rgba(255, 255, 255, 0.62);
}

.pagination,
.posts-navigation,
.post-navigation {
  margin-top: 42px;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  text-decoration: none;
}

.page-numbers.current {
  background: var(--sb-text);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--sb-border);
  color: #665c53;
}

.footer-inner {
  width: 90vw;
  max-width: 1600px;
  margin: 0 auto;
  padding: 38px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 720px) {
  .header-inner {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .site-description {
    display: none;
  }

  .site-main {
    padding-top: 56px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   5% PAGE MARGIN LAYOUT
   Leaves 5vw on the left and 5vw on the right.
   ========================================================= */
.header-inner,
.site-main,
.home .site-main,
.blog .site-main,
.archive .site-main,
.search .site-main,
.footer-inner {
  width: 90vw;
  margin-left: auto;
  margin-right: auto;
}

.header-inner,
.footer-inner {
  max-width: 1600px;
}

.site-main {
  max-width: 1200px;
}

.home .site-main,
.blog .site-main,
.archive .site-main,
.search .site-main {
  max-width: 1400px;
}

@media (max-width: 720px) {
  .header-inner,
  .site-main,
  .home .site-main,
  .blog .site-main,
  .archive .site-main,
  .search .site-main,
  .footer-inner {
    width: 92vw;
  }
}


/* =========================================================
   FULL-WIDTH DESKTOP LAYOUT
   No outer left/right website margins.
   Backgrounds and layout span the full viewport.
   ========================================================= */

.header-inner,
.site-main,
.home .site-main,
.blog .site-main,
.archive .site-main,
.search .site-main,
.footer-inner {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Keep content readable without creating an outer page margin */
.header-inner,
.footer-inner {
  padding-left: 24px;
  padding-right: 24px;
}

.site-main,
.home .site-main,
.blog .site-main,
.archive .site-main,
.search .site-main {
  padding-left: 24px;
  padding-right: 24px;
}

/* Let wide content actually use the full screen */
.entry-content .alignwide {
  width: 100%;
  max-width: none;
  margin-left: 0;
  transform: none;
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  transform: none;
}

/* Wider blog/archive cards */
.home .site-main,
.blog .site-main,
.archive .site-main,
.search .site-main {
  max-width: none;
}

/* Mobile: still full-width, just slightly smaller inner padding */
@media (max-width: 720px) {
  .header-inner,
  .footer-inner,
  .site-main,
  .home .site-main,
  .blog .site-main,
  .archive .site-main,
  .search .site-main {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 14px;
    padding-right: 14px;
  }
}
