/*
Theme Name: Silkrod
Template: generatepress
Description: Silkrod child theme. Black and white, deco, minimal.
Author: LodeWeb
Version: 0.1.4
*/

:root { color-scheme: light; }

body {
  --contrast: #000000;
  --contrast-2: #6b6b6b;
  --contrast-3: #6b6b6b;
  --base: #ededed;
  --base-2: #ffffff;
  --base-3: #ffffff;
  --accent: #000000;
  --sr-display: "Poiret One", "Jost", sans-serif;
  --sr-body: "Jost", system-ui, sans-serif;
  background: #ffffff;
  color: #000000;
  font-family: var(--sr-body);
  font-size: 18px;
  line-height: 1.6;
}

body a { color: #000000; text-underline-offset: 3px; }
body a:hover, body a:focus { color: #000000; text-decoration-thickness: 2px; }
body :focus-visible { outline: 2px solid #000000; outline-offset: 3px; }

body h1, body h2, body h3, body .entry-title {
  font-family: var(--sr-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #000000;
}
body h1, body .entry-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
body h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

/* Preview strip */
.sr-preview {
  background: #000000;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
}

/* Header */
body .site-header { background: #ffffff; }
body .inside-header { padding: 44px 24px 18px; justify-content: center; }
body .site-branding { text-align: center; }
body .main-title { font-family: var(--sr-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: 0.32em; margin-right: -0.32em; text-transform: uppercase; line-height: 1; }
body .main-title a, body .main-title a:hover { color: #000000; text-decoration: none; }
body .site-description { display: none; }

body .main-navigation { background: #ffffff; border-bottom: 4px double #000000; }
body .main-navigation .inside-navigation { justify-content: center; }
body .main-navigation .main-nav ul li a,
body .main-navigation .menu-toggle {
  color: #000000;
  background: transparent;
  font-family: var(--sr-body);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 52px;
  padding: 0 18px;
}
body .main-navigation .main-nav ul li:hover > a,
body .main-navigation .main-nav ul li a:focus,
body .main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: #000000;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 8px;
}

/* Page shell */
body .site-content { padding: 0; }
body.home .site-content { display: block; }
body .inside-article { padding: 56px 24px; }
body .entry-content > p, body .entry-content > ul { max-width: 62ch; }
body .entry-meta, body .comments-area, body .post-navigation { display: none; }

/* Hero */
.sr-hero { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #000000; }
.sr-hero-photo {
  min-height: 520px;
  background-color: #000000;
  background-image: repeating-conic-gradient(from 270deg at 50% 100%, transparent 0deg 5.5deg, rgba(255,255,255,0.5) 5.5deg 6deg);
  display: flex; align-items: flex-end; justify-content: center;
  color: #ffffff; font-size: 14px; letter-spacing: 0.06em; padding: 20px;
}
.sr-hero-photo.sr-has-photo { display: block; background-image: none; padding: 14px; }
.sr-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.home .featured-image.page-header-image { display: none; }
.sr-hero-text { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; }
.sr-hero-text h1 { margin: 0 0 24px; }
.sr-hero-text p { max-width: 38ch; margin: 0 0 32px; font-size: 1.1rem; }

/* Sections */
.sr-section { padding: 72px 24px; }
.sr-section > h2 { margin: 0 0 8px; }
.sr-section > .sr-lede { margin: 0 0 40px; color: #6b6b6b; }

/* Pieces grid */
.sr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; list-style: none; margin: 0; padding: 0; }
.sr-piece a.sr-piece-link { display: block; text-decoration: none; }
.sr-ph, .sr-piece img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
.sr-ph {
  background-color: #f2f2f2;
  background-image: repeating-conic-gradient(from 270deg at 50% 100%, transparent 0deg 8deg, #dcdcdc 8deg 9deg);
  outline: 1px solid #000000; outline-offset: -10px;
}
.sr-piece-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 16px 0 12px; }
.sr-piece-name { font-family: var(--sr-display); font-size: 1.5rem; letter-spacing: 0.06em; }
.sr-piece-price { font-size: 1rem; }
.sr-media { display: block; position: relative; overflow: hidden; }
/* Sold sash: runs bottom left to top right across a 4:5 tile. */
.sr-sash {
  position: absolute; top: 50%; left: 50%; width: 190%;
  transform: translate(-50%, -50%) rotate(-51.34deg);
  background: rgba(176, 16, 28, 0.82); color: #ffffff;
  font-family: var(--sr-body); font-weight: 500; font-size: 17px; letter-spacing: 0.5em; text-indent: 0.5em;
  text-transform: uppercase; text-align: center; line-height: 1; padding: 13px 0;
  pointer-events: none;
}

/* Buttons */
body .sr-btn {
  display: inline-block;
  background: #000000; color: #ffffff;
  border: 1px solid #000000; border-radius: 0;
  font-family: var(--sr-body); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  padding: 13px 22px; line-height: 1.2;
}
body .sr-btn:hover, body .sr-btn:focus { background: #ffffff; color: #000000; text-decoration: none; }
body .sr-btn-quiet { background: #ffffff; color: #000000; }
body .sr-btn-quiet:hover, body .sr-btn-quiet:focus { background: #000000; color: #ffffff; }

/* Maker band */
.sr-band { border-top: 4px double #000000; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sr-band p { max-width: 46ch; }

/* Draft markers: copy waiting on Marc */
.sr-draft { border-left: 3px solid #000000; padding: 4px 0 4px 16px; color: #6b6b6b; font-size: 0.95rem; max-width: 62ch; }

/* Single piece */
.sr-single-buy { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sr-single-price { font-family: var(--sr-display); font-size: 2rem; }
.sr-single-ph { max-width: 520px; margin-bottom: 32px; }

/* Footer */
body .site-info { background: #ffffff; color: #000000; border-top: 4px double #000000; font-size: 15px; }
body .inside-site-info { padding: 32px 24px; display: block; text-align: center; line-height: 1.9; }
body .site-info a { color: #000000; }

@media (max-width: 900px) {
  .sr-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .sr-hero, .sr-band { grid-template-columns: 1fr; }
  .sr-hero-photo { min-height: 340px; }
  .sr-hero-text { padding: 44px 24px; }
  .sr-section { padding: 52px 20px; }
  .sr-band { gap: 16px; }
}
@media (max-width: 768px) {
  body .main-navigation .main-nav ul li a { line-height: 46px; text-align: center; }
  body .inside-header { padding: 32px 16px 14px; }
}
@media (max-width: 480px) {
  .sr-grid { grid-template-columns: 1fr; }
  .sr-piece-name { font-size: 1.4rem; }
}
