/*
Theme Name: Merlin's Mare
Theme URI: https://merlinsmare.co.uk/
Author: Cookie
Description: A single-page embroidered tale for Cookie, Merlin's mare.
Version: 1.0
Text Domain: merlins-mare
*/
*,
*::before,
*::after { box-sizing: border-box; }
html { margin: 0; }
body {
  margin: 0; color: #211d17; background: #e9dfca;
  font-family: Georgia, "Times New Roman", serif; line-height: 1.72;
}
.cookie-page { padding: 30px 14px; min-height: 100vh; }
.cookie-tapestry {
  position: relative; isolation: isolate; max-width: 1120px; margin: auto;
  padding: 64px clamp(28px, 8vw, 100px);
  background: #f4eddd url("assets/images/meadow-engraving.png") center / cover fixed;
  border: 1px solid #746348;
}
.cookie-tapestry::before {
  content: ""; position: absolute; inset: 12px; z-index: -1;
  background: rgba(248, 243, 231, .91);
}
.cookie-content { max-width: 760px; margin: auto; position: relative; }
.cookie-title { margin: 0; text-align: center; font-weight: normal;
  font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.1; }
.cookie-subtitle { margin: 10px 0 48px; text-align: center; font-style: italic; }
.cookie-story { font-size: 1.08rem; }
.cookie-story p { margin: 0 0 1.35em; }
.cookie-scene { width: min(250px, 42%); margin: 12px 28px 20px 0; float: left; }
.cookie-scene.right { float: right; margin: 12px 0 20px 28px; }
.cookie-scene img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cookie-scene-frame { padding: 7px; border: 1px solid #796747; background: #f8f2e5; }
.cookie-ending { clear: both; padding-top: 30px; text-align: center; }
.cookie-meadow-link { display: inline-block; padding: 10px 24px; border: 1px solid #51442f; text-decoration: none; }
.cookie-meadow-link:hover, .cookie-meadow-link:focus { text-decoration: underline; }
.cookie-footer { margin-top: 35px; text-align: center; font-size: .82rem; }
@media (max-width: 650px) {
  .cookie-page { padding: 8px 5px; }
  .cookie-tapestry { padding: 42px 24px; background-attachment: scroll; }
  .cookie-story { font-size: 1rem; }
  .cookie-scene, .cookie-scene.right { float: none; width: min(100%, 290px); margin: 28px auto; }
}
