/*
Theme Name: My Astra
Theme URI:  https://ironwolfai.com
Author:     hyperclock
Author URI: https://ironwolfai.com
Template:   astra
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* Englisch mit WixyN • Astra child theme
   Append below the existing theme header in style.css.
   Optional Gutenberg classes: wixy-hero (Group), wixy-card (Group),
   wixy-level (Paragraph), wixy-practice (Group). */
:root {
  --wixy-ink: #173e42;
  --wixy-teal: #205956;
  --wixy-teal-dark: #143f40;
  --wixy-cream: #faf6eb;
  --wixy-paper: #fffdf7;
  --wixy-orange: #d87734;
  --wixy-line: #d8cdb6;
  --wixy-round: 1rem;
}

body, #page {
  background-color: var(--wixy-cream);
  color: var(--wixy-ink);
}
body, button, input, select, textarea {
  font-family: Inter, system-ui, sans-serif;
}
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.entry-title, .entry-content :where(h1, h2, h3) {
  color: var(--wixy-ink);
  line-height: 1.18;
  overflow-wrap: break-word;
}
.entry-content p a:not(.wp-element-button) {
  color: var(--wixy-teal);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
  background-color: var(--wixy-teal);
  color: white;
  border-radius: .65rem;
  padding: .75em 1.25em;
  font-weight: 650;
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover {
  background-color: var(--wixy-teal-dark);
}
#page :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--wixy-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px white;
}

/* Homepage introduction: add Columns inside this Group for text and Wixy. */
.entry-content .wixy-hero {
  padding: clamp(1.25rem, 4vw, 3.75rem);
  background: var(--wixy-paper);
  border-block-start: .35rem solid var(--wixy-orange);
  border-radius: var(--wixy-round);
}
.wixy-hero h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 4rem);
  letter-spacing: -.025em;
  max-inline-size: 22ch;
}
.wixy-hero p { max-inline-size: 58ch; }
.wixy-hero .wp-block-image img {
  display: block;
  max-inline-size: min(100%, 22rem);
  block-size: auto;
  margin-inline: auto;
}

/* Lesson preview, CEFR level, and listening exercise. */
.entry-content .wixy-card,
.entry-content .wixy-practice {
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--wixy-line);
  border-radius: var(--wixy-round);
  background-color: var(--wixy-paper);
}
.entry-content .wixy-practice {
  border-inline-start: .35rem solid var(--wixy-teal);
}
.wixy-practice audio { width: 100%; max-width: 36rem; }
.entry-content .wixy-level {
  display: inline-block;
  padding: .15em .65em;
  border-radius: .35rem;
  background: #f7dfbd;
  color: var(--wixy-ink);
  font-size: .875rem;
  font-weight: 700;
}

@media (max-width: 48rem) {
  .wixy-hero .wp-block-columns { gap: 1.25rem; }
  .wixy-hero .wp-block-image img { max-inline-size: min(100%, 15rem); }
}

