/* cloudinit.io - site-owned styles.
   css/visual-style.css is the untouched WordPress `visual` export; everything
   added for the built-out site lives here.  The theme's final cascade is dark
   (body #212121, links #40d7bc), so these rules are written for dark ground
   and lean on currentColor rather than hard-coded ink. */

/* --- capture repairs ------------------------------------------------- */

/* The theme reserves a 320px gutter for a sidebar and floats the column left.
   This build ships no sidebar and no widget area, so that gutter was simply
   dead space down the right of every page.

   The capture got away with it only because `.masonry #primary` happened to
   reset both, and that class is no longer emitted (see the note in head()) --
   so this rule now has to do the job on its own rather than only trimming the
   padding. */
#primary {
  float: none;
  width: 100%;
  padding-right: 0;
}

/* `word-break: break-all` hyphenates mid-word on long headlines, which the
   capture never hit because its three titles were short. */
.entry-title,
.site-title {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* The masthead title is a <p>, not an <h1>: every page now has exactly one
   <h1>, which is that page's own subject.  The capture had four on the home
   page -- the site name plus one per inlined article.  `.site-title` is a
   class selector in the theme, so all of its styling still applies; these two
   declarations replace only what came from the element being a heading. */
p.site-title {
  margin: 0;
  font-weight: 700;
}

/* --- shared ---------------------------------------------------------- */

.cn-breadcrumb {
  font-size: 1.3rem;
  opacity: .7;
  padding: 15px 15px 0;
}

.cn-kicker {
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.cn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 0 0 40px;
  padding: 0 15px;
}

.cn-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
}

.cn-card[hidden] { display: none; }

.cn-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.cn-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Automated posts carry no photograph and never will -- they get a plate
   rather than a borrowed or invented picture. */
.cn-card-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(64, 215, 188, .18), rgba(68, 156, 204, .18));
}

.cn-card-plate span {
  font-size: 1.3rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}

.cn-card-title {
  font-size: 1.8rem;
  line-height: 1.35;
  margin: 14px 15px 6px;
}

.cn-card .entry-meta { padding: 0 15px; }
.cn-card-excerpt {
  margin: 10px 15px 16px;
  font-size: 1.4rem;
  line-height: 1.6;
  opacity: .85;
}

/* --- landing --------------------------------------------------------- */

.cn-intro { padding: 30px 15px 10px; }
.cn-intro-title { font-size: 2.6rem; margin: 0 0 8px; }
.cn-intro-blurb { font-size: 1.5rem; opacity: .8; margin: 0; max-width: 60ch; }

.cn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 24px 15px 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
}

.cn-hero-media { display: block; max-height: 420px; overflow: hidden; }
.cn-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-hero-body { padding: 24px 24px 24px 0; }
.cn-hero-title { font-size: 2.4rem; line-height: 1.3; margin: 0 0 10px; }
.cn-hero-excerpt { font-size: 1.5rem; line-height: 1.65; opacity: .85; }
.cn-more { margin: 14px 0 0; font-weight: 700; }

.cn-sections ul {
  list-style: none;
  margin: 0 15px 36px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  overflow: visible;
}

.cn-sections a {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
}

.cn-sections strong { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.cn-sections span { display: block; font-size: 1.35rem; opacity: .75; color: #eee; }

.cn-latest-title { font-size: 1.8rem; margin: 0 15px 16px; letter-spacing: 1px; }

/* --- hubs ------------------------------------------------------------ */

.cn-hub-header { padding: 30px 15px 10px; }
.cn-hub-blurb { font-size: 1.5rem; opacity: .8; max-width: 62ch; }

.cn-search { margin: 16px 0 8px; }
.cn-search input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1.5rem;
  color: inherit;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
}

.cn-noresult, .cn-empty { padding: 0 15px 30px; opacity: .8; }

/* --- posts ----------------------------------------------------------- */

/* Capped to the text measure rather than the full column. Two of the three
   photographs are 683x1024 portraits; at the column's full 1020px they were
   upscaled past their own resolution and ran about 1500px tall, pushing the
   article itself below the fold. */
.cn-featured { margin: 0 15px 20px; max-width: 640px; }
.cn-featured img { width: 100%; height: auto; display: block; border-radius: 4px; }
.wp-element-caption { font-size: 1.2rem; opacity: .65; margin-top: 6px; }

.cn-post .entry-content { max-width: 72ch; }
.cn-post .entry-content h2 { margin-top: 28px; }

/* Emitted by the builder, not by the model, so a bad draft cannot drop it. */
.cn-disclosure {
  margin: 0 15px 24px;
  padding: 14px 16px;
  border-left: 3px solid rgba(64, 215, 188, .7);
  background: rgba(64, 215, 188, .07);
  font-size: 1.35rem;
  line-height: 1.6;
}

.cn-disclosure p { margin: 0; }

.cn-sources, .cn-related { margin: 28px 15px 0; }
.cn-sources h2, .cn-related h2 { font-size: 1.6rem; letter-spacing: 1px; }
.cn-sources ul, .cn-related ul {
  margin: 0 0 0 1.4em;
  padding: 0;
  border: 0;
  overflow: visible;
}
.cn-sources li, .cn-related li { margin-bottom: 6px; font-size: 1.4rem; }

.cn-backlink { margin: 28px 15px 10px; font-weight: 700; }

/* --- 404 ------------------------------------------------------------- */

.cn-404 { padding: 40px 15px; }
.cn-404 ul { margin-left: 1.4em; border: 0; overflow: visible; }

/* --- narrow ---------------------------------------------------------- */

@media (max-width: 760px) {
  .cn-hero { grid-template-columns: 1fr; }
  .cn-hero-body { padding: 0 20px 22px; }
  .cn-intro-title { font-size: 2.2rem; }
}
