/* annatam.co.uk — hand-written styles approximating the WordPress Twenty Twenty-Three custom theme. */
:root {
  --bg: #010102;
  --text: #e8eaed;
  --muted: #abb8c3;
  --link: #e50000;
  --primary: #f67f7f;
  --panel: #202124;
  --panel-2: #303134;
  --serif-hand: "TheSerifHandRegular", "Georgia", serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --content-width: 820px;
  --wide-width: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.05rem; line-height: 1.7; }
a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--text); text-decoration: none; }
img, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4, .serif-hand { font-family: var(--serif-hand); font-weight: 400; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: 3rem; margin: 0 0 1rem; }
h2 { font-size: 2.1rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.6rem; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1.2rem; }
hr { border: 0; border-top: 1px solid var(--panel-2); margin: 2rem 0; }
blockquote { border-left: 3px solid var(--primary); margin: 1.5rem 0; padding: .25rem 1.25rem; color: var(--muted); }
figure { margin: 1.5rem 0; }
figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--panel-2); padding: .5rem .6rem; text-align: left; vertical-align: top; }
button, .button, input[type=submit] { font: inherit; background: var(--primary); color: #101012; border: 0; border-radius: 10px; padding: .6rem 1.3rem; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover, input[type=submit]:hover { background: #fff; color: #101012; }
.button.secondary { background: var(--panel-2); color: var(--text); }
input, textarea, select { font: inherit; background: var(--panel); color: var(--text); border: 1px solid var(--panel-2); border-radius: 6px; padding: .55rem .7rem; width: 100%; max-width: 100%; }
label { display: block; margin: .8rem 0 .3rem; font-weight: 600; }
.linkish { background: none; color: var(--link); padding: 0; text-decoration: underline; border-radius: 0; }
.linkish:hover { background: none; color: var(--text); }

/* Header */
.site-header { text-align: center; padding: 1.2rem 1rem 0; }
.social { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; justify-content: center; gap: .6rem; align-items: center; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #101012; color: #fff; }
.social svg { fill: currentColor; width: 20px; height: 20px; }
.social .patreon { width: auto; border-radius: 18px; padding: 0 .9rem; font-size: .85rem; text-decoration: none; }
.logo img { width: 160px; height: 160px; border-radius: 50%; display: inline-block; }
.main-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 1.4rem; margin: .8rem 0 1.5rem; font-family: var(--serif-hand); font-size: 1.45rem; }
.main-nav a { color: var(--text); text-decoration: none; }
.main-nav a:hover { color: var(--primary); }
.cart-count { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 1em; background: var(--panel-2); font-family: var(--sans); font-size: .8rem; text-align: center; vertical-align: middle; }

/* Layout */
.site-main { max-width: var(--content-width); margin: 0 auto; padding: 0 1.25rem 3rem; }
.site-main.wide, .wide { max-width: var(--wide-width); }
.flash { max-width: var(--content-width); margin: 0 auto 1rem; padding: .7rem 1rem; border-radius: 8px; background: var(--panel); }
.flash-alert { border: 1px solid var(--link); }
.site-footer { border-top: 1px solid var(--panel-2); margin-top: 2rem; padding: 2rem 1.25rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: var(--wide-width); margin-left: auto; margin-right: auto; flex-wrap: wrap; }
.site-title { font-family: var(--serif-hand); font-size: 2rem; color: var(--text); text-decoration: none; }
.page-title { text-align: center; }
.meta { color: var(--muted); font-size: .92rem; }

/* WordPress block content */
.entry-content .alignfull, .entry-content .alignwide { margin-left: calc(50% - 50vw); width: 100vw; max-width: none; }
@media (min-width: 1300px) { .entry-content .alignwide { margin-left: calc((var(--content-width) - var(--wide-width)) / 2); width: var(--wide-width); } }
.wp-block-cover { position: relative; min-height: 420px; display: flex; align-items: flex-end; padding: 1rem; overflow: hidden; }
.wp-block-cover__image-background, .wp-block-cover__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-block-cover__background { background: rgba(0,0,0,.25); }
.wp-block-cover__inner-container { position: relative; width: 100%; color: #fff; }
.wp-block-cover .page-title { font-size: 4rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.wp-block-columns { display: flex; gap: 2rem; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 280px; min-width: 0; }
.wp-block-embed__wrapper { position: relative; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-block-image img { display: block; margin: 0 auto; }
.wp-block-image.alignleft, .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 45%; }
.wp-block-image.alignright, .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 45%; }
.aligncenter { text-align: center; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.wp-block-gallery figure { margin: 0; }
.wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-buttons { display: flex; gap: .6rem; flex-wrap: wrap; }
.wp-block-button__link, .wp-element-button { background: var(--primary); color: #101012; border-radius: 10px; padding: .6rem 1.3rem; text-decoration: none; display: inline-block; }
.wp-block-separator { border: 0; border-top: 1px solid var(--panel-2); margin: 2rem auto; width: 100px; }
.wp-block-separator.is-style-wide { width: 100%; }
.wp-block-quote { border-left: 3px solid var(--primary); padding-left: 1.25rem; }
.wp-block-group { margin: 0; }
.has-xx-large-font-size { font-size: 4rem; }
.has-x-large-font-size { font-size: 2.6rem; }
.has-large-font-size { font-size: 1.8rem; }
.has-medium-font-size { font-size: 1.2rem; }
.has-small-font-size { font-size: .9rem; }
.wp-block-accordion, .ub-accordion { margin: 1rem 0; }
.has-white-color { color: #fff; }
.is-layout-flex { display: flex; flex-wrap: wrap; gap: 1rem; }
.is-content-justification-center { justify-content: center; }
.is-vertically-aligned-center { align-items: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wp-block-post-featured-image img { width: 100%; }

/* Lists: posts, events, products */
.post-list article { border-bottom: 1px solid var(--panel-2); padding: 1.5rem 0; display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: start; }
.post-list article.no-thumb { grid-template-columns: 1fr; }
.post-list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.post-list h2 { margin: 0 0 .3rem; font-size: 1.8rem; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.post-list h2 a:hover { color: var(--primary); }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--panel-2); }
.event-list .date { font-family: var(--serif-hand); font-size: 1.4rem; color: var(--primary); }
.event-list h3 { margin: 0; font-size: 1.4rem; }
.event-list h3 a { color: var(--text); text-decoration: none; }
.event-list h3 a:hover { color: var(--primary); }
.event-meta dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 1rem; }
.event-meta dd { margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.5rem; }
.product-grid a.card { color: var(--text); text-decoration: none; display: block; }
.product-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--panel); }
.product-grid h3 { font-size: 1.35rem; margin: .7rem 0 .2rem; }
.product-grid .price { color: var(--primary); font-weight: 600; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.product .price { font-size: 1.5rem; color: var(--primary); }
.product .thumbs { display: flex; gap: .5rem; margin-top: .5rem; }
.product .thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.product form { margin: 1rem 0; }
.product input[type=number] { width: 6rem; display: inline-block; margin-right: .5rem; }
.cart-table td:last-child, .cart-table th:last-child { text-align: right; }
.cart-table input[type=number] { width: 5rem; display: inline-block; }
.cart-total { text-align: right; font-size: 1.3rem; margin: 1rem 0; }
.cart-actions { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.notice-box { background: var(--panel); border-radius: 10px; padding: 1.5rem; margin: 1.5rem 0; }
#checkout { margin: 1rem 0; min-height: 400px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.locked { max-width: 420px; margin: 3rem auto; text-align: center; }
.honeypot { position: absolute; left: -9999px; }

@media (max-width: 700px) {
  h1 { font-size: 2.3rem; }
  .wp-block-cover .page-title { font-size: 2.6rem; }
  .product { grid-template-columns: 1fr; }
  .post-list article { grid-template-columns: 1fr; }
  .event-list li { grid-template-columns: 1fr; }
  .main-nav { font-size: 1.25rem; gap: .1rem .9rem; }
  .logo img { width: 120px; height: 120px; }
}
