/*
 * kaitgamble.com: the look of the WordPress theme Fluid Basics (a child of Responsive Blogily)
 * as the site used it: white, black text, everything in Quicksand, no sidebar.
 * Mobile first; the theme's breakpoints: 700, 900 and 1024 pixels.
 */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Quicksand", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: #000;
  --heading: #222;
  --muted: #656565;          /* excerpts in the lists */
  --meta: #6b6b6b;           /* comment dates (the theme's #999 is too pale) */
  --link: #996600;           /* the theme's amber #fab526, darkened for contrast */
  --link-on-grey: #8a5c00;   /* links inside the grey quote boxes */
  --rule: #eee;              /* lines around the menu */
  --hr: #ccc;
  --quote-bg: rgba(0, 0, 0, 0.1);
  --quote-border: rgba(0, 0, 0, 0.2);
  --button: #06c;
  --pill: #32373c;
  --footer: #000;
  --wrap: 1180px;
}

/* Base */

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

p,
blockquote,
address {
  margin: 0 0 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 15px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
}

b,
strong {
  font-weight: 700;
}

sup,
sub {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

hr {
  box-sizing: content-box;
  height: 1px;
  margin: 0.5em 0 1.5em;
  border: 0;
  background: var(--hr);
}

ul,
ol {
  margin: 0 0 1.5em 25px;
  padding: 0;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

figure {
  margin: 1em 0;
}

figure img {
  vertical-align: bottom;
}

blockquote {
  padding: 0.5em 10px;
  border-left: 6px solid var(--quote-border);
  background: var(--quote-bg);
}

blockquote a {
  color: var(--link-on-grey);
}

pre.verse {
  overflow: auto;
  margin: 0 0 1.6em;
  padding: 1.6em;
  background: #eee;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
  word-wrap: normal !important;
}

.skip-link:focus {
  top: 5px;
  left: 5px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 15px 23px 14px;
  clip: auto !important;
  clip-path: none;
  background: #f1f1f1;
  color: #21759b;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

/* Header: the logo (it shows the name and the tagline) */

.site-branding {
  margin: 30px auto 0;
  padding: 35px 0 48px;
  max-width: 90%;
  text-align: center;
}

.site-branding a {
  display: inline-block;
  vertical-align: top;
}

.site-branding img {
  display: block;
}

/* Menu: below 1024 px a "Menu" button that opens the list (no JavaScript), from 1024 px a row
   of items between two lines, the Books panel opening on hover and on keyboard focus. */

.main-navigation {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  max-width: 90%;
  margin: 0 auto;
}

.main-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a,
.main-navigation .menu-label {
  display: block;
  color: #000;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.menu--wide {
  display: none;
}

.menu-toggle {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.menu-toggle > summary {
  position: relative;
  width: 1120px;
  max-width: 90%;
  margin: 0 auto;
  padding: 10px 0;
  list-style: none;
  text-align: right;
  cursor: pointer;
}

.menu-toggle > summary::-webkit-details-marker,
.submenu-toggle > summary::-webkit-details-marker {
  display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  width: 15px;
  height: 2.5px;
  background: #000;
}

.menu-icon {
  top: 50%;
  margin-top: -1.25px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.menu--mobile {
  width: 1120px;
  max-width: 90%;
  margin: 0 auto !important;
  padding-bottom: 10px !important;
  text-align: left;
}

.menu--mobile li {
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.menu--mobile a,
.menu--mobile .menu-label {
  padding: 12px 0;
}

.menu--mobile > li > a {
  padding-right: 50px;
}

.menu--mobile .sub-menu {
  padding-left: 20px;
}

.menu--mobile .sub-menu a,
.menu--mobile .sub-menu .menu-label {
  opacity: 0.8;
}

.menu--mobile .sub-menu .sub-menu a {
  opacity: 1;
}

.submenu-toggle > summary {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 48px;
  list-style: none;
  cursor: pointer;
}

.submenu-toggle > summary::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 21px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  transform: rotate(45deg);
}

.submenu-toggle[open] > summary::after {
  top: 22px;
  transform: rotate(-135deg);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .menu--wide {
    display: block;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    text-align: center;
  }

  .menu--wide li {
    position: relative;
  }

  .menu--wide > li {
    display: inline-block;
  }

  .menu--wide > li > a {
    padding: 15px 1rem;
  }

  .menu--wide > li:first-child > a {
    padding-left: 0;
  }

  .menu-chevron {
    position: absolute;
    top: 21px;
    right: 1px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    transform: rotate(45deg);
    pointer-events: none;
  }

  .menu--wide .sub-menu {
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 9;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    text-align: left;
  }

  .menu--wide .sub-menu .sub-menu {
    top: 0;
  }

  .menu--wide li:hover > .sub-menu,
  .menu--wide li:focus-within > .sub-menu {
    left: 0;
  }

  .menu--wide .sub-menu li:hover > .sub-menu,
  .menu--wide .sub-menu li:focus-within > .sub-menu {
    left: 238px;
  }

  .menu--wide .sub-menu a,
  .menu--wide .sub-menu .menu-label {
    padding: 15px 1rem;
    font-size: 14px;
    opacity: 0.8;
  }

  .menu--wide .sub-menu .menu-chevron {
    top: 50%;
    right: 16px;
    margin-top: -3px;
    transform: rotate(-45deg);
    opacity: 0.8;
  }
}

/* Content */

.site-main {
  display: flow-root;
  width: var(--wrap);
  max-width: 90%;
  margin: 0 auto 50px;
  padding-top: 13px;
}

.entry,
.page-header,
.comments-area {
  margin-bottom: 30px;
  padding: 25px;
}

.entry-header {
  display: flex;
  flex-direction: column;
}

.entry-title {
  margin: 0 0 15px;
  color: #000;
  font-size: 30px;
  line-height: 1.5;
  text-align: center;
}

.entry-title a {
  color: #000;
  text-decoration: none;
}

.entry-meta {
  margin: 0 0 5px;
  font-size: 17px;
  text-align: center;
}

.posted-on {
  display: inline-block;
  margin-bottom: 5px;
  padding: 0 20px;
}

.entry-meta a {
  color: #000;
  text-decoration: none;
}

.entry-content,
.entry-summary {
  font-size: 16px;
  line-height: 1.5;
}

.entry-content > :last-child,
.entry-summary > :last-child,
.entry-content p:last-child {
  margin-bottom: 0;
}

/* Web addresses used as link text wrap instead of making phones scroll sideways. Only links:
   elsewhere a word too long for the space beside a floated picture still moves below it. */
.entry-content a,
.comment-content a {
  overflow-wrap: break-word;
}

/* As the theme: a clearfix before and after the text (the first paragraph's margin stays inside). */
.entry-content::before,
.entry-content::after {
  content: "";
  display: table;
}

.entry-content::after {
  clear: both;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  margin-top: 0;
  color: var(--heading);
}

.featured-thumbnail {
  display: block;
  margin-bottom: 10px;
}

.featured-thumbnail img {
  width: 100%;
}

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

/* Shown without the space below, as WordPress showed it: the last paragraph inside a bold or
   centred block, a line just above a video, pictures from the older block-editor markup. */
.entry-content .flush {
  margin-bottom: 0;
}

/* Starts below the floated pictures before it, where empty paragraphs pushed it down on the
   old site. */
.entry-content .clear {
  clear: both;
}

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

.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

/* Pictures in figures, spaced as WordPress showed them: the theme gave a figure 1em above and
   below; the older block-editor markup ("flush") had none, or half an em when floated; captioned
   pictures from the old editor ("caption") have the theme's caption spacing. */
figure.alignleft {
  margin: 1em 1.5em 1em 0;
}

figure.alignright {
  margin: 1em 0 1em 1.5em;
}

figure.flush {
  margin: 0;
}

figure.flush.alignleft {
  margin: 0.5em 1em 0.5em 0;
}

figure.flush.alignright {
  margin: 0.5em 0 0.5em 1em;
}

figure.caption {
  display: table;
  margin: 1em 0 1.5em;
}

figure.caption.alignleft {
  margin: 1em 1.5em 1.5em 0;
}

figure.caption.alignright {
  margin: 1em 0 1.5em 1.5em;
}

figure.flush.aligncenter,
figure.caption.aligncenter {
  margin-right: auto;
  margin-left: auto;
}

figure.caption img {
  display: block;
  margin: 0 auto;
}

/* The caption wraps to the width of the picture; its space below is the figure's. */
figure.caption figcaption {
  display: table-caption;
  margin: 0.8075em 0 0;
  caption-side: bottom;
  text-align: center;
}

figure.aligncenter {
  display: table;
}

.w-25 {
  width: 25%;
}

/* "Buy Now" buttons and the Links page */

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 3px;
  background: var(--button);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

a.button:hover {
  opacity: 0.9;
}

.button:focus-visible,
.pill-links a:focus-visible {
  outline-color: #000;
}

.pill-links {
  margin: 0;
  list-style: none;
}

.pill-links li + li {
  margin-top: 1.5em;
}

.pill-links a {
  display: block;
  width: calc(75% - 0.125em);
  margin: 0 auto;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border-radius: 9999px;
  background: var(--pill);
  color: #fff;
  text-align: center;
  text-decoration: none;
}

/* Home: the cover grids */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 1.5em;
  list-style: none;
}

.cover-grid--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cover-grid li {
  text-align: center;
}

.cover-grid img {
  display: inline-block;
  vertical-align: top;
}

@media (min-width: 600px) {
  .cover-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cover-grid--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Promo: rows of boxes */

.columns {
  display: grid;
  gap: 0 2em;
}

@media (min-width: 782px) {
  .columns--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .columns--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* "2019 and Beyond": the colour-coded timeline */

.legend-full-length {
  color: #993300;
}

.legend-novella {
  color: #2b8255;
}

.legend-anthology {
  color: #3366ff;
}

.legend-young-adult {
  color: #800080;
}

/* Embedded videos (YouTube) and the Issuu magazine, each at its own size and proportions */

.video {
  max-width: 560px;
  margin: 0 0 1.5em;
  aspect-ratio: 16 / 9;
}

.video--4x3 {
  max-width: 420px;
  aspect-ratio: 4 / 3;
}

.video--issuu {
  max-width: 500px;
  aspect-ratio: 500 / 383;
}

.video.aligncenter {
  margin-right: auto;
  margin-left: auto;
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The 404 page */

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

.error-404 .entry-title {
  font-size: 28px;
}

/* Blog page */

.latest-posts {
  list-style: none;
}

.latest-posts li {
  overflow-wrap: break-word;
}

.latest-posts__excerpt {
  margin: 0.5em 0 1em;
}

/* Category pages */

.page-header {
  padding: 0;
}

.page-title {
  margin: 25px;
  padding: 10px;
  border-top: 4px double #000;
  border-bottom: 4px double #000;
  font-size: 30px;
  line-height: 1.5;
  text-align: center;
}

.entry--summary .entry-summary {
  color: var(--muted);
}

/* Comments (read-only) */

.comments-title {
  margin: 0 0 30px;
  color: var(--heading);
  font-size: 30px;
  line-height: 1.625;
}

.comment-list {
  margin: 0 0 1.5em;
  list-style: none;
}

.comment-list > li {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comment-list > li:last-child {
  margin-bottom: 0;
}

.comment-list > li.pingback {
  border-bottom: 3px solid #000;
}

.comment-meta p {
  margin: 0;
}

.comment-author {
  font-size: 16px;
  line-height: normal;
}

.comment-author a {
  color: #222;
  text-decoration: none;
}

.comment-metadata a {
  color: var(--meta);
  font-size: 14px;
  text-decoration: none;
}

.comment-content {
  padding: 20px 0 0 45px;
}

.comment-content p {
  margin-bottom: 5px;
}

.no-comments {
  margin: 0;
}

/* Footer */

.site-footer {
  background: var(--footer);
}

.site-info {
  margin: 0;
  padding: 20px;
  border-top: 1px solid #fff;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: normal;
  text-align: center;
}

/* Wider screens: the theme's side padding around the content */

@media (min-width: 901px) {
  .site-main {
    padding-right: 60px;
    padding-left: 60px;
  }
}

/* Phones: smaller titles and text, as the theme */

@media (max-width: 700px) {
  .entry-title {
    font-size: 20px;
  }

  .posted-on {
    font-size: 15px;
  }

  .page-title {
    font-size: 25px;
  }

  .entry-content,
  .entry-summary {
    margin-top: 10px;
    font-size: 14px;
  }
}

/* Phones: a picture wider than half the column is not floated beside the text. */

@media (max-width: 600px) {
  .alignleft.is-wide,
  .alignright.is-wide {
    display: block;
    float: none;
    margin-right: auto;
    margin-left: auto;
  }

  /* A figure stays as wide as its picture, so its caption wraps under it; centred like the
     pictures (more specific than the figure and caption margins above). */
  figure.alignleft.is-wide,
  figure.alignright.is-wide {
    display: table;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
