/*
Theme Name: Havranek Blank Canvas
Theme URI: https://havranekworks.com/
Author: Andrew Havranek
Description: A deliberately blank WordPress block theme with warm paper, heritage typography, and an ornamental border. It creates no pages or content.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: havranek-blank-canvas
*/

:root {
  --hbc-paper: #f3eddf;
  --hbc-paper-deep: #e8deca;
  --hbc-ink: #193a2e;
  --hbc-line: rgba(25, 58, 46, 0.48);
  --hbc-pad: clamp(25px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--hbc-ink);
  background-color: var(--hbc-paper);
  background-image: url("assets/images/paper-texture.png");
}

/* Fixed double frame. */
body::before {
  position: fixed;
  z-index: 9998;
  inset: 12px;
  border: 1px solid var(--hbc-ink);
  outline: 1px solid var(--hbc-ink);
  outline-offset: 5px;
  pointer-events: none;
  content: "";
}

/* Four engraved corner flourishes built entirely with CSS. */
body::after {
  position: fixed;
  z-index: 9999;
  inset: 18px;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 0 0, transparent 0 20px, var(--hbc-ink) 21px 22px, transparent 23px) top left / 55px 55px no-repeat,
    radial-gradient(circle at 100% 0, transparent 0 20px, var(--hbc-ink) 21px 22px, transparent 23px) top right / 55px 55px no-repeat,
    radial-gradient(circle at 0 100%, transparent 0 20px, var(--hbc-ink) 21px 22px, transparent 23px) bottom left / 55px 55px no-repeat,
    radial-gradient(circle at 100% 100%, transparent 0 20px, var(--hbc-ink) 21px 22px, transparent 23px) bottom right / 55px 55px no-repeat,
    linear-gradient(var(--hbc-ink), var(--hbc-ink)) top left / 34px 1px no-repeat,
    linear-gradient(var(--hbc-ink), var(--hbc-ink)) top right / 34px 1px no-repeat,
    linear-gradient(var(--hbc-ink), var(--hbc-ink)) bottom left / 34px 1px no-repeat,
    linear-gradient(var(--hbc-ink), var(--hbc-ink)) bottom right / 34px 1px no-repeat;
}

a { text-underline-offset: .18em; }

.site-header {
  min-height: 88px;
  padding: 23px var(--hbc-pad);
  border-bottom: 1px solid var(--hbc-line);
}

.wordmark a {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-style: italic;
  text-decoration: none;
}

.primary-nav {
  font-family: var(--wp--preset--font-family--utility);
  font-size: .77rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.primary-nav a { text-decoration: none; }
.primary-nav a:hover,
.primary-nav a:focus-visible { text-decoration: underline; }

.blank-main { min-height: 70vh; }

.page-shell,
.single-shell,
.archive-shell {
  min-height: 70vh;
  padding: clamp(65px, 9vw, 130px) var(--hbc-pad);
}

.page-title,
.single-title,
.archive-title {
  width: min(100%, 1240px);
  margin: 0 auto clamp(38px, 6vw, 72px) !important;
  font-size: clamp(3.5rem, 9vw, 8.5rem) !important;
  letter-spacing: -.05em;
  line-height: .82 !important;
}

.page-content,
.single-content { font-size: 1.125rem; }

.site-footer {
  padding: 38px var(--hbc-pad);
  border-top: 1px solid var(--hbc-line);
}

.footer-note {
  font-family: var(--wp--preset--font-family--utility);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Optional class you may add to any Image block under Advanced. */
.hover-zoom { overflow: hidden; }
.hover-zoom img { display: block; width: 100%; transition: transform .42s ease; }
.hover-zoom:hover img { transform: scale(1.04); }

@media (max-width: 700px) {
  body::before { inset: 7px; outline-offset: 3px; }
  body::after { inset: 11px; }
  .site-header { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hover-zoom img { transition: none; }
}
