@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
  --color-black: #2c1a0e;
  --color-white: #fffcf7;
  --color-grey: #9a8070;
  --color-light: #f7ede0;
  --color-light-hover: #eedfd0;
  --color-accent: #d4622a;
  --color-accent-warm: #e07840;
  --color-accent-soft: #fdf0e8;
  --color-green: #4a7c59;
  --color-green-soft: #eef4f0;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  --font-family-sans: 'Lora', Georgia, "Times New Roman", serif;
  --font-family-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(44, 26, 14, .07);
  --shadow-md: 0 4px 24px rgba(44, 26, 14, .11);
}

html {
  font-family: var(--font-family-sans);
  font-size: 18px;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  width: 100%;
}
body {
  padding: var(--padding);
  max-width: 72rem;
  margin: 0 auto;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
  transition: color .15s;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 700;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: -1rem;
  margin-left: -1rem;
  margin-bottom: 6rem;
}

.logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: .01em;
  cursor: pointer;
  color: var(--color-accent);
  transition: color .2s;
}
.logo:hover {
  color: var(--color-accent-warm);
}
.logo-tagline {
  font-family: var(--font-family-ui);
  font-size: .75rem;
  font-weight: 400;
  color: var(--color-grey);
  display: none;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media screen and (min-width: 50rem) {
  .logo-tagline { display: block; }
}

.menu {
  display: flex;
  align-items: center;
  font-family: var(--font-family-ui);
  font-size: .9rem;
  font-weight: 500;
}
.menu a {
  padding: .625rem .9rem;
  display: block;
  border-radius: 8px;
  transition: background .2s, color .2s;
  letter-spacing: .01em;
}
.menu a:hover {
  background: var(--color-light);
  color: var(--color-accent);
}
.menu a[aria-current] {
  color: var(--color-accent);
  font-weight: 600;
  background: var(--color-accent-soft);
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 2rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: 0;
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

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

.text {
  line-height: 1.75em;
  font-size: 1.0625rem;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.25rem;
  margin-bottom: 2rem;
  line-height: 1.28em;
  color: var(--color-black);
  font-weight: 700;
}
.text h2,
.h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.35em;
}
.text h3,
.h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.55em;
  border-left: 4px solid var(--color-accent);
  background: var(--color-light);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  max-width: 32rem;
  border-radius: 0 8px 8px 0;
  color: var(--color-black);
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: var(--color-light);
  height: 2px;
  width: 100%;
  margin: 3rem auto;
  border-radius: 2px;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 44rem;
  margin-bottom: 3.5rem;
}
.intro *:not(:last-child) {
  margin-bottom: .875em;
}
.intro p {
  font-family: var(--font-family-ui);
  font-size: 1.125rem;
  color: var(--color-grey);
  line-height: 1.75;
}

.cta {
  font-family: var(--font-family-ui);
  background: var(--color-accent);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .03em;
  box-shadow: 0 3px 12px rgba(212, 98, 42, .28);
  transition: background .2s, box-shadow .2s, transform .15s;
  border: none;
  outline: none;
  cursor: pointer;
}
.cta:hover {
  background: var(--color-accent-warm);
  box-shadow: 0 5px 20px rgba(212, 98, 42, .35);
  transform: translateY(-2px);
}
.cta-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: none;
}
.cta-secondary:hover {
  background: var(--color-accent-soft);
  box-shadow: none;
  transform: translateY(-1px);
}

.box {
  background: var(--color-light);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(44, 26, 14, .1);
  box-shadow: var(--shadow);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  padding: 9rem 0 6rem;
  line-height: 1.5em;
}
.footer:before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul,
.footer p {
  color: var(--color-text-grey);
}
.footer p {
  max-width: 15rem;
}
.footer a:hover {
  color: var(--color-text);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  padding-top: 4rem;
  font-family: var(--font-family-ui);
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.pagination > a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.note-excerpt {
  line-height: 1.6em;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
  border: 1px solid rgba(44, 26, 14, .07);
  cursor: pointer;
}
.note-excerpt:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.note-excerpt header {
  padding: 1.25rem 1.25rem .5rem;
}
.note-excerpt figure {
  margin-bottom: 0;
  overflow: hidden;
}
.note-excerpt figure img {
  transition: transform .4s ease;
}
.note-excerpt:hover figure img {
  transform: scale(1.05);
}
.note-excerpt-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  margin-bottom: .35rem;
}
.note-excerpt-date {
  font-family: var(--font-family-ui);
  font-size: .8125rem;
  color: var(--color-text-grey);
}

.section-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.25rem;
  color: var(--color-black);
  display: flex;
  align-items: center;
  gap: .875rem;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.3em;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-warm));
  border-radius: 4px;
  flex-shrink: 0;
}

.home-articles .cta,
section > p > .cta {
  display: inline-block;
  margin-top: 2.5rem;
}

/* Magazine styles */
.header {
  border-bottom: 2px solid var(--color-light);
  margin-bottom: 2rem;
  padding-bottom: .25rem;
}

.note-tags a {
  font-family: var(--font-family-ui);
  background: var(--color-light);
  color: var(--color-accent);
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 600;
  border: 1px solid rgba(192, 57, 43, .2);
  transition: background .15s, color .15s;
}
.note-tags a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.note-excerpt-title a:hover {
  color: var(--color-accent);
}
.note-excerpt-body {
  padding: .5rem 1.25rem 1.25rem;
  font-family: var(--font-family-ui);
  font-size: .9375rem;
  color: var(--color-grey);
  line-height: 1.55;
}

.text h2 {
  color: var(--color-black);
  margin-top: 2.5rem;
}

.note-header {
  margin-bottom: 2rem;
}
.note-subheading {
  font-family: var(--font-family-ui);
  font-size: 1.0625rem;
  color: var(--color-grey);
  margin-top: .75rem;
  line-height: 1.55;
}
.note-date {
  font-family: var(--font-family-ui);
  font-size: .875rem;
  color: var(--color-grey);
}
.note-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-family-ui);
}

.note-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.footer {
  background: linear-gradient(160deg, #fdf2e8 0%, #f7ede0 100%);
  padding: 4rem 3rem 0;
  border-top: none;
  margin-top: 6rem;
  border-radius: 24px 24px 0 0;
  font-family: var(--font-family-ui);
  border: 1px solid rgba(212, 98, 42, .1);
  border-bottom: none;
}

.footer-tagline {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--color-accent);
  margin-top: .35rem;
  display: block;
}

.footer-legal {
  border-top: 1px solid rgba(44, 26, 14, .12);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  display: flex;
  gap: 1.5rem;
  font-size: .8125rem;
  color: var(--color-grey);
}
.footer-legal a {
  color: var(--color-grey);
}
.footer-legal a:hover {
  color: var(--color-black);
}

/* ── Custom blocks ─────────────────────────────────────── */

/* Infobox */
.block-infobox {
  background: #f5f5f5;
  border-left: 4px solid var(--color-accent);
  padding: 1.125rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 6px 6px 0;
}
.block-infobox-label {
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.block-infobox-text {
  font-size: .9375rem;
  color: #444;
  line-height: 1.6;
}
.block-infobox-text p { margin: 0; }

/* Testimonial */
.block-testimonial {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.block-testimonial-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  font-style: italic;
  color: #333;
  line-height: 1.65;
  margin-bottom: .75rem;
  border: none;
  padding: 0;
}
.block-testimonial-quote p { margin: 0; }
.block-testimonial-cite {
  font-size: .8125rem;
  color: #888;
  font-style: normal;
  display: block;
}

/* CTA Box */
.block-ctabox {
  background: var(--color-light);
  border: 1px solid #d4c4b0;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  text-align: center;
  margin: 2.5rem 0 1.75rem;
}
.block-ctabox-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.375rem;
  color: var(--color-black);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.block-ctabox-text {
  font-size: .9375rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.block-ctabox-text p { margin: 0; }
.block-ctabox-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: .875rem 1.75rem;
  border-radius: 8px;
  letter-spacing: .02em;
  transition: background .2s;
}
.block-ctabox-button:hover {
  background: #9b2d23;
}
.block-ctabox-sub {
  margin-top: .875rem;
  font-size: .75rem;
  color: #999;
}

/* Comparison Table */
.block-comparisontable {
  margin: 2.5rem 0;
}
.block-comparisontable-caption {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-black);
}
.block-comparisontable-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.block-comparisontable-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 520px;
}
.block-comparisontable-table th {
  background: var(--color-black);
  color: #fff;
  padding: .75rem .875rem;
  text-align: left;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.block-comparisontable-table td {
  padding: .75rem .875rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}
.block-comparisontable-table tr:last-child td {
  border-bottom: none;
}
.ct-row-winner {
  background: #fef8f0;
}
.ct-row-winner td:first-child {
  font-weight: 700;
}
.ct-badge-winner {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: .5625rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.ct-yes   { color: #2e7d32; font-weight: 700; font-size: 1rem; }
.ct-no    { color: #bbb; font-size: 1rem; }
.ct-partial { color: #e65100; font-size: 1rem; }
.ct-stars { color: #f9a825; font-size: .9375rem; letter-spacing: -.05em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
