/*
Theme Name: Studio Name
Theme URI: https://example.com/
Author: Ryan Pocos
Description: Warm, formal starter theme for a custom furniture and fine woodcraft shop. Burgundy and bone palette, Fraunces + Public Sans, Customizer-driven homepage sections, theme.json tokens shared with the block editor.
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-name
Tags: custom-colors, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, translation-ready
*/

/* =========================================================
   Base site styles. Color and type tokens live in
   assets/css/theme-burgundy-bone.css (enqueued first) and
   are mirrored into theme.json for the block editor.
   Swap the enqueued theme file to re-skin.
   ========================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover { color: var(--color-link-hover); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--color-button-bg);
  color: var(--color-button-text);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--color-button-bg-hover); color: var(--color-button-text); }

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---- Header ---- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-ink);
  margin: 0;
}
.wordmark a { color: inherit; }
.wordmark a:hover { color: var(--color-accent); }
.site-header .custom-logo { max-height: 48px; width: auto; }
.site-tagline { margin: 2px 0 0; font-size: 0.8rem; color: var(--color-muted); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--color-accent);
}

/* ---- Hero ---- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--color-border);
}
.hero .eyebrow { display: block; margin-bottom: 14px; }
.hero p.lede {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  max-width: 46ch;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 40px; max-width: 62ch; }
.section-head p { color: var(--color-ink-soft); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card .eyebrow { display: block; margin-bottom: 10px; }
.card p { color: var(--color-ink-soft); font-size: 0.95rem; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--color-accent); }
.card .card-thumb { margin: -28px -28px 20px; border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; }

/* ---- About strip ---- */
.about-strip {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.about-strip .container { padding: 72px 24px; max-width: 780px; }

/* ---- Shop slot ---- */
.shop-slot {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  background: var(--color-surface);
  text-align: center;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.shop-slot--filled {
  border-style: solid;
  text-align: left;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

/* ---- Footer ---- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: var(--color-ink-soft); }
.site-footer a:hover { color: var(--color-accent); }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Entry / post content ---- */
.entry { max-width: 760px; }
.entry-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.entry-thumb { margin-bottom: 32px; border-radius: var(--radius-md); overflow: hidden; }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-ink-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.entry-content pre,
.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.entry-content pre {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td {
  border-bottom: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
}

/* ---- Block editor alignment support ---- */
.entry-content .alignwide { max-width: 1120px; margin-left: calc(50% - 560px); }
.entry-content .alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 1180px) {
  .entry-content .alignwide { max-width: 100%; margin-left: 0; }
}
.wp-caption-text, .wp-block-image figcaption {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 8px;
}

/* ---- Pagination ---- */
.pagination { margin-top: 48px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---- Comments ---- */
.comments-area { max-width: 760px; margin-top: 64px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 28px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.comments-area .submit {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-button-bg);
  color: var(--color-button-text);
  cursor: pointer;
}

/* ---- Accessibility ---- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 12px 20px;
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  background: var(--color-surface);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---- Admin bar offset for the sticky-free header ---- */
.admin-bar .skip-link:focus { top: 40px; }
