/*
Theme Name: Talanta 10
Theme URI: https://talanta10.com
Author: Talanta Kumi Limited
Description: Bespoke theme for Talanta 10. Designed page templates for the marketing pages, full block-editor support for any page or post added later, an interactive AI readiness assessment, and hardened form handling.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: talanta10
*/

/*
  The working stylesheet is assets/css/site.css, enqueued from inc/setup.php.
  This file exists because WordPress requires it, and carries only the small
  set of rules needed for WordPress-generated markup that the static site
  never had to deal with.
*/

/* ---------- admin bar ---------- */
body.admin-bar .site-head { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-head { top: 46px; }
}

/* ---------- editor and post content ---------- */
.entry-content { max-width: 68ch; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content img,
.entry-content .wp-block-image img { height: auto; }
.entry-content blockquote {
  border-left: 3px solid var(--mist);
  padding-left: 24px;
  margin-left: 0;
  font-size: 1.1em;
  color: var(--petrol);
}
.entry-content code,
.entry-content pre {
  background: var(--paper);
  font-size: .9em;
}
.entry-content pre { padding: 20px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border-bottom: 1px solid var(--hair); padding: 10px 12px; text-align: left; }

.alignwide { max-width: min(1100px, 92vw); }
.alignfull { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- posts ---------- */
.post-card { display: block; height: 100%; }
.post-card .meta {
  font-size: 12px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mist); margin-bottom: 12px;
}
.post-thumb { margin-bottom: 20px; overflow: hidden; }
.post-thumb img { width: 100%; height: auto; display: block; }

.pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 48px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--hair); color: var(--petrol); font-size: 15px;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--petrol); border-color: var(--petrol); color: #fff; }

/* ---------- form feedback ---------- */
.notice-box {
  border-left: 3px solid var(--teal);
  background: var(--paper);
  padding: 20px 24px;
  margin-bottom: 30px;
  font-size: 15.5px;
}
.notice-box--error { border-left-color: #B23C3C; }
.notice-box strong { color: var(--petrol); font-weight: 500; }

.field .error-text { display: block; margin-top: 7px; font-size: 13px; color: #B23C3C; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B23C3C; }

/* the honeypot must be reachable by nothing and visible to no one */
.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- accessibility ---------- */
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none; height: auto; width: auto; padding: 14px 22px;
  background: var(--petrol); color: #fff; z-index: 100; left: 6px; top: 6px;
}
