/*
Theme Name: HC Andersen Capital
Theme URI: https://hcandersencapital.dk
Author: HC Andersen Capital
Author URI: https://hcandersencapital.dk
Description: Custom theme for HC Andersen Capital by Olivier
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hc-andersen-capital
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, editor-style
*/

:root {
  --hca-bg: #FBF9F7;
  --hca-bg-alt: #EDEAE6;
  --hca-ink: #111;
  --hca-muted: #6b6660;
  --hca-subtle: #888;
  --hca-rule: #e0ddd9;
  --hca-rule-soft: #b5afa8;
  --hca-font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hca-radius: 8px;
  --hca-gutter: 4%;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--hca-font);
  color: var(--hca-ink);
  background: var(--hca-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, pre, ul, ol {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

img, svg, video { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--hca-ink); outline-offset: 3px; }

.hca-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--hca-ink);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--hca-radius) 0;
}
.hca-skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hca-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--hca-gutter);
}

.hca-shell .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.hca-shell .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.hca-shell .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.hca-shell .wp-caption { max-width: 100%; }
.hca-shell .wp-caption-text { font-size: 0.85rem; color: var(--hca-muted); }

.hca-entry {
  padding: 4rem 0;
  border-bottom: 1px solid var(--hca-rule);
  font-size: 1rem;
  line-height: 1.7;
}
.hca-entry:last-of-type { border-bottom: 0; }

.hca-entry h1,
.hca-entry h2,
.hca-entry h3,
.hca-entry h4,
.hca-entry h5,
.hca-entry h6 {
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
.hca-entry h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.hca-entry h2 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.hca-entry h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }

.hca-entry p,
.hca-entry ul,
.hca-entry ol { margin: 0 0 1.1em; }
.hca-entry ul,
.hca-entry ol { padding-left: 1.4em; }
.hca-entry p { text-wrap: pretty; }

.hca-entry a {
  color: var(--hca-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hca-rule-soft);
  transition: border-color 0.2s ease;
}
.hca-entry a:hover,
.hca-entry a:focus { color: var(--hca-ink); border-color: var(--hca-ink); }

.hca-entry__meta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--hca-subtle);
  margin-bottom: 0.6rem;
}

.hca-entry__title { margin-bottom: 0.4em; }
.hca-entry .hca-entry__title a { border-bottom: 0; }

.hca-entry__thumb { margin: 0 0 1.6rem; }
.hca-entry__thumb img { border-radius: var(--hca-radius); display: block; }

.hca-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 2.5rem 0 4rem;
}
.hca-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  border: 1px solid var(--hca-rule);
  border-radius: var(--hca-radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hca-ink);
  text-decoration: none;
}
.hca-pagination .page-numbers.current,
.hca-pagination .page-numbers:hover { border-color: var(--hca-ink); }

.hca-404 {
  padding: 8rem 0;
  text-align: center;
  line-height: 1.7;
}
.hca-404 h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  margin: 0 0 0.5em;
}

@media (max-width: 700px) {
  :root { --hca-gutter: 5%; }
  .hca-entry { padding: 2.5rem 0; }
}
