/*
Theme Name: Strangemarke
Theme URI: https://strangemarke.com
Description: Strangemarke Stationers — child theme of Twenty Twenty-Five. Seasonal palette via theme.json (default: the Command Center palette). Logo is a swappable site-logo block; swap per season in the editor.
Author: Strangemarke Stationers
Template: twentytwentyfive
Version: 1.0.28
License: GNU General Public License v2 or later
Text Domain: strangemarke
*/

/* Fine-tuning beyond theme.json */

.sm-hero {
  padding-top: 1.5rem;
}

.sm-logo img {
  max-width: 180px;
  height: auto;
}

/* The coloring-page preview gets a paper feel */
.sm-coloring-preview img {
  background: var(--wp--preset--color--cream, #fffdf7);
  border: 1px solid var(--wp--preset--color--border, #e5dccb);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(58, 53, 45, 0.08);
  padding: 10px;
}

/* Signup form: calm, CC-flavored */
.sm-signup .ff-el-form-control {
  background: var(--wp--preset--color--cream, #fffdf7);
  border: 1px solid var(--wp--preset--color--border-strong, #d9cdb6);
  border-radius: 6px;
  color: var(--wp--preset--color--ink, #3a352d);
}

.sm-signup .ff-btn-submit {
  background: var(--wp--preset--color--ink, #3a352d) !important;
  color: var(--wp--preset--color--cream, #fffdf7) !important;
  border-radius: 6px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.sm-signup .ff-btn-submit:hover {
  background: var(--wp--preset--color--accent, #8a6d3b) !important;
}

/* Sample grid: 3:4 cards linking to Etsy */
.sm-grid.alignwide {
  max-width: min(1100px, calc(100vw - 2.5rem));
  margin-left: auto;
  margin-right: auto;
}

/* Lock the grid: 3 across on desktop, 2 on tablet, 1 on phone */
.sm-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.4rem !important;
}

@media (max-width: 782px) {
  .sm-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .sm-grid { grid-template-columns: 1fr !important; }
}

.sm-grid > .wp-block-group {
  margin: 0 !important;
  min-width: 0;
}

.sm-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--wp--preset--color--border, #e5dccb);
  border-radius: 4px;
  background: var(--wp--preset--color--cream, #fffdf7);
  box-shadow: 0 1px 6px rgba(58, 53, 45, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sm-grid a:hover img {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 12px 26px rgba(58, 53, 45, 0.22);
}

/* Card captions: distinguish singles from sets at a glance */
.sm-grid a {
  text-decoration: none;
}

.sm-card-caption {
  display: block;
  margin-top: 0.45rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--wp--preset--color--muted, #6a6153);
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.sm-grid a:hover .sm-card-caption {
  color: var(--wp--preset--color--accent, #8a6d3b);
}

/* Footer: both columns on a shared baseline grid */
.sm-footer p {
  margin: 0 !important;
  line-height: 1.5rem !important;
}

/* ── Display face: Grenze Gotisch (her pick, 2026-11-10) ──
   Runs small for its size, so headings get bumped vs the old system-font sizes. */
h1.wp-block-heading,
h2.wp-block-heading {
  font-family: 'Grenze Gotisch', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sm-signup h1.wp-block-heading {
  font-size: 2.4rem !important;
  line-height: 1.15;
}

.sm-grid-section h2.wp-block-heading {
  font-size: 1.95rem !important;
}

.sm-footer-tagline {
  font-family: 'Grenze Gotisch', Georgia, serif;
  font-weight: 400;
  font-style: normal !important;
  font-size: 1.25rem;
}

/* Hero top-alignment: image top flush with the h1's first line */
.sm-signup h1.wp-block-heading { margin-top: 0; }
.sm-coloring-image { margin-top: 0; }

/* Logo links: no focus box on mouse click (keyboard focus ring kept for a11y) */
.sm-logo a:focus:not(:focus-visible),
.wp-block-site-logo a:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Footer link icons */
.sm-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  margin-right: 0.15em;
}

/* ═══════════════ YULE NIGHT-SKY DRESS ═══════════════
   Scoped entirely under body.sm-yule — the site stays in
   daylight until functions.php adds the class. One switch. */

body.sm-yule {
  background: linear-gradient(to bottom, #0b1026 0%, #16204a 55%, #243666 100%) fixed;
  color: #f3efe4;
}

/* Star field: two fixed layers, parallax-still, baked random positions */
body.sm-yule::before,
body.sm-yule::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
}

body.sm-yule::before {
  box-shadow: 1617px 1545px #fff, 614px 590px #fff, 1214px 825px #fff, 310px 1521px #fff, 1789px 1051px #fff, 1602px 1108px #fff, 288px 673px #fff, 871px 576px #fff, 1789px 1501px #fff, 104px 12px #fff, 824px 1235px #fff, 712px 780px #fff, 1690px 1148px #fff, 1403px 1165px #fff, 246px 1349px #fff, 827px 94px #fff, 755px 690px #fff, 6px 930px #fff, 493px 1239px #fff, 174px 95px #fff, 1205px 240px #fff, 936px 1036px #fff, 827px 347px #fff, 945px 1078px #fff, 1251px 1045px #fff, 63px 37px #fff, 1247px 810px #fff, 891px 1089px #fff, 233px 365px #fff, 1508px 637px #fff, 52px 1387px #fff, 868px 1191px #fff, 749px 290px #fff, 1373px 581px #fff, 169px 672px #fff, 797px 30px #fff, 431px 318px #fff, 802px 636px #fff, 1162px 1270px #fff, 1045px 493px #fff, 707px 108px #fff, 1435px 730px #fff, 1481px 43px #fff, 1367px 470px #fff, 737px 1515px #fff, 1205px 1047px #fff, 971px 1402px #fff, 44px 1547px #fff, 938px 1228px #fff, 1232px 1386px #fff, 1666px 51px #fff, 308px 1099px #fff, 227px 123px #fff, 1803px 1314px #fff, 307px 550px #fff, 1207px 144px #fff, 658px 877px #fff, 1168px 1520px #fff, 599px 735px #fff, 771px 387px #fff, 1182px 166px #fff, 830px 820px #fff, 1837px 130px #fff, 1732px 965px #fff, 1633px 1546px #fff, 107px 346px #fff, 1144px 893px #fff, 676px 184px #fff, 1889px 242px #fff, 1217px 989px #fff;
  opacity: 0.7;
  animation: sm-twinkle 4.5s ease-in-out infinite alternate;
}

body.sm-yule::after {
  box-shadow: 282px 416px #fff, 427px 883px #fff, 311px 70px #fff, 151px 1086px #fff, 1313px 1058px #fff, 1181px 1248px #fff, 1717px 553px #fff, 1425px 92px #fff, 59px 1285px #fff, 455px 688px #fff, 1069px 918px #fff, 271px 61px #fff, 672px 545px #fff, 1523px 87px #fff, 1736px 753px #fff, 1360px 246px #fff, 1176px 1401px #fff, 875px 361px #fff, 718px 670px #fff, 1900px 1595px #fff, 1044px 1353px #fff, 320px 539px #fff, 1196px 574px #fff, 1643px 1337px #fff, 1795px 1479px #fff, 1666px 224px #fff, 1464px 792px #fff, 1807px 798px #fff, 1244px 305px #fff, 373px 1088px #fff, 642px 866px #fff, 938px 382px #fff, 346px 768px #fff, 1131px 794px #fff, 1904px 1555px #fff, 933px 288px #fff, 876px 1240px #fff, 277px 494px #fff, 1198px 159px #fff, 1006px 1337px #fff, 585px 710px #fff, 951px 1537px #fff, 1201px 378px #fff, 1031px 1103px #fff, 1608px 1466px #fff;
  opacity: 0.45;
  animation: sm-twinkle 6.5s ease-in-out 1.7s infinite alternate;
}

@keyframes sm-twinkle {
  0%   { opacity: 0.25; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  body.sm-yule::before,
  body.sm-yule::after { animation: none; }
}

/* Privacy page: no header bar (the front page has none either);
   Home now lives in the footer beside Privacy */
body.page-id-3 header.wp-block-template-part { display: none; }

/* Privacy page in yule: collapse the stacked template spacing above the banner */
body.sm-yule.page-id-3 main.wp-block-group { margin-top: 0 !important; }
body.sm-yule.page-id-3 main.wp-block-group > .wp-block-group { padding-top: 0 !important; }
body.sm-yule.page-id-3 .entry-content { margin-top: 0 !important; }

/* Privacy page: its heading lives in the content below the banner;
   hide the template's duplicate post title */
.page-id-3 h1.wp-block-post-title { display: none; }

/* Yule: any page showing the daylight logo swaps to the banner (privacy page etc.) */
body.sm-yule img[src$="assets/logo.png"] {
  content: url('assets/logo-yule.png');
}

/* Yule logo: the festive banner runs wider than the daylight mark */
body.sm-yule .sm-logo,
body.sm-yule .wp-block-site-logo {
  /* full-bleed: escape the content column so centering is true to the viewport */
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  margin-left: -50vw !important;
  margin-right: 0 !important;
  text-align: center;
}

body.sm-yule .sm-logo img,
body.sm-yule .wp-block-site-logo img {
  width: 892px !important;
  max-width: min(892px, 92vw) !important;
  height: auto !important;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Yule: banner rides flush to the top of the page */
body.sm-yule .sm-hero { padding-top: 0; }
body.sm-yule main.wp-block-group { padding-top: 0 !important; }

/* Content sits above the stars */
body.sm-yule main,
body.sm-yule .sm-footer { position: relative; z-index: 1; }

/* White/cream text pass */
body.sm-yule h1.wp-block-heading,
body.sm-yule h2.wp-block-heading { color: #ffffff; }

body.sm-yule p,
body.sm-yule .has-text-color { color: #cdd3e8 !important; }

body.sm-yule a { color: #fff8cf; }
body.sm-yule a:hover { color: #ffffff; }

/* The coloring page stays a lit sheet of paper against the night */
body.sm-yule .sm-coloring-preview img {
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

/* Form: dark panel, starlit edges */
body.sm-yule .sm-signup .ff-el-form-control {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(232, 217, 174, 0.35);
  color: #f3efe4;
}

body.sm-yule .sm-signup .ff-el-form-control::placeholder { color: #9aa3c4; }

body.sm-yule .sm-signup .ff-btn-submit {
  background: #fff8cf !important;
  color: #0b1026 !important;
}

body.sm-yule .sm-signup .ff-btn-submit:hover {
  background: #fff !important;
}

/* Grid cards: lit windows in the dark */
body.sm-yule .sm-grid img {
  border: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

body.sm-yule .sm-grid a:hover img {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
}

body.sm-yule .sm-card-caption { color: #9aa3c4; }
body.sm-yule .sm-grid a:hover .sm-card-caption { color: #ffffff; }

/* Footer: deepest band of the night */
body.sm-yule .sm-footer {
  background-color: #0a0f22 !important;
  border-top: 1px solid rgba(232, 217, 174, 0.18);
}

/* Yule separators: her fleuron (outlined SVG via mask, so it inherits
   the text color — cream at rest, white when a neighbor glows) */
body.sm-yule .sm-sep {
  display: inline-block;
  width: 10px;
  height: 17px;
  margin: 0 calc(0.25em + 4px) 0 calc(0.25em + 6px);
  vertical-align: -0.25em;
  font-size: 0;
  color: #fff8cf;
  background-color: currentColor;
  -webkit-mask: url('assets/fleuron.svg') center / contain no-repeat;
  mask: url('assets/fleuron.svg') center / contain no-repeat;
}
